From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id YDYYAYvEDWY/YwAAqHPOHw:P1 (envelope-from ) for ; Wed, 03 Apr 2024 23:05:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id YDYYAYvEDWY/YwAAqHPOHw (envelope-from ) for ; Wed, 03 Apr 2024 23:05:15 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=EqP+Vulg; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1712178314; 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=2t69jdvr1XX2+0KI0mruvsLfusTEznuyXFa+rRpxNbw=; b=fs4jxn6gXZF6e/5Oewy2ru0C9HEpbw9NyEC3GxoXOrgAiysGbM1MnVGKynxXsT9uE+t8kY Ll2nPv+1CZr/20disN62fHMFRVCJM02Dfdw4OZIqFo1A2Fb6/EeXITbcOeBylWYvcZTOQM 14bIBmNWpry5yWH8enDV5P8SvxoHBg8HgHANBjfMBRcRcJuqxUK8EELPaMbk6KGqNk7b5p NGIlssADed+6GbcA2yRLLdPfdWmkqzPgq+zWK97/I8hHDwPdf/jH3mIZM6Ig8dU1ULps7X vAPCbASQmWCtMg4rBnH8jwtB5x4+g9s/lPpXsUR8V796GnGadzD6Ee4M9yq27w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1712178314; a=rsa-sha256; cv=none; b=W/7JHu3Hdq5R4T5rNLPGLYrDqMJFxRx54IaGwMMK+GxJIPnETkdoi++WBV2LJNsGt+BIcm wN4jE5DxubXlFjFr4E5bGgzSvNps2ZgCSuQQwJnRrwbncdq46Hq+N8vKfPOuj/TPqMjoEd vpAxepp3PaDHSZ/DzgnP8mIrLQ/if3TDbpE0hIL0Aw7AlxxMLbcPaoUPSpOR3uDn+VxCwi hnkoBQZUrGTFHFjDRaAS0bYV+JDHEwxedh48+0LoavXZFaXxHcJFPV1Kw/BYYB5GZOkMTj +JXm9k5PM/eoBPLLcNmy9ISOSlX9517MX/gGzaU+PUIA3Jp7XhIC5jfRFYa5uA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=EqP+Vulg; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org 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 BA1AF56DA2 for ; Wed, 3 Apr 2024 23:05:14 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rs7n4-0008Bj-4o; Wed, 03 Apr 2024 17:05:02 -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 1rs7n0-0008BW-NA for guix-patches@gnu.org; Wed, 03 Apr 2024 17:04:58 -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 1rs7n0-0001NZ-EW for guix-patches@gnu.org; Wed, 03 Apr 2024 17:04:58 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rs7n4-0005y0-J6 for guix-patches@gnu.org; Wed, 03 Apr 2024 17:05:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70169] [PATCH 0/7] Reproducible `make dist' tarball in defiance of Autotools and Gettext Resent-From: Janneke Nieuwenhuizen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 03 Apr 2024 21:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70169 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 70169@debbugs.gnu.org Received: via spool by 70169-submit@debbugs.gnu.org id=B70169.171217827722757 (code B ref 70169); Wed, 03 Apr 2024 21:05:02 +0000 Received: (at 70169) by debbugs.gnu.org; 3 Apr 2024 21:04:37 +0000 Received: from localhost ([127.0.0.1]:59805 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rs7me-0005uy-KS for submit@debbugs.gnu.org; Wed, 03 Apr 2024 17:04:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59686) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rs7mW-0005tQ-CT for 70169@debbugs.gnu.org; Wed, 03 Apr 2024 17:04:35 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rs7mL-0001Bd-Tr; Wed, 03 Apr 2024 17:04:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=2t69jdvr1XX2+0KI0mruvsLfusTEznuyXFa+rRpxNbw=; b=EqP+VulgAvd7X5Pivexp DAx79akS7BhmXm9kx+78o9Sq4nZMaQC8tPY6YBoaWcQloEKabrBLPbjL1WRsK1AD2hAP+TdM/2DKA w8Jk2cOeHmbLKUXo6N77GjZ4GuyIHCilwHuDswzvMdUFmhK54+x+paTwvWuIezFXidkABjLmQ5VaE xmXhcP/AKIp30P5dhid8G/nwn89HXgpAapsvkm1ugCH8N9lv6AbCn0AJCe88bS3dt+5qHCmeTZYcT Pg+NGi3ybiRXYtUy6DZktmc66qHUiH5mt/a/1sbjs9dnUn36DiR3HsfJpZ1+JMvLzqOM7wGKRKNFN FcLNS9gk9ckNtA==; From: Janneke Nieuwenhuizen In-Reply-To: <87wmpew4e7.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Wed, 03 Apr 2024 22:57:36 +0200") Organization: AvatarAcademy.nl References: <87wmpew4e7.fsf@gnu.org> X-Url: http://AvatarAcademy.nl Date: Wed, 03 Apr 2024 23:04:14 +0200 Message-ID: <87ttkinooh.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) 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: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -7.06 X-Spam-Score: -7.06 X-Migadu-Queue-Id: BA1AF56DA2 X-Migadu-Scanner: mx13.migadu.com X-TUID: B6Dpl2b4H73W Ludovic Court=C3=A8s writes: Hello, > Janneke Nieuwenhuizen skribis: > >> The recent XZ-utils >> debacle inspired me to resurrect and finish my patch set for creating a >> reproducible source tarball for Guix, i.e., finally have `make dist' be >> reproducible (when run from Git). I've been using a version of these pa= tches >> in simpler projects for some years now and stole one from Timothy Sample= t's >> Gash project. > > Yay, kudos to you and Timothy! \o/ >> Autotools and Gettext still make it harder than necessary to do reproduc= ible >> (responsible?) computing, which is especially sad given the fact that the >> Reproducible Builds project recently had their 10th birthday >> . >> >> Gettext tooling embeds timestamps found in the file-system, fails to res= pect >> SOURCE_DATE_EPOCH, and lacks options like `--pot-creation-date' so that = we >> have to resort to SED to fixup. The caching of all sorts of information= , in >> separate build stages, also doesn't help. > > Sadness indeed. Hopefully things will improve in the coming weeks, now > that there=E2=80=99s an impetus. Yes, that would be nice. With more people joining the effort, it could be fixed brilliantly, in no time :) >> To create a reproducible source tarball, having a reproducible build >> environment is a prerequitite, so this would have to be recorded too. >> Using this patch set, I created a tarball doing something like >> >> guix pull --commit=3D1dbe492b993a7629df3b35146ce0272b52913776 >> guix shell >> bootstrap && ./configure --localstatedir=3D/var --sysconfdir=3D/etc && m= ake dist >> guix hash guix-1.3.0.57425-80a228.tar.gz >> 0mk59ay5k2dxmjni9fx4i8qyfhvlgxbhqzsjpg2pbw381nskkxbj > > I applied the whole series on top of > df64d48e6f9f648044aa5279c045b8d6f7bee604 (the =E2=80=98base-commit=E2=80= =99 at the > bottom of your message). Thus I got the same content as you but with a > different commit ID. Yeah..., that's why I pushed `wip-tarball'. We even look at the committer's timestamp (not author, as that could be quite old). > =E2=80=9Cmake dist=E2=80=9D gave me guix-1.3.0.57425-9f4a4a.tar.gz. The = name indeed > corresponds to the tip of my tree: [..] > But as a result, I get a different hash, and since the directory in the > tarball has a different name, =E2=80=98diffoscope=E2=80=99 isn=E2=80=99t = very helpful. > > There=E2=80=99s at least one relevant difference in the gzip metadata: > > --- guix-1.3.0.57425-9f4a4a.tar.gz > +++ /tmp/guix-1.3.0.57425-80a228.tar.gz > =E2=94=9C=E2=94=80=E2=94=80 filetype from file(1) > =E2=94=82 @@ -1 +1 @@ > =E2=94=82 -gzip compressed data, from Unix, original size modulo 2^32 208= 138240 gzip compressed data, rese > rved method, ASCII, extra field, encrypted, from FAT filesystem (MS-DOS, = OS/2, NT) > =E2=94=82 +gzip compressed data, from Unix, original size modulo 2^32 222= 504960 gzip compressed data, rese > rved method, ASCII, has CRC, was "", has comment, encrypted, from FAT fil= esystem (MS-DOS, OS/2, NT > > > (Your tarball has a CRC and comment, mine doesn=E2=80=99t.) I believe this is a red herring. I saw this all day whenever one file had a difference... > Maybe we=E2=80=99ll have to iterate once you=E2=80=99ve pushed a first ve= rsion, so we > can truly build the same thing. Or we should push the branch somewhere I boldly pushed `origin/wip-tarball', you may try that :) Be sure to git diff between your tip and origin/wip-tarball to ascertain I didn't place easter eggs (just kidding). > (or use the one from once it=E2=80=99s be= en > created). Thanks a lot for trying! Greetings, Janneke