From 5822b37460127d772f06a09b0acceaf87a1fec66 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Mon, 26 Feb 2024 23:22:36 +0100 Subject: [PATCH] test: Pass -T+1 to xz to workaround spurious warning with xz 5.6.0 This new xz version will automatically emit a warning when it reduces the amount of threads to use if it exceeds the soft memory limit, even when the user has not specified a number of threads to use. This is making the test fail. Add an explicit -T+1 for now to force parallel mode with a single thread until the warning problem gets sorted out in xz upstream. Closes: #1064856 --- src/at/deb-format.at | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/at/deb-format.at b/src/at/deb-format.at index e67ee105d..13654d4eb 100644 --- a/src/at/deb-format.at +++ b/src/at/deb-format.at @@ -517,8 +517,11 @@ AT_SKIP_IF([! command -v xz >/dev/null]) DPKG_GEN_PKG_DEB_FORMAT_TEMPL() AT_CHECK([ # Extract the base members -xz -c control.tar >control.tar.xz -xz -c data.tar >data.tar.xz +# XXX: Due to a new behavior in xz 5.6.0, when it automatically reduces the +# amount of threads it prints a warning on stderr, even w/o -T. We pass an +# explicit -T+1 to force parallel mode but only use one thread as a workaround. +xz -T+1 -c control.tar >control.tar.xz +xz -T+1 -c data.tar >data.tar.xz ]) AT_CHECK([ -- 2.11.4.GIT