From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 15 Dec 2022 08:35:43 +0100 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1p5imN-004SOI-9m for lore@lore.pengutronix.de; Thu, 15 Dec 2022 08:35:43 +0100 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1p5imM-0001Jz-Mn; Thu, 15 Dec 2022 08:35:42 +0100 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p5ile-0000M4-0r; Thu, 15 Dec 2022 08:34:58 +0100 Received: from [2a0a:edc0:0:1101:1d::54] (helo=dude05.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1p5ilc-004eWi-Jg; Thu, 15 Dec 2022 08:34:57 +0100 Received: from mol by dude05.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1p5ilc-00AVcy-Ee; Thu, 15 Dec 2022 08:34:56 +0100 From: Michael Olbrich To: ptxdist@pengutronix.de Date: Thu, 15 Dec 2022 08:34:56 +0100 Message-Id: <20221215073456.2504813-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221205172824.3468159-1-u.kleine-koenig@pengutronix.de> References: <20221205172824.3468159-1-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [ptxdist] [APPLIED] ptxd_make_get_svn: Sort members of resulting archive by name X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: =?UTF-8?q?Uwe=20Kleine-K=C3=83=C2=B6nig?= Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Thanks, applied as 077d2aaaf06af81695c54543867ebc4bd294ace1. Michael [sent from post-receive hook] On Thu, 15 Dec 2022 08:34:56 +0100, Uwe Kleine-König wrote: > Without this option the order of the files in the created archive > depends on things like the used filesystem. To make the order (and so > the resulting md5sum) reproducible, use --sort=name. > > This option is supported in GNU tar since version 1.28 from 2014, which > is available since Debian 7 (aka wheezy). > > Signed-off-by: Uwe Kleine-König > Message-Id: <20221205172824.3468159-1-u.kleine-koenig@pengutronix.de> > Signed-off-by: Michael Olbrich > > diff --git a/scripts/lib/ptxd_make_get.sh b/scripts/lib/ptxd_make_get.sh > index 2b0ad9307476..e78c417278e4 100644 > --- a/scripts/lib/ptxd_make_get.sh > +++ b/scripts/lib/ptxd_make_get.sh > @@ -268,7 +268,7 @@ ptxd_make_get_svn() { > echo "${PROMPT}svn: last modification time '${lmtime}'" && > GZIP=-n tar --exclude-vcs --show-stored-names ${tarcomp} \ > --mtime="${lmtime}" --transform "s|^\.|${prefix}|g" \ > - --create --file "${path}" -C "${mirror}" . > + --create --sort=name --file "${path}" -C "${mirror}" . > ptxd_make_serialize_put > } > export -f ptxd_make_get_svn