From: Lucas Stach <l.stach@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] ptxd_make_get_git: use singlethreaded compression with XZ
Date: Mon, 3 Feb 2025 11:08:30 +0100 [thread overview]
Message-ID: <20250203100830.3586543-1-l.stach@pengutronix.de> (raw)
XZ switched to use multithreaded compression by default in versions
after 5.4. Unfortunately this changes the checksum of the resulting
archive, as the compression algorithm isn't exactly the same when
multithreading is used.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
scripts/lib/ptxd_make_get.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/lib/ptxd_make_get.sh b/scripts/lib/ptxd_make_get.sh
index eea56f8afbab..584123d75b09 100644
--- a/scripts/lib/ptxd_make_get.sh
+++ b/scripts/lib/ptxd_make_get.sh
@@ -237,7 +237,7 @@ ptxd_make_get_git() {
git --git-dir="${mirror}" config transfer.fsckObjects true &&
git --git-dir="${mirror}" config tar.tar.gz.command "gzip -cn" &&
git --git-dir="${mirror}" config tar.tar.bz2.command "bzip2 -c" &&
- git --git-dir="${mirror}" config tar.tar.xz.command "xz -c" &&
+ git --git-dir="${mirror}" config tar.tar.xz.command "xz -T 1 -c" &&
git --git-dir="${mirror}" remote add origin "${url}" &&
git --git-dir="${mirror}" fetch --progress -pf origin "+refs/*:refs/*" &&
# at least for some git versions this is not group writeable for shared repos
--
2.48.1
next reply other threads:[~2025-02-03 10:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-03 10:08 Lucas Stach [this message]
2025-02-14 9:02 ` [ptxdist] [APPLIED] " Michael Olbrich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250203100830.3586543-1-l.stach@pengutronix.de \
--to=l.stach@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox