← Back to team overview

openjdk team mailing list archive

Bug#794502: openjdk-8-jdk: Dangling symlink /usr/lib/jvm/java-8-openjdk-amd64/src.zip should not be included in the package

 

Package: openjdk-8-jdk
Version: 8u66-b01-1
Severity: minor

$ dpkg -L openjdk-8-jdk:amd64 | grep src
/usr/lib/jvm/java-8-openjdk-amd64/src.zip

This is a dangling symlink which is meaningful only when
openjdk-8-source is also installed.

$ file $( dpkg -L openjdk-8-jdk:amd64 | grep src
/usr/lib/jvm/java-8-openjdk-amd64/src.zip: broken symbolic link to ../openjdk-8/src.zip

Given that openjdk-8-source depends on openjdk-8-jdk, we should perhaps
use the postinst and postrm mechanisms in the former package so as to
dynamically create and remove the symlink.

The dangling symlink caused a problem in building Google Bazel:
https://github.com/google/bazel/issues/69#issuecomment-111181174


Incidentally, openjdk-7-jdk also have the same issue:
$ file $( dpkg -L openjdk-7-jdk:amd64 | grep src
/usr/lib/jvm/java-7-openjdk-amd64/src.zip: broken symbolic link to ../openjdk-7/src.zip

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

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

Versions of packages openjdk-8-jdk depends on:
ii  libc6          2.19-19
ii  libx11-6       2:1.6.3-1
ii  openjdk-8-jre  8u66-b01-1
ii  zlib1g         1:1.2.8.dfsg-2+b1

Versions of packages openjdk-8-jdk recommends:
ii  libxt-dev  1:1.1.4-1+b1

Versions of packages openjdk-8-jdk suggests:
pn  openjdk-8-demo    <none>
pn  openjdk-8-source  <none>
pn  visualvm          <none>

-- no debconf information