From unknown Fri Jun 20 07:13:39 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#51885 <51885@debbugs.gnu.org> To: bug#51885 <51885@debbugs.gnu.org> Subject: Status: Blacksmith - Rowhammer Fuzzer Reply-To: bug#51885 <51885@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:13:39 +0000 retitle 51885 Blacksmith - Rowhammer Fuzzer reassign 51885 guix-patches submitter 51885 Raghav Gururajan severity 51885 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 15 18:58:45 2021 Received: (at submit) by debbugs.gnu.org; 15 Nov 2021 23:58:45 +0000 Received: from localhost ([127.0.0.1]:56561 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmls5-0006JW-0q for submit@debbugs.gnu.org; Mon, 15 Nov 2021 18:58:45 -0500 Received: from lists.gnu.org ([209.51.188.17]:45828) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmls3-0006JO-5S for submit@debbugs.gnu.org; Mon, 15 Nov 2021 18:58:43 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41064) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmls2-0007GH-HN for guix-patches@gnu.org; Mon, 15 Nov 2021 18:58:42 -0500 Received: from out0.migadu.com ([94.23.1.103]:10321) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmls0-00042a-L6 for guix-patches@gnu.org; Mon, 15 Nov 2021 18:58:42 -0500 To: guix-patches@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1637020716; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=T1CyfAMwchW+9BHCOleM+YVuOVEn3CjYc6R8l4IQGqo=; b=lAqQjIrt/+TVgJfZH27ZaulpPjRvqH/LUyWXM57kz6u7kan0QkRdCKBs2DwVyKL5GYJ7T0 Hv+7TikUwPEqhwaViuCAZsXQImGnNLfpyJB+kPObcjoedEpYGvAywJGL7wIj3cnJu/Jb6g vQOazxvF3f0E8q9BBGrpEWvPe4ovThnSCwAbQ6JQPml/FS5ue/00cb3+k3BIc8PRBqDOX6 QmWdueBzBD4irqZLcFACl1L7V6uGTS72js/9bpBtVv7GG3iDV5niQ6o6KnO0to/QAU+PZh XVu6HxdS1htrI5wm45Fd0Cj++0upPmrAhDiTU18B6XxAtpyoqbzP2KrYn+f6Hg== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Raghav Gururajan Subject: Blacksmith - Rowhammer Fuzzer Message-ID: Date: Mon, 15 Nov 2021 18:58:35 -0500 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="sEU8mP5DoZxqxnzl2KkqYM0aNAaeSNL9Y" Received-SPF: pass client-ip=94.23.1.103; envelope-from=rg@raghavgururajan.name; helo=out0.migadu.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --sEU8mP5DoZxqxnzl2KkqYM0aNAaeSNL9Y Content-Type: multipart/mixed; boundary="ZEH3a3NbhNTeEVA8lCmbc5LMA9mv1XKcE"; protected-headers="v1" From: Raghav Gururajan To: guix-patches@gnu.org Message-ID: Subject: Blacksmith - Rowhammer Fuzzer --ZEH3a3NbhNTeEVA8lCmbc5LMA9mv1XKcE Content-Type: multipart/mixed; boundary="------------1008CAB7CE91FB02C1CE519C" Content-Language: en-CA This is a multi-part message in MIME format. --------------1008CAB7CE91FB02C1CE519C Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Hello Folks! I am opening this thread for packaging blacksmith=20 (https://comsec.ethz.ch/research/dram/blacksmith/). Regards, RG. --------------1008CAB7CE91FB02C1CE519C Content-Type: application/pgp-keys; name="OpenPGP_0x5F5816647F8BE551.asc" Content-Transfer-Encoding: quoted-printable Content-Description: OpenPGP public key Content-Disposition: attachment; filename="OpenPGP_0x5F5816647F8BE551.asc" -----BEGIN PGP PUBLIC KEY BLOCK----- xjMEX2ZCJBYJKwYBBAHaRw8BAQdAdiUK33kml2dYjrWidlr4/v0pmjpUv7hOsBN/oSl5wx7NL= 1Jh Z2hhdiBHdXJ1cmFqYW4gKFJHKSA8cmdAcmFnaGF2Z3VydXJhamFuLm5hbWU+wpMEExYIADsFC= wkI BwIGFQoJCAsCBBYCAwECHgECF4ACGQEWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYRS1pwIbI= wAK CRBfWBZkf4vlUbYYAQCe+UaQKTg+iaEL0XAuhyZgiMNpjoqrvlZCAb8ahNLe3AEA1/v+k2EjE= ap/ lfeUSxuzy4MvYXxRRJMZ1C+qJs7MIgPNPVJhZ2hhdiBHdXJ1cmFqYW4gKEVkdWNhdGlvbikgP= GVk dWNhdGlvbkByYWdoYXZndXJ1cmFqYW4ubmFtZT7CkAQTFggAOBYhBM0tXqqpjMs32pHWsF9YF= mR/ i+VRBQJgE0xGAhsDBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEF9YFmR/i+VRQcQBALNRe= 1V/ 5DKN8ZxyVQlzt4TdGUyNom7xJ6r23ANtcygxAQDBjw6NLXV3aYGDMVVmQPbdAnFiB/x1rpJsA= wB/ 1BSBDc05UmFnaGF2IEd1cnVyYWphbiAoRmluYW5jZSkgPGZpbmFuY2VAcmFnaGF2Z3VydXJha= mFu Lm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYBNMbwIbAwULCQgHAgYVC= gkI CwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlUWnLAP914hb0IzSCiaj+XrcEBaIt/Q+KjRn2fj5A7= V6Z ucJJqwEA64eks7xjLBS3mpTpaGwdDtluJcR7G8XZJJdbdK2YyQ/NN1JhZ2hhdiBHdXJ1cmFqY= W4g KEhlYWx0aCkgPGhlYWx0aEByYWdoYXZndXJ1cmFqYW4ubmFtZT7CkAQTFggAOBYhBM0tXqqpj= Ms3 2pHWsF9YFmR/i+VRBQJgE0yhAhsDBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEF9YFmR/i= +VR xdcA/3YxFzlKKHrTguDxE1tBWD31BUYlXWl351j6MB/U+tWdAPwJB8QD8janaddv3U5ZGzswf= hQv GGzx6SLcX0E253uNC80/UmFnaGF2IEd1cnVyYWphbiAoT2NjdXBhdGlvbikgPG9jY3VwYXRpb= 25A cmFnaGF2Z3VydXJhamFuLm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCY= BNM ugIbAwULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlUSrlAP0VJw8frvWHAGd6l= Zdy x1v+relUGB4DToqDgIMBQyG58gD+NU5t4h0IY6YaiQ+FPyJzdV62k15d9IDvTMYPvcWIpQPNP= 1Jh Z2hhdiBHdXJ1cmFqYW4gKFJlY3JlYXRpb24pIDxyZWNyZWF0aW9uQHJhZ2hhdmd1cnVyYWphb= i5u YW1lPsKQBBMWCAA4FiEEzS1eqqmMyzfakdawX1gWZH+L5VEFAmATTNkCGwMFCwkIBwIGFQoJC= AsC BBYCAwECHgECF4AACgkQX1gWZH+L5VHhbQD/b6jXWdQfxi+xzrs1+A0lvnihfUgQ0H/r5U2bO= w9d FIkA/0nCh0VJKX+YrySJhWugL7e8ItqwKADh0v05vO6qtlkAzTdSYWdoYXYgR3VydXJhamFuI= ChT b2NpYWwpIDxzb2NpYWxAcmFnaGF2Z3VydXJhamFuLm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN= 9qR 1rBfWBZkf4vlUQUCYBNM8AIbAwULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlU= dtv AQCKMxBdxwMUJdyigGWqrTuJUaLVL2dgvqGa0k39nsQA8gD+PH3LsQAaJ98xREKxYXMAszNnJ= RJR xYa9trfixyQbrw7NNVJhZ2hhdiBHdXJ1cmFqYW4gKFRyYWRlKSA8dHJhZGVAcmFnaGF2Z3Vyd= XJh amFuLm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYBNNHQIbAwULCQgHA= gYV CgkICwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlUQ+9AP0S/6S5PLshS/vz7ezRO2HokruaRiDhg= w0t yRM3LAefSQEA7rEBw9sSUsDgRILGKUi1ZzQq5AJ0F77KOXyurVqnywXOOARfZkIkEgorBgEEA= ZdV AQUBAQdAZgiqc2NhH/myrCCan9x7gKI6QBPZ/1b+Bz/f3n95ozkDAQgHwngEGBYIACAWIQTNL= V6q qYzLN9qR1rBfWBZkf4vlUQUCX2ZCJAIbDAAKCRBfWBZkf4vlUV/OAQD+tMNgmddPSchLpaDPp= sdD hpvra2uTonNUmnfbTvPgpQD/dG72NCT8hBUVqtzxwQmBrXY/nPEUxctYuvu3unUmzQU=3D =3DooAX -----END PGP PUBLIC KEY BLOCK----- --------------1008CAB7CE91FB02C1CE519C-- --ZEH3a3NbhNTeEVA8lCmbc5LMA9mv1XKcE-- --sEU8mP5DoZxqxnzl2KkqYM0aNAaeSNL9Y Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYZL0KwUDAAAAAAAKCRBfWBZkf4vlUY4V AQDAG2l8NOeBQR9YkluC0mrMJR2r/Hb5XchR8FWFOY3bXQEAtsdblWMch0dX2tYVtp5BUC60/9Vw mqgygRedR1+FYw8= =OQgp -----END PGP SIGNATURE----- --sEU8mP5DoZxqxnzl2KkqYM0aNAaeSNL9Y-- From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 27 19:55:51 2021 Received: (at 51885) by debbugs.gnu.org; 28 Nov 2021 00:55:51 +0000 Received: from localhost ([127.0.0.1]:34731 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mr8Tv-0006AZ-IA for submit@debbugs.gnu.org; Sat, 27 Nov 2021 19:55:51 -0500 Received: from mx1.dismail.de ([78.46.223.134]:5136) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mr8Tt-0006AJ-52 for 51885@debbugs.gnu.org; Sat, 27 Nov 2021 19:55:50 -0500 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id c4650298; Sun, 28 Nov 2021 01:55:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:date:message-id:mime-version:content-transfer-encoding; s=20190914; bh=XEaIVb1yEjw718Wf00u8gGWEhQD6Jo40WrU8YGtwBSo=; b= OcpX8arkUrEGBiZYJrPvQVzrcvHmSrExlv2I89mDs2SCNcdsk8tHSoAR2JoWiLhF Iq0gVijMM7VEAf2CFginYUV0aAQ6q6P1nf/qZtcRIgxShi5N9x6TwPUFbJq1bDMu IrQXf0g9fKRaJ7SUs8lob1JRXgO26xdr+VF/3CTcVDr+Lypx8e7si0/Q+yJIiphO 0GcC3YJ+mcJGSA5zWZQOROlF603ehAMKYsfTv1PYt45DmEGKQZL4U9xnjmsZbXJp us/7fx9pDm/30eEc/qkW09yvH6tiSZg5oO84yPMfffjbK01Jgkl3YjNh7N2lgn6N 8+06RIjlP67fZweX+D0PZQ== Received: from smtp1.dismail.de ( [10.240.26.11]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 088b4cb2; Sun, 28 Nov 2021 01:55:41 +0100 (CET) Received: from smtp1.dismail.de (localhost [127.0.0.1]) by smtp1.dismail.de (OpenSMTPD) with ESMTP id 575d2ece; Sun, 28 Nov 2021 01:55:41 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 40a602fd (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Sun, 28 Nov 2021 01:55:40 +0100 (CET) From: jgart To: 51885@debbugs.gnu.org Subject: [PATCH 1/2] gnu: Add asmjit. Date: Sat, 27 Nov 2021 19:55:26 -0500 Message-Id: <20211128005527.7661-1-jgart@dismail.de> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 51885 Cc: Raghav Gururajan , Julien Lepiller , Disseminate Dissent , guixrus X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) From: guixrus * gnu/packages/cpp.scm (asmjit): New variable. Co-authored-by: jgart Co-authored-by: Raghav Gururajan Co-authored-by: Julien Lepiller Co-authored-by: Disseminate Dissent --- gnu/packages/cpp.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 9520a164f1..8ed639cc49 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -1373,6 +1373,38 @@ (define-public jsonnet syntax with variables, conditions, functions and more.") (license license:asl2.0))) +(define-public asmjit + (let ((commit "4ec760a3d1f69e32ba460ecd2513f29b8428700b") + (revision "0")) + (package + (name "asmjit") + (version (git-version "0.0.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/asmjit/asmjit") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0skgccbpamcbg1byawfq5n6jzxgj64hnc7jznvk35nkskaaz1nlb")))) + (build-system cmake-build-system) + (arguments + `(#:configure-flags + '("-DASMJIT_TEST=TRUE"))) + (synopsis "Machine code generation for C++") + (description +"AsmJit is a lightweight library for machine code generation written +in C++ language. It can generate machine code for X86 and X86_64 +architectures with the support for the whole instruction set - from +legacy MMX to the newest AVX-512 and AMX. It has a type-safe API that +allows C++ compiler to do semantic checks at compile-time even before the +assembled code is generated or executed. It also provides an optional +register allocator that makes it easy to generate complex code without +a significant development effort.") + (home-page "https://asmjit.com/") + (license license:zlib)))) + (define-public simdjson (package (name "simdjson") -- 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 27 19:55:56 2021 Received: (at 51885) by debbugs.gnu.org; 28 Nov 2021 00:55:56 +0000 Received: from localhost ([127.0.0.1]:34735 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mr8Tz-0006Ap-S1 for submit@debbugs.gnu.org; Sat, 27 Nov 2021 19:55:56 -0500 Received: from mx1.dismail.de ([78.46.223.134]:5136) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mr8Tw-0006AJ-Lx for 51885@debbugs.gnu.org; Sat, 27 Nov 2021 19:55:53 -0500 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 00a4c904; Sun, 28 Nov 2021 01:55:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=20190914; bh=mHoWAsvWC78xlbmEEXrei UpRdBv72vX+iu6epuHyv94=; b=MKWZ4x6wqnDeDwjZX/2AVcq812gIkquZZXGCj P3eFi6HzZJAyCtTQr5KeDfpN3A+Sc6+W3JnKEGw0kbWxRlcnaZ7HTUSuGxtcrPgJ F+TXZ3JfXqAi6cOchXK4hSv0KkDZKUwybxb/UP9LVmgVQMuM6blU/LtsdEy4v71B YbNOEDSAtev4zMCTPcAPEjFWuhef3bADQrKSzr86LjVZUT+C7BhqvhWQaq1uy62T pAKTqf6AmsMbk46zcvyUd1S9YxjmbTRcUVcd/E4646bNcxLkOZKeqpS52L59KmKh qnNfP0qgCtqNf57eeLWngfTl3sK1G5Ga1Ev08pupkm26+rXig== Received: from smtp1.dismail.de ( [10.240.26.11]) by mx1.dismail.de (OpenSMTPD) with ESMTP id d9b02032; Sun, 28 Nov 2021 01:55:50 +0100 (CET) Received: from smtp1.dismail.de (localhost [127.0.0.1]) by smtp1.dismail.de (OpenSMTPD) with ESMTP id 1027ae36; Sun, 28 Nov 2021 01:55:49 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 9c888dd2 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Sun, 28 Nov 2021 01:55:48 +0100 (CET) From: jgart To: 51885@debbugs.gnu.org Subject: [PATCH 2/2] gnu: Add argagg. Date: Sat, 27 Nov 2021 19:55:27 -0500 Message-Id: <20211128005527.7661-2-jgart@dismail.de> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20211128005527.7661-1-jgart@dismail.de> References: <20211128005527.7661-1-jgart@dismail.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 51885 Cc: Raghav Gururajan , Julien Lepiller , Disseminate Dissent , guixrus X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) From: guixrus * gnu/packages/cpp.scm (argagg): New variable. Co-authored-by: jgart Co-authored-by: Raghav Gururajan Co-authored-by: Julien Lepiller Co-authored-by: Disseminate Dissent --- gnu/packages/cpp.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 8ed639cc49..486d25675e 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -1373,6 +1373,32 @@ (define-public jsonnet syntax with variables, conditions, functions and more.") (license license:asl2.0))) +(define-public argagg + (package + (name "argagg") + (version "0.4.6") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/vietjtnguyen/argagg") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "12kb9rdh1ngn4qhzxc20kv2rl1kjwpn1y21ggmh9lx7hyw06aarh")))) + (build-system cmake-build-system) + (native-inputs + `(("doxygen" ,doxygen))) + (synopsis "Simple C++11 command line argument parser") + (description +"This is yet another C++ command line argument/option parser. It was +written as a simple and idiomatic alternative to other frameworks like +getopt, Boost program options, TCLAP, and others. The goal is to achieve +the majority of argument parsing needs in a simple manner with an easy +to use API.") + (home-page "https://github.com/vietjtnguyen/simdjson") + (license license:expat))) + (define-public asmjit (let ((commit "4ec760a3d1f69e32ba460ecd2513f29b8428700b") (revision "0")) -- 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 27 20:01:59 2021 Received: (at 51885) by debbugs.gnu.org; 28 Nov 2021 01:02:00 +0000 Received: from localhost ([127.0.0.1]:34743 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mr8Zr-0006MD-Os for submit@debbugs.gnu.org; Sat, 27 Nov 2021 20:01:59 -0500 Received: from mx1.dismail.de ([78.46.223.134]:14531) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mr8Zq-0006M1-1k for 51885@debbugs.gnu.org; Sat, 27 Nov 2021 20:01:58 -0500 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 024bb899; Sun, 28 Nov 2021 02:01:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=date :message-id:from:to:subject:references:mime-version:content-type :content-transfer-encoding; s=20190914; bh=xvRGYs9Xk6KYNbzk5c414 6R8Fflh7l1ptlJYd3Pfra4=; b=jU2shreAGQfhJ8qtNLk51KkIp9t67LJxLSaq9 uMbBLqL5MOFHdJhEcWg0aCu2yuXhZ5Rr6ZFfKIgVDuCogicvHLODlxuOp79egO7v szEsCJAkNWtf9pnLV7CcvmqxJvCUsDJDTgwGjDSIy9N/ZLhFgxYJMjyoT+wuD5Xe 4N+VUfgr2Ja3GuHvXKykDhcJWcZ2+qjJW5hr61xFq0luTepxAqHEo11JglnPMVHD 2rRnIFtrTWyJ6Tz7lEHZEcY+/iCE2QIpQmIXr72CuF+DHZI1xqLccQDa1YCCT/AU vZwlQZ17/JvF4XjrFfqxHM5ubz3JHnX1NL0vTKPYMWwQM2sOw== Received: from smtp1.dismail.de ( [10.240.26.11]) by mx1.dismail.de (OpenSMTPD) with ESMTP id f8d360bf; Sun, 28 Nov 2021 02:01:51 +0100 (CET) Received: from smtp1.dismail.de (localhost [127.0.0.1]) by smtp1.dismail.de (OpenSMTPD) with ESMTP id b1c971b6; Sun, 28 Nov 2021 02:01:51 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id f4b3368f (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Sun, 28 Nov 2021 02:01:50 +0100 (CET) Date: Sat, 27 Nov 2021 20:01:49 -0500 Message-ID: <20211127200149.GB7702@gac.attlocal.net> From: jgart To: 51885@debbugs.gnu.org Subject: Guix Meetup Nov 27 2021: asmjit and argagg References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 51885 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi Guixers, The above two packages were worked on with volunteers from today's Guix Meetup. These packages are dependencies of Blacksmith. all best, jgart From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 30 23:30:00 2021 Received: (at 51885) by debbugs.gnu.org; 1 Dec 2021 04:30:00 +0000 Received: from localhost ([127.0.0.1]:42969 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1msHFn-0005vi-Of for submit@debbugs.gnu.org; Tue, 30 Nov 2021 23:30:00 -0500 Received: from out0.migadu.com ([94.23.1.103]:27077) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1msHFl-0005vN-Nl for 51885@debbugs.gnu.org; Tue, 30 Nov 2021 23:29:58 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1638332997; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3uXtbpFUUZhmivb/WAfTvqPlxY4+DByElYg7GAeNhm8=; b=fnEzoDUop+Q6hvvLfb1cZdoZCYyalliAvqZinQV2lTpQt1mDxN3Z4SMAE3Ml2gC9qJF6e2 JzgjbVh63sShBHdKxJEVjZfxb4Sn8dGPEgEoG3szg1p7bKp9K7dfpk6dbYto2daXwS8yxi W5b5+FWOf/t14mHlS4Yb85LpXjTFdGodzqvFVvZP3Ql6Vs9fFf7PSEYQGRz5G93kEvn7lB 00NeT1Dv5WkpUYdwE6UK07RV2DGwO5G42Gv+27pxdxbEMs75sCJ3vdLLFh3ntS50eks1fW ZXmuR35oML1NqdvVUy2dEjPUJk+kVfHQR2JUsxiOMq2iU9q6dXfahT45OI2yLw== From: Raghav Gururajan To: 51885@debbugs.gnu.org Subject: [PATCH 3/4] gnu: Add json. Date: Tue, 30 Nov 2021 23:29:26 -0500 Message-Id: <20211201042927.18454-3-rg@raghavgururajan.name> In-Reply-To: <20211201042927.18454-1-rg@raghavgururajan.name> References: <20211201042927.18454-1-rg@raghavgururajan.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: raghavgururajan.name X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 51885 Cc: Raghav Gururajan , jgart X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/cpp.scm (json): New variable. Co-authored-by: jgart --- gnu/packages/cpp.scm | 63 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 2fe0d70a60..4b0f839b2a 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -74,6 +74,69 @@ (define-module (gnu packages cpp) #:use-module (gnu packages web) #:use-module (gnu packages xml)) +(define-public json + (package + (name "json") + (version "3.10.4") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/nlohmann/json") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "17kxwxl6515s8nb5x7zy69c8qy4gswac66fp15261x1g6sa2jnkx")) + (modules '((guix build utils) + (ice-9 ftw) + (srfi srfi-1))) + (snippet + `(begin + (delete-file-recursively "third_party") + (let ((keep + ;; Custom forks which are incompatible with the ones in Guix. + '("doctest" "fifo_map"))) + (with-directory-excursion "test/thirdparty" + (for-each delete-file-recursively + (lset-difference string=? + (scandir ".") + (cons* "." ".." keep))))) + #t)))) + (build-system cmake-build-system) + (arguments + `(#:configure-flags + (list + (string-append "-DJSON_TestDataDirectory=" + (assoc-ref %build-inputs "json_test_data"))) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'disable-failing-tests + (lambda _ + (substitute* "test/CMakeLists.txt" + ;; Requires network connection. + (("add_subdirectory\\(cmake_fetch_content\\)") ""))))))) + (native-inputs + `(("json_test_data" + ,(origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/nlohmann/json_test_data") + (commit "v3.0.0"))) + (file-name + (git-file-name "json_test_data" "3.0.0")) + (sha256 + (base32 "0nzsjzlvk14dazwh7k2jb1dinb0pv9jbx5jsyn264wvva0y7daiv")))) + ("python" ,python-wrapper))) + (home-page "https://json.nlohmann.me/") + (synopsis "JSON for C++") + (description "@code{json} is a C++ json library for converting to and from +C++ data structures. It's design goals emphasize intuitive syntax, trivial +integration via a single header file, and serious test coverage involving all of +the codebase.") + (license license:expat))) + (define-public argagg (let ((commit "79e4adfa2c6e2bfbe63da05cc668eb9ad5596748") (revision "0")) -- 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 30 23:30:05 2021 Received: (at 51885) by debbugs.gnu.org; 1 Dec 2021 04:30:06 +0000 Received: from localhost ([127.0.0.1]:42972 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1msHFt-0005yL-71 for submit@debbugs.gnu.org; Tue, 30 Nov 2021 23:30:05 -0500 Received: from out0.migadu.com ([94.23.1.103]:27053) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1msHFk-0005vK-Vq for 51885@debbugs.gnu.org; Tue, 30 Nov 2021 23:29:58 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1638332995; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=/KZls/OxpN+bL3ukMtrmoKvw4S0thtYB/s1q+q+I7+4=; b=EcTMW0kRAXMgiZ/L3c9qDTLtm9PjNr4EYZ4MneSQKlxvHWWVY/kDpKece6P+Br5O5uATR1 uXZblfgLFdYECJwrjsA/G30iTkfYH87+OD1LV4TVNdnYoaCmDYVKrswAH7NQI/61SUpq32 ttG/5p/A4txKfD3qnt8T9Gt5J1ftYmjdm348lhZaPb21H0Za62pkmFd+sxICbP7grZjOm/ B3boLueoFyCt08ZPvJorGp21qdj45SN/yGVtQdiX6uQ4rfkgIAiK6F1yAll1MT0J3HiWu2 OYpjjOcwmCOExl+FGPbmD0bbpqxBLHSixZVvrdJ/zpZrLsJChe7Jr3RC6uV0GA== From: Raghav Gururajan To: 51885@debbugs.gnu.org Subject: [PATCH 1/4] gnu: Add asmjit. Date: Tue, 30 Nov 2021 23:29:24 -0500 Message-Id: <20211201042927.18454-1-rg@raghavgururajan.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: raghavgururajan.name X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 51885 Cc: Raghav Gururajan , Julien Lepiller , Disseminate Dissent , jgart X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/cpp.scm (asmjit): New variable. Co-authored-by: jgart Co-authored-by: Julien Lepiller Co-authored-by: Disseminate Dissent --- gnu/packages/cpp.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index e2f2279418..b8741a9be7 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -74,6 +74,38 @@ (define-module (gnu packages cpp) #:use-module (gnu packages web) #:use-module (gnu packages xml)) +(define-public asmjit + (let ((commit "4ec760a3d1f69e32ba460ecd2513f29b8428700b") + (revision "0")) + (package + (name "asmjit") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/asmjit/asmjit") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0skgccbpamcbg1byawfq5n6jzxgj64hnc7jznvk35nkskaaz1nlb")))) + (build-system cmake-build-system) + (arguments + `(#:configure-flags + (list + "-DASMJIT_TEST=TRUE"))) + (home-page "https://asmjit.com/") + (synopsis "Machine code generation for C++") + (description "AsmJit is a lightweight library for machine code generation +written in C++ language. It can generate machine code for X86 and X86_64 +architectures with the support for the whole instruction set from legacy MMX to +the newest AVX-512 and AMX. It has a type-safe API that allows C++ compiler to +do semantic checks at compile-time even before the assembled code is generated +or executed. It also provides an optional register allocator that makes it easy +to generate complex code without a significant development effort.") + (license license:zlib)))) + (define-public range-v3 (package (name "range-v3") -- 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 30 23:30:06 2021 Received: (at 51885) by debbugs.gnu.org; 1 Dec 2021 04:30:06 +0000 Received: from localhost ([127.0.0.1]:42974 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1msHFt-0005yn-Ok for submit@debbugs.gnu.org; Tue, 30 Nov 2021 23:30:06 -0500 Received: from out0.migadu.com ([94.23.1.103]:27060) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1msHFl-0005vM-06 for 51885@debbugs.gnu.org; Tue, 30 Nov 2021 23:29:59 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1638332996; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zCHjtpdWPe31ErnL3C/98NEkJy9+Nbaq8+bekhfHAlM=; b=oi/zrEN+1uvVOKmiPqUdIKpbIkr6HFVA+fu0onWrsNpxZ23WqbOvyF/f069TB3h/lXT/n7 xDvxplYloDnRb0MqYD9eYj4V96jH8t5fSSO4QLmNvZGdFLJEBMkaSyqoql1tyuUH4aWkxZ IPWPrhL0/HjKnpv0nO401M0UmMmlVv25QOYKHAzpFOQRpeOYzZIPwsHYyn6Ekn+q8gi8OC yVvcpwFKc9TXheyOQAd/SxoLzljOFcWXlsp35cFxN1DPSwUShefI1s9dudvsu+1zKBthXO YgAUejBKGWzC7GefE8GaMX/tNHILlIwe/f4RRk2xcAPtcsLCJ0NVzi2Edrkqww== From: Raghav Gururajan To: 51885@debbugs.gnu.org Subject: [PATCH 2/4] gnu: Add argagg. Date: Tue, 30 Nov 2021 23:29:25 -0500 Message-Id: <20211201042927.18454-2-rg@raghavgururajan.name> In-Reply-To: <20211201042927.18454-1-rg@raghavgururajan.name> References: <20211201042927.18454-1-rg@raghavgururajan.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: raghavgururajan.name X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 51885 Cc: Raghav Gururajan , Julien Lepiller , Disseminate Dissent , jgart X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/cpp.scm (argagg): New variable. Co-authored-by: jgart Co-authored-by: Julien Lepiller Co-authored-by: Disseminate Dissent --- gnu/packages/cpp.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index b8741a9be7..2fe0d70a60 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -74,6 +74,46 @@ (define-module (gnu packages cpp) #:use-module (gnu packages web) #:use-module (gnu packages xml)) +(define-public argagg + (let ((commit "79e4adfa2c6e2bfbe63da05cc668eb9ad5596748") + (revision "0")) + (package + (name "argagg") + (version (git-version "0.4.6" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/vietjtnguyen/argagg") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1flkgh524lq3024p7ld5lg743s1v7qnbmgv77578rzmn2rjzr77n")))) + (build-system cmake-build-system) + (outputs '("out" "doc")) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'install 'move-doc + (lambda* (#:key outputs #:allow-other-keys) + (let* ((name ,(package-name argagg)) + (out (assoc-ref outputs "out")) + (doc (assoc-ref outputs "doc"))) + (mkdir-p (string-append doc "/share/doc")) + (rename-file + (string-append out "/share/doc/" name) + (string-append doc "/share/doc/" name)))))))) + (native-inputs + `(("doxygen" ,doxygen))) + (home-page "https://github.com/vietjtnguyen/argagg") + (synopsis "Simple C++11 command line argument parser") + (description "ArgAgg is yet another C++ command line argument/option parser. +It was written as a simple and idiomatic alternative to other frameworks like +getopt, Boost program options, TCLAP, and others. The goal is to achieve the +majority of argument parsing needs in a simple manner with an easy to use API.") + (license license:expat)))) + (define-public asmjit (let ((commit "4ec760a3d1f69e32ba460ecd2513f29b8428700b") (revision "0")) -- 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 30 23:30:07 2021 Received: (at 51885) by debbugs.gnu.org; 1 Dec 2021 04:30:07 +0000 Received: from localhost ([127.0.0.1]:42976 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1msHFu-0005zL-Lz for submit@debbugs.gnu.org; Tue, 30 Nov 2021 23:30:07 -0500 Received: from out0.migadu.com ([94.23.1.103]:27089) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1msHFm-0005vP-Mh for 51885@debbugs.gnu.org; Tue, 30 Nov 2021 23:29:59 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1638332997; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nU9d4wIsQhzVH0gI0kyLYbRCVxn3U3dW10YG8H5otJM=; b=sbrNB9I5HI/9k7svUgH/ixBSJuEUAl2Nhw8yt3icsJ42z7foE6YNE/DQM+rxPRRqWqaZ16 Dxgr4B3e4x76FKdd6LymCkopV/+BeH2s+5//wnxeJQg1yJecV1QcK9bjVJrLefi7Ym7sMA O1V49K8ecU8xryLTdODjZEDkcoaae9w5WTleSTktRvVeYHQRP/ZeYXjTACK+P9OzcA13kI 4mgVqUORHVGO5uzOHB+notZqd8xRY3+TCeAl50+6S+fLlyhJDb1A00RrYaoBL24oCWkxt4 CdyXA+WttjPDj+u0wmLJiuzS6Xqub1sKyIi9mBiYx31LQkMuoFv+D7KElumKDQ== From: Raghav Gururajan To: 51885@debbugs.gnu.org Subject: [PATCH 4/4] gnu: Add blacksmith. Date: Tue, 30 Nov 2021 23:29:27 -0500 Message-Id: <20211201042927.18454-4-rg@raghavgururajan.name> In-Reply-To: <20211201042927.18454-1-rg@raghavgururajan.name> References: <20211201042927.18454-1-rg@raghavgururajan.name> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: raghavgururajan.name X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 51885 Cc: Raghav Gururajan X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/cybersecurity.scm (blacksmith): New variable. --- gnu/packages/cybersecurity.scm | 78 ++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/gnu/packages/cybersecurity.scm b/gnu/packages/cybersecurity.scm index e4614e908e..e096c41fd6 100644 --- a/gnu/packages/cybersecurity.scm +++ b/gnu/packages/cybersecurity.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2020 Jakub Kądziołka ;;; Copyright © 2020, 2021 Tobias Geerinckx-Rice ;;; Copyright © 2021 c4droid +;;; Copyright © 2021 Raghav Gururajan ;;; ;;; This file is part of GNU Guix. ;;; @@ -20,10 +21,14 @@ (define-module (gnu packages cybersecurity) #:use-module (guix download) + #:use-module (guix git-download) #:use-module (guix packages) #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix build-system cmake) #:use-module (guix build-system python) + #:use-module (gnu packages cpp) #:use-module (gnu packages engineering) + #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages python-xyz) #:use-module (gnu packages python-crypto) @@ -32,6 +37,79 @@ (define-module (gnu packages cybersecurity) #:use-module (gnu packages bioinformatics) ;python-intervaltree #:use-module (gnu packages emulators)) +(define-public blacksmith + (let ((commit "c8e65b709a83665f9528efdedcf064abdb04859f") + (revision "0")) + (package + (name "blacksmith") + (version + (git-version "0.0.1" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/comsec-group/blacksmith") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0kyp71wndf527dgza5iks5m5vj543mvxp5w7cjd8x0pilmd1xrls")) + (modules '((guix build utils))) + (snippet + `(begin + (delete-file-recursively "external") + (substitute* "CMakeLists.txt" + (("add_subdirectory\\(external\\)") "") + (("[ \t]*FetchContent_MakeAvailable\\(asmjit\\)") + (string-append "find_package(asmjit)\n" + "find_package(nlohmann_json)"))) + #t)))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f ;no test-suite + #:imported-modules + ((guix build copy-build-system) + ,@%cmake-build-system-modules) + #:modules + (((guix build copy-build-system) + #:prefix copy:) + (guix build cmake-build-system) + (guix build utils)) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-build + (lambda _ + (substitute* "CMakeLists.txt" + ;; Use default C++ standard instead. + (("cxx_std_17") "") + ;; This project tries to link argagg library, + ;; which doesn't exist, as argagg project + ;; is a single header file. + (("argagg") "")))) + (replace 'install + (lambda args + (apply (assoc-ref copy:%standard-phases 'install) + #:install-plan + '(("." "bin" + #:include ("blacksmith")) + ("." "lib" + #:include-regexp ("\\.a$"))) + args)))))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (inputs + `(("argagg" ,argagg) + ("asmjit" ,asmjit) + ("json" ,json))) + (home-page "https://comsec.ethz.ch/research/dram/blacksmith") + (synopsis "Rowhammer fuzzer with non-uniform and frequency-based patterns") + (description "Blacksmith is an implementation of Rowhammer fuzzer that +crafts novel non-uniform Rowhammer access patterns based on the concepts of +frequency, phase, and amplitude. It is able to bypass recent +@acronym{TRR, Target Row Refresh}in-DRAM mitigations effectively and as such can +could trigger bit flips.") + (license license:expat)))) + (define-public ropgadget (package (name "ropgadget") -- 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 09 05:52:39 2021 Received: (at 51885) by debbugs.gnu.org; 9 Dec 2021 10:52:39 +0000 Received: from localhost ([127.0.0.1]:42538 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvH2Q-0002ee-81 for submit@debbugs.gnu.org; Thu, 09 Dec 2021 05:52:39 -0500 Received: from out2.migadu.com ([188.165.223.204]:16040) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvH2N-0002eU-0g for 51885@debbugs.gnu.org; Thu, 09 Dec 2021 05:52:32 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1639047149; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Ynb+qdia3igzNy7+TqCMWC+lX6waAerPmB4FGiOFL6I=; b=JyyUpryUWHXVj4O+9kRjX/vqCC7Vb2vxs+RRCgoYwrfHd1kVCzhBljXm7kpcmf+fUrkOJb QK1xZFG0lPXs0gLch/tN+t3fSZRTpe2U/K94YWk3A4i04OVr6DqyRNwMkOpMvhZFsu7STg i/VZ23kW3+u9IZkNIJOrIKA3e0j1p+6/kY6x+ckXqdgecfhXe5n7r1Z6+RPD31luZ7Or9V sFMXzLPuy18PkvvKvVPbyIPKMhYK9Iur8teiyhGKnIRuOfxh+ksGPkOhAUTTCSnsl36N+l k26yJetevJRqZu8QtryEGA1BGRyOro+hSyXm0QS7X4kgpI3LHEVMM1O3LDm5kQ== From: Raghav Gururajan To: 51885@debbugs.gnu.org Subject: [PATCH v2 1/4] gnu: Add asmjit. Date: Thu, 9 Dec 2021 05:52:09 -0500 Message-Id: <20211209105212.29412-1-rg@raghavgururajan.name> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rg@raghavgururajan.name X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 51885 Cc: Raghav Gururajan , Julien Lepiller , Disseminate Dissent , jgart X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/cpp.scm (asmjit): New variable. Co-authored-by: jgart Co-authored-by: Julien Lepiller Co-authored-by: Disseminate Dissent --- gnu/packages/cpp.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 9ab6e0b835..bbcdcd6be9 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -18,6 +18,9 @@ ;;; Copyright © 2020 Brett Gilio ;;; Copyright © 2020 Milkey Mouse ;;; Copyright © 2021 Raghav Gururajan +;;; Copyright © 2021 jgart +;;; Copyright © 2021 Julien Lepiller +;;; Copyright © 2021 Disseminate Dissent ;;; ;;; This file is part of GNU Guix. ;;; @@ -74,6 +77,38 @@ (define-module (gnu packages cpp) #:use-module (gnu packages web) #:use-module (gnu packages xml)) +(define-public asmjit + (let ((commit "4ec760a3d1f69e32ba460ecd2513f29b8428700b") + (revision "0")) + (package + (name "asmjit") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/asmjit/asmjit") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0skgccbpamcbg1byawfq5n6jzxgj64hnc7jznvk35nkskaaz1nlb")))) + (build-system cmake-build-system) + (arguments + `(#:configure-flags + (list + "-DASMJIT_TEST=TRUE"))) + (home-page "https://asmjit.com/") + (synopsis "Machine code generation for C++") + (description "AsmJit is a lightweight library for machine code generation +written in C++ language. It can generate machine code for X86 and X86_64 +architectures with the support for the whole instruction set from legacy MMX to +the newest AVX-512 and AMX. It has a type-safe API that allows C++ compiler to +do semantic checks at compile-time even before the assembled code is generated +or executed. It also provides an optional register allocator that makes it easy +to generate complex code without a significant development effort.") + (license license:zlib)))) + (define-public range-v3 (package (name "range-v3") -- 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 09 05:52:50 2021 Received: (at 51885) by debbugs.gnu.org; 9 Dec 2021 10:52:50 +0000 Received: from localhost ([127.0.0.1]:42542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvH2f-0002f7-Ph for submit@debbugs.gnu.org; Thu, 09 Dec 2021 05:52:50 -0500 Received: from out2.migadu.com ([188.165.223.204]:16176) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvH2e-0002ey-3L for 51885@debbugs.gnu.org; Thu, 09 Dec 2021 05:52:48 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1639047167; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LspStm8WmrAf986IP/xpNllnaKtrsVF35byVgNSFNgk=; b=fmMalJH0NIFonZHECFwJNf8OljVt22QRxbFYDPNYq4XJAaw700smpxSc1+VrYTIIPbq972 BXlnXlVEqDR6oNr9RxVe58Bd9zfc2QUsf4utluisIrn1vm6RUyQ6i9J/9DG8zlfoZZeuXv iXlQhOBVe18TnPXJCGA2/2OhuYsfBo54Y426YZARGEcEwxNO8fG0XFdxVyRy3tGNLVDU9W tu12rXQz8e9gsN+N9MK25gd8n3jnXpIhmnlFA8FvXQd09MAQi1EfBUAoAi6Ez0icESWsZp 0rS4iYOhp9g5/jku+oLDk08/hne4Z1S+8jS/mFXkglSFabh09ER2z2OQkuaXMw== From: Raghav Gururajan To: 51885@debbugs.gnu.org Subject: [PATCH v2 2/4] gnu: Add argagg. Date: Thu, 9 Dec 2021 05:52:10 -0500 Message-Id: <20211209105212.29412-2-rg@raghavgururajan.name> In-Reply-To: <20211209105212.29412-1-rg@raghavgururajan.name> References: <20211209105212.29412-1-rg@raghavgururajan.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rg@raghavgururajan.name X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 51885 Cc: Raghav Gururajan , Julien Lepiller , Disseminate Dissent , jgart X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/cpp.scm (argagg): New variable. Co-authored-by: jgart Co-authored-by: Julien Lepiller Co-authored-by: Disseminate Dissent --- gnu/packages/cpp.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index bbcdcd6be9..a579c47ad9 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -77,6 +77,46 @@ (define-module (gnu packages cpp) #:use-module (gnu packages web) #:use-module (gnu packages xml)) +(define-public argagg + (let ((commit "79e4adfa2c6e2bfbe63da05cc668eb9ad5596748") + (revision "0")) + (package + (name "argagg") + (version (git-version "0.4.6" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/vietjtnguyen/argagg") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1flkgh524lq3024p7ld5lg743s1v7qnbmgv77578rzmn2rjzr77n")))) + (build-system cmake-build-system) + (outputs '("out" "doc")) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'install 'move-doc + (lambda* (#:key outputs #:allow-other-keys) + (let* ((name ,(package-name argagg)) + (out (assoc-ref outputs "out")) + (doc (assoc-ref outputs "doc"))) + (mkdir-p (string-append doc "/share/doc")) + (rename-file + (string-append out "/share/doc/" name) + (string-append doc "/share/doc/" name)))))))) + (native-inputs + `(("doxygen" ,doxygen))) + (home-page "https://github.com/vietjtnguyen/argagg") + (synopsis "Simple C++11 command line argument parser") + (description "ArgAgg is yet another C++ command line argument/option parser. +It was written as a simple and idiomatic alternative to other frameworks like +getopt, Boost program options, TCLAP, and others. The goal is to achieve the +majority of argument parsing needs in a simple manner with an easy to use API.") + (license license:expat)))) + (define-public asmjit (let ((commit "4ec760a3d1f69e32ba460ecd2513f29b8428700b") (revision "0")) -- 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 09 05:53:10 2021 Received: (at 51885) by debbugs.gnu.org; 9 Dec 2021 10:53:10 +0000 Received: from localhost ([127.0.0.1]:42548 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvH30-0002gD-3X for submit@debbugs.gnu.org; Thu, 09 Dec 2021 05:53:10 -0500 Received: from out2.migadu.com ([188.165.223.204]:16342) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvH2y-0002g5-3W for 51885@debbugs.gnu.org; Thu, 09 Dec 2021 05:53:08 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1639047187; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fammCkomjTQMfaI4GSPrqtkLGtixc+4svxr8sx+QCmM=; b=cifeD1NyN0Yli+xAJz/BQ//2InTNhyFAOZxT6q+AnynBV9k3YNWYCOb4ILgmgTO4s+0LUq 6aQSzlCLStv6oGW4p8HDlxfBltkYYjNfrtDQeF0vE1/GukynRBe57EmioPML11hVlRhr1e wjNOlBDG/7vPHTYDCK30tq+CtmBIVdlO/2H8mLL7XJwqLJCJSWGM2jB4nRBXngPZ5+AkfH CfTEASTL5AEFJBnK8Zkz4A3ng660j4c5HlF2NnTqD5tueMh5VzMJ2PYSKNJsFZyxOlruKK ZNV+dYK6MxKZ29ripf7CQVY1I7PVqQQpUNBi9JV/V1J4Y9rzWV0MmHkMAXCL1g== From: Raghav Gururajan To: 51885@debbugs.gnu.org Subject: [PATCH v2 3/4] gnu: Add json. Date: Thu, 9 Dec 2021 05:52:11 -0500 Message-Id: <20211209105212.29412-3-rg@raghavgururajan.name> In-Reply-To: <20211209105212.29412-1-rg@raghavgururajan.name> References: <20211209105212.29412-1-rg@raghavgururajan.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rg@raghavgururajan.name X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 51885 Cc: Raghav Gururajan , jgart X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/cpp.scm (json): New variable. Co-authored-by: jgart --- gnu/packages/cpp.scm | 63 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index a579c47ad9..28705d5bb6 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -77,6 +77,69 @@ (define-module (gnu packages cpp) #:use-module (gnu packages web) #:use-module (gnu packages xml)) +(define-public json + (package + (name "json") + (version "3.10.4") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/nlohmann/json") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "17kxwxl6515s8nb5x7zy69c8qy4gswac66fp15261x1g6sa2jnkx")) + (modules '((guix build utils) + (ice-9 ftw) + (srfi srfi-1))) + (snippet + `(begin + (delete-file-recursively "third_party") + (let ((keep + ;; Custom forks which are incompatible with the ones in Guix. + '("doctest" "fifo_map"))) + (with-directory-excursion "test/thirdparty" + (for-each delete-file-recursively + (lset-difference string=? + (scandir ".") + (cons* "." ".." keep))))) + #t)))) + (build-system cmake-build-system) + (arguments + `(#:configure-flags + (list + (string-append "-DJSON_TestDataDirectory=" + (assoc-ref %build-inputs "json_test_data"))) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'disable-failing-tests + (lambda _ + (substitute* "test/CMakeLists.txt" + ;; Requires network connection. + (("add_subdirectory\\(cmake_fetch_content\\)") ""))))))) + (native-inputs + `(("json_test_data" + ,(origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/nlohmann/json_test_data") + (commit "v3.0.0"))) + (file-name + (git-file-name "json_test_data" "3.0.0")) + (sha256 + (base32 "0nzsjzlvk14dazwh7k2jb1dinb0pv9jbx5jsyn264wvva0y7daiv")))) + ("python" ,python-wrapper))) + (home-page "https://json.nlohmann.me/") + (synopsis "JSON for C++") + (description "@code{json} is a C++ json library for converting to and from +C++ data structures. It's design goals emphasize intuitive syntax, trivial +integration via a single header file, and serious test coverage involving all of +the codebase.") + (license license:expat))) + (define-public argagg (let ((commit "79e4adfa2c6e2bfbe63da05cc668eb9ad5596748") (revision "0")) -- 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 09 05:53:32 2021 Received: (at 51885) by debbugs.gnu.org; 9 Dec 2021 10:53:32 +0000 Received: from localhost ([127.0.0.1]:42552 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvH3M-0002gs-FV for submit@debbugs.gnu.org; Thu, 09 Dec 2021 05:53:32 -0500 Received: from out2.migadu.com ([188.165.223.204]:16540) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvH3J-0002gh-NM for 51885@debbugs.gnu.org; Thu, 09 Dec 2021 05:53:31 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1639047208; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pJrLULbpZXiM/tb51f+1NX83H0R5vC18dJ/8SfbC/uA=; b=qADaA9c6XffUzWNaz4FXJJVfwWXtOiM5Ir3HVt0UNYGQkqzHGHnzRBjS1T5gI0CIziHWq/ XTRbsyC2goE2kmyfhc29VBz/YJEzqI+/DapTpIzfqctJL6Mbwz+HvaW3we/rJKPiQoupAC OfIXKsnWS3hHJ3/gkvdfWEuX9Kca6awCYbu5Tuaqdv2Qqm1Q62ftsnSZSM0n0umDD+ylQo jsFtSSSvbUIyYYhSFhHM4Awo3rm0ezzo84nfTF6Ypzp31hIUs2gpipuDnc2nwSHKoB5M4V 4JfWaJwGZuFLqscfaHaL8RoKD7o1Hcp09VM21+ZKe4S86ZCDDWCnXPTLKKVAtg== From: Raghav Gururajan To: 51885@debbugs.gnu.org Subject: [PATCH v2 4/4] gnu: Add blacksmith. Date: Thu, 9 Dec 2021 05:52:12 -0500 Message-Id: <20211209105212.29412-4-rg@raghavgururajan.name> In-Reply-To: <20211209105212.29412-1-rg@raghavgururajan.name> References: <20211209105212.29412-1-rg@raghavgururajan.name> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rg@raghavgururajan.name X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 51885 Cc: Raghav Gururajan X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/cybersecurity.scm (blacksmith): New variable. --- gnu/packages/cybersecurity.scm | 78 ++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/gnu/packages/cybersecurity.scm b/gnu/packages/cybersecurity.scm index e4614e908e..8c9bb986be 100644 --- a/gnu/packages/cybersecurity.scm +++ b/gnu/packages/cybersecurity.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2020 Jakub Kądziołka ;;; Copyright © 2020, 2021 Tobias Geerinckx-Rice ;;; Copyright © 2021 c4droid +;;; Copyright © 2021 Raghav Gururajan ;;; ;;; This file is part of GNU Guix. ;;; @@ -20,10 +21,14 @@ (define-module (gnu packages cybersecurity) #:use-module (guix download) + #:use-module (guix git-download) #:use-module (guix packages) #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix build-system cmake) #:use-module (guix build-system python) + #:use-module (gnu packages cpp) #:use-module (gnu packages engineering) + #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages python-xyz) #:use-module (gnu packages python-crypto) @@ -32,6 +37,79 @@ (define-module (gnu packages cybersecurity) #:use-module (gnu packages bioinformatics) ;python-intervaltree #:use-module (gnu packages emulators)) +(define-public blacksmith + (let ((commit "c8e65b709a83665f9528efdedcf064abdb04859f") + (revision "0")) + (package + (name "blacksmith") + (version + (git-version "0.0.1" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/comsec-group/blacksmith") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0kyp71wndf527dgza5iks5m5vj543mvxp5w7cjd8x0pilmd1xrls")) + (modules '((guix build utils))) + (snippet + `(begin + (delete-file-recursively "external") + (substitute* "CMakeLists.txt" + (("add_subdirectory\\(external\\)") "") + (("[ \t]*FetchContent_MakeAvailable\\(asmjit\\)") + (string-append "find_package(asmjit)\n" + "find_package(nlohmann_json)"))) + #t)))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f ;no test-suite + #:imported-modules + ((guix build copy-build-system) + ,@%cmake-build-system-modules) + #:modules + (((guix build copy-build-system) + #:prefix copy:) + (guix build cmake-build-system) + (guix build utils)) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-build + (lambda _ + (substitute* "CMakeLists.txt" + ;; Use default C++ standard instead. + (("cxx_std_17") "") + ;; This project tries to link argagg library, + ;; which doesn't exist, as argagg project + ;; is a single header file. + (("argagg") "")))) + (replace 'install + (lambda args + (apply (assoc-ref copy:%standard-phases 'install) + #:install-plan + '(("." "bin" + #:include ("blacksmith")) + ("." "lib" + #:include-regexp ("\\.a$"))) + args)))))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (inputs + `(("argagg" ,argagg) + ("asmjit" ,asmjit) + ("json" ,json))) + (home-page "https://comsec.ethz.ch/research/dram/blacksmith") + (synopsis "Rowhammer fuzzer with non-uniform and frequency-based patterns") + (description "Blacksmith is an implementation of Rowhammer fuzzer that +crafts novel non-uniform Rowhammer access patterns based on the concepts of +frequency, phase, and amplitude. It is able to bypass recent +@acronym{TRR, Target Row Refresh}in-DRAM mitigations effectively and as such can +trigger bit flips.") + (license license:expat)))) + (define-public ropgadget (package (name "ropgadget") -- 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 09 05:57:29 2021 Received: (at submit) by debbugs.gnu.org; 9 Dec 2021 10:57:29 +0000 Received: from localhost ([127.0.0.1]:42558 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvH7B-0002mb-6G for submit@debbugs.gnu.org; Thu, 09 Dec 2021 05:57:29 -0500 Received: from lists.gnu.org ([209.51.188.17]:55140) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvH7A-0002mU-8x for submit@debbugs.gnu.org; Thu, 09 Dec 2021 05:57:28 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35218) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvH7A-0003Ex-0B for guix-patches@gnu.org; Thu, 09 Dec 2021 05:57:28 -0500 Received: from [2a00:1450:4864:20::535] (port=33482 helo=mail-ed1-x535.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mvH77-000839-Lk for guix-patches@gnu.org; Thu, 09 Dec 2021 05:57:27 -0500 Received: by mail-ed1-x535.google.com with SMTP id t5so18369315edd.0 for ; Thu, 09 Dec 2021 02:57:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=65tDvfcaCe6lvE9YRPFobVLd8BUQjeXDVtfcXSXHGMA=; b=KZUqkW/Jqaq010JEc9KolxmM4sLs5l+fgWzWB6eTKq1II2CkOhu6qESabTGgJTy/fH yRX493hT7AUidSPb7zStzKrvOM7annz/kTPgCTtJWGgPO4j7GEv2/yV9eBlXfMdtj6A8 bbVRY+gCgITwJWmKBc6CgJYyHJc0UzmPESsPKHZyCG5ENM13ypzV+guFqJ6qnj/xXtch 7xwg41P/HU1g/3AKRDqwaarQ2AiNv1O6LxAXIXszQTRY4SWmiWRowoPaDHKuwNXBkY3G DY34wKV0lTkRH2wjZ3DJkiiy8Hls3zp9yiP0/v/0fYG3LDpwMqhUkHEKDs0M7XGMCR0N Tk9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=65tDvfcaCe6lvE9YRPFobVLd8BUQjeXDVtfcXSXHGMA=; b=ALs/dWc9cMCajLZAMzwx4xZlr0mx2QS1HT9Ug+/B2xNPtvKH/m31jO6wTlscUCp+AF 2VPQzWvidkx1/zceM6YAIxRzkzaja+p87FZ3LBdaroMql8dyDvU5LzzmPzJoN3fZE6oD VvIqtjKl2Bgn7FuNTVIbr2oZkCaprvlr2S9WK8oDZ2t9uRyVpKgkbZnD8zyuNSE2uT0b GAxAtU9uYUJe2yuJKWKcDrsQBkS6W/4J0PLdsPqQ+B+J4sGIbc67aaKieegqjGjmoIZh K/95KnsGuNXb8sGaFYVR+i5IpSR5RquMdrD9MoZxN0HalsHwAj5GlaYUw7GEQNAtg7NN QlVQ== X-Gm-Message-State: AOAM533vqJbllFNckDW0jeKTqSbhh48rIV2b93FXEG4E1RjBn0pyBBty KigCKLUCTahn4eOQitVh42mYj1yjbdc= X-Google-Smtp-Source: ABdhPJzNwtHjfrHVX58mEPwiIsXcLtENSTCPzoiQX0uzI+aYmJtr4A0iD70YXGuH9Sn62l89TId0Ng== X-Received: by 2002:a17:907:728c:: with SMTP id dt12mr14153688ejc.375.1639047442321; Thu, 09 Dec 2021 02:57:22 -0800 (PST) Received: from localhost (host-79-54-200-65.retail.telecomitalia.it. [79.54.200.65]) by smtp.gmail.com with ESMTPSA id cs15sm2425611ejc.31.2021.12.09.02.57.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Dec 2021 02:57:21 -0800 (PST) From: =?utf-8?Q?Nicol=C3=B2?= Balzarotti To: Raghav Gururajan via Guix-patches via , 51885@debbugs.gnu.org Subject: Re: [bug#51885] [PATCH v2 3/4] gnu: Add json. In-Reply-To: <20211209105212.29412-3-rg@raghavgururajan.name> References: <20211209105212.29412-1-rg@raghavgururajan.name> <20211209105212.29412-3-rg@raghavgururajan.name> Date: Thu, 09 Dec 2021 11:57:21 +0100 Message-ID: <87tufikpv2.fsf@guix.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::535 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::535; envelope-from=anothersms@gmail.com; helo=mail-ed1-x535.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: Raghav Gururajan , jgart X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hi, is this different from json-modern-cxx (except for the version)? Raghav Gururajan via Guix-patches via writes: > * gnu/packages/cpp.scm (json): New variable. > > Co-authored-by: jgart > --- > gnu/packages/cpp.scm | 63 ++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 63 insertions(+) > > diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm > index a579c47ad9..28705d5bb6 100644 > --- a/gnu/packages/cpp.scm > +++ b/gnu/packages/cpp.scm > @@ -77,6 +77,69 @@ (define-module (gnu packages cpp) > #:use-module (gnu packages web) > #:use-module (gnu packages xml)) > > +(define-public json > + (package > + (name "json") > + (version "3.10.4") > + (source > + (origin > + (method git-fetch) > + (uri > + (git-reference > + (url "https://github.com/nlohmann/json") > + (commit (string-append "v" version)))) > + (file-name (git-file-name name version)) > + (sha256 > + (base32 "17kxwxl6515s8nb5x7zy69c8qy4gswac66fp15261x1g6sa2jnkx")) > + (modules '((guix build utils) > + (ice-9 ftw) > + (srfi srfi-1))) > + (snippet > + `(begin > + (delete-file-recursively "third_party") > + (let ((keep > + ;; Custom forks which are incompatible with the ones in Guix. > + '("doctest" "fifo_map"))) > + (with-directory-excursion "test/thirdparty" > + (for-each delete-file-recursively > + (lset-difference string=? > + (scandir ".") > + (cons* "." ".." keep))))) > + #t)))) > + (build-system cmake-build-system) > + (arguments > + `(#:configure-flags > + (list > + (string-append "-DJSON_TestDataDirectory=" > + (assoc-ref %build-inputs "json_test_data"))) > + #:phases > + (modify-phases %standard-phases > + (add-after 'unpack 'disable-failing-tests > + (lambda _ > + (substitute* "test/CMakeLists.txt" > + ;; Requires network connection. > + (("add_subdirectory\\(cmake_fetch_content\\)") ""))))))) > + (native-inputs > + `(("json_test_data" > + ,(origin > + (method git-fetch) > + (uri > + (git-reference > + (url "https://github.com/nlohmann/json_test_data") > + (commit "v3.0.0"))) > + (file-name > + (git-file-name "json_test_data" "3.0.0")) > + (sha256 > + (base32 "0nzsjzlvk14dazwh7k2jb1dinb0pv9jbx5jsyn264wvva0y7daiv")))) > + ("python" ,python-wrapper))) > + (home-page "https://json.nlohmann.me/") > + (synopsis "JSON for C++") > + (description "@code{json} is a C++ json library for converting to and from > +C++ data structures. It's design goals emphasize intuitive syntax, trivial > +integration via a single header file, and serious test coverage involving all of > +the codebase.") > + (license license:expat))) > + > (define-public argagg > (let ((commit "79e4adfa2c6e2bfbe63da05cc668eb9ad5596748") > (revision "0")) > -- > 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 09 08:17:03 2021 Received: (at 51885) by debbugs.gnu.org; 9 Dec 2021 13:17:03 +0000 Received: from localhost ([127.0.0.1]:42831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvJIF-0002X7-8Y for submit@debbugs.gnu.org; Thu, 09 Dec 2021 08:17:03 -0500 Received: from out2.migadu.com ([188.165.223.204]:21892) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvJIA-0002Wd-Vx for 51885@debbugs.gnu.org; Thu, 09 Dec 2021 08:17:02 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1639055817; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Mv1gi+YwvJOWhWSadLveMpcUufle5jZp7MpCCTcMeYY=; b=f9SCRCQs3ao3ezhqTPYHhxwXPDACVHOD+wxrnWDtZA+zlCMt8pZ51VrlXLbT4LM299i4fT eCNxcXS3PsXURHNyS1+EHVK8KuAvcnYbhvP9XimeD+aEtkYTNp8pvqFsl3PQskkKx0cEWr ApK5C2ansmUKYeEXFkmJrFCjeG3lsJapw1QIsKyCxjo4TrbMlrFmBa1x6wPv8yrjZP8xmD 2feZoWnkZAhAIc/F8w2Thk1W2uh6YaJeX7ykXODuA07/Ff4ZgeRnPydlI1rBXOolf6xY4k /DwtzRany7+Zi6P60CkWuor5pYvkau5Xe8WzXREs/dNIXNf3ndbfemkPiWRBsw== From: Raghav Gururajan To: 51885@debbugs.gnu.org Subject: [PATCH v3 1/3] gnu: Add argagg. Date: Thu, 9 Dec 2021 08:16:46 -0500 Message-Id: <20211209131648.1752-1-rg@raghavgururajan.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rg@raghavgururajan.name X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 51885 Cc: Raghav Gururajan , Julien Lepiller , Disseminate Dissent , jgart , anothersms@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/cpp.scm (argagg): New variable. Co-authored-by: jgart Co-authored-by: Julien Lepiller Co-authored-by: Disseminate Dissent --- gnu/packages/cpp.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index bbcdcd6be9..0ce2b681c8 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -77,6 +77,46 @@ (define-module (gnu packages cpp) #:use-module (gnu packages web) #:use-module (gnu packages xml)) +(define-public argagg + (let ((commit "79e4adfa2c6e2bfbe63da05cc668eb9ad5596748") + (revision "0")) + (package + (name "argagg") + (version (git-version "0.4.6" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/vietjtnguyen/argagg") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1flkgh524lq3024p7ld5lg743s1v7qnbmgv77578rzmn2rjzr77n")))) + (build-system cmake-build-system) + (outputs '("out" "doc")) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'install 'move-doc + (lambda* (#:key outputs #:allow-other-keys) + (let* ((name ,(package-name argagg)) + (out (assoc-ref outputs "out")) + (doc (assoc-ref outputs "doc"))) + (mkdir-p (string-append doc "/share/doc")) + (rename-file + (string-append out "/share/doc/" name) + (string-append doc "/share/doc/" name)))))))) + (native-inputs + `(("doxygen" ,doxygen))) + (home-page "https://github.com/vietjtnguyen/argagg") + (synopsis "C++11 command line argument parser") + (description "ArgAgg is yet another C++ command line argument/option parser. +It was written as a simple and idiomatic alternative to other frameworks like +getopt, Boost program options, TCLAP, and others. The goal is to achieve the +majority of argument parsing needs in a simple manner with an easy to use API.") + (license license:expat)))) + (define-public asmjit (let ((commit "4ec760a3d1f69e32ba460ecd2513f29b8428700b") (revision "0")) -- 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 09 08:17:19 2021 Received: (at 51885) by debbugs.gnu.org; 9 Dec 2021 13:17:19 +0000 Received: from localhost ([127.0.0.1]:42835 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvJIV-0002Xa-Ic for submit@debbugs.gnu.org; Thu, 09 Dec 2021 08:17:19 -0500 Received: from out2.migadu.com ([188.165.223.204]:22059) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvJIU-0002XT-6E for 51885@debbugs.gnu.org; Thu, 09 Dec 2021 08:17:18 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1639055836; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Eo3zucDy3gItdkR+CzevKVar5EkBkIb7pPTnurC9Aqs=; b=XHX0gHlTwVsNA12GNrpjIXXF7hnYyW00sD9GJ2EoUEaPnkweJsd7gN/Dj60SVfx+/Yzgr0 uQ7McF9ARKjT97P+dGOVPlGrCRHjWJYy+OAzrF56UqAICR2ObV/8j5mtDuDqpy9dC5SBQA V2LJ2dkMCuMJcE+5jCkICMu6+AaNu/ey0kvKM7XXRVMW7KRVAat7BXrD9SZJXCnj71wv6O +AyCektdxfgsbLV2OsEEW2qrUJ64JOeEmZ7q+5Le7UdEfSIAzx9gfo08j1QnPHGEX3uFt8 2q2ZpBwiwFxlGiULrJRiinTzlPYTPkH5Ji9JS+a8KZSrnxbhrvvg9QOCjkwPUA== From: Raghav Gururajan To: 51885@debbugs.gnu.org Subject: [PATCH v3 2/3] gnu: Add json. Date: Thu, 9 Dec 2021 08:16:47 -0500 Message-Id: <20211209131648.1752-2-rg@raghavgururajan.name> In-Reply-To: <20211209131648.1752-1-rg@raghavgururajan.name> References: <20211209131648.1752-1-rg@raghavgururajan.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rg@raghavgururajan.name X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 51885 Cc: Raghav Gururajan , jgart , anothersms@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/cpp.scm (json): New variable. Co-authored-by: jgart --- gnu/packages/cpp.scm | 63 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 0ce2b681c8..d09de04f99 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -77,6 +77,69 @@ (define-module (gnu packages cpp) #:use-module (gnu packages web) #:use-module (gnu packages xml)) +(define-public json + (package + (name "json") + (version "3.10.4") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/nlohmann/json") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "17kxwxl6515s8nb5x7zy69c8qy4gswac66fp15261x1g6sa2jnkx")) + (modules '((guix build utils) + (ice-9 ftw) + (srfi srfi-1))) + (snippet + `(begin + (delete-file-recursively "third_party") + (let ((keep + ;; Custom forks which are incompatible with the ones in Guix. + '("doctest" "fifo_map"))) + (with-directory-excursion "test/thirdparty" + (for-each delete-file-recursively + (lset-difference string=? + (scandir ".") + (cons* "." ".." keep))))) + #t)))) + (build-system cmake-build-system) + (arguments + `(#:configure-flags + (list + (string-append "-DJSON_TestDataDirectory=" + (assoc-ref %build-inputs "json_test_data"))) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'disable-failing-tests + (lambda _ + (substitute* "test/CMakeLists.txt" + ;; Requires network connection. + (("add_subdirectory\\(cmake_fetch_content\\)") ""))))))) + (native-inputs + `(("json_test_data" + ,(origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/nlohmann/json_test_data") + (commit "v3.0.0"))) + (file-name + (git-file-name "json_test_data" "3.0.0")) + (sha256 + (base32 "0nzsjzlvk14dazwh7k2jb1dinb0pv9jbx5jsyn264wvva0y7daiv")))) + ("python" ,python-wrapper))) + (home-page "https://json.nlohmann.me/") + (synopsis "JSON for C++") + (description "@code{json} is a C++ json library for converting to and from +C++ data structures. It's design goals emphasize intuitive syntax, trivial +integration via a single header file, and serious test coverage involving all of +the codebase.") + (license license:expat))) + (define-public argagg (let ((commit "79e4adfa2c6e2bfbe63da05cc668eb9ad5596748") (revision "0")) -- 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 09 08:24:02 2021 Received: (at 51885) by debbugs.gnu.org; 9 Dec 2021 13:24:02 +0000 Received: from localhost ([127.0.0.1]:42846 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvJOv-0002hF-CV for submit@debbugs.gnu.org; Thu, 09 Dec 2021 08:24:02 -0500 Received: from out1.migadu.com ([91.121.223.63]:64191) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvJOt-0002h6-3R for 51885@debbugs.gnu.org; Thu, 09 Dec 2021 08:23:56 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1639056233; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Ynb+qdia3igzNy7+TqCMWC+lX6waAerPmB4FGiOFL6I=; b=OdCMp2jBpB5heuIc8gwjOZEmFfiqps4kMVeW21+Sj34RHpl2A8eMbWIVzciGJT91pYFAA8 1FJjhXjKHQi0iiJwMeaqbDc97fWB4y83+Orqo8ypiuhFREFCYRVMM7O+wkRfwgG7YLpFtl 8av4oqaJ7S6j5BZD1VVehnaZQGN3WH1OlMD8eDKmwgYimd/p5Vzkn+R2JduY+y6GyNYeTY 1i5dJT3E+y/+AnVP5F1wme0RlNREZ3p3kmOdlNtOcLi27b3Qkol+KeHui7sr+PoI0UacYW 9Ylri0gqGJb6vGg6g3sGjQbDHM6MSB47MXw7KcK2SYBUM0os28uMkLQ1Si89rA== From: Raghav Gururajan To: 51885@debbugs.gnu.org Subject: [PATCH v4 1/3] gnu: Add asmjit. Date: Thu, 9 Dec 2021 08:23:43 -0500 Message-Id: <20211209132345.2018-1-rg@raghavgururajan.name> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rg@raghavgururajan.name X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 51885 Cc: Raghav Gururajan , Julien Lepiller , Disseminate Dissent , jgart , anothersms@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/cpp.scm (asmjit): New variable. Co-authored-by: jgart Co-authored-by: Julien Lepiller Co-authored-by: Disseminate Dissent --- gnu/packages/cpp.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 9ab6e0b835..bbcdcd6be9 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -18,6 +18,9 @@ ;;; Copyright © 2020 Brett Gilio ;;; Copyright © 2020 Milkey Mouse ;;; Copyright © 2021 Raghav Gururajan +;;; Copyright © 2021 jgart +;;; Copyright © 2021 Julien Lepiller +;;; Copyright © 2021 Disseminate Dissent ;;; ;;; This file is part of GNU Guix. ;;; @@ -74,6 +77,38 @@ (define-module (gnu packages cpp) #:use-module (gnu packages web) #:use-module (gnu packages xml)) +(define-public asmjit + (let ((commit "4ec760a3d1f69e32ba460ecd2513f29b8428700b") + (revision "0")) + (package + (name "asmjit") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/asmjit/asmjit") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0skgccbpamcbg1byawfq5n6jzxgj64hnc7jznvk35nkskaaz1nlb")))) + (build-system cmake-build-system) + (arguments + `(#:configure-flags + (list + "-DASMJIT_TEST=TRUE"))) + (home-page "https://asmjit.com/") + (synopsis "Machine code generation for C++") + (description "AsmJit is a lightweight library for machine code generation +written in C++ language. It can generate machine code for X86 and X86_64 +architectures with the support for the whole instruction set from legacy MMX to +the newest AVX-512 and AMX. It has a type-safe API that allows C++ compiler to +do semantic checks at compile-time even before the assembled code is generated +or executed. It also provides an optional register allocator that makes it easy +to generate complex code without a significant development effort.") + (license license:zlib)))) + (define-public range-v3 (package (name "range-v3") -- 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 09 08:24:13 2021 Received: (at 51885) by debbugs.gnu.org; 9 Dec 2021 13:24:13 +0000 Received: from localhost ([127.0.0.1]:42856 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvJPA-0002iF-LZ for submit@debbugs.gnu.org; Thu, 09 Dec 2021 08:24:12 -0500 Received: from out1.migadu.com ([91.121.223.63]:64291) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvJP9-0002i8-9n for 51885@debbugs.gnu.org; Thu, 09 Dec 2021 08:24:11 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1639056250; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Mv1gi+YwvJOWhWSadLveMpcUufle5jZp7MpCCTcMeYY=; b=BLQ9yJ7yfNYFcw6Xhsk6rY6USse//MvbvSRI1Pi99UL8Fw/iknkDTXYHVtryvLUDTfjLeD N0TOxH15nS3JInAJK7jA5jsMj/z9HIigTo+oTjgCMd/nwr/J40nMISu4cGlavKA5PWG2ka qvzEfAuxur5pizstObqvdt3zvAyVdfOur0pbMCkXoScWgVeQRGp8vI1uagpc8WVQzacYS+ siXF9kkKXNP4zBHvFH8JVup90ScDfJdODZQJ2yaJ/s7cGtHyiyY2CFIrz29JPlLBckWg7Y ATlJuVXCEb+jzSSguLeknexqb4jx5qfSH2lcP5cKLtGguMQY9n/PJexJRmzkaA== From: Raghav Gururajan To: 51885@debbugs.gnu.org Subject: [PATCH v4 2/3] gnu: Add argagg. Date: Thu, 9 Dec 2021 08:23:44 -0500 Message-Id: <20211209132345.2018-2-rg@raghavgururajan.name> In-Reply-To: <20211209132345.2018-1-rg@raghavgururajan.name> References: <20211209132345.2018-1-rg@raghavgururajan.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rg@raghavgururajan.name X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 51885 Cc: Raghav Gururajan , Julien Lepiller , Disseminate Dissent , jgart , anothersms@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/cpp.scm (argagg): New variable. Co-authored-by: jgart Co-authored-by: Julien Lepiller Co-authored-by: Disseminate Dissent --- gnu/packages/cpp.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index bbcdcd6be9..0ce2b681c8 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -77,6 +77,46 @@ (define-module (gnu packages cpp) #:use-module (gnu packages web) #:use-module (gnu packages xml)) +(define-public argagg + (let ((commit "79e4adfa2c6e2bfbe63da05cc668eb9ad5596748") + (revision "0")) + (package + (name "argagg") + (version (git-version "0.4.6" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/vietjtnguyen/argagg") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1flkgh524lq3024p7ld5lg743s1v7qnbmgv77578rzmn2rjzr77n")))) + (build-system cmake-build-system) + (outputs '("out" "doc")) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'install 'move-doc + (lambda* (#:key outputs #:allow-other-keys) + (let* ((name ,(package-name argagg)) + (out (assoc-ref outputs "out")) + (doc (assoc-ref outputs "doc"))) + (mkdir-p (string-append doc "/share/doc")) + (rename-file + (string-append out "/share/doc/" name) + (string-append doc "/share/doc/" name)))))))) + (native-inputs + `(("doxygen" ,doxygen))) + (home-page "https://github.com/vietjtnguyen/argagg") + (synopsis "C++11 command line argument parser") + (description "ArgAgg is yet another C++ command line argument/option parser. +It was written as a simple and idiomatic alternative to other frameworks like +getopt, Boost program options, TCLAP, and others. The goal is to achieve the +majority of argument parsing needs in a simple manner with an easy to use API.") + (license license:expat)))) + (define-public asmjit (let ((commit "4ec760a3d1f69e32ba460ecd2513f29b8428700b") (revision "0")) -- 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 09 08:24:33 2021 Received: (at 51885) by debbugs.gnu.org; 9 Dec 2021 13:24:33 +0000 Received: from localhost ([127.0.0.1]:42860 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvJPV-0002im-13 for submit@debbugs.gnu.org; Thu, 09 Dec 2021 08:24:33 -0500 Received: from out1.migadu.com ([91.121.223.63]:64442) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvJPS-0002ie-Qp for 51885@debbugs.gnu.org; Thu, 09 Dec 2021 08:24:31 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1639056269; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pJrLULbpZXiM/tb51f+1NX83H0R5vC18dJ/8SfbC/uA=; b=UdPcVvNB8zt4WoKGV9nVWTawEF4uLLioNL3MOcQ3sTGUxAH7Dshi+k1oRyFrmjFJFkDl7p x9G9w9/kCuBQwcQEvE8KMuridb8KaJZfIB0P+dj7duzVxuuU5vmGWEc90heT8xoJYG1W+w EtAKS4xrRgCCm0GSXCrreC3XiSvQ6fU+019/t8Aprxvlyww6iNTa2inTuYdg7jgeX3ktRj 9P/yyfDTVKWJotEmaUUAkUP/K1+wLK8BYnesbhzO5rlyocuxN5DV0f0CDJVN8d9AUFOif6 qT6XwosW+CzEBgZ3YIK/P/9spt9S/etn4oSMZ+R1yFo5NF5WJdUMmKs78teZTg== From: Raghav Gururajan To: 51885@debbugs.gnu.org Subject: [PATCH v4 3/3] gnu: Add blacksmith. Date: Thu, 9 Dec 2021 08:23:45 -0500 Message-Id: <20211209132345.2018-3-rg@raghavgururajan.name> In-Reply-To: <20211209132345.2018-1-rg@raghavgururajan.name> References: <20211209132345.2018-1-rg@raghavgururajan.name> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rg@raghavgururajan.name X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 51885 Cc: Raghav Gururajan , anothersms@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/cybersecurity.scm (blacksmith): New variable. --- gnu/packages/cybersecurity.scm | 78 ++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/gnu/packages/cybersecurity.scm b/gnu/packages/cybersecurity.scm index e4614e908e..8c9bb986be 100644 --- a/gnu/packages/cybersecurity.scm +++ b/gnu/packages/cybersecurity.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2020 Jakub Kądziołka ;;; Copyright © 2020, 2021 Tobias Geerinckx-Rice ;;; Copyright © 2021 c4droid +;;; Copyright © 2021 Raghav Gururajan ;;; ;;; This file is part of GNU Guix. ;;; @@ -20,10 +21,14 @@ (define-module (gnu packages cybersecurity) #:use-module (guix download) + #:use-module (guix git-download) #:use-module (guix packages) #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix build-system cmake) #:use-module (guix build-system python) + #:use-module (gnu packages cpp) #:use-module (gnu packages engineering) + #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages python-xyz) #:use-module (gnu packages python-crypto) @@ -32,6 +37,79 @@ (define-module (gnu packages cybersecurity) #:use-module (gnu packages bioinformatics) ;python-intervaltree #:use-module (gnu packages emulators)) +(define-public blacksmith + (let ((commit "c8e65b709a83665f9528efdedcf064abdb04859f") + (revision "0")) + (package + (name "blacksmith") + (version + (git-version "0.0.1" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/comsec-group/blacksmith") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0kyp71wndf527dgza5iks5m5vj543mvxp5w7cjd8x0pilmd1xrls")) + (modules '((guix build utils))) + (snippet + `(begin + (delete-file-recursively "external") + (substitute* "CMakeLists.txt" + (("add_subdirectory\\(external\\)") "") + (("[ \t]*FetchContent_MakeAvailable\\(asmjit\\)") + (string-append "find_package(asmjit)\n" + "find_package(nlohmann_json)"))) + #t)))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f ;no test-suite + #:imported-modules + ((guix build copy-build-system) + ,@%cmake-build-system-modules) + #:modules + (((guix build copy-build-system) + #:prefix copy:) + (guix build cmake-build-system) + (guix build utils)) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-build + (lambda _ + (substitute* "CMakeLists.txt" + ;; Use default C++ standard instead. + (("cxx_std_17") "") + ;; This project tries to link argagg library, + ;; which doesn't exist, as argagg project + ;; is a single header file. + (("argagg") "")))) + (replace 'install + (lambda args + (apply (assoc-ref copy:%standard-phases 'install) + #:install-plan + '(("." "bin" + #:include ("blacksmith")) + ("." "lib" + #:include-regexp ("\\.a$"))) + args)))))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (inputs + `(("argagg" ,argagg) + ("asmjit" ,asmjit) + ("json" ,json))) + (home-page "https://comsec.ethz.ch/research/dram/blacksmith") + (synopsis "Rowhammer fuzzer with non-uniform and frequency-based patterns") + (description "Blacksmith is an implementation of Rowhammer fuzzer that +crafts novel non-uniform Rowhammer access patterns based on the concepts of +frequency, phase, and amplitude. It is able to bypass recent +@acronym{TRR, Target Row Refresh}in-DRAM mitigations effectively and as such can +trigger bit flips.") + (license license:expat)))) + (define-public ropgadget (package (name "ropgadget") -- 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 09 08:26:33 2021 Received: (at 51885) by debbugs.gnu.org; 9 Dec 2021 13:26:33 +0000 Received: from localhost ([127.0.0.1]:42868 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvJRR-0002mX-IB for submit@debbugs.gnu.org; Thu, 09 Dec 2021 08:26:33 -0500 Received: from out2.migadu.com ([188.165.223.204]:25789) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvJRP-0002mO-KJ for 51885@debbugs.gnu.org; Thu, 09 Dec 2021 08:26:32 -0500 Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1639056390; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YJ1yYS/vtAvpX5NPBXnO7KRHLjU3vGTQUxDODtauZI4=; b=PkWZeL0Mv3sfY1SmqDusDWF9jow+Z/hvWrCWMhE2EvybuIZg7pZiJPhdKYlz/YRFCv4wy+ Db2QdYsPfC5wr9trvbL7eGZKakrYtz2x61OMYWr5tyNGkBkOd2iwpWIfIfYhDLO0ltlDEa WwRj+hh1S8xmB2eBAhHiuMyENdYWos7Hv3V0wHGi7gj+YxxnFEotlpT3adKipXm2LyMgwO 6ATRzoY8ppIuF35h7Xw4K7k3VBOp/5HdKvRB2/+WW+LO85x+J1Y1IQkb21tNUlA29rtUcq nYhMp8CRohKV74yICK6gMNvxKROI0Q1n+bDInP2Y7QpqWLjibmvjTHb729ReVA== Date: Thu, 9 Dec 2021 08:26:28 -0500 MIME-Version: 1.0 Content-Language: en-CA To: =?UTF-8?Q?Nicol=c3=b2_Balzarotti?= References: <20211209105212.29412-1-rg@raghavgururajan.name> <20211209105212.29412-3-rg@raghavgururajan.name> <87tufikpv2.fsf@guix.i-did-not-set--mail-host-address--so-tickle-me> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Raghav Gururajan Subject: Re: [bug#51885] [PATCH v2 3/4] gnu: Add json. In-Reply-To: <87tufikpv2.fsf@guix.i-did-not-set--mail-host-address--so-tickle-me> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------H9HS14NDk4UTP0LRjpjUP4Lf" X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rg@raghavgururajan.name X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 51885 Cc: 51885@debbugs.gnu.org, jgart X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------H9HS14NDk4UTP0LRjpjUP4Lf Content-Type: multipart/mixed; boundary="------------miSsgqWrrUHovhCqrpndz1SB"; protected-headers="v1" From: Raghav Gururajan To: =?UTF-8?Q?Nicol=c3=b2_Balzarotti?= Cc: 51885@debbugs.gnu.org, jgart Message-ID: Subject: Re: [bug#51885] [PATCH v2 3/4] gnu: Add json. References: <20211209105212.29412-1-rg@raghavgururajan.name> <20211209105212.29412-3-rg@raghavgururajan.name> <87tufikpv2.fsf@guix.i-did-not-set--mail-host-address--so-tickle-me> In-Reply-To: <87tufikpv2.fsf@guix.i-did-not-set--mail-host-address--so-tickle-me> --------------miSsgqWrrUHovhCqrpndz1SB Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 SGkgTmljb2zDsiwNCg0KPiBIaSwgaXMgdGhpcyBkaWZmZXJlbnQgZnJvbSBqc29uLW1vZGVy bi1jeHggKGV4Y2VwdCBmb3IgdGhlIHZlcnNpb24pPw0KDQpUaGFua3MgZm9yIGNhdGNoaW5n IHRoYXQuIEkgZHJvcHBlZCB0aGUgY29tbWl0IGluIHY0IHBhdGNoLXNldC4NCg0KUmVnYXJk cywNClJHLg0K --------------miSsgqWrrUHovhCqrpndz1SB-- --------------H9HS14NDk4UTP0LRjpjUP4Lf Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYbIEBAUDAAAAAAAKCRBfWBZkf4vlUXjd AP4rYPO9zNSOw51vvbn2gf2+AhrrykOLyiOd4z0rsZO+ZwEA3iwJ2b1lHmBeucV8TkuMgeLEvoOk wMb4NnKizQZBNwo= =wpFd -----END PGP SIGNATURE----- --------------H9HS14NDk4UTP0LRjpjUP4Lf-- From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 09 08:31:00 2021 Received: (at 51885) by debbugs.gnu.org; 9 Dec 2021 13:31:00 +0000 Received: from localhost ([127.0.0.1]:42890 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvJVh-0002v1-HT for submit@debbugs.gnu.org; Thu, 09 Dec 2021 08:31:00 -0500 Received: from out0.migadu.com ([94.23.1.103]:46009) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvJVb-0002uk-NM for 51885@debbugs.gnu.org; Thu, 09 Dec 2021 08:30:56 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1639056649; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Ynb+qdia3igzNy7+TqCMWC+lX6waAerPmB4FGiOFL6I=; b=uv+9sRTifYM/cfxtnyF7jmj4M6XawE9fdXV0yVaw5CurJfd2xleUn7gqURoxHqVy53bwd8 7WkZAPdmgh3mng8eylrcxtatPgRr06ILJwXQPoOF9RKJpynuMww8Afz81ow7tVvncqa4hM 487YqQcUE5WbNU+nouPfHbymrd0OCZG2azZjJHep3naz3d5Etza/cuyNKUB8UpJqy5vzfm VTiO17aOZsKctTz24y4mDvanIo/PiYxPYa9bFMw6/CXxmQjMJqPCsQBptuweM50fQ2n2+b N8Mp7rPbrXPHZ9r+CvXchHY0rTGn9djURxM7gyU7kF6Krjtu49PQbOnffoTYFw== From: Raghav Gururajan To: 51885@debbugs.gnu.org Subject: [PATCH v5 1/3] gnu: Add asmjit. Date: Thu, 9 Dec 2021 08:30:43 -0500 Message-Id: <20211209133045.2311-1-rg@raghavgururajan.name> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rg@raghavgururajan.name X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 51885 Cc: Raghav Gururajan , Julien Lepiller , Disseminate Dissent , jgart X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/cpp.scm (asmjit): New variable. Co-authored-by: jgart Co-authored-by: Julien Lepiller Co-authored-by: Disseminate Dissent --- gnu/packages/cpp.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 9ab6e0b835..bbcdcd6be9 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -18,6 +18,9 @@ ;;; Copyright © 2020 Brett Gilio ;;; Copyright © 2020 Milkey Mouse ;;; Copyright © 2021 Raghav Gururajan +;;; Copyright © 2021 jgart +;;; Copyright © 2021 Julien Lepiller +;;; Copyright © 2021 Disseminate Dissent ;;; ;;; This file is part of GNU Guix. ;;; @@ -74,6 +77,38 @@ (define-module (gnu packages cpp) #:use-module (gnu packages web) #:use-module (gnu packages xml)) +(define-public asmjit + (let ((commit "4ec760a3d1f69e32ba460ecd2513f29b8428700b") + (revision "0")) + (package + (name "asmjit") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/asmjit/asmjit") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0skgccbpamcbg1byawfq5n6jzxgj64hnc7jznvk35nkskaaz1nlb")))) + (build-system cmake-build-system) + (arguments + `(#:configure-flags + (list + "-DASMJIT_TEST=TRUE"))) + (home-page "https://asmjit.com/") + (synopsis "Machine code generation for C++") + (description "AsmJit is a lightweight library for machine code generation +written in C++ language. It can generate machine code for X86 and X86_64 +architectures with the support for the whole instruction set from legacy MMX to +the newest AVX-512 and AMX. It has a type-safe API that allows C++ compiler to +do semantic checks at compile-time even before the assembled code is generated +or executed. It also provides an optional register allocator that makes it easy +to generate complex code without a significant development effort.") + (license license:zlib)))) + (define-public range-v3 (package (name "range-v3") -- 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 09 08:31:10 2021 Received: (at 51885) by debbugs.gnu.org; 9 Dec 2021 13:31:10 +0000 Received: from localhost ([127.0.0.1]:42896 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvJVt-0002vy-SG for submit@debbugs.gnu.org; Thu, 09 Dec 2021 08:31:10 -0500 Received: from out0.migadu.com ([94.23.1.103]:46141) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvJVs-0002vp-Cu for 51885@debbugs.gnu.org; Thu, 09 Dec 2021 08:31:08 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1639056667; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Mv1gi+YwvJOWhWSadLveMpcUufle5jZp7MpCCTcMeYY=; b=dkYe/OTiR6hlkOkmLQD/uqULHvyqW+xUUwXrQcDl7Y99DDIiq16eEf6a4ew1BWPgUVRk1q g0+CyMPHm8Xi/nFfs0Pu5o4OF3t8UyGT+O647CZjiBq9gkfmPuR+LyCXzYX5cSAU8jEboh YFF2GsnHW8drEqjiaHhc1bGmWVWrOdRGtRG7KD3FOkRJFIY8FQMFXv/D+SeASezqW36sQB mIDO0rgtzHQlNQbRrHU7lKlfDLrtejURVuDvWxiA5o7CKGHrXQfOGYeScwxostUcxWcb9E 7UNPTSynIUllPOy7mYCgAYd2KhfHNONOnstbnpZxJyuObpwwKvuCF+43iYyWtw== From: Raghav Gururajan To: 51885@debbugs.gnu.org Subject: [PATCH v5 2/3] gnu: Add argagg. Date: Thu, 9 Dec 2021 08:30:44 -0500 Message-Id: <20211209133045.2311-2-rg@raghavgururajan.name> In-Reply-To: <20211209133045.2311-1-rg@raghavgururajan.name> References: <20211209133045.2311-1-rg@raghavgururajan.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rg@raghavgururajan.name X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 51885 Cc: Raghav Gururajan , Julien Lepiller , Disseminate Dissent , jgart X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/cpp.scm (argagg): New variable. Co-authored-by: jgart Co-authored-by: Julien Lepiller Co-authored-by: Disseminate Dissent --- gnu/packages/cpp.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index bbcdcd6be9..0ce2b681c8 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -77,6 +77,46 @@ (define-module (gnu packages cpp) #:use-module (gnu packages web) #:use-module (gnu packages xml)) +(define-public argagg + (let ((commit "79e4adfa2c6e2bfbe63da05cc668eb9ad5596748") + (revision "0")) + (package + (name "argagg") + (version (git-version "0.4.6" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/vietjtnguyen/argagg") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1flkgh524lq3024p7ld5lg743s1v7qnbmgv77578rzmn2rjzr77n")))) + (build-system cmake-build-system) + (outputs '("out" "doc")) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'install 'move-doc + (lambda* (#:key outputs #:allow-other-keys) + (let* ((name ,(package-name argagg)) + (out (assoc-ref outputs "out")) + (doc (assoc-ref outputs "doc"))) + (mkdir-p (string-append doc "/share/doc")) + (rename-file + (string-append out "/share/doc/" name) + (string-append doc "/share/doc/" name)))))))) + (native-inputs + `(("doxygen" ,doxygen))) + (home-page "https://github.com/vietjtnguyen/argagg") + (synopsis "C++11 command line argument parser") + (description "ArgAgg is yet another C++ command line argument/option parser. +It was written as a simple and idiomatic alternative to other frameworks like +getopt, Boost program options, TCLAP, and others. The goal is to achieve the +majority of argument parsing needs in a simple manner with an easy to use API.") + (license license:expat)))) + (define-public asmjit (let ((commit "4ec760a3d1f69e32ba460ecd2513f29b8428700b") (revision "0")) -- 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 09 08:31:31 2021 Received: (at 51885) by debbugs.gnu.org; 9 Dec 2021 13:31:31 +0000 Received: from localhost ([127.0.0.1]:42900 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvJWF-0002wW-70 for submit@debbugs.gnu.org; Thu, 09 Dec 2021 08:31:31 -0500 Received: from out0.migadu.com ([94.23.1.103]:46282) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvJWE-0002wP-4V for 51885@debbugs.gnu.org; Thu, 09 Dec 2021 08:31:30 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1639056689; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pJrLULbpZXiM/tb51f+1NX83H0R5vC18dJ/8SfbC/uA=; b=onABdfcvD+cwSlztKSQ4FuxykLT2t+1CfPnKpEsItYFOvKyWTZJJKUW4Bqm/4Dh+NPcxX4 hH1JlGz5cLsz6ddoyC7nw5/zihtr7JF+sJ5wvN6UcMBSeCb85QGBBQWrhcRZxyiMelG7Tf BbYS+X8p0kVCiweCPySf2aR9Y7/AQncwmgSAoMogM/rLu657DIGw16qNHYeJFzsJ7xCMcH d/KuAuiuO1W5txDHBHyT/YkXGwqUIaABjGNxGddMjgG8Gg4MHrY2/tXAF2l3tRxb4MQIiO hJ/LVq/ODNhICp244yo6l/FwYYZyT5DMmbkFOr4lPAHi/cWS205BsFcj2/fTog== From: Raghav Gururajan To: 51885@debbugs.gnu.org Subject: [PATCH v5 3/3] gnu: Add blacksmith. Date: Thu, 9 Dec 2021 08:30:45 -0500 Message-Id: <20211209133045.2311-3-rg@raghavgururajan.name> In-Reply-To: <20211209133045.2311-1-rg@raghavgururajan.name> References: <20211209133045.2311-1-rg@raghavgururajan.name> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rg@raghavgururajan.name X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 51885 Cc: Raghav Gururajan X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/cybersecurity.scm (blacksmith): New variable. --- gnu/packages/cybersecurity.scm | 78 ++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/gnu/packages/cybersecurity.scm b/gnu/packages/cybersecurity.scm index e4614e908e..8c9bb986be 100644 --- a/gnu/packages/cybersecurity.scm +++ b/gnu/packages/cybersecurity.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2020 Jakub Kądziołka ;;; Copyright © 2020, 2021 Tobias Geerinckx-Rice ;;; Copyright © 2021 c4droid +;;; Copyright © 2021 Raghav Gururajan ;;; ;;; This file is part of GNU Guix. ;;; @@ -20,10 +21,14 @@ (define-module (gnu packages cybersecurity) #:use-module (guix download) + #:use-module (guix git-download) #:use-module (guix packages) #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix build-system cmake) #:use-module (guix build-system python) + #:use-module (gnu packages cpp) #:use-module (gnu packages engineering) + #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages python-xyz) #:use-module (gnu packages python-crypto) @@ -32,6 +37,79 @@ (define-module (gnu packages cybersecurity) #:use-module (gnu packages bioinformatics) ;python-intervaltree #:use-module (gnu packages emulators)) +(define-public blacksmith + (let ((commit "c8e65b709a83665f9528efdedcf064abdb04859f") + (revision "0")) + (package + (name "blacksmith") + (version + (git-version "0.0.1" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/comsec-group/blacksmith") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0kyp71wndf527dgza5iks5m5vj543mvxp5w7cjd8x0pilmd1xrls")) + (modules '((guix build utils))) + (snippet + `(begin + (delete-file-recursively "external") + (substitute* "CMakeLists.txt" + (("add_subdirectory\\(external\\)") "") + (("[ \t]*FetchContent_MakeAvailable\\(asmjit\\)") + (string-append "find_package(asmjit)\n" + "find_package(nlohmann_json)"))) + #t)))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f ;no test-suite + #:imported-modules + ((guix build copy-build-system) + ,@%cmake-build-system-modules) + #:modules + (((guix build copy-build-system) + #:prefix copy:) + (guix build cmake-build-system) + (guix build utils)) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-build + (lambda _ + (substitute* "CMakeLists.txt" + ;; Use default C++ standard instead. + (("cxx_std_17") "") + ;; This project tries to link argagg library, + ;; which doesn't exist, as argagg project + ;; is a single header file. + (("argagg") "")))) + (replace 'install + (lambda args + (apply (assoc-ref copy:%standard-phases 'install) + #:install-plan + '(("." "bin" + #:include ("blacksmith")) + ("." "lib" + #:include-regexp ("\\.a$"))) + args)))))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (inputs + `(("argagg" ,argagg) + ("asmjit" ,asmjit) + ("json" ,json))) + (home-page "https://comsec.ethz.ch/research/dram/blacksmith") + (synopsis "Rowhammer fuzzer with non-uniform and frequency-based patterns") + (description "Blacksmith is an implementation of Rowhammer fuzzer that +crafts novel non-uniform Rowhammer access patterns based on the concepts of +frequency, phase, and amplitude. It is able to bypass recent +@acronym{TRR, Target Row Refresh}in-DRAM mitigations effectively and as such can +trigger bit flips.") + (license license:expat)))) + (define-public ropgadget (package (name "ropgadget") -- 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 09 08:36:27 2021 Received: (at 51885) by debbugs.gnu.org; 9 Dec 2021 13:36:27 +0000 Received: from localhost ([127.0.0.1]:42913 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvJav-00034H-Lx for submit@debbugs.gnu.org; Thu, 09 Dec 2021 08:36:27 -0500 Received: from out0.migadu.com ([94.23.1.103]:48137) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvJas-000347-Sk for 51885@debbugs.gnu.org; Thu, 09 Dec 2021 08:36:20 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1639056978; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Ynb+qdia3igzNy7+TqCMWC+lX6waAerPmB4FGiOFL6I=; b=A5gOwYb+F0EYZPHOytZeSG10y6JqiQOr4U/4J5B8Z5Xbx3sl6ngeE+1Ha8tChmB9ZNzLCK b9yMTt5em0bH25LwhYhWMrFIqI53QJ+9SmmedvipbgxfZAc1XvSmc0Fvi/At/pXSVQeukd pqMKDUYFYR49TI2EixfT2bO7bROcaVeMCXLeZRE8DRolCg+XlRZE3FLtS9qNwW7LzsA+0b 4zS4Pw7FjdGQA44GhbAOtPXs8+8tw9k5u+d0fF2/IahQN1RWVS3IinaKOpiQYoj1Ji5xOF JErOh1mAqJtICTjPth1a/gTZNo5PrZYxMxXmxdrpYxDmepAreHOA1WV7asixZw== From: Raghav Gururajan To: 51885@debbugs.gnu.org Subject: [PATCH v6 1/3] gnu: Add asmjit. Date: Thu, 9 Dec 2021 08:36:12 -0500 Message-Id: <20211209133614.2574-1-rg@raghavgururajan.name> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rg@raghavgururajan.name X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 51885 Cc: Raghav Gururajan , Julien Lepiller , Disseminate Dissent , jgart X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/cpp.scm (asmjit): New variable. Co-authored-by: jgart Co-authored-by: Julien Lepiller Co-authored-by: Disseminate Dissent --- gnu/packages/cpp.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 9ab6e0b835..bbcdcd6be9 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -18,6 +18,9 @@ ;;; Copyright © 2020 Brett Gilio ;;; Copyright © 2020 Milkey Mouse ;;; Copyright © 2021 Raghav Gururajan +;;; Copyright © 2021 jgart +;;; Copyright © 2021 Julien Lepiller +;;; Copyright © 2021 Disseminate Dissent ;;; ;;; This file is part of GNU Guix. ;;; @@ -74,6 +77,38 @@ (define-module (gnu packages cpp) #:use-module (gnu packages web) #:use-module (gnu packages xml)) +(define-public asmjit + (let ((commit "4ec760a3d1f69e32ba460ecd2513f29b8428700b") + (revision "0")) + (package + (name "asmjit") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/asmjit/asmjit") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0skgccbpamcbg1byawfq5n6jzxgj64hnc7jznvk35nkskaaz1nlb")))) + (build-system cmake-build-system) + (arguments + `(#:configure-flags + (list + "-DASMJIT_TEST=TRUE"))) + (home-page "https://asmjit.com/") + (synopsis "Machine code generation for C++") + (description "AsmJit is a lightweight library for machine code generation +written in C++ language. It can generate machine code for X86 and X86_64 +architectures with the support for the whole instruction set from legacy MMX to +the newest AVX-512 and AMX. It has a type-safe API that allows C++ compiler to +do semantic checks at compile-time even before the assembled code is generated +or executed. It also provides an optional register allocator that makes it easy +to generate complex code without a significant development effort.") + (license license:zlib)))) + (define-public range-v3 (package (name "range-v3") -- 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 09 08:36:40 2021 Received: (at 51885) by debbugs.gnu.org; 9 Dec 2021 13:36:40 +0000 Received: from localhost ([127.0.0.1]:42917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvJbE-00034r-6n for submit@debbugs.gnu.org; Thu, 09 Dec 2021 08:36:40 -0500 Received: from out0.migadu.com ([94.23.1.103]:48276) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvJbC-00034j-4d for 51885@debbugs.gnu.org; Thu, 09 Dec 2021 08:36:38 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1639056997; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Mv1gi+YwvJOWhWSadLveMpcUufle5jZp7MpCCTcMeYY=; b=MDrYubhRy77hML9nEpCRdZm5LXrr21AOetSt9s3R8hs2pZrj3/GfCLgEKor7Hjnu8LfyRA HKwVlH0/xg+5jO1fWXwCwgYhYXp2ilUvsLxdnwvFfCb3njLN0SSdjYmDmo8Gnu1gM6mqxq YjCVEcLlKwCNqsIJffxKmlO1dI72VULJ+FexEVMCfRWz22ERHlrm3JQtXGApryXzCcMGIz DPfb7lxyIcINgboJ7RAbJl0mGN30LkNp2Bkrwde4X3WlhScLiCjhMJxIaKMNr2k4fFBtRp 8Ic2QPNqsmbnmtAaMfdc+HN/vGhNq5MGuOrLQNmV0+Xq2JFsHL1yzgLN+2p/6Q== From: Raghav Gururajan To: 51885@debbugs.gnu.org Subject: [PATCH v6 2/3] gnu: Add argagg. Date: Thu, 9 Dec 2021 08:36:13 -0500 Message-Id: <20211209133614.2574-2-rg@raghavgururajan.name> In-Reply-To: <20211209133614.2574-1-rg@raghavgururajan.name> References: <20211209133614.2574-1-rg@raghavgururajan.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rg@raghavgururajan.name X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 51885 Cc: Raghav Gururajan , Julien Lepiller , Disseminate Dissent , jgart X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/cpp.scm (argagg): New variable. Co-authored-by: jgart Co-authored-by: Julien Lepiller Co-authored-by: Disseminate Dissent --- gnu/packages/cpp.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index bbcdcd6be9..0ce2b681c8 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -77,6 +77,46 @@ (define-module (gnu packages cpp) #:use-module (gnu packages web) #:use-module (gnu packages xml)) +(define-public argagg + (let ((commit "79e4adfa2c6e2bfbe63da05cc668eb9ad5596748") + (revision "0")) + (package + (name "argagg") + (version (git-version "0.4.6" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/vietjtnguyen/argagg") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1flkgh524lq3024p7ld5lg743s1v7qnbmgv77578rzmn2rjzr77n")))) + (build-system cmake-build-system) + (outputs '("out" "doc")) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'install 'move-doc + (lambda* (#:key outputs #:allow-other-keys) + (let* ((name ,(package-name argagg)) + (out (assoc-ref outputs "out")) + (doc (assoc-ref outputs "doc"))) + (mkdir-p (string-append doc "/share/doc")) + (rename-file + (string-append out "/share/doc/" name) + (string-append doc "/share/doc/" name)))))))) + (native-inputs + `(("doxygen" ,doxygen))) + (home-page "https://github.com/vietjtnguyen/argagg") + (synopsis "C++11 command line argument parser") + (description "ArgAgg is yet another C++ command line argument/option parser. +It was written as a simple and idiomatic alternative to other frameworks like +getopt, Boost program options, TCLAP, and others. The goal is to achieve the +majority of argument parsing needs in a simple manner with an easy to use API.") + (license license:expat)))) + (define-public asmjit (let ((commit "4ec760a3d1f69e32ba460ecd2513f29b8428700b") (revision "0")) -- 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 09 08:37:00 2021 Received: (at 51885) by debbugs.gnu.org; 9 Dec 2021 13:37:01 +0000 Received: from localhost ([127.0.0.1]:42921 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvJbY-00035b-Hm for submit@debbugs.gnu.org; Thu, 09 Dec 2021 08:37:00 -0500 Received: from out0.migadu.com ([94.23.1.103]:48393) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvJbW-00035R-Es for 51885@debbugs.gnu.org; Thu, 09 Dec 2021 08:36:59 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1639057017; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PpWGjc1w4CKoGuVSpfF62UzDoa0h94kKL5N15ZQSQc8=; b=XRqu8UKel2n08KjnZhji9Yj2i3lMxMSNsxfZPE3qYU+iBsS/vZHwiLdVq9jUvTM0Z5mX3u FmIJIbBo6+IjxwpozZASzpob4jDdXUkynfQwTPjP3XPYQJhSXMM0d27DbQEKlbAFSNlsOc 8rciv/imxMcVlrwdrasN441GVMkh8Jf1SB5kIcd+egPxqxEA3+UV9LVk9v6T/sWXEWtTr+ 3xnIrVR/hzunpHzhLkhmxq4fd9/2FczoejvO0PfsNJxH7wvB4Q+6lEgK/ugVmeYT9Y0oUc a3PZpOt9RNeCQ7bf78qFmAIJuVbD3rlW2H3SWsN316zl/JNXlfEsaMM1J7HhLg== From: Raghav Gururajan To: 51885@debbugs.gnu.org Subject: [PATCH v6 3/3] gnu: Add blacksmith. Date: Thu, 9 Dec 2021 08:36:14 -0500 Message-Id: <20211209133614.2574-3-rg@raghavgururajan.name> In-Reply-To: <20211209133614.2574-1-rg@raghavgururajan.name> References: <20211209133614.2574-1-rg@raghavgururajan.name> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rg@raghavgururajan.name X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 51885 Cc: Raghav Gururajan X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/cybersecurity.scm (blacksmith): New variable. --- gnu/packages/cybersecurity.scm | 78 ++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/gnu/packages/cybersecurity.scm b/gnu/packages/cybersecurity.scm index e4614e908e..c280ed48dc 100644 --- a/gnu/packages/cybersecurity.scm +++ b/gnu/packages/cybersecurity.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2020 Jakub Kądziołka ;;; Copyright © 2020, 2021 Tobias Geerinckx-Rice ;;; Copyright © 2021 c4droid +;;; Copyright © 2021 Raghav Gururajan ;;; ;;; This file is part of GNU Guix. ;;; @@ -20,10 +21,14 @@ (define-module (gnu packages cybersecurity) #:use-module (guix download) + #:use-module (guix git-download) #:use-module (guix packages) #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix build-system cmake) #:use-module (guix build-system python) + #:use-module (gnu packages cpp) #:use-module (gnu packages engineering) + #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages python-xyz) #:use-module (gnu packages python-crypto) @@ -32,6 +37,79 @@ (define-module (gnu packages cybersecurity) #:use-module (gnu packages bioinformatics) ;python-intervaltree #:use-module (gnu packages emulators)) +(define-public blacksmith + (let ((commit "c8e65b709a83665f9528efdedcf064abdb04859f") + (revision "0")) + (package + (name "blacksmith") + (version + (git-version "0.0.1" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/comsec-group/blacksmith") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0kyp71wndf527dgza5iks5m5vj543mvxp5w7cjd8x0pilmd1xrls")) + (modules '((guix build utils))) + (snippet + `(begin + (delete-file-recursively "external") + (substitute* "CMakeLists.txt" + (("add_subdirectory\\(external\\)") "") + (("[ \t]*FetchContent_MakeAvailable\\(asmjit\\)") + (string-append "find_package(asmjit)\n" + "find_package(nlohmann_json)"))) + #t)))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f ;no test-suite + #:imported-modules + ((guix build copy-build-system) + ,@%cmake-build-system-modules) + #:modules + (((guix build copy-build-system) + #:prefix copy:) + (guix build cmake-build-system) + (guix build utils)) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-build + (lambda _ + (substitute* "CMakeLists.txt" + ;; Use default C++ standard instead. + (("cxx_std_17") "") + ;; This project tries to link argagg library, + ;; which doesn't exist, as argagg project + ;; is a single header file. + (("argagg") "")))) + (replace 'install + (lambda args + (apply (assoc-ref copy:%standard-phases 'install) + #:install-plan + '(("." "bin" + #:include ("blacksmith")) + ("." "lib" + #:include-regexp ("\\.a$"))) + args)))))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (inputs + `(("argagg" ,argagg) + ("asmjit" ,asmjit) + ("json-modern-cxx" ,json-modern-cxx))) + (home-page "https://comsec.ethz.ch/research/dram/blacksmith") + (synopsis "Rowhammer fuzzer with non-uniform and frequency-based patterns") + (description "Blacksmith is an implementation of Rowhammer fuzzer that +crafts novel non-uniform Rowhammer access patterns based on the concepts of +frequency, phase, and amplitude. It is able to bypass recent +@acronym{TRR, Target Row Refresh}in-DRAM mitigations effectively and as such can +trigger bit flips.") + (license license:expat)))) + (define-public ropgadget (package (name "ropgadget") -- 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 09 08:46:01 2021 Received: (at 51885) by debbugs.gnu.org; 9 Dec 2021 13:46:02 +0000 Received: from localhost ([127.0.0.1]:42928 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvJkC-0003J4-KE for submit@debbugs.gnu.org; Thu, 09 Dec 2021 08:46:01 -0500 Received: from out1.migadu.com ([91.121.223.63]:17688) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvJkA-0003Iv-FQ for 51885@debbugs.gnu.org; Thu, 09 Dec 2021 08:45:56 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1639057552; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Ynb+qdia3igzNy7+TqCMWC+lX6waAerPmB4FGiOFL6I=; b=lgQoS4KiJN6x4G8VQ6pO4MvoGqcPTnQW8lNFGk+GI7h7LH5fX5V67T7mN8c6V364MfSkYp 3IsdpG7Njzkr+fPh4YdfBUrRGe/N6J0wW7vSKcswSUuOkYY6beFB28fWXVICvJq2v6x35i e4E5WzMcoXel378gyCoWlt8fEYBK7VxOd1SmQmS7vlXCwHdjAy/DNRAVIA0NBsx5cDoBoa YrrjPAx0TbFKGGGHx46MVjKE+9Uz3clTQ0S2O9Z74obobXIWgmhZ9TJicOegDv0rLbDi0d A0HF9DM3PEhATrPeOvW7qrXnmup2z2IwkmtPvMur7Ihyx4aiNqcq1J6g1/jGbg== From: Raghav Gururajan To: 51885@debbugs.gnu.org Subject: [PATCH v7 1/3] gnu: Add asmjit. Date: Thu, 9 Dec 2021 08:45:45 -0500 Message-Id: <20211209134547.3139-1-rg@raghavgururajan.name> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rg@raghavgururajan.name X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 51885 Cc: Raghav Gururajan , Julien Lepiller , Disseminate Dissent , jgart X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/cpp.scm (asmjit): New variable. Co-authored-by: jgart Co-authored-by: Julien Lepiller Co-authored-by: Disseminate Dissent --- gnu/packages/cpp.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 9ab6e0b835..bbcdcd6be9 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -18,6 +18,9 @@ ;;; Copyright © 2020 Brett Gilio ;;; Copyright © 2020 Milkey Mouse ;;; Copyright © 2021 Raghav Gururajan +;;; Copyright © 2021 jgart +;;; Copyright © 2021 Julien Lepiller +;;; Copyright © 2021 Disseminate Dissent ;;; ;;; This file is part of GNU Guix. ;;; @@ -74,6 +77,38 @@ (define-module (gnu packages cpp) #:use-module (gnu packages web) #:use-module (gnu packages xml)) +(define-public asmjit + (let ((commit "4ec760a3d1f69e32ba460ecd2513f29b8428700b") + (revision "0")) + (package + (name "asmjit") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/asmjit/asmjit") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0skgccbpamcbg1byawfq5n6jzxgj64hnc7jznvk35nkskaaz1nlb")))) + (build-system cmake-build-system) + (arguments + `(#:configure-flags + (list + "-DASMJIT_TEST=TRUE"))) + (home-page "https://asmjit.com/") + (synopsis "Machine code generation for C++") + (description "AsmJit is a lightweight library for machine code generation +written in C++ language. It can generate machine code for X86 and X86_64 +architectures with the support for the whole instruction set from legacy MMX to +the newest AVX-512 and AMX. It has a type-safe API that allows C++ compiler to +do semantic checks at compile-time even before the assembled code is generated +or executed. It also provides an optional register allocator that makes it easy +to generate complex code without a significant development effort.") + (license license:zlib)))) + (define-public range-v3 (package (name "range-v3") -- 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 09 08:46:17 2021 Received: (at 51885) by debbugs.gnu.org; 9 Dec 2021 13:46:17 +0000 Received: from localhost ([127.0.0.1]:42932 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvJkW-0003KC-Up for submit@debbugs.gnu.org; Thu, 09 Dec 2021 08:46:17 -0500 Received: from out1.migadu.com ([91.121.223.63]:17850) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvJkV-0003K3-BN for 51885@debbugs.gnu.org; Thu, 09 Dec 2021 08:46:15 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1639057574; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Mv1gi+YwvJOWhWSadLveMpcUufle5jZp7MpCCTcMeYY=; b=h1Jad8eAQfpAotnnRz+H6MgzzQW1ktWsYQDl6fFXwKclhn8x+G5grsPtkBazbfUbX3jZ9e 2irQhyifX1xRPVcCEKEjk3Iyqs82QHLYpyWcqKs1GKrNrTqs3le2JuLz7E9eze07MxVoik L62q/KaiFytXBtu2yNNeKhVfDCLSPoKTp7Z4TaRbtXhn8R+PBus6CF0/vgYyXvip/Edw5f tDQTZhuZ2t7nvvoMZRZ3rCczngfh8ns68D+qeG6mRUocGdFkVv6THh8yvJ03Ff3j8C0Sc2 ukIAHBeWT37fNGG87aI32cQK6OJkwnIw0bdCiLMg3QPdNans7Nvff+iZs9AlVw== From: Raghav Gururajan To: 51885@debbugs.gnu.org Subject: [PATCH v7 2/3] gnu: Add argagg. Date: Thu, 9 Dec 2021 08:45:46 -0500 Message-Id: <20211209134547.3139-2-rg@raghavgururajan.name> In-Reply-To: <20211209134547.3139-1-rg@raghavgururajan.name> References: <20211209134547.3139-1-rg@raghavgururajan.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rg@raghavgururajan.name X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 51885 Cc: Raghav Gururajan , Julien Lepiller , Disseminate Dissent , jgart X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/cpp.scm (argagg): New variable. Co-authored-by: jgart Co-authored-by: Julien Lepiller Co-authored-by: Disseminate Dissent --- gnu/packages/cpp.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index bbcdcd6be9..0ce2b681c8 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -77,6 +77,46 @@ (define-module (gnu packages cpp) #:use-module (gnu packages web) #:use-module (gnu packages xml)) +(define-public argagg + (let ((commit "79e4adfa2c6e2bfbe63da05cc668eb9ad5596748") + (revision "0")) + (package + (name "argagg") + (version (git-version "0.4.6" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/vietjtnguyen/argagg") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1flkgh524lq3024p7ld5lg743s1v7qnbmgv77578rzmn2rjzr77n")))) + (build-system cmake-build-system) + (outputs '("out" "doc")) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'install 'move-doc + (lambda* (#:key outputs #:allow-other-keys) + (let* ((name ,(package-name argagg)) + (out (assoc-ref outputs "out")) + (doc (assoc-ref outputs "doc"))) + (mkdir-p (string-append doc "/share/doc")) + (rename-file + (string-append out "/share/doc/" name) + (string-append doc "/share/doc/" name)))))))) + (native-inputs + `(("doxygen" ,doxygen))) + (home-page "https://github.com/vietjtnguyen/argagg") + (synopsis "C++11 command line argument parser") + (description "ArgAgg is yet another C++ command line argument/option parser. +It was written as a simple and idiomatic alternative to other frameworks like +getopt, Boost program options, TCLAP, and others. The goal is to achieve the +majority of argument parsing needs in a simple manner with an easy to use API.") + (license license:expat)))) + (define-public asmjit (let ((commit "4ec760a3d1f69e32ba460ecd2513f29b8428700b") (revision "0")) -- 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 09 08:46:37 2021 Received: (at 51885) by debbugs.gnu.org; 9 Dec 2021 13:46:37 +0000 Received: from localhost ([127.0.0.1]:42936 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvJkr-0003Kl-92 for submit@debbugs.gnu.org; Thu, 09 Dec 2021 08:46:37 -0500 Received: from out1.migadu.com ([91.121.223.63]:18005) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvJkp-0003Kb-Jg for 51885@debbugs.gnu.org; Thu, 09 Dec 2021 08:46:36 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1639057594; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uUW2nmcqzfYE40pgPLu4DaJ7uhlnmZd2ixbWzoRQVrU=; b=Af8yODs3HDIorTmCvNVLwiEzwJadeMTscKVL6bksK8blnjh0RxvKDKGRY4eFDibJAtNHwe wB1l3vvBAePd3jip+/mw2NgijMyj68kzwXSrEIdOeoS0z06GTe5i9LM3HUu2yfY5Dpd8qh 2BmBVs5Kmh+9+UKF7gpDxj1XNqP/nc3ylFM6RrNcJv51WXsSJkPKJxM2pTF+ib2oHUYGr9 z4akvUjVLS6EqiLYy2P8r04/AgW3SQ7p6/5kPbDcFzJ1IgHyDedyTPUGYVIRsJmRJtqMOi 9j3EU5E84/uNJ4X7D9uUNOGIm8pK1fiOK+njn/Qgboa8tzAfp2fXbzUCHleThg== From: Raghav Gururajan To: 51885@debbugs.gnu.org Subject: [PATCH v7 3/3] gnu: Add blacksmith. Date: Thu, 9 Dec 2021 08:45:47 -0500 Message-Id: <20211209134547.3139-3-rg@raghavgururajan.name> In-Reply-To: <20211209134547.3139-1-rg@raghavgururajan.name> References: <20211209134547.3139-1-rg@raghavgururajan.name> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rg@raghavgururajan.name X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 51885 Cc: Raghav Gururajan X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/cybersecurity.scm (blacksmith): New variable. --- gnu/packages/cybersecurity.scm | 75 ++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/gnu/packages/cybersecurity.scm b/gnu/packages/cybersecurity.scm index e4614e908e..2ebdf6a8f8 100644 --- a/gnu/packages/cybersecurity.scm +++ b/gnu/packages/cybersecurity.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2020 Jakub Kądziołka ;;; Copyright © 2020, 2021 Tobias Geerinckx-Rice ;;; Copyright © 2021 c4droid +;;; Copyright © 2021 Raghav Gururajan ;;; ;;; This file is part of GNU Guix. ;;; @@ -20,10 +21,14 @@ (define-module (gnu packages cybersecurity) #:use-module (guix download) + #:use-module (guix git-download) #:use-module (guix packages) #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix build-system cmake) #:use-module (guix build-system python) + #:use-module (gnu packages cpp) #:use-module (gnu packages engineering) + #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages python-xyz) #:use-module (gnu packages python-crypto) @@ -32,6 +37,76 @@ (define-module (gnu packages cybersecurity) #:use-module (gnu packages bioinformatics) ;python-intervaltree #:use-module (gnu packages emulators)) +(define-public blacksmith + (package + (name "blacksmith") + (version "0.0.1") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/comsec-group/blacksmith") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0kyp71wndf527dgza5iks5m5vj543mvxp5w7cjd8x0pilmd1xrls")) + (modules '((guix build utils))) + (snippet + `(begin + (delete-file-recursively "external") + (substitute* "CMakeLists.txt" + (("add_subdirectory\\(external\\)") "") + (("[ \t]*FetchContent_MakeAvailable\\(asmjit\\)") + (string-append "find_package(asmjit)\n" + "find_package(nlohmann_json)"))) + #t)))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f ;no test-suite + #:imported-modules + ((guix build copy-build-system) + ,@%cmake-build-system-modules) + #:modules + (((guix build copy-build-system) + #:prefix copy:) + (guix build cmake-build-system) + (guix build utils)) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-build + (lambda _ + (substitute* "CMakeLists.txt" + ;; Use default C++ standard instead. + (("cxx_std_17") "") + ;; This project tries to link argagg library, + ;; which doesn't exist, as argagg project + ;; is a single header file. + (("argagg") "")))) + (replace 'install + (lambda args + (apply (assoc-ref copy:%standard-phases 'install) + #:install-plan + '(("." "bin" + #:include ("blacksmith")) + ("." "lib" + #:include-regexp ("\\.a$"))) + args)))))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (inputs + `(("argagg" ,argagg) + ("asmjit" ,asmjit) + ("json-modern-cxx" ,json-modern-cxx))) + (home-page "https://comsec.ethz.ch/research/dram/blacksmith") + (synopsis "Rowhammer fuzzer with non-uniform and frequency-based patterns") + (description "Blacksmith is an implementation of Rowhammer fuzzer that +crafts novel non-uniform Rowhammer access patterns based on the concepts of +frequency, phase, and amplitude. It is able to bypass recent +@acronym{TRR, Target Row Refresh}in-DRAM mitigations effectively and as such can +trigger bit flips.") + (license license:expat))) + (define-public ropgadget (package (name "ropgadget") -- 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 14 04:00:53 2022 Received: (at submit) by debbugs.gnu.org; 14 Jan 2022 09:00:53 +0000 Received: from localhost ([127.0.0.1]:35562 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8IS4-0004rD-HJ for submit@debbugs.gnu.org; Fri, 14 Jan 2022 04:00:52 -0500 Received: from lists.gnu.org ([209.51.188.17]:41696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8IS2-0004pI-ME for submit@debbugs.gnu.org; Fri, 14 Jan 2022 04:00:51 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44138) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n8IRs-00011x-J2 for guix-patches@gnu.org; Fri, 14 Jan 2022 04:00:42 -0500 Received: from [2001:4b98:dc4:8::231] (port=57879 helo=relay11.mail.gandi.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n8IRp-00015V-Tw for guix-patches@gnu.org; Fri, 14 Jan 2022 04:00:40 -0500 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by relay11.mail.gandi.net (Postfix) with ESMTPSA id D2C2E10001A; Fri, 14 Jan 2022 09:00:27 +0000 (UTC) From: Nicolas Goaziou To: Raghav Gururajan via Guix-patches via Subject: Re: [bug#51885] Blacksmith - Rowhammer Fuzzer References: Date: Fri, 14 Jan 2022 10:00:26 +0100 In-Reply-To: (Raghav Gururajan via Guix-patches via's message of "Mon, 15 Nov 2021 18:58:35 -0500") Message-ID: <8735lq66ad.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2001:4b98:dc4:8::231 (failed) Received-SPF: pass client-ip=2001:4b98:dc4:8::231; envelope-from=mail@nicolasgoaziou.fr; helo=relay11.mail.gandi.net X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit Cc: 51885-done@debbugs.gnu.org, Raghav Gururajan X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) Hello, Raghav Gururajan via Guix-patches via writes: > I am opening this thread for packaging blacksmith > (https://comsec.ethz.ch/research/dram/blacksmith/). I applied the v7 of this patch set. Thank you. Regards, -- Nicolas Goaziou From unknown Fri Jun 20 07:13:39 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 11 Feb 2022 12:24:13 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator