Bug#895765: IGV FTBFS with Java 11

2018-11-09 Thread Markus Koschany
Hi,

igv also FTBFS with Java 11 now. However the fix is trivial. The package
must build-depend on libjaxb-api-java because those classes were removed
from the JDK. Then you need to remove the

--add-modules', 'java.xml.bind'

line in fix_gradle.patch.

Please find attached a patch that makes the necessary changes to the
Debian packaging without using a patch.

Markus
From 86feef76191c245ec314f1efc66f0f6dfba1a634 Mon Sep 17 00:00:00 2001
From: Markus Koschany 
Date: Fri, 9 Nov 2018 16:14:47 +0100
Subject: [PATCH 1/2] B-D on libjaxb-api-java and fix FTBFS with Java 11.

---
 debian/control | 1 +
 debian/rules   | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/debian/control b/debian/control
index 97d88d1..d406b17 100644
--- a/debian/control
+++ b/debian/control
@@ -17,6 +17,7 @@ Build-Depends: default-jdk,
libcommons-net-java,
libhttpclient-java,
libhttpcore-java,
+   libjaxb-api-java,
libjcommon-java,
libjfreechart-java,
libjhdf5-java,
diff --git a/debian/rules b/debian/rules
index 84a526b..dc61fec 100755
--- a/debian/rules
+++ b/debian/rules
@@ -14,6 +14,7 @@ override_dh_clean:
 	if [ -e build_java8.gradle ] ; then mv build_java8.gradle build.gradle ; fi
 	rm -f goby-io-igv.jar
 	rm -f batik-codec.jar
+	rm -f lib/jaxb-api.jar
 	dh_clean
 
 override_dh_auto_configure:
@@ -21,3 +22,4 @@ override_dh_auto_configure:
 	cp -a build_java9.gradle build.gradle
 	mv src/main/java9/module-info.java src/main/java9/module-info.java.skip
 	cp debian/log4j.xml src/main/resources/
+	cp /usr/share/java/jaxb-api.jar $(CURDIR)/lib/
-- 
2.19.1



signature.asc
Description: OpenPGP digital signature


Bug#895765: [Debian-med-packaging] Bug#895765: IGV FTBFS with Java 11

2018-11-10 Thread Olivier Sallou
additional remark:

igv will in this case need to depend on java >= 11 as this modification for 
build and runtime will work only for jdk11 and above

this jdk module/deprecation transition is quite a pain and make it difficult to 
get packages work for different jdk versions

- Mail original -
> De: "Markus Koschany" 
> À: 895...@bugs.debian.org
> Envoyé: Vendredi 9 Novembre 2018 16:33:33
> Objet: [Debian-med-packaging] Bug#895765: IGV FTBFS with Java 11

> Hi,
> 
> igv also FTBFS with Java 11 now. However the fix is trivial. The package
> must build-depend on libjaxb-api-java because those classes were removed
> from the JDK. Then you need to remove the
> 
> --add-modules', 'java.xml.bind'
> 
> line in fix_gradle.patch.
> 
> Please find attached a patch that makes the necessary changes to the
> Debian packaging without using a patch.
> 
> Markus
> 
> ___
> Debian-med-packaging mailing list
> debian-med-packag...@alioth-lists.debian.net
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-packaging