From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:40795) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hsHCJ-00066Z-QM for guix-patches@gnu.org; Mon, 29 Jul 2019 21:45:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hsHCI-0005fc-R5 for guix-patches@gnu.org; Mon, 29 Jul 2019 21:45:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40553) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hsHCI-0005ek-NM for guix-patches@gnu.org; Mon, 29 Jul 2019 21:45:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hsHCI-000305-Go for guix-patches@gnu.org; Mon, 29 Jul 2019 21:45:02 -0400 Subject: [bug#36841] [PATCH] build/cargo-build-system: Patch cargo checksums. Resent-Message-ID: Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) From: Ivan Petkov In-Reply-To: <20190729190422.6834-1-efraim@flashner.co.il> Date: Mon, 29 Jul 2019 18:44:31 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20190729190422.6834-1-efraim@flashner.co.il> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Efraim Flashner Cc: 36841@debbugs.gnu.org Hi Efraim, > On Jul 29, 2019, at 12:04 PM, Efraim Flashner = wrote: >=20 > +;; After patching the 'patch-generated-file-shebangs phase any = vendored crates > +;; will have a mismatch on their checksum. > +(define* (patch-cargo-checksums #:key > + (vendor-dir "guix-vendor") > + #:allow-other-keys) [snip] > + (replace 'install install) > + (add-after 'patch-generated-file-shebangs 'patch-cargo-checksums = patch-cargo-checksums))) I can=E2=80=99t quite remember the order the phases run in off the top = of my head. Would it be possible to make the configure/checksum generation phase run after shebang-patching = (or ensure the patching happens first)? It would avoid having to checksum all the files twice = that way=E2=80=A6 =E2=80=94Ivan=