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 79EFE385C420 for ; Fri, 30 Sep 2022 11:38:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 79EFE385C420 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=1664537903; 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=yyBmNDP+8+7P0SX3c5lyCdkrVNtFHmRjLp2LdKuY2DE=; b=ikC3ixkgafm7S9mB3wmb1ZaHdG8TQ9ycgbKq/unaTkPV8ntKLSiF1astiAru5t5S5EMhgD KqqwuVihFyMaKKA5xSVx11YDNrImUSG3NAUuN9gqvQyPWiyn9BD/ioTrh27nFwiXFKsm2Y tDrZUZ6YbzXRUITc1zDDbgas5Wu0OzM= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-672-5jUJxvkkOEuLtdzpq_9X3A-1; Fri, 30 Sep 2022 07:38:14 -0400 X-MC-Unique: 5jUJxvkkOEuLtdzpq_9X3A-1 Received: by mail-qk1-f198.google.com with SMTP id bi3-20020a05620a318300b006cf2d389cdaso3502317qkb.8 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=R74bxwU/TPdykDOZIIs3JC/1uXd9atRQVxrhSW4VZBs+o2S3PZxdrV6DSSmmUeV3WQ i39QLpDjifBPYLBOaO4BvFn04jI/UVQvNplwOjDxlU0e15Xkke8BcOkn+0LHnM7OOPJe B+SLXBwbRd84qcC2P8TCwuHmNkw3DaPIcgnbJcng9aY1lHMWOk6edwPsyennFpWd1lPO w4/c7qf/qn+dBSpxGJMjF38KXy3JiMasq2s49MwB0ryZ7mZR0MpHT4/2l9KGaPOdSYuN h0GTvLgT+QWjiCbuF/eTFVoJXjvr6I/l++ENkrSGe4dvWl0L0o6X1bD+ylPNrPsLqPxA p28A== X-Gm-Message-State: ACrzQf1GB2hw18kEZP4dFw/jhDhH1mumWlcGghkjcVWWwMTrAcZ/zxot HP2mCyA9UhfQSjEla2FKC26RTuN78Iclb7Oh4O6Vr0YADANNWbkzMpvIu7RpxtA6k23NOWMK43R l5myKFMmIgDimXcKqhw== X-Received: by 2002:a05:620a:f0e:b0:6cf:beb5:a28 with SMTP id v14-20020a05620a0f0e00b006cfbeb50a28mr5694854qkl.738.1664537894154; 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.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_NONE,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, 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