From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 8K0IGEbe0V7AbQAA0tVLHw (envelope-from ) for ; Sat, 30 May 2020 04:17:10 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id YDnkE0be0V6rXgAA1q6Kng (envelope-from ) for ; Sat, 30 May 2020 04:17:10 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5C3E1940308 for ; Sat, 30 May 2020 04:17:09 +0000 (UTC) Received: from localhost ([::1]:53828 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jesvi-0007KC-O2 for larch@yhetil.org; Sat, 30 May 2020 00:17:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43226) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jesve-0007GW-HT for guix-patches@gnu.org; Sat, 30 May 2020 00:17:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45111) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jesve-0002Fv-8Q for guix-patches@gnu.org; Sat, 30 May 2020 00:17:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jesve-0002jw-1w for guix-patches@gnu.org; Sat, 30 May 2020 00:17:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41574] gnu: Add xev. References: <30SSS7KMH7STU.2VZS2NNFF6QOP@wilsonb.com> In-Reply-To: <30SSS7KMH7STU.2VZS2NNFF6QOP@wilsonb.com> Resent-From: elaexuotee@wilsonb.com Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 30 May 2020 04:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41574 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 41574@debbugs.gnu.org Received: via spool by 41574-submit@debbugs.gnu.org id=B41574.159081221810520 (code B ref 41574); Sat, 30 May 2020 04:17:02 +0000 Received: (at 41574) by debbugs.gnu.org; 30 May 2020 04:16:58 +0000 Received: from localhost ([127.0.0.1]:56657 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jesvU-0002jV-2e for submit@debbugs.gnu.org; Sat, 30 May 2020 00:16:58 -0400 Received: from m42-5.mailgun.net ([69.72.42.5]:22966) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jesvQ-0002jH-E3 for 41574@debbugs.gnu.org; Sat, 30 May 2020 00:16:50 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.wilsonb.com; q=dns/txt; s=krs; t=1590812209; h=Content-Type: MIME-Version: Message-Id: Subject: From: To: Date: Sender; bh=Q4APbAe1ICOEdjRyp8PaAOtpKdGoFG/gMfziaQW/hU0=; b=Coa3Vdg6LVGXpS194KQY8zshpVqtmcbhB6taOTuENs4XwSipC21S7aAWbipqHcbFQ9sy5YNh ukof8UxrTv+NSdcYFyppio010dQ9sq4mfyDAIWa3EC+EvUMMiZs8JMH7OmbfM/iwiJcWbE/+ M+NAlbFAZzZvCWbqkKds7k1bMqAtk24a52x2XmXR72YxXNscp5IDJQ5z8duiX1sRcnZk1wwA JfWysgKUIiDLiTYJc6EirrSnxXUwIVo+CsaEBh3KpRLeEBMjP/RQSNuSKy3LoNe+pDqO9KEv nxaBh/gAP03Pwx+MrHgOujww4MFBIPDoIhQZCd3aDwnS0n2dY0uscw== X-Mailgun-Sending-Ip: 69.72.42.5 X-Mailgun-Sid: WyIwYzVjZiIsICI0MTU3NEBkZWJidWdzLmdudS5vcmciLCAiMDg1NDdhIl0= Received: from wilsonb.com (wilsonb.com [104.199.203.42]) by smtp-out-n09.prod.us-west-2.postgun.com with SMTP id 5ed1de294776d1da6d1a6781 (version=TLS1.3, cipher=TLS_AES_128_GCM_SHA256); Sat, 30 May 2020 04:16:41 GMT Received: from localhost (KD111239193156.au-net.ne.jp [111.239.193.156]) by wilsonb.com (Postfix) with ESMTPSA id 83297A280A for <41574@debbugs.gnu.org>; Sat, 30 May 2020 04:16:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wilsonb.com; s=201703; t=1590812199; bh=Q4APbAe1ICOEdjRyp8PaAOtpKdGoFG/gMfziaQW/hU0=; h=Date:To:From:Subject:From; b=We3ZKjoIJxXda8UGqD6X3SrITcvqaHBdv/6x1Bmq94f4l/1scwFZyvt4fGUTeic5T RbJnPBVqAEiKKASoZY/4AKbKyWhUdtU8KD0AJnON21/MsiX9/R+M+0uHvZdSIf+nk0 426x8AaNHe5lU4oBVZIjifahTsB8CYDQ9KSkwBl0i/3mOsezaz8F5wXSFuUZDO1siW o0TBg7ovOp6myvljO6AFdHHnvukzaU+ROhkkZm1RbiS7gfFgNfwklijIGdA3BxxwWs dxPSv59BBnV9prhx7p1MsLaL8vfdx/2zwf1wZrOqPaLRj7FJ+Za6Bdst53OeAsq80y MhS9/5E1DBmiaB3hzOu5XXf2cQLozDw8sRWhjtJmxLoqkkFCEJTAsb2vtSeLn+EJSE WRd7rG6CNaH4O3/M/6sC6XOibposMjfFHpU+iGnU4d+6oqwsDmxAyMM9ChZXVh6cLK MkQj2WgRoNOi2571PGNSJMSvgiMR8wFP+WsQekH/UMEQ8z4nr0vsb/IlRKq7ufqIpz PyWvvnPsKLkIvtZnQXDz3xZ7R6N6zvBH7Fw6lFiVgpmEZ5/U2I1Gf9lUNGR+f7RveC k20gNirdUP76850tq7NnuWQnXUBaHVkMRR0/4Y99tJMneVqmJAKSFDD4xhKGYpxJKy khOy8TNddeyirXcIHZW3vwZE= Date: Sat, 30 May 2020 13:16:34 +0900 Message-Id: <2QH9MCU253SH7.2JDM9LTPYXMEC@wilsonb.com> User-Agent: mblaze/0.7 MIME-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="----_=_50cadf256dfcbeb54268fb64_=_" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: elaexuotee@wilsonb.com, elaexuotee--- via Guix-patches From: elaexuotee--- via Guix-patches via X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=mg.wilsonb.com header.s=krs header.b=Coa3Vdg6; dkim=fail (rsa verify failed) header.d=wilsonb.com header.s=201703 header.b=We3ZKjoI; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -2.11 X-TUID: Gwhodv0EQ+hV This is a multipart message in MIME format. ------_=_50cadf256dfcbeb54268fb64_=_ MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_6abcf16664494f0c2d36ec6a_=_" This is a multipart message in MIME format. ------_=_6abcf16664494f0c2d36ec6a_=_ Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Updated patch to fix three issues: 1) Change output name `doc' to `src' and install under src/-= /, 2) Change output name `devel' to `lib', and 3) Delete extraneous *.py files from `lib' output. However, in the course of the above, I ran into an issue with a non-deterministic build. For now I'm sharing the current state of the patch= but am looking into fixing the determinism. ------_=_6abcf16664494f0c2d36ec6a_=_ Content-Disposition: attachment; filename=0001-gnu-Add-xed.patch Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable =46rom 4a4073c3b7ba588ab65c406d018336524a4c29b9 Mon Sep 17 00:00:00 2001 =46rom: "B. Wilson" =44ate: Thu, 28 May 2020 07:32:28 +0900 =53ubject: [PATCH] gnu: Add xed. =0A* gnu/packages/assembly.scm (xed): New variable. =2D-- =20gnu/packages/assembly.scm | 96 +++++++++++++++++++++++++++++++++++++++ =201 file changed, 96 insertions(+) =0Adiff --git a/gnu/packages/assembly.scm b/gnu/packages/assembly.scm =69ndex c775603445..0af9f2a237 100644 =2D-- a/gnu/packages/assembly.scm =2B++ b/gnu/packages/assembly.scm =40@ -8,6 +8,7 @@ =20;;; Copyright =C2=A9 2019 Andy Tai =20;;; Copyright =C2=A9 2020 Jakub K=C4=85dzio=C5=82ka = =0A ;;; Copyright =C2=A9 2020 Christopher Lemmer Webber =2B;;; Copyright =C2=A9 2020 B. Wilson =20;;; =20;;; This file is part of GNU Guix. =20;;; =40@ -47,6 +48,7 @@ =20 #:use-module (gnu packages texinfo) =20 #:use-module (gnu packages python) =20 #:use-module (gnu packages sphinx) =2B #:use-module (gnu packages shells) =20 #:use-module (gnu packages xml) =20 #:use-module ((guix utils) =20 #:select (%current-system))) =40@ -371,3 +373,97 @@ It understands mnemonics and generates code for NMOS= =206502s (such =20as 6502A, 6504, 6507, 6510, 7501, 8500, 8501, 8502 ...), =20 CMOS 6502s (65C02 and Rockwell R65C02) and the 65816.") =20 (license license:gpl2))) =2B =2B(define-public xed =2B (package =2B (name "xed") =2B (version "11.2.0") =2B (source =2B (origin =2B (method url-fetch) =2B (uri (string-append "https://github.com/intelxed/xed/archive/" =2B version ".tar.gz")) =2B (sha256 =2B (base32 "1dl23wxz0dlkbcw6k78njnz2yc8a8yr4lp979sd9x1lnz74malvi"))= =0A+ (file-name (string-append name "-" version ".tar.gz")))) =2B (build-system gnu-build-system) =2B (native-inputs =2B `(("python-2" ,python-2) =2B ("python-3" ,python-3) =2B ("tcsh" ,tcsh) =2B ("mbuild" =2B ,(let ((name "mbuild") =2B (version "0.2496")) =2B (origin =2B (method git-fetch) =2B (uri (git-reference =2B (url "https://github.com/intelxed/mbuild.git") =2B (commit "5304b94361fccd830c0e2417535a866b79c1c297")))= =0A+ (sha256 =2B (base32 =2B "0r3avc3035aklqxcnc14rlmmwpj3jp09vbcbwynhvvmcp8srl7dl")) =2B (file-name (git-file-name name version))))))) =2B (outputs '("out" "lib" "src")) =2B (arguments =2B `(#:phases =2B ;; Upstream uses the custom Python build tool `mbuild', so we mun= =67e =2B ;; gnu-build-system to fit. The build process for this package i= =73 =2B ;; documented at https://intelxed.github.io/build-manual/. =2B (let* ((build-dir "build") =2B (kit-dir "kit")) =2B (modify-phases %standard-phases =2B (delete 'configure) =2B (replace 'build =2B (lambda* (#:key inputs #:allow-other-keys) =2B (let ((mbuild (assoc-ref inputs "mbuild"))) =2B ;; The build system requires that `mbuild' be in a sibl= =69ng =2B ;; directory to the project's source. =2B (symlink mbuild "../mbuild") =2B (invoke "./mfile.py" =2B (string-append "--build-dir=3D" build-dir) =2B (string-append "--install-dir=3D" kit-dir) =2B "examples" =2B "doc" =2B "install")))) =2B (replace 'check =2B (lambda _ =2B (invoke "tests/run-cmd.py" =2B ;; Skip broken test group `tests/tests-avx512pf'.= =0A+ (string-append "--build-dir=3D" kit-dir "/bin") =2B "--tests" "tests/tests-base" =2B "--tests" "tests/tests-avx512" =2B "--tests" "tests/tests-cet" =2B "--tests" "tests/tests-via" =2B "--tests" "tests/tests-syntax" =2B "--tests" "tests/tests-xop"))) =2B (replace 'install =2B (lambda* (#:key outputs #:allow-other-keys) =2B (let* ((out (assoc-ref outputs "out")) =2B (lib (assoc-ref outputs "lib")) =2B (src (assoc-ref outputs "src")) =2B (pkg (strip-store-file-name out)) =2B (src-dir (string-append src "/src/" pkg "/examples= =22))) =2B (copy-recursively (string-append kit-dir "/bin") =2B (string-append out "/bin")) =2B (copy-recursively (string-append kit-dir "/examples") s= =72c-dir) =2B (copy-recursively (string-append kit-dir "/include") sr= =63-dir) =2B ;; Discard residual build system files. =2B (for-each delete-file (find-files src-dir "\\.py$")) =2B (copy-recursively (string-append kit-dir "/include") =2B (string-append lib "/include")) =2B (copy-recursively (string-append kit-dir "/lib") =2B (string-append lib "/lib"))))))))) =2B (home-page "https://intelxed.github.io/") =2B (synopsis "Encoder and decoder for x86 (IA32 and Intel64) instructio= =6Es") =2B (description "The X86 Encoder Decoder (XED) is a software library an= =64 =2Bfor encoding and decoding X86 (IA32 and Intel64) instructions. The deco= =64er =2Btakes sequences of 1-15 bytes along with machine mode information and pr= =6Fduces =2Ba data structure describing the opcode, operands, and flags. The encode= =72 takes =2Ba similar data structure and produces a sequence of 1 to 15 bytes. Disa= =73sembly =2Bis essentially a printing pass on the data structure. =2B =2BThe library and development files are under the @code{lib} output, with = =61 =2Bfamily of command line utility wrappers in the default output. Each of = =74he cli =2Btools is named like @code{xed*}. Documentation for the cli tools is spa= =72se, so =2Bsee the @code{src} output for the corresponding source code.") =2B (license license:asl2.0))) =2D-=20 =32.26.2 =0A= ------_=_6abcf16664494f0c2d36ec6a_=_-- ------_=_50cadf256dfcbeb54268fb64_=_ Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYIADUWIQQ7FdZn/PDWvxE6cmR2pStZ7i7CgQUCXtHeHBccZWxhZXh1b3Rl ZUB3aWxzb25iLmNvbQAKCRB2pStZ7i7CgXiMAP9KJMZP9bzAloOJPeMpWc9aBxfL N9gXJwf4qgPMS445LQD+PKPe12AGx+OqIW21pMFc+yrvPILzvryAhq0n5QxR+Qw= =VbWF -----END PGP SIGNATURE----- ------_=_50cadf256dfcbeb54268fb64_=_--