From unknown Sat Aug 16 11:40:20 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#57560 <57560@debbugs.gnu.org> To: bug#57560 <57560@debbugs.gnu.org> Subject: Status: [PATCH 0/4] Fix multiple hashcat issue. Reply-To: bug#57560 <57560@debbugs.gnu.org> Date: Sat, 16 Aug 2025 18:40:20 +0000 retitle 57560 [PATCH 0/4] Fix multiple hashcat issue. reassign 57560 guix-patches submitter 57560 Maxime Devos severity 57560 normal tag 57560 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 03 08:05:00 2022 Received: (at submit) by debbugs.gnu.org; 3 Sep 2022 12:05:00 +0000 Received: from localhost ([127.0.0.1]:41091 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oURtU-0002jb-90 for submit@debbugs.gnu.org; Sat, 03 Sep 2022 08:05:00 -0400 Received: from lists.gnu.org ([209.51.188.17]:59336) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oURtS-0002jR-Kw for submit@debbugs.gnu.org; Sat, 03 Sep 2022 08:04:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56284) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oURtQ-0006ea-V2 for guix-patches@gnu.org; Sat, 03 Sep 2022 08:04:58 -0400 Received: from albert.telenet-ops.be ([2a02:1800:110:4::f00:1a]:51672) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oURtO-0005XS-FK for guix-patches@gnu.org; Sat, 03 Sep 2022 08:04:56 -0400 Received: from [IPV6:2a02:1811:8c09:9d00:5dba:d409:33f7:a16] ([IPv6:2a02:1811:8c09:9d00:5dba:d409:33f7:a16]) by albert.telenet-ops.be with bizsmtp id FQ4j2800720ykKC06Q4jRL; Sat, 03 Sep 2022 14:04:43 +0200 Message-ID: <2fb077fe-19b5-bc02-fd36-4de31fe414fa@telenet.be> Date: Sat, 3 Sep 2022 14:04:42 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Content-Language: en-US To: "guix-patches@gnu.org" From: Maxime Devos Subject: [PATCH 0/4] Fix multiple hashcat issue. Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------kk5leCcKxWyVdDLwDe0TRRTU" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1662206683; bh=Mylc6jd71hIW66HAZKodnIkUu65HDX8t7yibkKWhaDM=; h=Date:To:From:Subject; b=jG9asgdK2Vwj8vOCBL1d3Sv1eh8XHC0J0qA7b5IgBTTSFVXpZysZJ6rxBCArxz5GC gWoQanB/erAia835+X3JcufDKlaJmAIIc8gyfXggVrsT8FwjrURPiA07nedg+45sCw 2G2BJwd7CfoLmC1uoo5nTBQZtxdozPZgY6THX0Upao8sSCLsnR57Xzxb88Con28CXG o46+m01x3O2dHx+KPwckE96WtdM7tjpRBhIUDASMuieXDrYa3HQXupj+w3s3Tp67qa ehjlYWucmDcoiVOp/KQ7mMpiRR6De2RJa9acJCSLDPogGtSwB18jE5eF2jbqE2exzd 5taWT4U0SuGPQ== Received-SPF: pass client-ip=2a02:1800:110:4::f00:1a; envelope-from=maximedevos@telenet.be; helo=albert.telenet-ops.be 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) 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.3 (--) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------kk5leCcKxWyVdDLwDe0TRRTU Content-Type: multipart/mixed; boundary="------------be2kZ77l82a0e2qldjeZMNx0"; protected-headers="v1" From: Maxime Devos To: "guix-patches@gnu.org" Message-ID: <2fb077fe-19b5-bc02-fd36-4de31fe414fa@telenet.be> Subject: [PATCH 0/4] Fix multiple hashcat issue. --------------be2kZ77l82a0e2qldjeZMNx0 Content-Type: multipart/mixed; boundary="------------q4yMljhis8zKjPRPxwxHftBp" --------------q4yMljhis8zKjPRPxwxHftBp Content-Type: multipart/alternative; boundary="------------hitV0GV7y63rFHIRNTcuoq0g" --------------hitV0GV7y63rFHIRNTcuoq0g Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 WC1EZWJidWdzLUNDOiBIZW5kdXJzYWdhIDxoZW5kdXJzYWdhQGFvbC5jb20+DQpYLURlYmJ1 Z3MtQ0M6ICggPHBhcmVuQGRpc3Jvb3Qub3JnPg0KWC1EZWJidWdzLUNDOiBUb2JpYXMgR2Vl cmluY2t4LVJpY2UgPG1lQHRvYmlhcy5ncj4NClgtRGViYnVncy1DQzogTHVkb3ZpYyBDb3Vy dMOocyA8bHVkb0BnbnUub3JnPg0KDQooXiBwZW9wbGUgaW52b2x2ZWQgaW4gIzU3MTg3KQ0K DQpUaGlzIHBhdGNoIHNlcmllczoNCg0KICAqIFJlbW92ZWQgYnVuZGxlZCBsaWJyYXJpZXMs IGV4Y2VwdCBmb3IgTFpNQS1TREsgZm9yIHdoaWNoIEkgZGlkbid0DQogICAgZmluZCBhIGNv cnJlc3BvbmRpbmcgR3VpeCBwYWNrYWdlDQogICogTWFrZXMgaGFzaGNhdCBjcm9zcy1jb21w aWxhYmxlLCBhdCBsZWFzdCBmcm9tIGFuIHg4Nl82NC1saW51eC1nbnUgdG8NCiAgICBhbiBh YXJjaDY0LWxpbnV4LWdudQ0KICAqIFJlbW92ZXMgdGhlIGVtYmVkZGVkIGJ1aWxkIHRpbWUg dGltZXN0YW1wIHJlcG9ydGVkIGluDQogICAgPGh0dHBzOi8vZ3VpeC5nbnUub3JnLzU3MTg3 Pi4NCg0KTXkgY3VycmVudCB3b3JraW5nIHRyZWUgaXMgYSBiaXQgZGlydHksIHNvIHRoZXJl IHdpbGwgYmUgYSBzbWFsbCByZWJhc2UgDQpjb25mbGljdCBiZWNhdXNlIG9mIHRoZSA2LjIu NC0+Ni4yLjUgYW5kIGEgZmV3IGltcG9ydHMgd2lsbCBuZWVkIHRvIGJlIA0KbW92ZWQgdG8g dGhlIHRvcCBvZiB0aGUgZmlsZS4NCg0KR3JlZXRpbmdzLA0KTWF4aW1lLg0KDQo= --------------hitV0GV7y63rFHIRNTcuoq0g Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

