Bug#696227: /usr/bin/make-jpkg: Java build number in the directory name.
Vincent Smeets
Vincent.VSmeets at GMail.com
Tue Dec 18 11:51:31 UTC 2012
Package: java-package
Version: 0.51~exp1
Severity: minor
File: /usr/bin/make-jpkg
Hallo,
I have manually installed this version of java-package (from
experimental) in my Debian stable environment. to be able to install the
oracle java JDK in a debian way on my machine.
The packages generated by make-jpkg are oracle-java6-jdk (version: 6.38)
and oracle-java7-jdk (version: 7.10). The package names contain only the
major java version numbers, not the build numbers.
Installing those packages results however in the directories
/usr/lib/jvm/jdk-6.38-oracle-x64 and /usr/lib/jvm/jdk-7.10-oracle-x64.
The problem is that every time a new version of the JDK is installed, it
will be installed in a new directory. This means that after every
update, I will have to review and update all the references to the JDK
directory. I case there are a lot of references or a lot of users
defining the directory name in there own profile, an update will result
into a broken system.
My sugestion is to remove the build number from the directory name e.g.:
/usr/lib/jvm/jdk-6-oracle-x64 and /usr/lib/jvm/jdk-7-oracle-x64.
An other option (which I don't like) would be to provide a symbolic link
named /usr/lib/jvm/jdk-6-oracle-x64 to the full directory name.
Regards,
Vincent Smeets
-- System Information:
Debian Release: 6.0.6
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.iso88591, LC_CTYPE=de_DE.iso88591 (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash
Versions of packages java-package depends on:
ii debconf [debconf-2.0] 1.5.36.1 Debian configuration management sy
ii debhelper 8.0.0 helper programs for debian/rules
ii fakeroot 1.14.4-1 Gives a fake root environment
ii libasound2 1.0.23-2.1 shared library for ALSA applicatio
ii libx11-6 2:1.3.3-4 X11 client-side library
ii unzip 6.0-4 De-archiver for .zip files
Versions of packages java-package recommends:
ii dpkg-dev 1.15.8.13 Debian package development tools
ii gcc 4:4.4.5-1 The GNU C compiler
Versions of packages java-package suggests:
ii openjdk-6-jre 6b18-1.8.13-0+squeeze2 OpenJDK Java runtime, using Hotspo
pn openjdk-7-jre <none> (no description available)
-- debconf information:
* java-package/postinst-note:
More information about the pkg-java-maintainers
mailing list