Hi Emmanuel, On Mon, Jul 11, 2016 at 12:24:09PM +0200, Emmanuel Bourg wrote: > > Spliterator is a Java 8 class, we should update the build dependencies > of the package. For the backport you can either use openjdk-8-jdk
I somehow imagined this and tried with openjdk-8-jdk but this results in way more errors than when using openjdk-7. When trying $ git diff debian/control debian/rules diff --git a/debian/control b/debian/control index 3aac9aa..a14cebc 100644 --- a/debian/control +++ b/debian/control @@ -10,7 +10,7 @@ Uploaders: Build-Depends: ant, debhelper (>= 9), - default-jdk, + openjdk-8-jdk, eclipse-jdt, eclipse-rcp, findbugs, diff --git a/debian/rules b/debian/rules index 83388f1..23bad8b 100755 --- a/debian/rules +++ b/debian/rules @@ -6,7 +6,7 @@ MAVEN_VERSION := 2.4.1 PACKAGE := bnd VERSION := $(MAVEN_VERSION) -export JAVA_HOME = /usr/lib/jvm/default-java +export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-$(DEB_HOST_ARCH) %: dh $@ --buildsystem=gradle I get: ... [javac] /build/bnd-2.4.1/biz.aQute.bnd/src/aQute/bnd/main/bnd.java:3744: warning: '_' used as an identifier [javac] List<String> files = opts._(); [javac] ^ [javac] (use of '_' as an identifier might not be supported in releases after Java SE 8) [javac] /build/bnd-2.4.1/biz.aQute.bnd/src/aQute/bnd/main/bnd.java:3881: warning: '_' used as an identifier [javac] List<String> files = options._(); [javac] ^ [javac] (use of '_' as an identifier might not be supported in releases after Java SE 8) [javac] /build/bnd-2.4.1/biz.aQute.bnd/src/aQute/bnd/main/bnd.java:3975: warning: '_' used as an identifier [javac] List<String> args = opts._(); [javac] ^ [javac] (use of '_' as an identifier might not be supported in releases after Java SE 8) [javac] /build/bnd-2.4.1/biz.aQute.bnd/src/aQute/bnd/main/bnd.java:4030: warning: '_' used as an identifier [javac] List<String> args = opts._(); [javac] ^ [javac] (use of '_' as an identifier might not be supported in releases after Java SE 8) [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 72 warnings [copy] Copying 1 file to /build/bnd-2.4.1/bootstrap/build/aQute/bnd/ant BUILD FAILED /build/bnd-2.4.1/debian/bootstrap.xml:33: taskdef class org.codehaus.groovy.ant.Groovyc cannot be found using the classloader AntClassLoader[] May be just another missing Build-Depends. I remember when http://ftp-master.debian.org/users/twerner/jar-content.txt.gz regularly updated that it was easy to find out what package provides which class - but that service seems to have gone. :-( > or > remove the spliterator() method from this class. I might consider this if the above does not work. Kind regards Andreas. -- http://fam-tille.de