From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id KFqIDqRVHWUo4wAAauVa8A:P1 (envelope-from ) for ; Wed, 04 Oct 2023 14:08:04 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id KFqIDqRVHWUo4wAAauVa8A (envelope-from ) for ; Wed, 04 Oct 2023 14:08:04 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7C1584642E for ; Wed, 4 Oct 2023 14:08:03 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b="aIYClFv/"; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1696421284; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=PsiJqOEJyc9qgm33v6ig4DP9QtnqcCCUVG1a/vAWrN4=; b=U6Ap0fh7ClaDtHDICb1yVAicaQCiYxmGW9UVzPWvKG52YoYNHnYQexisG4Wg94JYk2/+rB zNx9OwiRTxnH7RbRs+oipxRN/5ApQ9uaFgjqyyOF2pWkxY33HMbgOjkCytcW6cR67kiCG7 xecEZvpdJLCg3oXEcvpEIdObKODhiMJPYIXvtJZH/vpkoD3LFMj8S+NyZI1zAQtB18qagd +RBfdnEMJySg5X8dDDMIg+nR0sSamWNfmNFElJG/XeBEUTPeY9jhE8BzMTPcYS7niEt4A9 x1zey1PmuHufpEv5n7cTrxxMjnX36FVahi0Rwi5qsDkN3r0nrQ8n3d+uFDhTiA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1696421284; a=rsa-sha256; cv=none; b=mTUjC5xeEy+/dCaOtRKnDk+PAvgalVN2/sA8Hj9PmBGrfukdmZnzIJiOgG152rO+fWWuhV rKly6snu3IKVjTt5nb6uAXmUBulAGt7pW3RCjDGISp7VF79qkfcQpkEA5NRJYZm2MkfaKJ LnKS+U/tacJqn98xpod+uwI64YU2PygqVPg9Hl9E1m7otMu46JyIS76PDXW7OIHj1WNkYK O1KgVubWOHjG5CNzlBY4mqW9zE8ZOXDw1pRaQ+9WwP4NGcd0DQPvUTc1QKenrcFD+CvaNn LB6AAOX54Wcv/JBalKNHKtvhXBZ83KAzU49NcOI4J+9sgJIb6mygX/1/L9QKfw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b="aIYClFv/"; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qo0fM-00054U-Tt; Wed, 04 Oct 2023 08:07:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qo0fI-0004oG-QQ for bug-guix@gnu.org; Wed, 04 Oct 2023 08:07:44 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qo0fI-0005vc-Gx for bug-guix@gnu.org; Wed, 04 Oct 2023 08:07:44 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qo0fa-00041H-2I for bug-guix@gnu.org; Wed, 04 Oct 2023 08:08:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#50015: Rust packages are not reproducible Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 04 Oct 2023 12:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50015 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxim Cournoyer Cc: 50015@debbugs.gnu.org, Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 50015-submit@debbugs.gnu.org id=B50015.169642123715382 (code B ref 50015); Wed, 04 Oct 2023 12:08:02 +0000 Received: (at 50015) by debbugs.gnu.org; 4 Oct 2023 12:07:17 +0000 Received: from localhost ([127.0.0.1]:41747 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qo0eq-000402-H1 for submit@debbugs.gnu.org; Wed, 04 Oct 2023 08:07:16 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:44184) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qo0en-0003zi-JW for 50015@debbugs.gnu.org; Wed, 04 Oct 2023 08:07:14 -0400 Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-317c3ac7339so1976863f8f.0 for <50015@debbugs.gnu.org>; Wed, 04 Oct 2023 05:06:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696421210; x=1697026010; darn=debbugs.gnu.org; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender:from:to :cc:subject:date:message-id:reply-to; bh=PsiJqOEJyc9qgm33v6ig4DP9QtnqcCCUVG1a/vAWrN4=; b=aIYClFv/NAk7B5uRPrkM30+558+gQO3U6q93SDdzcH8Kj5QK66LdULhh2DyD+8zrPT hB0LhFTIbbZCCTeyLRr0M+E85+jq218M2/hSQ8Ynrm6ZEwdEueriSSxfgwgJLaXTzjGv w8QQB7OHts5uKwndVwQpKTz99TvfjbVuJrImXjMJaTnq6ZQsHnrGKKdWkM+UTm0XqjEj +u2mmR5zDL3FsMoWYREGtNAm6/2l8QLY+o/DBCJxiR22eW4su9NjBePo2gzopA4eYF53 WKQyE2a+VW+Mj0DT5XbJ7R9dzwL5kEn3M03Q446YAJySBD5BBxmi6dDc0rc3w6scw2VY TDHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696421210; x=1697026010; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=PsiJqOEJyc9qgm33v6ig4DP9QtnqcCCUVG1a/vAWrN4=; b=cLzcq78WSbpvF1jJ/rJ3dZvLorvEHVzyZgn5KCOB/532FMZ66XVIiAnV0nad1/A7jQ R0k06wzcbZaEfS6run4r1SZAm/gWbJfzGErw7YkBtK9nUS7zAkoCNu6th8vylOhorosw eORtQkMCTqoX9LAIqV6rGyLlWk5WYUObYH8R+Oq1z7KDbT25ZGFwGlNTB1o5gfAQLDcq 7PlC6n0VFOkGNjEEgB2A/sA0Vm9QAkx7Wa1u8jNzrqsh6hk0uEEzb5C68AIir4C36aw2 AwA0uFC/TjGwphW+IITE14cQXyOI9SwQpHN5BdDUgrXbb7wxLrnLrXP3dVHYH1BW9Pbg 5Ffg== X-Gm-Message-State: AOJu0Yys+AYCiV8b7q8xl+5D2bSHeptVhRpRu9DjOFpTYVxzhAmsPFgE U3xJqf7/7OTc8HdQ/AoLCoA= X-Google-Smtp-Source: AGHT+IHM+hYcVJKPLjWABzEewHtFy6vEEis93sQ2LoM33I7KsbRM4GwQEm1DT7qkteAPbOzZlLGrdA== X-Received: by 2002:adf:f00e:0:b0:323:30bb:f19c with SMTP id j14-20020adff00e000000b0032330bbf19cmr1976629wro.10.1696421208941; Wed, 04 Oct 2023 05:06:48 -0700 (PDT) Received: from localhost ([2a02:ed3:916:6300:c3db:b80e:a694:a54f]) by smtp.gmail.com with ESMTPSA id k7-20020a7bc407000000b004053a6b8c41sm1345027wmi.12.2023.10.04.05.06.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 05:06:48 -0700 (PDT) Date: Wed, 4 Oct 2023 15:06:45 +0300 From: Efraim Flashner Message-ID: Mail-Followup-To: Efraim Flashner , Maxim Cournoyer , Ludovic =?UTF-8?Q?Court=C3=A8s?= , 50015@debbugs.gnu.org References: <87czqjk7j6.fsf@inria.fr> <874kbvhysf.fsf@gnu.org> <87sf6r2hfc.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="BLYFQ1yfjLCwDB0i" Content-Disposition: inline In-Reply-To: <87sf6r2hfc.fsf@gmail.com> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -3.46 X-Migadu-Spam-Score: -3.46 X-Migadu-Scanner: mx1.migadu.com X-Migadu-Queue-Id: 7C1584642E X-TUID: W4iHC2W8EZua --BLYFQ1yfjLCwDB0i Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 03, 2023 at 11:30:15PM -0400, Maxim Cournoyer wrote: > Hello, >=20 > Ludovic Court=C3=A8s writes: >=20 > > Hello! > > > > Efraim Flashner skribis: > > > >> I tried patching this a couple of ways, but it looks like the best > >> option is going to be a 'patch-and-repack phase after 'install. the > >> .crate file is really a gzip tarball, and I suspect that each time we > >> run 'cargo ' the timestamp gets updated. > > > > So that =E2=80=98Cargo.toml=E2=80=99 file is not something taken from t= he build tree? > > In that case we could reset the timestamp before the tarball is > > created. But otherwise yeah, patch=E2=80=99n=E2=80=99repack. >=20 > A better solution would be to have cargo honor SOURCE_DATE_EPOCH, > perhaps? They'd probably accept such an improvement upstream. That'd be an interesting idea, having 'cargo package' set the timestamp of all the files to SOURCE_DATE_EPOCH. I guess I can look into how feasible that would be and if they'd be likely to accept a change like that. I have a local patch which unpacks, resets the timestamp and repacks the crate. I'll definitely push it to the rust-team branch before the next merge. With it I introduced an issue where the 'package phase would repack all the crates, not just the current one, and ran into our underscore-to-dash naming convention causing issues with how I'm reusing the filename to work on the crate. I'll fix that, probably by only repacking the current crate instead of all crates in the environment. --=20 Efraim Flashner =D7=A8=D7=A0=D7=A9=D7=9C=D7=A4 = =D7=9D=D7=99=D7=A8=D7=A4=D7=90 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --BLYFQ1yfjLCwDB0i Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmUdVVIACgkQQarn3Mo9 g1HXHxAAqG3s3jHRAofavwgCwo1KCg/NnOaDX/ipXPQQg71utElLsv4J9uUaeQLk IZQZMUXnyFUeH/dj36bAMP6Cgi9z5k7dqd9M4MyaW2QFUP4ZNBl90uuTgmp4CoXF 7nVSlPcFiRn8jVx5brafuNkzVR2H8Zd+D+RHcVAZtKsqAxITjkatmrCtCabq9PC3 LZFBIYyWa2GKCvlwuqmECPrFhl4vTHeADDU9tPSYFqtZAgt2v2ILNCffffyo12uN wrhQ7nqI8puazBJlz3fFYZf/2Y0zy6Izayg9SgNXmLIiCDApFsXqT/iAK4USJjDb N5WEvsMRniB4MdNPkEN/QYzNf4pjKyImXeaAd/cF/m4X+wdoDUQI/fYBqQ4E9SEx lo6CUYqFaqwfTlszr+OjNndF98jrk8myLBrTjkTe+LqK+gvbkQDwZCiuxJF2M7iC Z2rMy2uPgZ0npFCPs0tsLxZzD3AdqkVse37vRICmIZ0Iu4qQfD7yYNqpcJXmozhU YxannRpfwlIpuf3oX3rMSz9+jxpmNTQT141rGn/rK+EfbzucuFpZ71tKK9FezmBp sigb/+ZagPA3AA1ZnLB+X/3PNBIt9OoZYXU13jyb3cktZPMcWitW55MJNzrFzPeI xM9GM116lEF+vfFFm2pemn4acEN7eAWgxDpqOj42STdok5KSOl4= =PojS -----END PGP SIGNATURE----- --BLYFQ1yfjLCwDB0i--