Your message dated Mon, 31 Oct 2022 18:21:29 +0000 with message-id <[email protected]> and subject line Bug#1017922: fixed in java-common 0.73 has caused the Debian Bug report #1017922, regarding java-common: update-java-alternatives --list propagates the exit code of a random grep, causing inconsistencies to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 1017922: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1017922 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: java-common Version: 0.72 Severity: normal Dear Maintainer, The update-java-alternatives shell script, which using the "list" action ("--list" / "-l"), ends with a call to the "do_list" function, which ends with: [ -n "$verbose" ] && egrep "$which" $i Therefore the exit status of this "foo && bar" becomes the return status of the function itself, and since there is no explicit "exit", it also becomes the exit status of the script itself. As a result, this listing operation, which, as far as I can tell, should almost always exit with a 0 status, often exits with a 1 status. This can either occur if that grep founds nothing or, more frequently it seems, if the "verbose" variable is empty. In other words, I got a different exit status depending on whether verbosity ("--verbose") was turned on or not, which is a surprising result for any executable indeed. $ update-java-alternatives --verbose --list &> /dev/null; echo $? 0 $ update-java-alternatives --list &> /dev/null; echo $? 1 In my humble opinion, the "do_list" function should end with an explicit "return 0". Here are my currently listed Java versions: java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 * What led up to the situation? Random crashes in a Dockerfile involving update-java-alternatives. * What exactly did you do (or not do) that was effective (or ineffective)? Tried with and without "--verbose"; used "|| true"; looked up the source script. * What was the outcome of this action? Bypassing the exit status. * What outcome did you expect instead? There should be no need to bypass it. -- System Information: Debian Release: bullseye/sid APT prefers focal-updates APT policy: (500, 'focal-updates'), (500, 'focal-security'), (500, 'focal'), (100, 'focal-backports') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.15.0-46-generic (SMP w/8 CPU cores) Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled java-common depends on no packages. java-common recommends no packages. Versions of packages java-common suggests: pn default-jre <none> -- no debconf information
--- End Message ---
--- Begin Message ---Source: java-common Source-Version: 0.73 Done: Emmanuel Bourg <[email protected]> We believe that the bug you reported is fixed in the latest version of java-common, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Emmanuel Bourg <[email protected]> (supplier of updated java-common package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Mon, 31 Oct 2022 19:07:53 +0100 Source: java-common Architecture: source Version: 0.73 Distribution: unstable Urgency: medium Maintainer: Debian Java Maintainers <[email protected]> Changed-By: Emmanuel Bourg <[email protected]> Closes: 929105 1017922 Changes: java-common (0.73) unstable; urgency=medium . * Team upload. * Use OpenJDK 17 on alpha, amd64, arm64, armel, armhf, i386, ia64, m68k, mipsel, mips64el, ppc64, ppc64el, riscv64, s390x, sh4, sparc64 and x32. * The java-runtime & java-runtime-headless virtual packages are now versioned * Fixed the return code of update-java-alternatives --list and --set (Closes: #929105, #1017922) * Dropped unsupported architectures: hppa, kfreebsd-amd64, kfreebsd-i386, hurd-i386, powerpcspe, s390 and sparc * New macro java_unsupported_architectures listing architectures without Java * Keep the default values for the LTS versions since Java 8 only (8, 11, 17) * Standards-Version updated to 4.6.1 * Switch to debhelper level 13 Checksums-Sha1: a6bdae2d0014b09ce46fcd892b3f8527ccca15cf 1991 java-common_0.73.dsc d782ca18c61be49409fea4d060e36ce9e00df21c 13236 java-common_0.73.tar.xz a36715ac4d6c7400d467193b47704b5e23e59a45 5712 java-common_0.73_source.buildinfo Checksums-Sha256: b78c46e1d092bfd00b9cb85d4368e9fe34d79c77fa35a5cb1ff084323fbead7f 1991 java-common_0.73.dsc baf4d8070c59068ee522ec16b1d8feb2e61b7d16e356ce4d57fc000f9e95b538 13236 java-common_0.73.tar.xz 01dee71416b0549b47ca6d7ad897b148d8f0051290ea1628565e6324b5c70358 5712 java-common_0.73_source.buildinfo Files: 97484013ef2c71ec3b8da8e2dc70be6c 1991 java optional java-common_0.73.dsc 3efc6e5b30b62489eda6920adfbc1337 13236 java optional java-common_0.73.tar.xz a00012f55f2df2364fc75e1f74f7e0ec 5712 java optional java-common_0.73_source.buildinfo -----BEGIN PGP SIGNATURE----- iQJGBAEBCgAwFiEEuM5N4hCA3PkD4WxA9RPEGeS50KwFAmNgD0QSHGVib3VyZ0Bh cGFjaGUub3JnAAoJEPUTxBnkudCsvJ0P/2HDu7WEGT/l9gFCL907SCxY9maT0URq Ee/gFqexP/8FhZoQ+ylWddzn5/6/ernXskvjqUiCqRA0t5/Ac76eAjY7PCUGzUL/ 4hhPsdympygf1R3BODakWnbJOyRn1gixHBSMiPgJDoSgvQfOaRfV7gA5u4AHHumg idGnKffuQJNJN3jTkPEPLwl8ntVLUpvDhIB1bIepXq4A0Sv280D16cisCoTLBSgL obrSUmS6mJ3BQ9HOHMrrPH3QKSxq7Hg72qtMaUijBR2tgM96ep2h1epowen9FxKD ISuqUpMInw4Wi5IFBsxjq3fweAIyZZw+zYL7vehe2SeLpuZGIihEJ2NcAA66fOX6 8cmOa8P2ObdxE8hV0US9wbtBVoWTv1IWRUsXOETl94zJYJrzCMTUYzum7vVVM02s Z8Ny7cAvk0T38P7bvpQZGC6yaZKPZOx9PBKALI07Xp0JLtJOgWt8wfEK+nyYF42L yY57NFq8BR+nbJp5buRYyA0LyPQppIoGnCi9EL99o55mdqyeCXDAYUT9/jhHewSN +OB6LYTgamQThN5Jssoj9zHIn0Pt0o+gdAZlCwgRCIzT1be4TDeELj3pefolX8Xk G2TobO5F1MnGV49rhzE/3SH16uv3LRyXfjg9vF67wJzllIKqbIvspSIDOpGvDLFO CB9e6nqSumi/ =JCgL -----END PGP SIGNATURE-----
--- End Message ---
__ This is the maintainer address of Debian's Java team <https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-java-maintainers>. Please use [email protected] for discussions and questions.
