Bug#934111: jython: add explicit dependency on openjdk-11-jre-headless

Andreas Beckmann anbe at debian.org
Wed Aug 7 07:08:42 BST 2019


Package: jython
Version: 2.7.1+repack1-3
Severity: serious
Tags: patch
User: debian-qa at lists.debian.org
Usertags: piuparts
Control: affects -1 + science-astronomy

Hi,

in order to fix some upgrade issues from stretch to buster due to the
dependency cycle between default-jre-headless, openjdk-11-jre-headless
and ca-certificates-java (#929685), please add an explicit dependency on
openjdk-11-jre-headless to jython as a workaround.
This will need to be fixed in sid first and then backported to buster.
I'm considering to NMU the workaround to get this fixed in the first
buster point release.

I'm attaching a patch and the piuparts log showing the failure.
The relevant diff of the upgrade test with the fixed package available
is:

@@ -22469,7 +22462,6 @@
   Setting up liblwp-protocol-https-perl (6.07-2) ...^M
   Setting up libjaxb-java (2.3.0.1-8) ...^M
   Setting up libxml-parser-perl (2.44-4) ...^M
-  Setting up jython (2.7.1+repack1-3) ...^M
   Setting up astro-tasks (2.0) ...^M
   Setting up libruby2.5:amd64 (2.5.5-3) ...^M
   Setting up astro-virtual-observatory (2.0) ...^M
@@ -22494,23 +22486,6 @@
   Removing obsolete conffile /etc/dbus-1/system.d/org.freedesktop.resolve1.conf ...^M
   Removing obsolete conffile /etc/dbus-1/system.d/org.freedesktop.systemd1.conf ...^M
   Removing obsolete conffile /etc/dbus-1/system.d/org.freedesktop.timedate1.conf ...^M
-  Setting up jython-stilts (3.1.5-1) ...^M
-  Exception in thread "main" java.lang.NoSuchMethodError: java.nio.ByteBuffer.clear()Ljava/nio/ByteBuffer;^M
-       at org.python.core.io.BufferedReader.clear(BufferedReader.java:147)^M
-       at org.python.core.io.BufferedReader.<init>(BufferedReader.java:27)^M
-       at org.python.core.PyFile.createBuffer(PyFile.java:227)^M
-       at org.python.core.PyFile.file___init__(PyFile.java:185)^M
-       at org.python.core.PyFile.file___init__(PyFile.java:178)^M
-       at org.python.core.PyFile.<init>(PyFile.java:101)^M
-       at org.python.core.PySystemState.<init>(PySystemState.java:237)^M
-       at org.python.core.PySystemState.doInitialize(PySystemState.java:1112)^M
-       at org.python.core.PySystemState.initialize(PySystemState.java:1023)^M
-       at org.python.core.PySystemState.initialize(PySystemState.java:979)^M
-       at org.python.core.PySystemState.initialize(PySystemState.java:974)^M
-       at org.python.util.jython.run(jython.java:263)^M
-       at org.python.util.jython.main(jython.java:142)^M
-  dpkg: error processing package jython-stilts (--configure):^M
-   installed jython-stilts package post-installation script subprocess returned error exit status 1^M
   Setting up astro-python3 (2.0) ...^M
   Setting up astro-catalogs (2.0) ...^M
   Setting up astro-datareduction (2.0) ...^M
@@ -22662,6 +22637,7 @@
   Setting up gir1.2-freedesktop:amd64 (1.58.3-2) ...^M
   Setting up gstreamer1.0-x:amd64 (1.14.4-2) ...^M
   Setting up linguider (4.1.1-1) ...^M
+  Setting up jython (2.7.1+repack1-3.1) ...^M
   Setting up texlive-latex-extra-doc (2018.20190227-2) ...^M
   Setting up libpangoxft-1.0-0:amd64 (1.42.4-6) ...^M
   Setting up texlive-pstricks-doc (2018.20190227-2) ...^M
@@ -22686,6 +22662,12 @@
   Setting up libqt4-designer:amd64 (4:4.8.7+dfsg-18) ...^M
   Setting up texlive-font-utils (2018.20190227-2) ...^M
   Setting up astrometry-data-tycho2-09-littleendian (2-4) ...^M
+  Setting up jython-stilts (3.1.5-1) ...^M
+  WARNING: An illegal reflective access operation has occurred^M
+  WARNING: Illegal reflective access by jnr.posix.JavaLibCHelper$ReflectiveAccess (file:/usr/share/java/jnr-posix.jar) to method sun.nio.ch.SelChImpl.getFD()^M
+  WARNING: Please consider reporting this to the maintainers of jnr.posix.JavaLibCHelper$ReflectiveAccess^M
+  WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations^M
+  WARNING: All illegal access operations will be denied in a future release^M
   Setting up libindidriver1:amd64 (1.7.5+dfsg-1) ...^M
   Setting up qml-module-qtquick-layouts:amd64 (5.11.3-4) ...^M
   Setting up texlive-science-doc (2018.20190227-2) ...^M
@@ -22924,14 +22906,119 @@
   Setting up qml-module-org-kde-newstuff (5.54.0-2) ...^M
   Setting up libkf5newstuff5:amd64 (5.54.0-2) ...^M
   Setting up kstars (5:3.0.0-1) ...^M
-  Errors were encountered while processing:^M
-   jython-stilts^M
-  E: Sub-process /usr/bin/dpkg returned an error code (1)
-25m16.5s ERROR: Command failed (status=100): ['chroot', '/srv/piuparts/tmp/tmpwbOfPY', 'apt-get', '-yf', 'dist-upgrade']
+  Processing triggers for libc-bin (2.28-10) ...^M
+  Processing triggers for systemd (241-5) ...^M
[...]
+74m56.0s DEBUG: Command ok: ['chroot', '/srv/piuparts/tmp/tmpbHnSGr', 'apt-get', '-yf', 'dist-upgrade']


Andreas
-------------- next part --------------
diff -Nru jython-2.7.1+repack1/debian/changelog jython-2.7.1+repack1/debian/changelog
--- jython-2.7.1+repack1/debian/changelog	2019-05-04 18:16:46.000000000 +0200
+++ jython-2.7.1+repack1/debian/changelog	2019-08-03 17:57:52.000000000 +0200
@@ -1,3 +1,15 @@
+jython (2.7.1+repack1-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Add explicit dependency on openjdk-11-jre-headless to work around
+    configuration order problems due to the dependency cycle between
+    default-jre-headless/openjdk-11-jre-headless/ca-certificates-java (see
+    #929685) which gets broken arbitrarily during upgrades. jython is one of
+    the few packages requiring a jre version that is not satisfied in stretch,
+    and therefore exhibits problems on some upgrade paths.  (Closes: #xxxxxx)
+
+ -- Andreas Beckmann <anbe at debian.org>  Sat, 03 Aug 2019 17:57:52 +0200
+
 jython (2.7.1+repack1-3) unstable; urgency=medium
 
   * Improve previous fix with default-jre-headless (>= 2:1.9), thanks to
diff -Nru jython-2.7.1+repack1/debian/control jython-2.7.1+repack1/debian/control
--- jython-2.7.1+repack1/debian/control	2019-05-04 18:14:46.000000000 +0200
+++ jython-2.7.1+repack1/debian/control	2019-08-03 17:57:52.000000000 +0200
@@ -33,6 +33,7 @@
 Architecture: all
 Depends: ${misc:Depends}, ${perl:Depends}, ${python:Depends}, ${java:Depends},
  default-jre-headless (>= 2:1.9) | java9-runtime-headless,
+ openjdk-11-jre-headless,
 Recommends: default-jdk | java-compiler
 Suggests: jython-doc, libmariadb-java, libpostgresql-jdbc-java
 Description: Python seamlessly integrated with Java
-------------- next part --------------
A non-text attachment was scrubbed...
Name: science-astronomy_1.10.log.gz
Type: application/gzip
Size: 430296 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-maintainers/attachments/20190807/919c513a/attachment-0001.gz>


More information about the pkg-java-maintainers mailing list