openjdk team mailing list archive
-
openjdk team
-
Mailing list archive
-
Message #14612
[Bug 1723417] Re: dangling symlink: /usr/lib/jvm/java-*-openjdk-amd64/src.zip
The src.zip is a source package of the Java API classes. As it was
pointed out in a comment above, the "src.zip" symbolic link created by
the -jdk and-jdk-headless packages links to a .zip file which is
actually installed by the corresponding -source package.
This kind of a dependency between packages is best represented by the
"Suggests" relationship. It neither fits into the definition of
"Depends", nor into the definition of "Recommends". See [1].
--------------------START OF TERMINAL OUTPUT ---------------------------------
$apt-rdepends -s Suggests openjdk-8-jdk | head -4
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
openjdk-8-jdk
Suggests: openjdk-8-demo
Suggests: openjdk-8-source
Suggests: visualvm
$ apt-rdepends -s Suggests openjdk-17-jdk | head -4
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
openjdk-17-jdk
Suggests: openjdk-17-demo
Suggests: openjdk-17-source
Suggests: visualvm
---------------------END OF TERMINAL OUTPUT --------------------------
Given the -jdk packages "Suggest" the corresponding -source packages, using apt's '--install-suggests' option is one of the ways to avoid this dangling symbolic link (possibly at the cost of having many unnecessary packages installed).
[1] https://www.debian.org/doc/manuals/maint-guide/dreq.en.html#control
** Tags added: foundations-todo
--
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-8 in Ubuntu.
https://bugs.launchpad.net/bugs/1723417
Title:
dangling symlink: /usr/lib/jvm/java-*-openjdk-amd64/src.zip
Status in openjdk-11 package in Ubuntu:
New
Status in openjdk-17 package in Ubuntu:
New
Status in openjdk-8 package in Ubuntu:
Confirmed
Status in openjdk-lts package in Ubuntu:
Confirmed
Bug description:
Hi,
this is a dangling symlink:
lrwxrwxrwx 1 root root 20 sept. 30 02:37 /usr/lib/jvm/java-8-openjdk-
amd64/src.zip -> ../openjdk-8/src.zip
when the openjdk-8-source package is not installed. The symlink
should probably be moved to this other package.
ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: openjdk-8-jdk-headless 8u144-b01-2
Uname: Linux 4.13.6-041306-generic x86_64
ApportVersion: 2.20.7-0ubuntu3
Architecture: amd64
CurrentDesktop: KDE
Date: Fri Oct 13 14:18:22 2017
EcryptfsInUse: Yes
SourcePackage: openjdk-8
UpgradeStatus: Upgraded to artful on 2017-09-29 (14 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-11/+bug/1723417/+subscriptions
References