Article View: linux.debian.bugs.dist
Article #953Bug#1150993: f2j FTCBFS: fails running the host architecture java compiler
From: Helmut Grohne
Date: Thu, 15 Oct 2026 12:30
Date: Thu, 15 Oct 2026 12:30
78 lines
4224 bytes
4224 bytes
--S5yqM9nzQHiL/Ud1
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Source: f2j
Version: 0.8.1+dfsg-6
Tags: patch
User: debian-cross@lists.debian.org
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
--S5yqM9nzQHiL/Ud1
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="f2j_0.8.1+dfsg-6.1.debdiff"
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 <helmut@subdivi.de> 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
--S5yqM9nzQHiL/Ud1--
Technical Details
Message-ID:
<NOsKR-5GFG-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomod From: Helmut Grohne <helmut@subdivi.de> Newsgroups: linux.debian.bugs.dist Subject: Bug#1150993: f2j FTCBFS: fails running the host architecture java compiler Date: Thu, 15 Oct 2026 14:30:01 +0200 Message-ID: <NOsKR-5GFG-1@gated-at.bofh.it> X-Original-To: Debian Bug Tracking System <submit@bugs.debian.org> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Thu Oct 15 12:23:15 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.451 Reply-To: Helmut Grohne <helmut@subdivi.de>, 1150993@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: pkg-java-maintainers@lists.alioth.debian.org X-Debian-Pr-Message: report 1150993 X-Debian-Pr-Package: src:f2j X-Debian-Pr-Keywords: patch X-Debian-Pr-Source: f2j MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="S5yqM9nzQHiL/Ud1" Content-Disposition: inline X-Reportbug-Version: 13.2.0 X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1996934 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 78 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Tue, 13 Oct 2026 09:04:58 +0200 X-Original-Message-ID: <20261013070458.GA1791286@subdivi.de>