Bug#775775: ca-certificates-java: please add support for openjdk-8

Joseph Ferguson joe at infosiftr.com
Mon Jan 19 19:07:50 UTC 2015


Package: ca-certificates-java
Version: 20140324
X-Debbugs-CC: admwiggin at gmail.com

I am having an issue on sid where ca-certificates-java does not find java
when using jdk 8, thus leaving the '/etc/ssl/certs/java/cacerts' uncreated.

Here is the command I run on a fresh system (technically a docker
container, but that is unrelated):
$ apt-get update && apt-get install openjdk-8-jdk='8u40~b09-1'

Here is the truncated output:
Setting up ca-certificates-java (20140324) ...
/var/lib/dpkg/info/ca-certificates-java.postinst: line 53: java: command
not found
/var/lib/dpkg/info/ca-certificates-java.postinst: line 66: java: command
not found
done.

I have made a patch of minimal changes (since you may want to tweak the
ordering) to add java-8 to the search paths.

*** postinst.in 2015-01-19 10:31:22.523025381 -0800
--- postinst-new.in 2015-01-19 10:32:18.909532328 -0800
*************** nsslib_name()
*** 27,32 ****
--- 27,33 ----
  setup_path()
  {
      for jvm in java-6-openjdk-$arch java-6-openjdk \
+                java-8-openjdk-$arch java-8-openjdk \
                 java-7-openjdk-$arch java-7-openjdk java-6-sun; do
      if [ -x /usr/lib/jvm/$jvm/bin/java ]; then
          break

Here is related discussion:
https://bugs.launchpad.net/ubuntu/+source/ca-certificates-java/+bug/1396760
https://github.com/docker-library/java/issues/19

Thanks,
Joe Ferguson

(thanks to @tianon for his guidance in making this report)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20150119/f0d37a07/attachment.html>


More information about the pkg-java-maintainers mailing list