From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id CMzxDN/3wGKOVwAAbAwnHQ (envelope-from ) for ; Sun, 03 Jul 2022 03:58:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id mIMODd/3wGITSgAA9RJhRA (envelope-from ) for ; Sun, 03 Jul 2022 03:58:55 +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 C5C9B38574 for ; Sun, 3 Jul 2022 03:58:54 +0200 (CEST) Received: from localhost ([::1]:45710 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o7osv-0003M6-Fw for larch@yhetil.org; Sat, 02 Jul 2022 21:58:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59880) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7osg-0003Lx-Uh for guix-devel@gnu.org; Sat, 02 Jul 2022 21:58:38 -0400 Received: from cascadia.aikidev.net ([2600:3c01:e000:267:0:a171:de7:c]:34758) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o7osf-0001No-0O; Sat, 02 Jul 2022 21:58:38 -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 43FC11AB53; Sat, 2 Jul 2022 18:58:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=reproducible-builds.org; s=1.vagrant; t=1656813512; bh=byMy1va3GR7xgUpGRcU+GjGwwq6ZWsojSBUFJcCRDM0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=2WaDPsQSu2Fab6KVY+NT32FlYvHQS486szAX+LhKeVpP8sDhmJBfujhFFnmUe8DG3 ShzVKKon4qelMHBUAAm4PtvxR+DXLGivoaztS76L0YgP2muVsavuzYCohYt8zcxwAm kfivV0/CktHIAfKe8gXbP6IvMTn36gxd0d2PBFZ/cJMgDLSnDkX/YM1cNK/EvE4QPB e5NBeNakmEQyWAwxeDf7Y5D5AAmxMu4TwzTXWaFjCEM0NiwXXQrkI9hkbigZwNAyNN 1UdcFFuFQ5pT3JBDusq3SX69tsVcXnx9GCEKWqARQrTEvSZ3zWjDbP/NgrYMtb2tvy yNU9QO2GS40Vg== From: Vagrant Cascadian To: Maxim Cournoyer Cc: Guix Devel , Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: Set FORCE_SOURCE_DATE=1 by default In-Reply-To: <87letn2ut9.fsf@gmail.com> References: <87bkv0f52g.fsf@contorta> <87tu8d5ozo.fsf@gmail.com> <87v8stnsca.fsf@contorta> <87pmj06bpl.fsf@gmail.com> <87v8ssry1i.fsf@contorta> <87letn2ut9.fsf@gmail.com> Date: Sat, 02 Jul 2022 18:58:27 -0700 Message-ID: <87k08vj6t8.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=1656813535; 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=UFuz38Sg5bOhl/5PkXnX4b2Aa7K21nRu+h22wm9BK7Q=; b=PVu3wb9wk9wBDVtYqEUCAzcI1+sjqppzRqdLqpJNIB7JzloVsdpWn9wHmq6PGoGdbohlkz ozPeppi+7ufrtK9zoITi4AoLrzr2FhhuSUCY/xFtEJ9Oexm7IHyNE3uuAYkDVtQcAc2Zno 5ZrJ2PYF+JEOUWv0PVXUUS8ilGWfYExMhW58+S7ZNMy4nZsmM8jkHKaoIbd8oBT/m4eUu1 17PFJ7JG2D/zL3BbIlE8vNbP7t7Qz2fzXKViq2iJ8SNiBZKijqsQ5r8jb4k5eXytD1wvUn Teb/MOSQ7o/oMVWrfhueq/69EDfo0XB+GIODXEt7FwlpgNXFsTyTUrR6Iq8UJQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656813535; a=rsa-sha256; cv=none; b=QL1I/y6en3c9S/iv3j8XNA+gax/JVGIYarwXuFyXBGmwTaCHQ1gQ64LT1YAekZntzpFQvE PVxm8wwgLx+tSg5WITV/g22EWxkwS2lsNMCaj1gK+0S+BMkScoH5ewoMPlpJBc6sjd6qaw cYgiK0d/UVTo1FsYHJIRdOoASMqnhz5wqxjHAj+eU5QqTqbk2pQjGmEF1aanvD8EW1lltT T1f+a89dte4DB61UHfB45ODmFtIOzoVtzVQ8KsGkjiTNwHC1Vp7MC+3/ahZ0c9i0X+7BT3 NGOZBHGU0KhHLAmbvBb9Zi+owMgNrpE/IrbU7qveaTC1WhmErAB5u7rlPqejAg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=reproducible-builds.org header.s=1.vagrant header.b=2WaDPsQS; 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: -4.85 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=reproducible-builds.org header.s=1.vagrant header.b=2WaDPsQS; 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: C5C9B38574 X-Spam-Score: -4.85 X-Migadu-Scanner: scn0.migadu.com X-TUID: TSKIWcv6PCx5 --=-=-= Content-Type: text/plain On 2022-06-23, Maxim Cournoyer wrote: >>> Perhaps to show our stand here we could patch our copy of pdftex with >>> 's/FORCE_SOURCE_DATE/SOURCE_DATE_EPOCH/', lest we end up with a grocery >>> list of *SOURCE_DATE* variable variants. >> >> Sure, with some technical details fixed up, as I think they are >> functionally different, in that FORCE_SOURCE_DATE is a boolean, and >> SOURCE_DATE_EPOCH is an integer, though ... Guix sets >> SOURCE_DATE_EPOCH=1 ... so it might just work by dumb luck! Though There >> may be some rare packages that need SOURCE_DATE_EPOCH to be some larger >> value... "It can't possibly be 1970, this program was first written in >> 2002, there must be some error, failing build..." >> >> At any rate, if diverging from upstream Tex Live is how Guix wants to >> handle this, I'm all for it! > > Seems we have a small consensus here (Ludo, you and myself); would you > like to give it a try? My first naive attempt appeared to build, but failed lots of test suites... so that clearly needs some more work! diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index f6b4c25595..e8c99d202b 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -395,6 +395,12 @@ (define-public texlive-bin (("srcdir/tests/pprecA-0.ind pprecA-0.ind1 \\|\\| exit 1") "srcdir/tests/pprecA-0.ind pprecA-0.ind1 || exit 77"))))) '()) + (add-after 'unpack 'default-to-force-source-date + ;; https://lists.gnu.org/archive/html/guix-devel/2022-06/msg00330.html + (lambda _ + ;; texk/web2c/lib/texmfmp.c: string sde_texprim = getenv ("FORCE_SOURCE_DATE"); + (substitute* "texk/web2c/lib/texmfmp.c" + (("getenv ..FORCE_SOURCE_DATE..") "1")))) (add-after 'unpack 'unpack-texlive-extra (lambda* (#:key inputs #:allow-other-keys) (mkdir "texlive-extra") No idea if this approach would have any side-effects ... there is some code that checks if both FORCE_SOURCE_DATE and SOURCE_DATE_EPOCH are set ... but i *think* this is the only spot where it directly checks if FORCE_SOURCE_DATE is set. It would also be good to support FORCE_SOURCE_DATE=0 if there is in fact some real-world use-case with SOURCE_DATE_EPOCH is set and FORCE_SOURCE_DATE should be "0". I'll try with tests disabled to see if it at least fixes the issue in the two packages (itpp, discrover) that manually set FORCE_SOURCE_DATE. live well, vagrant --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCYsD3wwAKCRDcUY/If5cW quoMAP9qz9PmkvttpLomUFzJGydbJbiieYBmIs4l+WPrw6dfBwD/Z6zLORczANgR 40fNwPXrP2RnffIkRXsiWm4eTcPgtwM= =phgc -----END PGP SIGNATURE----- --=-=-=--