#809336 java-package: link points to nonexisting file

#809336#5
Date:
2015-12-29 14:44:54 UTC
From:
To:
Dear Maintainer,

after creating and installing oracle-java8-jdk (8u66)
/usr/lib/jvm/jdk-8-oracle-x64/jre/lib/security/cacerts
links to the file
/etc/ssl/certs/java/cacerts
which does not exist.

For comparison: On Debian Jessie with java-package 0.56, after the installation of oracle-java8-jdk (8u66)
/usr/lib/jvm/jdk-8-oracle-x64/jre/lib/security/cacerts
is a regular file.

I would expect that after the installation no symlinks are broken.

Best wishes
Markus

#809336#10
Date:
2015-12-31 00:11:32 UTC
From:
To:
Hi Markus,

Thank you for the report. Did you generate the package with the
--with-system-certs option? How did you install it? Could you check if
the package depends on ca-certificates-java? This is the package
generating /etc/ssl/certs/java/cacerts.

Emmanuel Bourg

#809336#15
Date:
2015-12-31 09:41:25 UTC
From:
To:
Hi Emmanuel,

thanks for your reply.

Am 31.12.2015 um 01:11 schrieb Emmanuel Bourg:


I generated the package by calling

  make-jpkg jdk-8u66-linux-x64.tar.gz

The generated package oracle-java8-jdk_8u66_amd64.deb
has a dependency on ca-certificates-java

Since I don't have any openjdk installed, I downloaded
ca-certificates-java_20140324_all.deb
and installed both packages by calling:

  dpkg -i oracle-java8-jdk_8u66_amd64.deb
ca-certificates-java_20140324_all.deb

after which /etc/ssl/certs/java/cacerts does not exist.


Just tried a few variants and I found a workaround by calling instead of
the above:

  dpkg -i ca-certificates-java_20140324_all.deb
oracle-java8-jdk_8u66_amd64.deb

(just switching the order of the debs) which does generate
/etc/ssl/certs/java/cacerts


After figuring this out, I am not sure anymore if this is an issue of
java-package or if this should be reported to dpkg or ca-certificates-java.


Best wishes
Markus