Bug#1059147: maven: successful invocation of mvn writes unexpeceted output to stderr
On Wed, Dec 20, 2023 at 03:13:23PM +0100, Clemens Ballarin wrote: > Package: maven > Version: 3.8.7-1 > Severity: normal > X-Debbugs-Cc: debian-bugrepo...@ankordata.de > > Dear Maintainer, > > Maven writes an ansi control sequence to an otherwise empty stderr: > > $ mvn --help 2>&1 >/dev/null | hexdump -C > 1b 5b 30 6d |.[0m| > 0004 > > Apache's upstream version does not exhibit this behaviour, there is no output: > > $ PATH=${HOME}/software/apache-maven-3.8.7/bin:${PATH} mvn --help 2>&1 > >/dev/null | hexdump -C > > This is also a regression from Debian 11.8 and Maven 3.6.3-5. > > It complicates a somewhat pedantic test scenario. Fix would be appreciated. This appears related to (and perhaps a duplicate of) #1039607 [1]. As I noted there, I think the strategy should be to revert the default behavior to match upstream and add functionality as needed for colorized output in pdebuild. I will try to allocate some time to work on this next week. Thanks, tony [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1039607
Bug#1059147: maven: successful invocation of mvn writes unexpeceted output to stderr
Package: maven Version: 3.8.7-1 Severity: normal X-Debbugs-Cc: debian-bugrepo...@ankordata.de Dear Maintainer, Maven writes an ansi control sequence to an otherwise empty stderr: $ mvn --help 2>&1 >/dev/null | hexdump -C 1b 5b 30 6d |.[0m| 0004 Apache's upstream version does not exhibit this behaviour, there is no output: $ PATH=${HOME}/software/apache-maven-3.8.7/bin:${PATH} mvn --help 2>&1 >/dev/null | hexdump -C This is also a regression from Debian 11.8 and Maven 3.6.3-5. It complicates a somewhat pedantic test scenario. Fix would be appreciated. -- System Information: Debian Release: 12.4 APT prefers stable-security APT policy: (500, 'stable-security'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 6.1.0-15-amd64 (SMP w/16 CPU threads; PREEMPT) Kernel taint flags: TAINT_FIRMWARE_WORKAROUND Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.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 Versions of packages maven depends on: ii default-jre-headless [java7-runtime-headless] 2:1.17-74 ii libjansi-java 2.4.0-2 ii libmaven3-core-java 3.8.7-1 ii libwagon-file-java3.5.3-1 ii libwagon-http-shaded-java 3.5.3-1 ii openjdk-11-jre-headless [java7-runtime-headless] 11.0.21+9-1~deb11u1 ii openjdk-17-jre-headless [java7-runtime-headless] 17.0.9+9-1~deb12u1 maven recommends no packages. maven suggests no packages. -- no debconf information