← Back to team overview

openjdk team mailing list archive

Bug#822348: openjdk-8-jre-headless: prerm checks for wrong file before deregistering binfmt

 

Package: openjdk-8-jre-headless
Version: 8u91-b14-2
Severity: normal
Tags: patch

The prerm is looking for /var/lib/binfmts/@basename@ (e.g., openjdk-8) but the
files under /var/lib/binfmts are named after the binfmt being registered, not
the package.

This means that users which have upgraded from openjdk-7 to openjdk-8 will
always see a warning message about openjdk-7 already having registered the
binfmt when a new openjdk-8 update is installed.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.4.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages openjdk-8-jre-headless depends on:
ii  ca-certificates-java  20160321
ii  java-common           0.57
ii  libc6                 2.22-7
ii  libcups2              2.1.3-5
ii  libfontconfig1        2.11.0-6.4
ii  libfreetype6          2.6.3-3+b1
ii  libgcc1               1:5.3.1-15
ii  libjpeg62-turbo       1:1.4.2-2
ii  liblcms2-2            2.7-1
ii  libnss3               2:3.23-2
ii  libpcsclite1          1.8.16-1
ii  libstdc++6            5.3.1-15
ii  libx11-6              2:1.6.3-1
ii  libxext6              2:1.3.3-1
ii  libxi6                2:1.7.6-1
ii  libxrender1           1:0.9.9-2
ii  libxtst6              2:1.2.2-1+b1
ii  multiarch-support     2.22-7
ii  util-linux            2.28-1
ii  zlib1g                1:1.2.8.dfsg-2+b1

openjdk-8-jre-headless recommends no packages.

Versions of packages openjdk-8-jre-headless suggests:
ii  fonts-dejavu-extra                 2.35-1
pn  fonts-indic                        <none>
pn  fonts-ipafont-gothic               <none>
pn  fonts-ipafont-mincho               <none>
ii  libnss-mdns                        0.10-7
pn  openjdk-8-jre-jamvm                <none>
pn  ttf-wqy-microhei | ttf-wqy-zenhei  <none>

-- no debconf information
=== modified file 'debian/JB-jre-headless.prerm.in'
--- debian/JB-jre-headless.prerm.in	2014-05-29 08:50:43 +0000
+++ debian/JB-jre-headless.prerm.in	2016-04-23 17:39:15 +0000
@@ -15,7 +15,7 @@
 
     if which update-binfmts >/dev/null; then
 	# try to remove and ignore the error
-	if [ -e /var/lib/binfmts/@basename@ ]; then
+	if [ -e /var/lib/binfmts/jar ]; then
 	    update-binfmts --package @basename@ \
 		--remove jar /usr/bin/jexec || true
 	fi