From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id WAPaBqB5z15NHQAA0tVLHw (envelope-from ) for ; Thu, 28 May 2020 08:43:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id KHm2AqB5z15IXAAAbx9fmQ (envelope-from ) for ; Thu, 28 May 2020 08:43:12 +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 63D4C9403E9 for ; Thu, 28 May 2020 08:43:11 +0000 (UTC) Received: from localhost ([::1]:46038 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jeE85-0007Vn-3E for larch@yhetil.org; Thu, 28 May 2020 04:43:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59060) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jeE7y-0007VS-3e for guix-patches@gnu.org; Thu, 28 May 2020 04:43:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39393) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jeE7x-0008KC-RA for guix-patches@gnu.org; Thu, 28 May 2020 04:43:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jeE7x-00062s-Q0 for guix-patches@gnu.org; Thu, 28 May 2020 04:43:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41574] gnu: Add xed. Resent-From: elaexuotee@wilsonb.com Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 28 May 2020 08:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41574 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 41574@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159065534323179 (code B ref -1); Thu, 28 May 2020 08:43:01 +0000 Received: (at submit) by debbugs.gnu.org; 28 May 2020 08:42:23 +0000 Received: from localhost ([127.0.0.1]:50939 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jeE7G-00061f-6t for submit@debbugs.gnu.org; Thu, 28 May 2020 04:42:23 -0400 Received: from lists.gnu.org ([209.51.188.17]:46784) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jeE76-00061L-GD for submit@debbugs.gnu.org; Thu, 28 May 2020 04:42:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58974) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jeE76-0006qj-8i for guix-patches@gnu.org; Thu, 28 May 2020 04:42:08 -0400 Received: from m42-5.mailgun.net ([69.72.42.5]:61672) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jeE71-0008Cz-Nk for guix-patches@gnu.org; Thu, 28 May 2020 04:42:07 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.wilsonb.com; q=dns/txt; s=krs; t=1590655326; h=Content-Type: MIME-Version: Message-Id: Subject: From: To: Date: Sender; bh=eB+hCzmksidUW1Ioid09WjC7cO0iFuUnU//wJNESm3o=; b=LPuiXnLHW3qVMb5AgbhenxODCPTBbW22W9kWyf98EFXGyGROI1RM3/t8nLiSE8lSmrVpoE+S 2yDBDc/shjZBMkNxEYPtLP7FenPrEuE5ZCz1nwUjmfEM84rOZg1Gk3/WT6IuSNThpr3aljgb FC2k0EAIO3DGdR+gn2wbY8pTPj9ICj8dG4885YHg/2H9PDedIzp1WhAZtiYYpaVMaGRTAGWu JhwdQzzH+rLAiSKoHitXeJhnyVpjA9q1prRmbt823WUXDxTruhharzTGAlWhiQgtAh9NCxzv suHX8Vy4PUHltjbujU6m89bRxfaZRebxoSQvbpFL+HLjgQ8XJA9WSg== X-Mailgun-Sending-Ip: 69.72.42.5 X-Mailgun-Sid: WyI5MmEzMyIsICJndWl4LXBhdGNoZXNAZ251Lm9yZyIsICIwODU0N2EiXQ== Received: from wilsonb.com (wilsonb.com [104.199.203.42]) by smtp-out-n03.prod.us-east-1.postgun.com with SMTP id 5ecf7955b65440fdba4e9a70 (version=TLS1.3, cipher=TLS_AES_128_GCM_SHA256); Thu, 28 May 2020 08:41:57 GMT Received: from localhost (KD111239205253.au-net.ne.jp [111.239.205.253]) by wilsonb.com (Postfix) with ESMTPSA id CDD3AA1A90 for ; Thu, 28 May 2020 08:41:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wilsonb.com; s=201703; t=1590655315; bh=eB+hCzmksidUW1Ioid09WjC7cO0iFuUnU//wJNESm3o=; h=Date:To:From:Subject:From; b=6r1R4nnBisDNquDbHn1lnX+2c87Ia/PoFL2291fuS8hf44mnZoiwrYwCgWVotB7yV pKFGtaw+K6fj0ij0VzzEId6/f1/GZKaoXy6BYFLlmeKbBFdZUlg8zXT0QlLjfLveBW IecNtGNGMUkzQRecwY5boqON3zUcbhfv23s32mSUuMuhFCjMfxlUKOr4n3EAsK84iz Wqju2nezLEPFIZMCrvtpTrXGe8oDgFajh2xhGH/cS+im+No89QyLsqLbOOLa5wHULx 4fQl01AxA+/+CAe8XvgPuaDYC1ctFWzg0KS4wWgsML+5cNPogiCDNcv3e0VZm4ncU/ UoBzFAxwRaVhTMiOmdC73P7/pvGSMcODypallTELr9pALZcGyA4+Mqv9tiZawHnRhR wRMiA7cqn4T7/mtjLX+tSSVkar+sCoJPjSIRF88ewBSGrnfrqjiajLZJAUviw5lL76 H4lvkP51QLgoKCWqluhQUIRlG+nW210T3PdHu6uT/O4vKB+LAcNn8BbPfzrywkijKM gaZza1rNrO84OO/vKy0XEMjqVDQDlodOnkHu5ZKd1T3zgDXcxn0m8GAS5wHJYL2hnX n6lwGoQ10hydCGP+ARpL1eekxk93gIV/zDyDq9ir3i0ExA7+WmWKD7DvvwBJAb9i9c PqqIlxmpnpudDjFAjeJx5DOU= Date: Thu, 28 May 2020 17:41:52 +0900 Message-Id: <30SSS7KMH7STU.2VZS2NNFF6QOP@wilsonb.com> User-Agent: mblaze/0.7 MIME-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="----_=_3bf9cb31526e4d2309e7e07d_=_" Received-SPF: pass client-ip=69.72.42.5; envelope-from=bounce+686de0.08547a-guix-patches=gnu.org@mg.wilsonb.com; helo=m42-5.mailgun.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/28 04:42:02 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -0.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=LPuiXnLH; dkim=fail (rsa verify failed) header.d=wilsonb.com header.s=201703 header.b=6r1R4nnB; 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: bXUi4g7MsuXS This is a multipart message in MIME format. ------_=_3bf9cb31526e4d2309e7e07d_=_ MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_2041dc90477c349e081b5504_=_" This is a multipart message in MIME format. ------_=_2041dc90477c349e081b5504_=_ Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable This patch packages up Intel's X86 Encoder and Decoder library and associat= ed cli tool "examples." A few things of note: 1) The build uses Intel's custom Python build tool `mbuild' so we have to manually handle the main build phases. We may need to add explicit optio= ns to the build script invocation so that build variables (e.g. CFLAGS etc.= ) propogate correctly. These don't look to be set in the environment, so w= hat variables should we pick be picking up and from where? 2) The group of tests under `tests/tests-avx512pf' seems to be failing. A u= ser on the irc channel also cross-checked for me and confirmed the same. Thi= s program isn't actually *executing* the avx instructions, so I don't thin= k the failing test are specific to the executing cpu. Anyway, I opted to l= eave this test in the source commented out. 3) The commands provided by the `out' output are pretty poorly documented a= nd have dumb names. I suspose this is becase the utilities are branded as j= ust "examples" of using the library. Anyway, this is a case where the only reasonable documentation is the source code, so I provide that for the utilities in the `doc' output. 4) Finally, the `devel' output supplies the library and headers proper. 5) The package name `xed' potentially collides with the package from http://xed.sourceforge.net/. We don't currently have the latter yet, but= I mention this just in case there is a good way to proactively handle this= up front. Thoughts? I threw this together just because I wanted it myself but figured= it's worth sharing. ------_=_2041dc90477c349e081b5504_=_ Content-Disposition: attachment; filename=0001-gnu-Add-xed.patch Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable =46rom 9ec113c2bfed745ffe28bdbc4510fa799bea5199 Mon Sep 17 00:00:00 2001 =46rom: "B. Wilson" =44ate: Thu, 28 May 2020 07:32:28 +0900 =53ubject: [PATCH] gnu: Add xed. =54o: guix-patches@gnu.org =0A* gnu/packages/assembly.scm (xed): New variable. =2D-- =20gnu/packages/assembly.scm | 92 +++++++++++++++++++++++++++++++++++++++ =201 file changed, 92 insertions(+) =0Adiff --git a/gnu/packages/assembly.scm b/gnu/packages/assembly.scm =69ndex c775603445..f0293fe54d 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@ -371,3 +372,94 @@ 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 ("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 (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 (string-append "--build-dir=3D" kit-dir "/bin") =2B "--tests" "tests/tests-base" =2B "--tests" "tests/tests-avx512" =2B ; "--tests" "tests/tests-avx512pf" ; Broken =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 (doc (assoc-ref outputs "doc")) =2B (devel (assoc-ref outputs "devel")) =2B (pkg (strip-store-file-name out))) =2B (copy-recursively (string-append kit-dir "/bin") =2B (string-append out "/bin")) =2B (copy-recursively (string-append kit-dir "/examples") =2B (string-append doc "/share/doc/" pkg =2B "/examples")) =2B (copy-recursively (string-append kit-dir "/include") =2B (string-append devel "/include")) =2B (copy-recursively (string-append kit-dir "/lib") =2B (string-append devel "/lib"))))))))) =2B (outputs '("out" "devel" "doc")) =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 default output contains a family of command line wrappers @code{xed*= =7D =2Baround the library with the development files themselves in the @code{de= =76el} =2Boutput. See the @code{doc} output for documentation and examples about = =74he =2Blibrary, including the source code to the @code{xed*} utilities.") =2B (license license:asl2.0))) =2D-=20 =32.26.2 =0A= ------_=_2041dc90477c349e081b5504_=_-- ------_=_3bf9cb31526e4d2309e7e07d_=_ Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYIADUWIQQ7FdZn/PDWvxE6cmR2pStZ7i7CgQUCXs95RxccZWxhZXh1b3Rl ZUB3aWxzb25iLmNvbQAKCRB2pStZ7i7Cgc3qAPwJHpueG807vKb1wFIpzm/yeUMm fF82kVjGIUhNHDssigEA54YnR0scSCnSRaQOnjpgK+9KjX0V6ywbsQr+T8kuGQY= =jFUs -----END PGP SIGNATURE----- ------_=_3bf9cb31526e4d2309e7e07d_=_--