openjdk team mailing list archive
-
openjdk team
-
Mailing list archive
-
Message #13136
[Bug 1769013] Re: Please merge ca-certificates-java 20180413 (main) from Debian unstable (main)
This bug was fixed in the package ca-certificates-java -
20180516ubuntu1~18.04.1
---------------
ca-certificates-java (20180516ubuntu1~18.04.1) bionic; urgency=medium
* Backport from Cosmic. (LP: #1770553)
ca-certificates-java (20180516ubuntu1) cosmic; urgency=low
* Merge from Debian unstable (LP: #1771815). Remaining changes:
- debian/control: Bump javahelper build dependency.
- debian/rules:
+ Explicitly depend on openjdk-11-jre-headless, needed to configure.
+ Replace javac arguments '-source 1.7 -target 1.7' with '--release 7'
as, per JEP-247, it also takes care of setting the right -bootclasspath
argument.
ca-certificates-java (20180516) unstable; urgency=medium
* Team upload.
[ Tiago Stürmer Daitx ]
* debian/jks-keystore.hook.in: don't create a jvm-*.cfg file, a default file
with the right configuration is already supplied by the openjdk packages.
* debian/jks-keystore.hook.in, debian/postinst.in: Only export JAVA_HOME
and update PATH if a known jvm was found.
* debian/postinst.in: Detect PKCS12 cacert keystore generated by
previous ca-certificates-java and convert them to JKS. (Closes: #898678)
(LP: #1771363)
[ Matthias Klose ]
* debian/rules: Explicitly depend on openjdk-11-jre-headless, needed to
configure.
[ Emmanuel Bourg ]
* Use salsa.debian.org Vcs-* URLs
ca-certificates-java (20180413ubuntu1) cosmic; urgency=medium
* Merge from debian unstable. Remaining changes: (LP: #1769013,
LP: #1739631)
+ debian/control: Bump javahelper build dependency.
+ debian/rules:
- Explicitly depend on openjdk-11-jre-headless, needed to configure.
- Replace javac arguments '-source 1.7 -target 1.7' with '--release 7'
as, per JEP-247, it also takes care of setting the right -bootclasspath
argument.
* debian/jks-keystore.hook.in: don't create a jvm-*.cfg file, a default file
with the right configuration is already supplied by the openjdk packages.
ca-certificates-java (20180413) unstable; urgency=medium
* Team upload.
* Always generate a JKS keystore instead of using the default format
(Closes: #894979)
* Look for Java 10 and Java 11 when detecting the JRE
* Removed Damien Raude-Morvan from the uploaders (Closes: #889412)
* Standards-Version updated to 4.1.4
* Switch to debhelper level 11
-- Tiago Stürmer Daitx <tiago.daitx@xxxxxxxxxx> Thu, 17 May 2018
14:10:59 +0000
** Changed in: ca-certificates-java (Ubuntu Bionic)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of OpenJDK,
which is subscribed to ca-certificates-java in Ubuntu.
https://bugs.launchpad.net/bugs/1769013
Title:
Please merge ca-certificates-java 20180413 (main) from Debian unstable
(main)
Status in JOSM:
Unknown
Status in ca-certificates-java package in Ubuntu:
Fix Released
Status in ca-certificates-java source package in Bionic:
Fix Released
Bug description:
[Original Merge description]
There's a new ca-certificates-java package in debian unstable versioned 20180413 which conflicts with cosmic's version 20170930ubuntu1 [1] and requires a merge.
The following changes should be kept:
1) debian/control: Bump javahelper build dependency.
2) debian/rules:
2a) Explicitly depend on openjdk-11-jre-headless, needed to configure.
2b) Replace javac arguments '-source 1.7 -target 1.7' with '--release 7'
as, per JEP-247, it also takes care of setting the right -bootclasspath
argument.
And a new change should be considered:
- remove the creation of a default jvm-*.cfg file from debian/jks-keystore.hook.in as openjdk packages already provides a default jvm with the right configuration.
[Impact]
Besides the fix in bug 1739631 this merge also removes the usage of a fixed jvm config file by ca-certificates-java. A long long time ago ca-certificates-java failed to be installed together with openjdk because during configuration its scripts/hooks will call java, which would then be missing the jvm config file (as openjdk was only configured but not yet installed by dpkg). Still this was wrong as such solution requires that every package that depended on openjdk during dpkg configuration to provide their own jvm cfg - since that file tells openjdk which VM are available and their alias this configuration might not match what VMs (client, server, jamvm, zero, etc) are available with any given openjdk package.
This usage is no longer required since OpenJDK packages have provided
their own default exactly for this scenario since 2009 back to
Jaunty's openjdk version 6b14-0ubuntu4 [2] - which is the correct
approach for this problem as the openjdk maintainers known what jvm
should default to in each architecture.
This has already been fixed in the postinst script by debian 874276
[3], but unfortunately the jks-keystore hook was not fixed at the
time.
[Test Case]
* Install ca-certificates-java in a clean bionic install, it should be able to configured correctly by dpkg while openjdk is also being configured.
[Regression Potential]
* if the openjdk package ever fail to ship a default jvm config file (or ships a badly configured one) the configuration step of ca-certificates-java might fail, but this is no worse than it shipping its own misconfigured jvm config file.
[Other Info]
[References]
[1] https://merges.ubuntu.com/main.html?query=ca-certificates-java
[2] https://bazaar.launchpad.net/~openjdk/openjdk/openjdk8/revision/311
[3] https://bugs.debian.org/874276
To manage notifications about this bug go to:
https://bugs.launchpad.net/josm/+bug/1769013/+subscriptions
References