Bug#1057492: bnd: FTBFS with default Java 21
Vladimir Petko
vladimir.petko at canonical.com
Tue Dec 5 20:33:50 GMT 2023
Source: bnd
Version: 5.0.1-4
Severity: important
Tags: ftbfs
User: debian-java at lists.debian.org
Usertags: default-java21
X-Debbugs-Cc: vladimir.petko at canonical.com
Dear Maintainers,
The package bnd ftbfs with default Java 21.
The relevant part of the build log:
---------------
bootstrap:
[mkdir] Created dir: /<<PKGBUILDDIR>>/bootstrap/build
[javac] /<<PKGBUILDDIR>>/debian/bootstrap.xml:17: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 865 source files to /<<PKGBUILDDIR>>/bootstrap/build
[javac] /<<PKGBUILDDIR>>/aQute.libg/src/aQute/lib/collections/SortedList.java:31: error: types List<T> and SequencedSet<T> are incompatible;
[javac] public class SortedList<T> implements SortedSet<T>, List<T> {
[javac] ^
[javac] both define reversed(), but with unrelated return types
[javac] where T is a type-variable:
[javac] T extends Object declared in class SortedList
[javac] /<<PKGBUILDDIR>>/biz.aQute.bnd.annotation/src/aQute/bnd/annotation/headers/RequireCapability.java:85: warning: [dep-ann] deprecated item is not annotated with @Deprecated
[javac] aQute.bnd.annotation.headers.Resolution resolution() default aQute.bnd.annotation.headers.Resolution.mandatory;
[javac] ^
[javac] /<<PKGBUILDDIR>>/biz.aQute.bndlib/src/aQute/bnd/build/Project.java:2082: warning: [removal] runFinalization() in System has been deprecated and marked for removal
[javac] System.runFinalization();
[javac] ^
[javac] /<<PKGBUILDDIR>>/biz.aQute.bndlib/src/aQute/bnd/component/annotations/Component.java:97: warning: [dep-ann] deprecated item is not annotated with @Deprecated
[javac] boolean servicefactory() default false;
[javac] ^
[javac] /<<PKGBUILDDIR>>/biz.aQute.bnd.annotation/src/aQute/bnd/annotation/component/Component.java:40: warning: [dep-ann] deprecated item is not annotated with @Deprecated
[javac] ConfigurationPolicy configurationPolicy() default ConfigurationPolicy.optional;
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 1 error
[javac] 4 warnings
BUILD FAILED
/<<PKGBUILDDIR>>/debian/bootstrap.xml:17: Compile failed; see the compiler error output for details.
Total time: 6 seconds
make[1]: *** [debian/rules:14: override_dh_auto_build] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:10: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2023-09-29T09:36:06Z
---------------
-- System Information:
Debian Release: trixie/sid
APT prefers mantic-updates
APT policy: (500, 'mantic-updates'), (500, 'mantic-security'), (500, 'mantic')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.5.0-13-generic (SMP w/32 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
More information about the pkg-java-maintainers
mailing list