Source: xz-utils
Version: 5.6.2-1
Severity: normal
The debian/rules file includes:
ifneq (,$(findstring n,$(MAKEFLAGS)))
opt_no_act = --no-act
endif
which doesn't only match the -n option but also --no-print-directory,
which dpkg-buildpackage adds when DEB_BUILD_OPTIONS=terse.
This patch fixes the option matching:
--- a/debian/rules
+++ b/debian/rules
@@ -102,7 +102,7 @@
opt_optimize_small += --disable-assembler
endif
-ifneq (,$(findstring n,$(MAKEFLAGS)))
+ifneq (,$(findstring n,$(firstword -$(MAKEFLAGS))))
opt_no_act = --no-act
endif
--- END ---
(note the '-' is needed to handle the case where no single-letter
options are given).
Ben.
-- System Information:
Debian Release: trixie/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500,
'stable-security'), (500, 'oldstable-updates'), (500, 'oldstable-security'),
(500, 'oldoldstable-updates'), (500, 'oldoldstable'), (500, 'unstable'), (500,
'stable'), (500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.8.12-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
-- no debconf information