X-Debbugs-CC: Hendursaga <hendursaga@aol.com>
X-Debbugs-CC: ( <paren@disroot.org>
X-Debbugs-CC: Tobias Geerinckx-Rice <me@tobias.gr>
X-Debbugs-CC: Ludovic Court=C3=A8s <ludo@gnu.org>

(^ people involved in #57187)

This patch series:

  • Removed bundled libraries, except for LZMA-SDK for which I didn't find a corresponding Guix package
  • Makes hashcat cross-compilable, at least from an x86_64-linux-gnu to an aarch64-linux-gnu
  • Removes the embedded build time timestamp reported in <https://guix.gnu.org/57187>.

My current working tree is a bit dirty, so there will be a small rebase conflict because of the 6.2.4->6.2.5 and a few imports will need to be moved to the top of the file.

Greetings,
Maxime.

--------------hitV0GV7y63rFHIRNTcuoq0g-- --------------q4yMljhis8zKjPRPxwxHftBp Content-Type: application/pgp-keys; name="OpenPGP_0x49E3EE22191725EE.asc" Content-Disposition: attachment; filename="OpenPGP_0x49E3EE22191725EE.asc" Content-Description: OpenPGP public key Content-Transfer-Encoding: quoted-printable -----BEGIN PGP PUBLIC KEY BLOCK----- xjMEX4ch6BYJKwYBBAHaRw8BAQdANPb/d6MrGnGi5HyvODCkBUJPRjiFQcRU5V+m xvMaAa/NL01heGltZSBEZXZvcyA8bWF4aW1lLmRldm9zQHN0dWRlbnQua3VsZXV2 ZW4uYmU+wpAEExYIADgWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCX4ch6AIbAwUL CQgHAwUVCgkICwUWAgMBAAIeAQIXgAAKCRBJ4+4iGRcl7japAQC3opZ2KGWzWmRc /gIWSu0AAcfMwyinFEEPa/QhUt2CogD/e2RdF4CYAgaRHJJmZ9WU7piKbLZ7llB4 LzgezVDHggzNJU1heGltZSBEZXZvcyA8bWF4aW1lZGV2b3NAdGVsZW5ldC5iZT7C kAQTFggAOBYhBMHzPuIMUo/bfdcBH0nj7iIZFyXuBQJf56ycAhsDBQsJCAcDBRUK CQgLBRYCAwEAAh4BAheAAAoJEEnj7iIZFyXujpQBAKV1SwDDl4f24rXciDlB9L8W ycZt30CgbewMSRQk4mvbAP9dFMbVVixYBd6C8cfhR+NsOBGiOJnQABlUmgNuqGFJ Dc44BF+HIegSCisGAQQBl1UBBQEBB0BOlzIWiJzgobMF6/cqwLaLk7jIcFSZ++c0 k9cCNT6YXwMBCAfCeAQYFggAIBYhBMHzPuIMUo/bfdcBH0nj7iIZFyXuBQJfhyHo AhsMAAoJEEnj7iIZFyXuMr0BAJc8cl5PGvVmVuSQVKjleNl4DK1/XAaPAYPe34AE fZJPAP9IqLCQhH/FeJanHqBP8gNdGNI2qn8RnnLVfRJgUjZ1BA=3D=3D =3DOVqp -----END PGP PUBLIC KEY BLOCK----- --------------q4yMljhis8zKjPRPxwxHftBp-- --------------be2kZ77l82a0e2qldjeZMNx0-- --------------kk5leCcKxWyVdDLwDe0TRRTU Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYxNC2gUDAAAAAAAKCRBJ4+4iGRcl7qqW APwLGWpkl2cmBTLTZ93+xxC591bw9QWva1eyd5ifm2uy2QEAtCqMLO3V2l/W8z3MLy4mt0LdLTSy f4MBB7ZTxiK1UQA= =q+qF -----END PGP SIGNATURE----- --------------kk5leCcKxWyVdDLwDe0TRRTU-- From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 03 08:08:33 2022 Received: (at 57560) by debbugs.gnu.org; 3 Sep 2022 12:08:33 +0000 Received: from localhost ([127.0.0.1]:41103 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oURwu-0002pQ-UU for submit@debbugs.gnu.org; Sat, 03 Sep 2022 08:08:33 -0400 Received: from baptiste.telenet-ops.be ([195.130.132.51]:36488) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oURws-0002p1-OV for 57560@debbugs.gnu.org; Sat, 03 Sep 2022 08:08:31 -0400 Received: from localhost.localdomain ([IPv6:2a02:1811:8c09:9d00:5dba:d409:33f7:a16]) by baptiste.telenet-ops.be with bizsmtp id FQ8U2800e20ykKC01Q8V2Y; Sat, 03 Sep 2022 14:08:29 +0200 From: Maxime Devos To: 57560@debbugs.gnu.org Subject: [PATCH 4/4] gnu: hashcat: Fix cross-compilation. Date: Sat, 3 Sep 2022 14:08:27 +0200 Message-Id: <20220903120827.25648-4-maximedevos@telenet.be> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220903120827.25648-1-maximedevos@telenet.be> References: <20220903120827.25648-1-maximedevos@telenet.be> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1662206909; bh=qMf1Yl9J+0OdJjyvxxRKLy7IObywe7hVMb9Zuj2t7qM=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=CU8RCC1o1qxtqzwGpXjdB9XPInO6Skk43X/Gf+Xa07bb+ioNds6Xr2e28piLIMm+f 9GGvo66gnCBLF2ZlNeN5tAwyEQUG6N8Vt2JwZu6DkwI4nbShFNalmAUTlQHDKWIBEE WoELkq4pcmzndAnqkJGeCachTIOEIJecqeKJqJcjoZpXJOHr/GEf8+B5PNjy96EOOm cM87G0l718pWFnQXj1h3DSgTJ7xi/Qe25xTjlalS/q/a6ZdltZMWlHInq0HKKzvnof asY51LSTf5bfdC2jWlep/GKahtEQvCfrkVP8NQoW/1/Im6rma4euTIcQ0wWV3QQKlp ZU5jHnRoNfAmg== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 57560 Cc: Maxime Devos 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/password-utils.scm (hashcat)[native-inputs]: Move to ... (hashcat)[inputs]: ... here. (hashcat)[arguments]<#:make-flags>: Set AR and CC. --- gnu/packages/password-utils.scm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm index 172f633449..f92c47d539 100644 --- a/gnu/packages/password-utils.scm +++ b/gnu/packages/password-utils.scm @@ -1110,8 +1110,8 @@ (define-public pass-rotate your online accounts makes it necessary.") (license license:expat))) -;; XXX: move this import upwards before merging this patch -(use-modules (gnu packages digest)) +;; XXX: move these imports upwards before merging this patch +(use-modules (gnu packages digest) (guix utils)) (define-public hashcat (package (name "hashcat") @@ -1130,13 +1130,13 @@ (define-public hashcat ;; TODO: Unbundle LZMA-SDK as well #~(for-each delete-file-recursively '("deps/zlib" "deps/xxHash" "deps/OpenCL-Headers"))))) - (native-inputs - (list opencl-headers)) - (inputs (list minizip xxhash zlib)) + (inputs (list minizip opencl-headers xxhash zlib)) (build-system gnu-build-system) (arguments (list #:tests? #f ;no tests - #:make-flags #~(list (string-append "PREFIX=" + #:make-flags #~(list (string-append "AR=" #$(ar-for-target)) + (string-append "CC=" #$(cc-for-target)) + (string-append "PREFIX=" #$output) (string-append "USE_SYSTEM_ZLIB=1") (string-append "USE_SYSTEM_OPENCL=1") -- 2.37.2 From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 03 08:08:33 2022 Received: (at 57560) by debbugs.gnu.org; 3 Sep 2022 12:08:33 +0000 Received: from localhost ([127.0.0.1]:41105 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oURwv-0002pT-8Y for submit@debbugs.gnu.org; Sat, 03 Sep 2022 08:08:33 -0400 Received: from baptiste.telenet-ops.be ([195.130.132.51]:36482) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oURws-0002p0-Os for 57560@debbugs.gnu.org; Sat, 03 Sep 2022 08:08:31 -0400 Received: from localhost.localdomain ([IPv6:2a02:1811:8c09:9d00:5dba:d409:33f7:a16]) by baptiste.telenet-ops.be with bizsmtp id FQ8U2800e20ykKC01Q8V2T; Sat, 03 Sep 2022 14:08:29 +0200 From: Maxime Devos To: 57560@debbugs.gnu.org Subject: [PATCH 3/4] hashcat: Rewrite with G-exps. Date: Sat, 3 Sep 2022 14:08:26 +0200 Message-Id: <20220903120827.25648-3-maximedevos@telenet.be> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220903120827.25648-1-maximedevos@telenet.be> References: <20220903120827.25648-1-maximedevos@telenet.be> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1662206909; bh=98FuedL64G2/KA9dmYLwbJOkYmByenn1M5bH5GD/XHI=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=le1XbjVYX9JULMSc/OHzvM3jfq2NdETYnLiLv3utmG9qt/m0UFA4e4KMgs30OuHB9 35XdrciHhB22qNJOW7oDyi+myuff/IPVtc7fjGNCbI0jE8Q/Sw49Di5GT1a2nED36q PTEniUR4y+SEVDZmpusKtdGsLAvUaR5xw651CklnWOQc63Px+p0nym+ot/1Q9GEEcO ndXtJ76WdDFQAQjU4NNxO/SN1X8C2Tp84hmWMykzUCQS+depWj0XWSw9oD8v9QEmjs C0E80f45wKWRJBasNJLA/lsad4wt75XLn3OB4FL/ftcSpC6pTRjOMPOJrsRDfbupj9 rsIDG+nujx1+w== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 57560 Cc: Maxime Devos 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 (-) This is required for cross-compilation, as %output does not exist when cross-compiling. * gnu/packages/password-utils.scm (hashcat)[arguments]: Rewrite with G-exps. --- gnu/packages/password-utils.scm | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm index ec4aff048a..172f633449 100644 --- a/gnu/packages/password-utils.scm +++ b/gnu/packages/password-utils.scm @@ -1135,21 +1135,19 @@ (define-public hashcat (inputs (list minizip xxhash zlib)) (build-system gnu-build-system) (arguments - '(#:tests? #f ;no tests - #:make-flags (list (string-append "PREFIX=" %output) - ;; TODO: unbundle - ;; (string-append "USE_SYSTEM_LZMA=1") - (string-append "USE_SYSTEM_ZLIB=1") - (string-append "USE_SYSTEM_OPENCL=1") - (string-append "USE_SYSTEM_XXHASH=1")) - #:phases - (modify-phases %standard-phases - ;; Don't embed timestamps, for bit-for-bit reproducibility. - (add-after 'unpack 'fix-reproducibility - (lambda _ - (substitute* "src/Makefile" - (("\\$\\(shell date \\+%s\\)") "0")))) - (delete 'configure)))) + (list #:tests? #f ;no tests + #:make-flags #~(list (string-append "PREFIX=" + #$output) + (string-append "USE_SYSTEM_ZLIB=1") + (string-append "USE_SYSTEM_OPENCL=1") + (string-append "USE_SYSTEM_XXHASH=1")) + #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'fix-reproducibility + (lambda _ + (substitute* "src/Makefile" + (("\\$\\(shell date \\+%s\\)") + "0")))) + (delete 'configure)))) (home-page "https://hashcat.net/hashcat/") (synopsis "Advanced password recovery utility") (description "Hashcat is an password recovery utility, supporting five -- 2.37.2 From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 03 08:08:34 2022 Received: (at 57560) by debbugs.gnu.org; 3 Sep 2022 12:08:34 +0000 Received: from localhost ([127.0.0.1]:41107 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oURwv-0002pa-Jx for submit@debbugs.gnu.org; Sat, 03 Sep 2022 08:08:33 -0400 Received: from baptiste.telenet-ops.be ([195.130.132.51]:36466) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oURws-0002oy-Os for 57560@debbugs.gnu.org; Sat, 03 Sep 2022 08:08:31 -0400 Received: from localhost.localdomain ([IPv6:2a02:1811:8c09:9d00:5dba:d409:33f7:a16]) by baptiste.telenet-ops.be with bizsmtp id FQ8U2800e20ykKC01Q8V2P; Sat, 03 Sep 2022 14:08:29 +0200 From: Maxime Devos To: 57560@debbugs.gnu.org Subject: [PATCH 2/4] hashcat: Unbundle everything but LZMA-SDK. Date: Sat, 3 Sep 2022 14:08:25 +0200 Message-Id: <20220903120827.25648-2-maximedevos@telenet.be> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220903120827.25648-1-maximedevos@telenet.be> References: <20220903120827.25648-1-maximedevos@telenet.be> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1662206909; bh=82Wsz2dmChD37Q4JROgnOBtQA0Wi2jhTlgfjq0oSjlA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=QYykUgvvY44iL9zSIkzgghzgrHgSKxfb9JYyNk7PytUbXzetJbAFGZyldPH+cQCOd AQvsTRNllU+XHF/zo3bcz3lzNhaKXEu1fZBAKodV1DXN3Fqi7i9iWnvvg5LwBkPbW3 75XHe05A4x9jPinW/cDbxRTnoWPOEPeiHPb+4b96ZNTpaiN2pWmbdhD6R44XldCNgR sEPmguojKplUj0cL8BbNJ91c7/+Ffx13e7yDA9AS0e76YUYDt4VDZudllKM5OlZYzy 88z/uDmMicMUXUngQwQQTEFbmoQgVl8224f9jrOIHyNW3jfv9a1Irr3r5oHeIgKJMq ZgAKYC9Kz7L1A== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 57560 Cc: Maxime Devos 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 (-) There does not appear to be a convenient Guix package for LZMA-SDK yet. I currently have a bit of a dirty working tree (fiddling with imports), so the use-modules is in the wrong place. Also, a small rebase conflict, the version and source hash of hashcat has been updated. * gnu/packages/password-utils.scm (hashcat)[source]{snippet}: Delete everything from deps except for deps/LZMA-SDK. (hashcat)[inputs]: Add minizip, xxhash and zlib. (hashcat)[arguments]<#:make-flags>: Add USE_SYSTEM_ZLIB, USE_SYSTEM_OPENCL and USE_SYSTEM_XXHASH. --- gnu/packages/password-utils.scm | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm index f64a205610..ec4aff048a 100644 --- a/gnu/packages/password-utils.scm +++ b/gnu/packages/password-utils.scm @@ -1110,6 +1110,8 @@ (define-public pass-rotate your online accounts makes it necessary.") (license license:expat))) +;; XXX: move this import upwards before merging this patch +(use-modules (gnu packages digest)) (define-public hashcat (package (name "hashcat") @@ -1121,13 +1123,25 @@ (define-public hashcat version ".tar.gz")) (sha256 (base32 - "104z63m7lqbb0sdrxhf9yi15l4a9zwf9m6zs9dbb3gf0nfxl1h9r")))) + "104z63m7lqbb0sdrxhf9yi15l4a9zwf9m6zs9dbb3gf0nfxl1h9r")) + (modules '((guix build utils))) + ;; Delete bundled libraries. + (snippet + ;; TODO: Unbundle LZMA-SDK as well + #~(for-each delete-file-recursively + '("deps/zlib" "deps/xxHash" "deps/OpenCL-Headers"))))) (native-inputs (list opencl-headers)) + (inputs (list minizip xxhash zlib)) (build-system gnu-build-system) (arguments '(#:tests? #f ;no tests - #:make-flags (list (string-append "PREFIX=" %output)) + #:make-flags (list (string-append "PREFIX=" %output) + ;; TODO: unbundle + ;; (string-append "USE_SYSTEM_LZMA=1") + (string-append "USE_SYSTEM_ZLIB=1") + (string-append "USE_SYSTEM_OPENCL=1") + (string-append "USE_SYSTEM_XXHASH=1")) #:phases (modify-phases %standard-phases ;; Don't embed timestamps, for bit-for-bit reproducibility. -- 2.37.2 From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 03 08:08:35 2022 Received: (at 57560) by debbugs.gnu.org; 3 Sep 2022 12:08:35 +0000 Received: from localhost ([127.0.0.1]:41109 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oURwx-0002pn-0D for submit@debbugs.gnu.org; Sat, 03 Sep 2022 08:08:35 -0400 Received: from baptiste.telenet-ops.be ([195.130.132.51]:36460) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oURws-0002ox-Oi for 57560@debbugs.gnu.org; Sat, 03 Sep 2022 08:08:32 -0400 Received: from localhost.localdomain ([IPv6:2a02:1811:8c09:9d00:5dba:d409:33f7:a16]) by baptiste.telenet-ops.be with bizsmtp id FQ8U2800e20ykKC01Q8V2M; Sat, 03 Sep 2022 14:08:29 +0200 From: Maxime Devos To: 57560@debbugs.gnu.org Subject: [PATCH 1/4] hashcat: Don't embed timestamp, fixing reproducibility. Date: Sat, 3 Sep 2022 14:08:24 +0200 Message-Id: <20220903120827.25648-1-maximedevos@telenet.be> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1662206909; bh=x1SSy3HbX1fJBZf79eOJF1Z3xt0+3kGRGd3GDCf1jK8=; h=From:To:Cc:Subject:Date; b=VbeTpbHpWaWTPNuRRzOioQZuA56g0MxTK+wNUJvUNFL8ZMOaoXFB84yUUMGrSRAtC 2odJNOfn8wqMtc+kznEiiJlzkeYZu/csT5u9nKR738pTNxnk+cJxmYfkwb3LadkLMz aOlK29zfMrZCgoCAr67aPELpB6YlZ70kxQHeZaYYLrm9yLxS4+SPjtg7QOZpOyt43n Il24Dz+5YUoQdE/LfMFxE/D+SdMTd+UqWZnmoannad42WlFi1YQm3Sp38xR1FRmtXA c4MwTuqxFJtyYf6YMI+dzJERDwfuTyOxumyQSKAcYyZaSj+JEzHZMaR8c+I0TDe0G1 c/tYkBRTmXchw== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 57560 Cc: Maxime Devos 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/password-utils.scm (hashcat)[arguments]{#:phases}: Remove timestamp, fixing reproducibility. --- gnu/packages/password-utils.scm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm index 0069fdd74c..f64a205610 100644 --- a/gnu/packages/password-utils.scm +++ b/gnu/packages/password-utils.scm @@ -35,6 +35,7 @@ ;;; Copyright © 2020 Hartmut Goebel ;;; Copyright © 2021 David Dashyan ;;; Copyright © 2022 Maxim Cournoyer +;;; Copyright © 2022 Maxime Devos ;;; ;;; This file is part of GNU Guix. ;;; @@ -1129,6 +1130,11 @@ (define-public hashcat #:make-flags (list (string-append "PREFIX=" %output)) #:phases (modify-phases %standard-phases + ;; Don't embed timestamps, for bit-for-bit reproducibility. + (add-after 'unpack 'fix-reproducibility + (lambda _ + (substitute* "src/Makefile" + (("\\$\\(shell date \\+%s\\)") "0")))) (delete 'configure)))) (home-page "https://hashcat.net/hashcat/") (synopsis "Advanced password recovery utility") base-commit: 57f8f69562e942557e3331bb81c7e4acd973d189 prerequisite-patch-id: 78c06b38a189109a5108a157d39ffe7eab8be109 prerequisite-patch-id: aaf0731113d36df901ed2186975e3bb872ec22c0 prerequisite-patch-id: 28e8223cfd59adf84007db9ceefd8a78c41fd10d prerequisite-patch-id: fb73228d99c36f50e2959c2303c7c707460fd147 prerequisite-patch-id: 7626f1464f4926416fb13daf3d846176aa93f51b prerequisite-patch-id: 445c6f624e99627959f2e54a6ee97337c44d9ea6 prerequisite-patch-id: 7a16c500faec9d58700a2b50b26bded079e9c3ac prerequisite-patch-id: f7d406c61e069c04c3b7da453192f51c04763db1 prerequisite-patch-id: 4674bf40052d97215f837c9dfd4e7e1ae999492d prerequisite-patch-id: 6259468375bfa157277521b17fdd97d6ab0748b7 prerequisite-patch-id: 9d14b38a33b68883c43d6b26dcdbdf7c28e417e7 prerequisite-patch-id: f0e3faffe768e9c660b0a9340042acfa0f790308 prerequisite-patch-id: 550485506255a67c0a1cb9ede7778d4d538b6e2a prerequisite-patch-id: 9282e95ff076cc2c742be8d2fede83ac14006f6f prerequisite-patch-id: 1503aa5c698f72ee47b7a987a95c0919efb203c4 prerequisite-patch-id: 24297940086a3780fd7e2e7fa345f262b12efb6f prerequisite-patch-id: c5f647b5472465666328b123f0f314a6138d6293 prerequisite-patch-id: 56386c4df9130221cad664ec161d1ad9713f4dc3 prerequisite-patch-id: f09ccfb7e53bc7934326af603a197344f4ef53f3 prerequisite-patch-id: 0c18c83d1f2da4639b43861103a028706a147022 prerequisite-patch-id: 066bfca8bf0c3d3bc57a14b48aa1e241555c1e86 prerequisite-patch-id: 13d9ac7b0fadc92b9351409df26b41443497a964 prerequisite-patch-id: ad831a04543475288aba1c938078dcc5ad05870e prerequisite-patch-id: ed9ec2d0bea23c2c2dbfa4c62290893f1a938f7f prerequisite-patch-id: 335ce9dbbb2b36b960203a79fdc8f6033ebda2fb prerequisite-patch-id: f2ca362056369913d0b8319187a8f46ea78b6dc7 prerequisite-patch-id: c02a17479ad4e01837fc307cf6defe0ae92e2435 prerequisite-patch-id: 3a794307f3bbd3641023d978f4b359eb2f5a46e4 prerequisite-patch-id: c545007535db365a29dc3a86e10866f5eef7b7d5 prerequisite-patch-id: 8b8fd18762282129e2d034f7cdceb368f53295d6 prerequisite-patch-id: d435d42bafa65f14049740a3d6cf1a163f855f97 prerequisite-patch-id: 27da1b857019b217b25b6795b84577fdc992a84c prerequisite-patch-id: aef95e76144ae5e92a41f81b11e84ddc7ececd91 prerequisite-patch-id: 95aa6b45d93026e4375b53a471f0f96e2016914e prerequisite-patch-id: 715d2bb93fe711e72388458846a0afde6babdc97 prerequisite-patch-id: 1851b8f26420465ac59f7447d9c8bd6698b77130 prerequisite-patch-id: 2bd6d4b30b6c71edef4bc6286a290f8eac5c18bd -- 2.37.2 From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 04 17:08:34 2022 Received: (at 57560-done) by debbugs.gnu.org; 4 Sep 2022 21:08:34 +0000 Received: from localhost ([127.0.0.1]:45797 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUwr4-0000Ip-5X for submit@debbugs.gnu.org; Sun, 04 Sep 2022 17:08:34 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33980) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUwqz-0000IJ-3s; Sun, 04 Sep 2022 17:08:30 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58904) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUwqn-0000dF-9o; Sun, 04 Sep 2022 17:08:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=+mMXrlOBaNNgN1Z6GHbgoTIqeWTo7iIzQx73S28X3vU=; b=oiYtVmt4pf11Tu+FKwcY kPcCa/y1HPrZqcMOJUleqHSqfWbJORz3C8yHiZJn9E30kUjekqWG9G74UxyRwsTfspgf5xHhsIlpX EgKtnljcu/v7iKToDu8EuWKqaJJJMyUQmGZtRzAUOFt97MyqMFRZTZrIqdRQFqVOpW4HOlf7aM45M Kh3UwOpj6DfqL5L1d8Ur50NBHXjPYg2XQjOzIeFcCOAqf1Bx1tmQNgCAPprPX88wSMwm+ucfDGjUG GvL4D0PtlOWTRL7VMYGxgFYGpveAmR9HOTM0YwRNbNopepEtGsynNjW0m4XK9Zoa00gQRb0g7ufbS urPC4tHDWXe8XA==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:52548 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUwqk-0001IL-VN; Sun, 04 Sep 2022 17:08:16 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Maxime Devos Subject: Re: bug#57560: [PATCH 0/4] Fix multiple hashcat issue. References: <2fb077fe-19b5-bc02-fd36-4de31fe414fa@telenet.be> Date: Sun, 04 Sep 2022 23:08:12 +0200 In-Reply-To: <2fb077fe-19b5-bc02-fd36-4de31fe414fa@telenet.be> (Maxime Devos's message of "Sat, 3 Sep 2022 14:04:42 +0200") Message-ID: <87o7vusv9f.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 57560-done Cc: 57187-done@debbugs.gnu.org, 57560-done@debbugs.gnu.org, Hendursaga 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: -3.3 (---) Hi, Maxime Devos skribis: > X-Debbugs-CC: Hendursaga > X-Debbugs-CC: ( > X-Debbugs-CC: Tobias Geerinckx-Rice > X-Debbugs-CC: Ludovic Court=C3=A8s That didn=E2=80=99t work. :-) > This patch series: > > * Removed bundled libraries, except for LZMA-SDK for which I didn't > find a corresponding Guix package > * Makes hashcat cross-compilable, at least from an x86_64-linux-gnu to > an aarch64-linux-gnu > * Removes the embedded build time timestamp reported in > . Perfect! I=E2=80=99ve applied it all. > My current working tree is a bit dirty, so there will be a small > rebase conflict because of the 6.2.4->6.2.5 and a few imports will > need to be moved to the top of the file. Right, I had to fiddle quite a bit with the patches to get them to apply. Thanks! Ludo=E2=80=99. From unknown Sat Aug 16 11:40:20 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 03 Oct 2022 11: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