From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id AKEWJWEwsmLiFQEAbAwnHQ (envelope-from ) for ; Tue, 21 Jun 2022 22:56:01 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id mHYYJGEwsmLHGwEAG6o9tA (envelope-from ) for ; Tue, 21 Jun 2022 22:56:01 +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 59FE319FE5 for ; Tue, 21 Jun 2022 22:56:01 +0200 (CEST) Received: from localhost ([::1]:37900 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o3kum-0002eL-BB for larch@yhetil.org; Tue, 21 Jun 2022 16:56:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54314) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o3knK-0007ml-Vf for guix-devel@gnu.org; Tue, 21 Jun 2022 16:48:23 -0400 Received: from cascadia.aikidev.net ([2600:3c01:e000:267:0:a171:de7:c]:60264) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o3knI-0001E9-QQ; Tue, 21 Jun 2022 16:48:18 -0400 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:7:77:0:20]) (Authenticated sender: vagrant@aikidev.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id 23AF81ABD5; Tue, 21 Jun 2022 13:48:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=reproducible-builds.org; s=1.vagrant; t=1655844492; bh=yc9djXzlGXYaavx1P6RgkNY1vld9Ruvth0G2swrxUEs=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=IzrMK9V7XI1MnPaVaVn3jz4XY5QCBlGCB6wP064MM/m11jPArft6bl0JcZxoU9UuH R68ET1OfqRGyhIuSL++MgL2e6lmoDW8iX6adRhci7q7UBfbqblECyWSQ0hzeQlset3 83oAsA05wPwpDuStKbSiZiQ2LcxmhpeBoxJ8UUzNHXxSsMw+irENrvQur5IfY6yTwm RVDHqma77a+elZQ+i224kNay3ciTp41gPE0WvOG+OvdfphTLv0+WqhJiMWexSE9DTU /7pBOr9czZ0SsLm0gJhg5vwWIOD7aVb0G4Y3lHeAtVpfTrk+pg9OECqdcwgFfGrUq2 Z1HpYnSfbY34w== From: Vagrant Cascadian To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: Guix Devel Subject: Re: Set FORCE_SOURCE_DATE=1 by default In-Reply-To: <87h74muwu0.fsf@gnu.org> References: <87bkv0f52g.fsf@contorta> <87h74muwu0.fsf@gnu.org> Date: Tue, 21 Jun 2022 13:48:07 -0700 Message-ID: <878rppagl4.fsf@contorta> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: none client-ip=2600:3c01:e000:267:0:a171:de7:c; envelope-from=vagrant@reproducible-builds.org; helo=cascadia.aikidev.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1655844961; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=wXMmQftNMtmWeNQpLEbmQ3NfaPFZN0nTMOKz7eEuM7E=; b=sOh9GNz5a1ISmQhwSNbuTLZUBn9JW66k9WScmTvGPOgEzvnTqhkDWLqF3NA1HfbnRv60Wy 0eRIJB1muveslhEMxMFzL7fFEYHoHiTT7PI5Q9AtAqF1FbmrTxHo9xyJ4uCxzI9dx+KRbv X4W8tPeYBW6xyZtStDHJhEgVsM70Kd/fg7QGSZeXR1NHKgmqlGgUAdiM7AAPWVokTYpLvP rChFf/yDL06zEHjC9Su2TQtauPrIbulFGXdN7mL8Mr6Wlbk7anaCnYgvcOJA+U/HPMl1KB 7gvEvehiXo3+FOcYcqkbUHI3wQ/XalkEFMXYUlmf1r3PMgk+xprvLtIT/m9iMg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655844961; a=rsa-sha256; cv=none; b=qpP4WNVx4js+3j4z1dbxvCFdvRyQVgwJMtLhq+nU9R4i1DGfPgNws9GWlUWdyAGG+t6/3y YaaoRA65tnKL/tH0DH7v89E9+XPiAh1lb43DOLSXxL6+sPbPneGrM4CUnpyXI+/+eFF3TI wMzFcV8toAliIWfeZ5usrGw6uPhLzku8HCjAWZwiREHM0yWVIXf1a4gxKjzEefnT9eUthJ GmxTXJTSPCLi1ngKEd8aEoeorOagiigf18RcQE2HCaeerPLkUmrr2FfCesK5wYUO5Yn7fh mrzLOQVEdK82tBNXeQhGgQEE0JRqt3GmIshlTHCuNcjx78dgBXVPJ+CreBdgtg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=reproducible-builds.org header.s=1.vagrant header.b=IzrMK9V7; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -8.87 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=reproducible-builds.org header.s=1.vagrant header.b=IzrMK9V7; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 59FE319FE5 X-Spam-Score: -8.87 X-Migadu-Scanner: scn0.migadu.com X-TUID: 7ETS1OsRpiWu --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2022-06-15, Ludovic Court=C3=A8s wrote: > Vagrant Cascadian skribis: >> From 7a39330b56934accef14b5e2ac003e211c7c6c5b Mon Sep 17 00:00:00 2001 >> From: Vagrant Cascadian >> Date: Fri, 10 Jun 2022 16:12:59 -0700 >> Subject: [PATCH] guix: gnu-build-system: Set FORCE_SOURCE_DATE in >> set-SOURCE-DATE-EPOCH phase. >> >> * guix/build/gnu-build-system.scm (set-SOURCE-DATE-EPOCH): Set >> FORCE_SOURCE_DATE=3D1. Update URL. > > [...] > >> (define* (set-SOURCE-DATE-EPOCH #:rest _) >> - "Set the 'SOURCE_DATE_EPOCH' environment variable. This is used by t= ools >> -that incorporate timestamps as a way to tell them to use a fixed timest= amp. >> -See https://reproducible-builds.org/specs/source-date-epoch/." >> - (setenv "SOURCE_DATE_EPOCH" "1")) >> + "Set the 'SOURCE_DATE_EPOCH' and 'FORCE_SOURCE_DATE' environment vari= ables. >> +This is used by tools that incorporate timestamps as a way to tell them= to use >> +a fixed timestamp. See https://reproducible-builds.org/docs/source-dat= e-epoch/." >> + (setenv "SOURCE_DATE_EPOCH" "1") >> + (setenv "FORCE_SOURCE_DATE" "1")) > > I=E2=80=99d mention above that FORCE_SOURCE_DATE is honored exclusively by > TeX Live. I am having trouble explaining it, partly because I don't really believe in it and kind of want to just leave that up to the URL... that said: diff --git a/guix/build/gnu-build-system.scm b/guix/build/gnu-build-system.= scm index d84411c090..d69f8c42fd 100644 =2D-- a/guix/build/gnu-build-system.scm +++ b/guix/build/gnu-build-system.scm @@ -56,10 +56,13 @@ (define time-monotonic time-tai)) (else #t)) =20 (define* (set-SOURCE-DATE-EPOCH #:rest _) =2D "Set the 'SOURCE_DATE_EPOCH' environment variable. This is used by to= ols =2Dthat incorporate timestamps as a way to tell them to use a fixed timesta= mp. =2DSee https://reproducible-builds.org/specs/source-date-epoch/." =2D (setenv "SOURCE_DATE_EPOCH" "1")) + "Set the 'SOURCE_DATE_EPOCH' and 'FORCE_SOURCE_DATE' environment variabl= es. +This is used by tools that incorporate timestamps as a way to tell them to= use +a fixed timestamp. Setting 'FORCE_SOURCE_DATE' is needed in order for TeX +Live to respect 'SOURCE_DATE_EPOCH'. See +https://reproducible-builds.org/docs/source-date-epoch/." + (setenv "SOURCE_DATE_EPOCH" "1") + (setenv "FORCE_SOURCE_DATE" "1")) =20 (define (first-subdirectory directory) "Return the file name of the first sub-directory of DIRECTORY or false, = when Not really happy with it ... both variables are basically needed to make SOURCE_DATE_EPOCH effective, and it's not clear to me what it really adds to the statement to call out TeX Live explicitly... especially given that other tools *might* actually do the same... even though I sure hope we can contain the problem to TeX Live. Would renaming it to set-SOURCE-DATE-EPOCH-and-FORCE-SOURCE-DATE add anything? or come up with a generic name? or having both set-SOURCE-DATE-EPOCH and set-FORCE-SOURCE-DATE as separate functions? Or a more generic description? > It=E2=80=99s a bit of a bummer that we have to do that here, but as you p= oint > out, TeX Live can be used pretty much in any package and we=E2=80=99d rat= her not > track every possible issue by hand. Agreed. > I think it can go to =E2=80=98core-updates=E2=80=99. I hope so too! live well, vagrant --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCYrIuiAAKCRDcUY/If5cW qpt/AQDyyrGVkSdh8MDIVBP9+OOaphDQz0RQux7fB+jRIkUdhgEAvKiom0lto/4o viwLSLL2Ghuo7yCT5H66Ev4z2dpCfAc= =3rkg -----END PGP SIGNATURE----- --=-=-=--