Source: hikaricp
Version: 2.7.1
Severity: important
Tags: patch

When rebuilding hikaricp with a jdk newer then 9 it adds a java9 classifier,
which will unfortually cause it's build dependencies (e.g. libquartz2-java) to
then fail.

Attaching a debdiff which adds a patch to drop using the classifier so the
result is consistend independent of the java version used for build

-- System Information:
Debian Release: buster/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'proposed-updates'), (500, 
'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental-debug'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: armhf

Kernel: Linux 4.19.0-2-amd64 (SMP w/32 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru hikaricp-2.7.1/debian/changelog hikaricp-2.7.1/debian/changelog
--- hikaricp-2.7.1/debian/changelog     2017-09-12 23:57:47.000000000 +0200
+++ hikaricp-2.7.1/debian/changelog     2019-02-27 14:19:28.000000000 +0100
@@ -1,3 +1,11 @@
+hikaricp (2.7.1-1co1) apertis; urgency=medium
+
+  * d/p/drop-java9-classifier.patch: Added, drop the java9 classifier if build
+    with jdk >= 9. Prevents packages from hitting FTBS when building against
+    hikaricp build with jdk 9 which built fine with older hikaricp builds.
+
+ -- Sjoerd Simons <sjoerd.sim...@collabora.co.uk>  Wed, 27 Feb 2019 14:19:28 
+0100
+
 hikaricp (2.7.1-1) unstable; urgency=medium
 
   * New upstream version 2.7.1 (Closes: #875368)
diff -Nru hikaricp-2.7.1/debian/patches/drop-java9-classifier.patch 
hikaricp-2.7.1/debian/patches/drop-java9-classifier.patch
--- hikaricp-2.7.1/debian/patches/drop-java9-classifier.patch   1970-01-01 
01:00:00.000000000 +0100
+++ hikaricp-2.7.1/debian/patches/drop-java9-classifier.patch   2019-02-27 
14:17:19.000000000 +0100
@@ -0,0 +1,29 @@
+--- a/pom.xml
++++ b/pom.xml
+@@ -442,22 +442,26 @@
+    </build>
+ 
+    <profiles>
++   <!--
+       <profile>
+          <id>Java9</id>
+          <activation>
+             <jdk>[9,)</jdk>
+          </activation>
+          <properties>
++     -->
+             <!-- sureFireOptions9>
+                -add-opens java.base/java.net=ALL-UNNAMED
+                -add-opens java.base/java.security=ALL-UNNAMED
+                -add-exports java.base/sun.net.www.protocol.http=ALL-UNNAMED
+                -add-exports java.base/sun.net.www.protocol.https=ALL-UNNAMED
+             </sureFireOptions9 -->
++   <!--
+             <sureFireForks9>true</sureFireForks9>
+             <artifact.classifier>java9</artifact.classifier>
+          </properties>
+       </profile>
++     -->
+ 
+       <profile>
+          <id>coverage</id>
diff -Nru hikaricp-2.7.1/debian/patches/series 
hikaricp-2.7.1/debian/patches/series
--- hikaricp-2.7.1/debian/patches/series        2017-09-12 23:57:42.000000000 
+0200
+++ hikaricp-2.7.1/debian/patches/series        2019-02-27 14:12:11.000000000 
+0100
@@ -1 +1,2 @@
 skip-hibernate-prometheus-micrometer
+drop-java9-classifier.patch
__
This is the maintainer address of Debian's Java team
<https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-java-maintainers>.
 Please use
debian-j...@lists.debian.org for discussions and questions.

Reply via email to