Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp962703ybp; Wed, 9 Oct 2019 06:58:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqySBKZ+9X25RsxxXqS7TPMZfPTQYQ08LACxk976OTxTOeRjVJuWVyk0flMWCVBHFzehkXY2 X-Received: by 2002:a17:906:3f87:: with SMTP id b7mr2903869ejj.107.1570629499187; Wed, 09 Oct 2019 06:58:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570629499; cv=none; d=google.com; s=arc-20160816; b=JcJChvxYQED2wl/a+9GkZxnmwamzrCftCoHId0CXCSvBmec67JqmIEGqq/p5bH0TOe ssp5udKjYiMHRKgKE2JizBz7cVLphVQWHoyWTDgCF5fclpxAkIpo+5HdtYe1MTgk/8qO 2mCQdL+G/gO0KUVItOirbOagoe8KvtHMiTNgDAQx2mCMykKOmOTjdP/zuq0MfjE+PjPV SytY40z8iktjSiNNjwT1+wsPN6j4bkorzyBp4R2a5V+daLB4Snb79hdqcHVCuvLu4FcW Pq7rYyfaM8gGqGUiHJc9NrZJkKujx8tp1ksSxxIFBUUSxzm9JtMfkG5ClHYB0nPr+gh7 i9LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :feedback-id:references:in-reply-to:message-id:subject:reply-to:cc :from:to:dkim-signature:date; bh=+Bb+b0Zx5h9afFwEFcIv0ox7LasYliXQisN/7bsXczU=; b=gktrJUxyMJQsDUrtG48zL3DjFc9zcxWh473lIIaf+lofQiBkmxvS+UdwVqaKVTYW0i X87SGzscdOQrivFPSrqQrxaMdariDnsrpK/GlzptkAYD3G4h2bwMKEJnavFE4Zk9bOyK TuqgqxAwn+UTOELSTNdcjZrNeNjOeNHdfYMTKoGOKbdUNm7Fir+zOwZeUmnAosQlAnMp 2vwGlSCH+MwuO6lbQEuyQOG2+1FVbwxCuAgm/nTLmJqzQyhDsZrJwmqiac80+mK0Ll37 DMn6TLsWWbfUmnSGmDNlbf3lA10Ka+hbYDTa0AN/O6HVKm2X4P0L0WXkGHRSSiuW1TDI g8Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.ch header.s=default header.b=futuOGUy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.ch Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q25si1410568edb.159.2019.10.09.06.57.54; Wed, 09 Oct 2019 06:58:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@protonmail.ch header.s=default header.b=futuOGUy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731218AbfJIN5A (ORCPT + 99 others); Wed, 9 Oct 2019 09:57:00 -0400 Received: from mail2.protonmail.ch ([185.70.40.22]:26506 "EHLO mail2.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725879AbfJIN5A (ORCPT ); Wed, 9 Oct 2019 09:57:00 -0400 Date: Wed, 09 Oct 2019 13:56:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.ch; s=default; t=1570629417; bh=+Bb+b0Zx5h9afFwEFcIv0ox7LasYliXQisN/7bsXczU=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References: Feedback-ID:From; b=futuOGUy03/9hafXdFdEGzPPdU4uJL86TAfPvM2UBJ6f+5O2ohJ07NSKrRr+6B0Sl Oyh95IejmHcAJ25vdKDF8e4xpGsPEO8k92ynkQe3KqRzqCsjevxZ7jFRE+g8SDyQ8N t/lPuDiLb6NuNDd0xAsjFxxi2qW23CM3eamcZwxk= To: Dmitry Goldin From: Dmitry Goldin Cc: Masahiro Yamada , Andreas Schwab , Greg KH , "linux-kernel\\\\\\\\\\\\\\\\@vger.kernel.org" , "joel\\\\\\\\\\\\\\\\@joelfernandes.org" , Ben Hutchings Reply-To: Dmitry Goldin Subject: Re: [PATCH] kheaders: substituting --sort in archive creation Message-ID: In-Reply-To: References: Feedback-ID: Z14zYPZ70AFJyYagXjx-jk2Vw9RTvF5p9C9xp4Pq6DJAMFg9PDsfB7GoMmtR_dfa0BaFgToZb9Q4V0UiY2YiMQ==:Ext:ProtonMail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.protonmail.ch Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi again, Sorry for the delay, I'm currently traveling and only have access to a rather weak machine so compiles took ages. A few remarks regarding this patch; This version is not fully identical to the previous invocation, as the sort order differs a little, but I tried to get it as close to the original as I was able to. Unfortunately no sort flag seems to quite replicate tars sorting. Some noteworthy details in this version are `./` in the find format string,= LC_ALL for sort and --no-recursion; The format string is in place to replicate the exact behaviour of the previ= ous invocation, which included a leading `./`. I don't mind dropping this, if anyone feels strongly about it, but initially I set out to reproduce the result as closely as possible. LC_ALL=3DC is required as locale can impact sort order. --no-recursion is required to prevent duplication in the resulting archive, because both, folders and files, are already supplied from find and sort. I checked this part of the script on an old debian lenny (5.0.10) system an= d it behaves as expected, except for xz support not being available in the shipped gnu tar (v1.20). As far as other testing goes, I have compiled 5.3.5 on NixOS with kheaders = as a module where both runs produced identical results. Because of the limited computational power available to me right now, I did not have time yet to try the baked-in version or any additional compile runs. I would appreciate if reviewers could do a few runs too. Andreas: Could you give this patch a try and see if this works for you? -- Thanks and best regards, Dmitry