Source: f2j Version: 0.8.1+dfsg-6 Tags: patch User: [email protected] Usertags: ftcbfs
f2j fails to cross build from source, because it fails running the java compiler which is requested for the host architecture by Build-Depends. Before figuring out how to fix this, I'd like to observe that the compiled jar file is installed into an arch:all package. This is not produced by a cross build. So instead of fixing it, I propose moving Java out of the arch-only build. This also helps build daemons on slower architectures as installing Java can take quite some time. Please consider applying the attached patch. Helmut
diff -Nru f2j-0.8.1+dfsg/debian/changelog f2j-0.8.1+dfsg/debian/changelog --- f2j-0.8.1+dfsg/debian/changelog 2025-09-28 17:04:04.000000000 +0200 +++ f2j-0.8.1+dfsg/debian/changelog 2026-10-13 08:26:19.000000000 +0200 @@ -1,3 +1,10 @@ +f2j (0.8.1+dfsg-6.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Skip Java in arch-only build. (Closes: #-1) + + -- Helmut Grohne <[email protected]> Tue, 13 Oct 2026 08:26:19 +0200 + f2j (0.8.1+dfsg-6) unstable; urgency=medium * Team upload. diff -Nru f2j-0.8.1+dfsg/debian/control f2j-0.8.1+dfsg/debian/control --- f2j-0.8.1+dfsg/debian/control 2025-09-28 17:04:04.000000000 +0200 +++ f2j-0.8.1+dfsg/debian/control 2026-10-13 08:26:16.000000000 +0200 @@ -5,9 +5,9 @@ Section: java Priority: optional Build-Depends: debhelper-compat (= 13), - default-jdk, bison, - javahelper +Build-Depends-Indep: default-jdk, + javahelper Standards-Version: 4.7.2 Vcs-Browser: https://salsa.debian.org/java-team/f2j Vcs-Git: https://salsa.debian.org/java-team/f2j.git diff -Nru f2j-0.8.1+dfsg/debian/rules f2j-0.8.1+dfsg/debian/rules --- f2j-0.8.1+dfsg/debian/rules 2025-09-28 17:04:04.000000000 +0200 +++ f2j-0.8.1+dfsg/debian/rules 2026-10-13 08:26:19.000000000 +0200 @@ -11,7 +11,16 @@ %: dh $@ -override_dh_auto_install: +override_dh_auto_build-arch: + dh_auto_build --sourcedirectory=libbytecode + dh_auto_build --sourcedirectory=src + +override_dh_auto_build-indep: + dh_auto_build --sourcedirectory=util + +override_dh_auto_install-arch: + +override_dh_auto_install-indep: jh_installlibs --package=libf2j-java util/f2jutil.jar

