Bug#1039607: libjansi-java: causes maven to always output escape character

2024-01-10 Thread Clemens Ballarin

Am 08.01.2024 um 07:03 schrieb tony mancill:


I am preparing an upload of maven to experimental (version 3.8.7-2~exp1)
that implements the changes described above.  I will push the packaging
changes to the debian/experimental branch in the Salsa repo.  The patch
for mvn can be found here:

[...]

I believe this will address the issues reported in
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1039607 and
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1059147

Feedback welcome.  We can coordinate here before any migrations from
experimental to unstable.


Thank you for the fix. To test we created a chroot environment with the 
following upgrades:


apt install libjansi-java/experimental
apt install maven/experimental libmaven3-core-java/experimental 
libcommons-cli-java/unstable libcommons-lang3-java/unstable

The issue reported in 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1059147 as well as our 
original issue are resolved.




Bug#1059147: maven: successful invocation of mvn writes unexpeceted output to stderr

2023-12-20 Thread Clemens Ballarin
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