[Pkg-freeipa-devel] Bug#893142: dogtag-pki FTBFS with openjdk-9
Gianfranco Costamagna
locutusofborg at debian.org
Mon Apr 9 13:32:42 UTC 2018
On Fri, 16 Mar 2018 23:04:45 +0200 Adrian Bunk <bunk at debian.org> wrote:
> Source: dogtag-pki
> Version: 10.5.5-1
> Severity: serious
>
> https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/dogtag-pki.html
>
> ...
> netscape/security/x509/RevocationReasonAdapter.java:20: error: package javax.xml.bind.annotation.adapters is not visible
> import javax.xml.bind.annotation.adapters.XmlAdapter;
> ^
> (package javax.xml.bind.annotation.adapters is declared in module java.xml.bind, which is not in the module graph)
>
>
this has been removed from java9 defaults, but you can add it manually with "add-modules"
--- dogtag-pki-10.5.5.orig/cmake/Modules/Java.cmake
+++ dogtag-pki-10.5.5/cmake/Modules/Java.cmake
@@ -80,6 +80,7 @@ function(javac target)
COMMAND ${Java_JAVAC_EXECUTABLE}
${CMAKE_JAVA_COMPILE_FLAGS}
-encoding UTF-8
+ --add-modules java.xml.bind
-cp ${native_classpath}
-d ${output_dir}
@${file_list}
Unfortunately the package will fail because of:
cd /dogtag-pki-10.5.5/base/util/test && /usr/lib/jvm/default-java/bin/javac -encoding UTF-8 --add-modules java.xml.bind -cp :/dogtag-pki-10.5.5/build/core/dist/pki-nsutil.jar:/dogtag-pki-10.5.5/build/core/dist/pki-cmsutil.jar:/usr/share/java/jss4.jar:/usr/share/java/ldapjdk.jar:/usr/share/java/commons-codec.jar:/usr/share/java/xalan2.jar:/usr/share/java/xercesImpl.jar:HAMCREST_JAR-NOTFOUND:/usr/share/java/junit4.jar -d /dogtag-pki-10.5.5/build/core/test/classes @/dogtag-pki-10.5.5/build/core/base/util/test/pki-util-test-classes.files --add-modules sun.security
error: module not found: sun.security
this requires code changes: because sun.security.util seems dead now.
Gianfranco
More information about the Pkg-freeipa-devel
mailing list