From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id wAocD2Z/HWW9tgAAG6o9tA:P1 (envelope-from ) for ; Wed, 04 Oct 2023 17:06:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id wAocD2Z/HWW9tgAAG6o9tA (envelope-from ) for ; Wed, 04 Oct 2023 17:06:14 +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 191BF526BF for ; Wed, 4 Oct 2023 17:06:14 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=QGN+PT1u; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1696431974; 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: content-transfer-encoding:content-transfer-encoding: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=cGthC4Hq2rGUXxL0SUKNkD/Lv0Q3JLU0y3rEP9snxZY=; b=ivGkOkHwc54UoW7u0gNIYgdkSmDXu5zIyf0mIxYYr2tTuFQOLu4W+7yGVFn4BsRiDXavcE 4ycUUtNDO4xzW1QDHFsGWXFlcNE8+yKoC1MxXVIVs7uQbiPoPyD7jj8xi1mUN925vMZWHt Uvev+A3pBTJVzThj6dvoe7WWp4KwtcrBvK3SYlEFMZppDWS/nysTzIrUrJZXkIbSQ9W3rT sKdimAsz+PawU5PwlwnIVReJVPbxf2OJZ/CXXWlkzzy8GPVDf6Y+5uLcnj4Bnv2wZiRe+E WdkWknE+7oOsKF9gNdVNIrAPXumngvCTp78n3iIHxxUFVwP0Ay8wWpTAD7lx1g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1696431974; a=rsa-sha256; cv=none; b=GzbqnQ5xZoDGpWvO6qIajm0tmF3U/XMsyn/eo/+bhxFYB2t2vrcboEXhnXdEvp194lQdiu dJXBc1iL0puoAebE8iaSMQzjcpGcZUUJIx9FLRYgI+K5LT+Cmkr6CIGmlMpcq6C2dA9gBR fNP2AAKnhETocadug1lfBqaxOBtFR+M4e8NOFKfZFPIh4cFKAumaXfP7dRpjLoOla7SZSX OiC2R8Kf1xRcHxhZxHKMCyEeJiH/YGS5wS2sFPBdrVMoew6/T6ZdJdSx0eC7f5vGXakcz3 vRYOcHhHMay8z+T12PKRjsSDOodht09sr5fZv2jjE77H75mW9MHp8T4lg2Hxrw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=QGN+PT1u; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qo3Rg-0004nY-DL; Wed, 04 Oct 2023 11:05:52 -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 1qo3Rc-0004j5-9Z for bug-guix@gnu.org; Wed, 04 Oct 2023 11:05:49 -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 1qo3RY-0000xy-1P for bug-guix@gnu.org; Wed, 04 Oct 2023 11:05:47 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qo3Rp-0006S0-Ks for bug-guix@gnu.org; Wed, 04 Oct 2023 11:06:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#50015: Rust packages are not reproducible Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 04 Oct 2023 15:06:01 +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: Efraim Flashner Cc: 50015@debbugs.gnu.org, Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 50015-submit@debbugs.gnu.org id=B50015.169643193424763 (code B ref 50015); Wed, 04 Oct 2023 15:06:01 +0000 Received: (at 50015) by debbugs.gnu.org; 4 Oct 2023 15:05:34 +0000 Received: from localhost ([127.0.0.1]:45168 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qo3RO-0006RK-7N for submit@debbugs.gnu.org; Wed, 04 Oct 2023 11:05:34 -0400 Received: from mail-qt1-x831.google.com ([2607:f8b0:4864:20::831]:62842) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qo3RI-0006Qw-Ck for 50015@debbugs.gnu.org; Wed, 04 Oct 2023 11:05:32 -0400 Received: by mail-qt1-x831.google.com with SMTP id d75a77b69052e-41517088479so8131691cf.1 for <50015@debbugs.gnu.org>; Wed, 04 Oct 2023 08:05:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696431903; x=1697036703; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=cGthC4Hq2rGUXxL0SUKNkD/Lv0Q3JLU0y3rEP9snxZY=; b=QGN+PT1updrN6ajEnU6fgwfFuBrFNO1d00TlMINBPVwo/u/+ih/nGCFNs+j2iIJQfS gYsMPUTkuqd7ICJa/CfXd+/fPqrAD7VbWiLmNZqKzlpjztp9DIQZB6G1nfZkotPkH4kK szzg3dLQGksifpP8HyQX20PnD4IkKDHLCOwdYMaBsw8zLRx7QN8HOfL38ISV/GsX2IJP cbqyhSrYXdqQtqQRW9S7pXLhipTKD4nOElliwuVTlHUngY05Xa0SqdKAjHKZ6odGlxX3 FwUXC0wht+t3PdPl7KSWB/Rx/1XrOrSDfeBLbDhauJlqyI9qr5SIulbLQk9RJMQ7XTW/ TZyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696431903; x=1697036703; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=cGthC4Hq2rGUXxL0SUKNkD/Lv0Q3JLU0y3rEP9snxZY=; b=klNUz1MMsOKgsI2ziXt9x1+5sNa+THMoPBSjFNRjlSu4aJH1mms7FTTBXzNm9yMmBY wv1Rxjl4bQyjVO9Qgt5u1zL9Vin/JzK7Vapf4UUUmtnlisCAYcwe7Mg2Hbl4MpslYwO/ 2bpbxG3ma17nWppYPAExdTqJK0v85tE9jKcKC1atZ5pJAn8WFOBtQxURS9+atS4yUVjR Yp4oadhRDqhbR8676tq02ZK85OuIhW91CifdyANhTvHjTZK5KlMfEBibtoFb7tdiSbHm spJ/ikayAw0PIwoV1OcuB1r4I9QjKRhWpTRzFNsvLoBn1MwCpI6CKslBKmSadLWQJYL5 QJqw== X-Gm-Message-State: AOJu0Ywm67MvV/KSPQIhZOctOUXJsuCqitviuR6EJ7hvYyPSn0BGzT5E eJrFJJf1otRkp7guGh2eJXuYroMHbpLVIw== X-Google-Smtp-Source: AGHT+IHwGAAVfK8he3XOZszR1rq8iYhySFK5+dkLOxOCI5DpU8SdX11kjHEFQ+yogotytMWGHg/rUw== X-Received: by 2002:a05:622a:1804:b0:417:fe21:b254 with SMTP id t4-20020a05622a180400b00417fe21b254mr6609460qtc.18.1696431903463; Wed, 04 Oct 2023 08:05:03 -0700 (PDT) Received: from hurd (dsl-141-24.b2b2c.ca. [66.158.141.24]) by smtp.gmail.com with ESMTPSA id w9-20020ac87189000000b004054db6da1bsm1272531qto.53.2023.10.04.08.05.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 08:05:02 -0700 (PDT) From: Maxim Cournoyer References: <87czqjk7j6.fsf@inria.fr> <874kbvhysf.fsf@gnu.org> <87sf6r2hfc.fsf@gmail.com> Date: Wed, 04 Oct 2023 11:05:01 -0400 In-Reply-To: (Efraim Flashner's message of "Wed, 4 Oct 2023 15:06:45 +0300") Message-ID: <8734yq2ztu.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -5.09 X-Spam-Score: -5.09 X-Migadu-Queue-Id: 191BF526BF X-TUID: kopqYbOj+TbI Hi Efraim, Efraim Flashner writes: > 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 = the 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. >From past interactions with Rust developers (via their web-based chat system), I could get some change merged rather easily. If you are motivated to fix it cleanly I encourage you to pursue that way! --=20 Thanks, Maxim