From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id QPrWB/hDOWPVAAQAWB0awg (envelope-from ) for ; Sun, 02 Oct 2022 03:55:36 -0400 Received: by simark.ca (Postfix, from userid 112) id 1236E1E112; Sun, 2 Oct 2022 03:55:36 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=EYc3sXy5; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id B45BD1E0CB for ; Sun, 2 Oct 2022 03:55:35 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 07CCB3858430 for ; Sun, 2 Oct 2022 07:55:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 07CCB3858430 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1664697335; bh=mEKOH+h/7kS1MM8KVUFP6R/4/2ODYEzr7Y/mXi8F0BM=; h=Subject:Date:References:In-Reply-To:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=EYc3sXy5Zq26aG902ozvVcgKDQqa/Pk3DfRavCNrqVU68m9QVp6P1Uq+7YuQDzmSI fO+8ig03u2uNtNdFBVnxH0FGoum7NbRHW2bOnyGno6uCg/2vlRi7GHSOVnldAEQuj5 UI/3qwSwg2jShch1xwgdu1kPhHZqN9S/685Cote0= Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 0124A3858D32; Sun, 2 Oct 2022 07:55:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0124A3858D32 Mime-Version: 1.0 (1.0) Subject: Re: RFC: Sort tarballs created by the src-release.sh script Date: Sun, 2 Oct 2022 08:54:58 +0100 Message-Id: <3EC98FFD-FD7A-4A17-9FE0-EF5DAFB36B3C@gentoo.org> References: <07a1ca21-5569-e67b-d0c7-6069974b1068@redhat.com> In-Reply-To: <07a1ca21-5569-e67b-d0c7-6069974b1068@redhat.com> To: Nick Clifton X-Mailer: iPhone Mail (20A380) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Sam James via Gdb-patches Reply-To: Sam James Cc: Andreas Schwab , Nick Clifton via Gdb-patches , Binutils , Jan Beulich , Tzvetelin Katchov Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" > On 30 Sep 2022, at 12:38, Nick Clifton via Binutils wrote: >=20 > =EF=BB=BFHi Guys, >=20 > Right, here is the latest and greatest - and hopefully last - version > of the patch. I added a parseable string to the --mtime option and a > comment explaining why these options are being used. >=20 > Any more comments/suggestions ? >=20 > Cheers > Nick >=20 > diff --git a/src-release.sh b/src-release.sh > index 079b545ae7c..8a2ac125030 100755 > --- a/src-release.sh > +++ b/src-release.sh > @@ -184,9 +184,11 @@ do_tar() > ver=3D$2 > echo "=3D=3D> Making $package-$ver.tar" > rm -f $package-$ver.tar > + # The sort command and --mtime, --group and --owner options are > + # used in order to create consistent, reproducible tarballs. > find $package-$ver -follow \( $CVS_NAMES \) -prune \ > - -o -type f -print \ > - | tar cTfh - $package-$ver.tar > + -o -type f -print | LC_ALL=3DC sort \ > + | tar cTfh - $package-$ver.tar --mtime=3D"1970-01-01 00:00:00" --g= roup=3D0 --owner=3D0 > } >=20 > # Compress the output with bzip2 >=20 I think this might hit a problem I faced when trying to do this with Go tarb= alls: https://www.gnu.org/software/tar/manual/tar.html#warnings. With that date, I got "implausibly old time stamp" warnings from tar. I have= n't tested this patchthough (writing from mobile, apologies). Maybe default to the creation date of Binutils and allow overriding via http= s://reproducible-builds.org/docs/source-date-epoch/? best, sam=