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 8AFE93858291 for ; Wed, 28 Sep 2022 13:34:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8AFE93858291 Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-549-ZPNgVpfYNAmJ5OYmMyjRJg-1; Wed, 28 Sep 2022 09:34:52 -0400 X-MC-Unique: ZPNgVpfYNAmJ5OYmMyjRJg-1 Received: by mail-qk1-f200.google.com with SMTP id bs33-20020a05620a472100b006cef8cfabe2so9490715qkb.12 for ; Wed, 28 Sep 2022 06:34:51 -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=Tfqwn8BFtQzbFTBO15kJ/uSHs2SvMyxtH2+5E62Zk/w=; b=hGahiQD5fepIK8FwM5RG23qXUgzfH7VUfkQUKzuY+upWABP0lpsqNcbAhALVaK1TEr vJxvfmAO3utKG3Wtr/G3peHz2N5CEAAd7FuQC+lwVAie54ty+v8MIYFq8JcUCWAaClN8 /P7EyyCJ3pUtQ5N4EZR1+YOyBW+rjrMIErMEryVy/0/NDTZmOhRROWB1ETabH6a2j82g Wh/+WnnOUOgsXaARWMaZRkvzd/LeXalLbeaBybnK6DFxu2oRK9u69IOgpiEfQ5QBqqlc sGU1K6GOz7+bxpC+dx7KDyvHYk322WgZrbaPCuAp5GOdGhv3lbLX0an6tX0yyt9vc7RT 0yog== X-Gm-Message-State: ACrzQf2lY9XQ13AFqvdXzVZXmbsqyz6JWedW6ZgN//ffWiuvaptItujF 9ujZR+TI0tNlN9JHr4DHSIpjdtK2jiSdsGBwxf+miu/eOgt6u6RTZMFhhaZpAC5ZTxGKm7EXqJO B1uuo2VfcJrbuHHRsjpcYbA== X-Received: by 2002:a0c:b295:0:b0:496:b91a:f5f4 with SMTP id r21-20020a0cb295000000b00496b91af5f4mr26145532qve.20.1664372091148; Wed, 28 Sep 2022 06:34:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4zy2VkLLneoy9tB0k0xaTzpGvvEiSDe4HLFaai804Miz5L9clcx/S5eIHaqzUPkv6mYpGhuw== X-Received: by 2002:a0c:b295:0:b0:496:b91a:f5f4 with SMTP id r21-20020a0cb295000000b00496b91af5f4mr26145505qve.20.1664372090903; Wed, 28 Sep 2022 06:34:50 -0700 (PDT) Received: from [192.168.1.18] ([212.126.151.172]) by smtp.gmail.com with ESMTPSA id j7-20020a05620a410700b006bb9e4b96e6sm3141754qko.24.2022.09.28.06.34.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 28 Sep 2022 06:34:50 -0700 (PDT) Message-ID: <7927df56-70ca-64be-6ca8-023727e49383@redhat.com> Date: Wed, 28 Sep 2022 14:34:47 +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: Andreas Schwab , Nick Clifton via Gdb-patches Cc: Binutils , Tzvetelin Katchov References: <02ea8f50-7b68-6c4e-75db-e919121e8707@redhat.com> From: Nick Clifton In-Reply-To: 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=-15.1 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 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: Wed, 28 Sep 2022 13:34:54 -0000 Hi Andreas, > Better set LC_ALL=C to be independent from the locale sorting. Like this ? diff --git a/src-release.sh b/src-release.sh index 079b545ae7c..8c2a8d897fd 100755 --- a/src-release.sh +++ b/src-release.sh @@ -185,7 +185,7 @@ do_tar() echo "==> Making $package-$ver.tar" rm -f $package-$ver.tar find $package-$ver -follow \( $CVS_NAMES \) -prune \ - -o -type f -print \ + -o -type f -print | LC_ALL=C sort \ | tar cTfh - $package-$ver.tar } Cheers Nick PS. Would sort's --dictionary-order option have a similar effect ?