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 8A3463857832 for ; Thu, 29 Sep 2022 12:24:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8A3463857832 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1664454265; h=from:from: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: in-reply-to:in-reply-to:references:references; bh=qfqyc1Qy1lRFdjFsCchPTXk8YZPHD4BtOfEteIzrYaE=; b=AjPvMvA9bJcDIPD9JC8A1ijwIvcFl3PAHPgC1LSgVfqcrUabSLO0R/YVUFM1b3Z37utN/U 29GzrXtc9pQBRXBTL8W5bOBCQvHhgxmo3ifzmo2MlucFHBfWW9PoBpxqctuVHoRpDOKeNu 26j7cWwZB9NL1b2UnpU3ggYZmxdyl6E= 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-643-u2tdW88UPQilOaP5f2_4qg-1; Thu, 29 Sep 2022 08:24:24 -0400 X-MC-Unique: u2tdW88UPQilOaP5f2_4qg-1 Received: by mail-wm1-f70.google.com with SMTP id r9-20020a1c4409000000b003b3f017f259so597042wma.3 for ; Thu, 29 Sep 2022 05:24:23 -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=I1JaMaOUs/Bch/hGyM75s0RYwFllSIdgqgH4buWorngtn6EEUlkSZSmouDR2qOxlPX H6J9eMpIN0RC6vnUpV6nbJVgj/9v3AFGqnP8qIEoFFg3eKo4NxPLtSS4YaCh2sIUD6sX s3is0nkmc7ha7uRE/AUH7ovRH9om1cFZiANu6sGV7+50eVWNL/d1yduvrmPMmZl1ollz ifNFYV+iJz3r1NdRcZIAy2DC3E2oDvDEuAoib4okiOkNAXGAxSbBzjVs9/o2WpeL3fK7 kqSeVCWS2nUSwhvMZt4QuC0tAUy49RMKTxQ/it9KQlVmKxOqt5mxQoZkh0WtUEM5zA86 lEAg== X-Gm-Message-State: ACrzQf27JGN8+ixnbRYaMzEjiR6YGGFZD/q730EDbOAuSwgrOTlr6JQS qBN2y5foI/3076eTq8N/wUd9pdWbeajxO3Zhv6m7WTAQ/TimcuV5U8d4mjFNpJDVme126W+Q4y+ Y/u4cgy8qrJw+kL6Waw== X-Received: by 2002:a5d:654e:0:b0:22c:b7aa:e4fa with SMTP id z14-20020a5d654e000000b0022cb7aae4famr1998792wrv.101.1664454261224; 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=-12.2 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=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: 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