Bug#1110508: jpeg-xl FTCBFS: depend on a foreign jdk
Helmut Grohne
helmut at subdivi.de
Wed Aug 6 21:54:31 BST 2025
Source: jpeg-xl
Version: 0.11.1-4
Tags: patch
User: debian-cross at lists.debian.org
Usertags: ftcbfs
jpeg-xl fails to cross build from source, because its default-jdk
dependency requests a host architecture jdk, which cannot be run. Once
annotating it :native, the cross build succeeds.
While looking into this, I first tried cross building with the nojava
profile, but that happened to not work. The attached patch includes a
fix.
Please consider applying both in forky.
Helmut
-------------- next part --------------
diff -Nru jpeg-xl-0.11.1/debian/changelog jpeg-xl-0.11.1/debian/changelog
--- jpeg-xl-0.11.1/debian/changelog 2025-03-20 18:49:07.000000000 +0100
+++ jpeg-xl-0.11.1/debian/changelog 2025-08-05 11:08:36.000000000 +0200
@@ -1,3 +1,11 @@
+jpeg-xl (0.11.1-4.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: Depend on a native jdk. (Closes: #-1)
+ * Fix the nojava build profile.
+
+ -- Helmut Grohne <helmut at subdivi.de> Tue, 05 Aug 2025 11:08:36 +0200
+
jpeg-xl (0.11.1-4) unstable; urgency=medium
* Team upload
diff -Nru jpeg-xl-0.11.1/debian/control jpeg-xl-0.11.1/debian/control
--- jpeg-xl-0.11.1/debian/control 2025-03-20 18:49:07.000000000 +0100
+++ jpeg-xl-0.11.1/debian/control 2025-08-05 11:08:36.000000000 +0200
@@ -7,7 +7,7 @@
Build-Depends: asciidoc-base, gcc-13 [hppa powerpc ppc64 riscv64 sparc64 s390x], g++-13 [hppa powerpc ppc64 riscv64 sparc64 s390x],
cmake (>= 3.10),
debhelper-compat (= 13),
- default-jdk [amd64 arm64 armel armhf i386 mips64el ppc64el riscv64 s390x alpha ia64 m68k powerpc ppc64 sh4 sparc64 x32] <!nojava>,
+ default-jdk:native [amd64 arm64 armel armhf i386 mips64el ppc64el riscv64 s390x alpha ia64 m68k powerpc ppc64 sh4 sparc64 x32] <!nojava>,
docbook-xml,
help2man,
libavif-dev (>= 0.10.1),
@@ -120,6 +120,7 @@
Package: libjpegxl-java
Architecture: amd64 arm64 armel armhf i386 mips64el ppc64el riscv64 s390x alpha ia64 m68k powerpc ppc64 sh4 sparc64 x32
+Build-Profiles: <!nojava>
Section: java
Depends: ${java:Depends}, ${misc:Depends}, ${shlibs:Depends}
Suggests: java-virtual-machine
More information about the Pkg-phototools-devel
mailing list