mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] ptxd_make_get_git: use singlethreaded compression with XZ
@ 2025-02-03 10:08 Lucas Stach
  2025-02-14  9:02 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Lucas Stach @ 2025-02-03 10:08 UTC (permalink / raw)
  To: ptxdist

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




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-02-14  9:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-03 10:08 [ptxdist] [PATCH] ptxd_make_get_git: use singlethreaded compression with XZ Lucas Stach
2025-02-14  9:02 ` [ptxdist] [APPLIED] " Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox