From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 4BCFA385C40E for ; Fri, 30 Sep 2022 11:38:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4BCFA385C40E Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-425-_Ow-FG8hN8-gq97_eX19Hg-1; Fri, 30 Sep 2022 07:38:14 -0400 X-MC-Unique: _Ow-FG8hN8-gq97_eX19Hg-1 Received: by mail-qv1-f72.google.com with SMTP id c1-20020a0cfb01000000b00495ad218c74so2708132qvp.20 for ; Fri, 30 Sep 2022 04:38:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=yyBmNDP+8+7P0SX3c5lyCdkrVNtFHmRjLp2LdKuY2DE=; b=nR408ekwPXGM7UKNqee4QxZ/n7cbExxvR7jnjtm1lnULagZjJQNU+ZD5Gx/LXeL4Lm APOMdx1oHs67S2xhdc27Rppzsh2cTy8GmFAqnSlT+Xiy4K/sZ/Cy3T7lzM2uoO1+Hnb2 /CzQBvPgW85rqlAVuIzZ6J0TaGZuX919cIS8rZMOxA+VGqi/5q7Wn2SMCS5nsVAJxogp P3YuV4bajiDchbHMdKxRPjWclQ2BmRcMQ6HPpEYvAosJuijGx3nVLiJBIclSZb1TPebM e6X/sZxOAx7iWtw9FkIh7I7C2sMNZfT76tXOpIJI9mjvMqkoNYNSC/vQMlbhVubYRzkl M2rA== X-Gm-Message-State: ACrzQf0bOGT+40QZH0Ib5HOIRhOH7Fnp++AQXA+pCGUeV4PffwG0t5dl PbobCyvc006q/4+zpQwVmFKHfudJXYJz+SYvUoF+laUbzisarRKSpGPZHQcLVYTkOwW0EKLHP6V XivoMOgho1sDLSdO7/9sJnA== X-Received: by 2002:a05:620a:f0e:b0:6cf:beb5:a28 with SMTP id v14-20020a05620a0f0e00b006cfbeb50a28mr5694853qkl.738.1664537894153; Fri, 30 Sep 2022 04:38:14 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7wPTKvA4JxqyIBTg1V16iYwbk3Wy5omyarkYtyiQS1v+66yX7v5QqkAxPwsjaOdTxJT3U6gQ== X-Received: by 2002:a05:620a:f0e:b0:6cf:beb5:a28 with SMTP id v14-20020a05620a0f0e00b006cfbeb50a28mr5694836qkl.738.1664537893877; Fri, 30 Sep 2022 04:38:13 -0700 (PDT) Received: from [192.168.1.18] ([79.123.82.157]) by smtp.gmail.com with ESMTPSA id ci13-20020a05622a260d00b00342b7e4241fsm1617289qtb.77.2022.09.30.04.38.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 30 Sep 2022 04:38:13 -0700 (PDT) Message-ID: <07a1ca21-5569-e67b-d0c7-6069974b1068@redhat.com> Date: Fri, 30 Sep 2022 12:38:11 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: RFC: Sort tarballs created by the src-release.sh script To: Jan Beulich Cc: Binutils , Tzvetelin Katchov , Andreas Schwab , Nick Clifton via Gdb-patches References: <02ea8f50-7b68-6c4e-75db-e919121e8707@redhat.com> <7927df56-70ca-64be-6ca8-023727e49383@redhat.com> <6a7c5183-a3a9-562f-6584-ed6306aee257@redhat.com> <032e0c1e-17b5-5e24-e179-d5c2ba432dc5@suse.com> From: Nick Clifton In-Reply-To: <032e0c1e-17b5-5e24-e179-d5c2ba432dc5@suse.com> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-GB Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-10.3 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, NICE_REPLY_A, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org 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: , X-List-Received-Date: Fri, 30 Sep 2022 11:38:17 -0000 Hi Guys, 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. Any more comments/suggestions ? Cheers Nick 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=$2 echo "==> 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=C sort \ + | tar cTfh - $package-$ver.tar --mtime="1970-01-01 00:00:00" --group=0 --owner=0 } # Compress the output with bzip2