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.133.124]) by sourceware.org (Postfix) with ESMTPS id 04E543857827 for ; Thu, 29 Sep 2022 12:24:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 04E543857827 Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-122-_HFGnNFZOq6yseLuYgwmPw-1; Thu, 29 Sep 2022 08:24:22 -0400 X-MC-Unique: _HFGnNFZOq6yseLuYgwmPw-1 Received: by mail-wm1-f70.google.com with SMTP id k38-20020a05600c1ca600b003b49a809168so2887054wms.5 for ; Thu, 29 Sep 2022 05:24:22 -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:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=qfqyc1Qy1lRFdjFsCchPTXk8YZPHD4BtOfEteIzrYaE=; b=SpeLvXAml/F2+HKjflfxeYWlV119IwlFFDWSjYdZFloHIokEpXIZbBlQz0dyuzp1Qj 7mWpZ+VrsCuXmxviHHwX37lCDu9xB0ANxhHH8gkKthxoOHv03vkBffY0p3IXNDg3Gnyg OKvoHj5DrodIDNZbtANdatjQrTXwfJVuBs21d7t7Ig3qITItzgVtMvVbWMToiiesr8dE OVjRZM9XDEL/+iqQptWvoUzZ1H32yzBsYFVTqxIV2Aj9yAocsWOU/JmLTKgroHz3cbwg uNHahnvCjtZ2fGR3auOB9QnnH5OfH3j3EssX+UrlUe/qW2vyPaKaseZKvZuRu/CrzAR/ ckoQ== X-Gm-Message-State: ACrzQf3O2AnoEKBkC/5YRCGma3oLfGWU5VTUJ6pc1RoZoHk0b0QfUpv2 wrsYSZU0LYaMNpS5y1/SeiGS79eQffhu/7F/QzccEGB+DYbb+rQcIne1/WoO3utQObQhW5gmJXO 8TjWKi2Ygup+aDwGm07wXBw== X-Received: by 2002:a5d:654e:0:b0:22c:b7aa:e4fa with SMTP id z14-20020a5d654e000000b0022cb7aae4famr1998794wrv.101.1664454261243; Thu, 29 Sep 2022 05:24:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4R7/dlRP5y3qVmq6A1cF/AQfF+3MBTGGmAvu1h4I2745X9iyRSUjDaOJjRAjZhVwN4/73mUA== X-Received: by 2002:a5d:654e:0:b0:22c:b7aa:e4fa with SMTP id z14-20020a5d654e000000b0022cb7aae4famr1998778wrv.101.1664454261017; Thu, 29 Sep 2022 05:24:21 -0700 (PDT) Received: from [192.168.1.18] ([212.126.151.172]) by smtp.gmail.com with ESMTPSA id s2-20020a5d4ec2000000b00228d67db06esm6468966wrv.21.2022.09.29.05.24.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 29 Sep 2022 05:24:20 -0700 (PDT) Message-ID: <6a7c5183-a3a9-562f-6584-ed6306aee257@redhat.com> Date: Thu, 29 Sep 2022 13:24:13 +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 From: Nick Clifton To: Andreas Schwab , Nick Clifton via Gdb-patches Cc: Binutils , Tzvetelin Katchov References: <02ea8f50-7b68-6c4e-75db-e919121e8707@redhat.com> <7927df56-70ca-64be-6ca8-023727e49383@redhat.com> In-Reply-To: <7927df56-70ca-64be-6ca8-023727e49383@redhat.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=-11.7 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_NONE, 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: Thu, 29 Sep 2022 12:24:25 -0000 Hi Guys, Thinking about this a little more last night, it occurred to me that if we want reproducible tarballs then we should not be storing user names, group names or modification times either. So what do you think about this extended version of the patch: diff --git a/src-release.sh b/src-release.sh index 079b545ae7c..908492c28f7 100755 --- a/src-release.sh +++ b/src-release.sh @@ -185,8 +185,8 @@ do_tar() echo "==> Making $package-$ver.tar" rm -f $package-$ver.tar 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=0 --group=0 --owner=0 } # Compress the output with bzip2 Cheers Nick