Bug#910698: ldapjdk: Build depend on default-jdk instead of openjdk-8-jdk

Emmanuel Bourg ebourg at apache.org
Wed Oct 10 00:34:47 BST 2018


Source: ldapjdk
Severity: serious
Tags: patch sid buster
User: debian-java at lists.debian.org
Usertags: default-java10

ldapjdk build-depends on openjdk-8-jdk that we aim to remove in Buster,
it should use default-jdk instead. So far nothing prevents ldapjdk from
building with more recent JDKs, it's just a matter of switching the build
dependency and adjusting the JAVA_HOME variable:


diff --git a/debian/control b/debian/control
index fc1217e..527f344 100644
--- a/debian/control
+++ b/debian/control
@@ -8,7 +8,7 @@ Build-Depends:
  debhelper (>= 10),
  javahelper,
 Build-Depends-Indep:
- openjdk-8-jdk-headless,
+ default-jdk,
  libjss-java (>= 4.5.0~),
  liboro-java,
 Standards-Version: 4.1.2
diff --git a/debian/rules b/debian/rules
index 529f24d..1089c01 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,6 @@
 #!/usr/bin/make -f

-export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-$(DEB_BUILD_ARCH)
+export JAVA_HOME=/usr/lib/jvm/default-java

 %:
        dh $@ --with javahelper



More information about the pkg-java-maintainers mailing list