Bug#906347: disruptor: FTBFS in buster/sid (error: diamond operator is not supported in -source 6)

Santiago Vila sanvila at debian.org
Fri Aug 17 12:19:21 BST 2018


Package: src:disruptor
Version: 3.4.2-1
Severity: serious
Tags: ftbfs

Dear maintainer:

I tried to build this package in buster but it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
dh build-indep --buildsystem=maven
   dh_update_autotools_config -i -O--buildsystem=maven
   dh_autoreconf -i -O--buildsystem=maven
   debian/rules override_dh_auto_configure
make[1]: Entering directory '/<<PKGBUILDDIR>>'
cp debian/pom.xml .
dh_auto_configure
	mh_patchpoms -plibdisruptor-java --debian-build --keep-pom-version --maven-repo=/<<PKGBUILDDIR>>/debian/maven-repo
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_auto_build -i -O--buildsystem=maven
	/usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven/boot/plexus-classworlds-2.x.jar -Dmaven.home=/usr/share/maven -Dmaven.multiModuleProjectDirectory=/<<PKGBUILDDIR>> -Dclassworlds.conf=/etc/maven/m2-debian.conf -Dproperties.file.manual=/<<PKGBUILDDIR>>/debian/maven.properties org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Ddebian.dir=/<<PKGBUILDDIR>>/debian -Dmaven.repo.local=/<<PKGBUILDDIR>>/debian/maven-repo --batch-mode package -DskipTests -Dnotimestamp=true -Dlocale=en_US
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)

[... snipped ...]

[INFO] [parsing started SimpleFileObject[/<<PKGBUILDDIR>>/src/main/java/com/lmax/disruptor/EventPoller.java]]
[INFO] [parsing completed 0ms]
[INFO] [parsing started SimpleFileObject[/<<PKGBUILDDIR>>/src/main/java/com/lmax/disruptor/SleepingWaitStrategy.java]]
[INFO] [parsing completed 4ms]
[INFO] [total 303ms]
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /<<PKGBUILDDIR>>/src/main/java/com/lmax/disruptor/dsl/EventHandlerGroup.java:[60,37] error: diamond operator is not supported in -source 6
  (use -source 7 or higher to enable diamond operator)
[ERROR] /<<PKGBUILDDIR>>/src/main/java/com/lmax/disruptor/dsl/ConsumerRepository.java:[30,28] error: diamond operator is not supported in -source 6
  (use -source 7 or higher to enable diamond operator)
[ERROR] /<<PKGBUILDDIR>>/src/main/java/com/lmax/disruptor/dsl/BasicExecutor.java:[14,68] error: diamond operator is not supported in -source 6
  (use -source 7 or higher to enable diamond operator)
[ERROR] /<<PKGBUILDDIR>>/src/main/java/com/lmax/disruptor/WorkerPool.java:[61,50] error: diamond operator is not supported in -source 6
  (use -source 7 or higher to enable diamond operator)
[ERROR] /<<PKGBUILDDIR>>/src/main/java/com/lmax/disruptor/dsl/Disruptor.java:[63,84] error: diamond operator is not supported in -source 6
  (use -source 7 or higher to enable diamond operator)
[INFO] 5 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.887 s
[INFO] Finished at: 2018-08-15T06:31:21Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project disruptor: Compilation failure: Compilation failure: 
[ERROR] /<<PKGBUILDDIR>>/src/main/java/com/lmax/disruptor/dsl/EventHandlerGroup.java:[60,37] error: diamond operator is not supported in -source 6
[ERROR]   (use -source 7 or higher to enable diamond operator)
[ERROR] /<<PKGBUILDDIR>>/src/main/java/com/lmax/disruptor/dsl/ConsumerRepository.java:[30,28] error: diamond operator is not supported in -source 6
[ERROR]   (use -source 7 or higher to enable diamond operator)
[ERROR] /<<PKGBUILDDIR>>/src/main/java/com/lmax/disruptor/dsl/BasicExecutor.java:[14,68] error: diamond operator is not supported in -source 6
[ERROR]   (use -source 7 or higher to enable diamond operator)
[ERROR] /<<PKGBUILDDIR>>/src/main/java/com/lmax/disruptor/WorkerPool.java:[61,50] error: diamond operator is not supported in -source 6
[ERROR]   (use -source 7 or higher to enable diamond operator)
[ERROR] /<<PKGBUILDDIR>>/src/main/java/com/lmax/disruptor/dsl/Disruptor.java:[63,84] error: diamond operator is not supported in -source 6
[ERROR]   (use -source 7 or higher to enable diamond operator)
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
dh_auto_build: /usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven/boot/plexus-classworlds-2.x.jar -Dmaven.home=/usr/share/maven -Dmaven.multiModuleProjectDirectory=/<<PKGBUILDDIR>> -Dclassworlds.conf=/etc/maven/m2-debian.conf -Dproperties.file.manual=/<<PKGBUILDDIR>>/debian/maven.properties org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Ddebian.dir=/<<PKGBUILDDIR>>/debian -Dmaven.repo.local=/<<PKGBUILDDIR>>/debian/maven-repo --batch-mode package -DskipTests -Dnotimestamp=true -Dlocale=en_US returned exit code 1
make: *** [debian/rules:7: build-indep] Error 1
dpkg-buildpackage: error: debian/rules build-indep subprocess returned exit status 2
--------------------------------------------------------------------------------

The build was made with "dpkg-buildpackage -A" in my autobuilder.
Most probably, it also fails here in reproducible builds:

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/disruptor.html

where you can get a full build log if you need it.

If this is really a bug in one of the build-depends, please use reassign and affects,
so that this is still visible in the BTS web page for this package.

Thanks.



More information about the pkg-java-maintainers mailing list