Bug#1147315: jssc FTCBFS: multiple reasons

Helmut Grohne helmut at subdivi.de
Wed Sep 9 16:07:28 BST 2026


Source: jssc
Version: 2.8.0-4
Tags: patch
User: debian-cross at lists.debian.org
Usertags: ftcbfs

jssc fails to cross build from source for two distinct reasons. It
Build-Depends on plain "default-jdk" and therefore gets a host
architecture toolchain. Typically a native JDK is needed. A host JRE is
rarely needed. Once changing this, the C++ build fails as it uses the
build architecture compiler. In that place, a host architecture compiler
is needed and dpkg's buildtools.mk is the easiest way to get one. Please
consider applying the attached patch.

Helmut
-------------- next part --------------
diff -Nru jssc-2.8.0/debian/changelog jssc-2.8.0/debian/changelog
--- jssc-2.8.0/debian/changelog	2023-09-29 09:32:16.000000000 +0200
+++ jssc-2.8.0/debian/changelog	2026-09-09 15:00:27.000000000 +0200
@@ -1,3 +1,12 @@
+jssc (2.8.0-4.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Depend on the native Java development kit.
+    + Use the host architecture C++ compiler.
+
+ -- Helmut Grohne <helmut at subdivi.de>  Wed, 09 Sep 2026 15:00:27 +0200
+
 jssc (2.8.0-4) unstable; urgency=medium
 
   * Team upload.
diff -Nru jssc-2.8.0/debian/control jssc-2.8.0/debian/control
--- jssc-2.8.0/debian/control	2023-09-29 09:30:37.000000000 +0200
+++ jssc-2.8.0/debian/control	2026-09-09 15:00:26.000000000 +0200
@@ -5,7 +5,7 @@
 Uploaders: Scott Howard <showard at debian.org>
 Build-Depends:
  debhelper-compat (= 13),
- default-jdk,
+ default-jdk:native,
  javahelper (>= 0.43)
 Standards-Version: 4.6.2
 Vcs-Browser: https://salsa.debian.org/java-team/jssc
diff -Nru jssc-2.8.0/debian/rules jssc-2.8.0/debian/rules
--- jssc-2.8.0/debian/rules	2023-09-29 09:28:21.000000000 +0200
+++ jssc-2.8.0/debian/rules	2026-09-09 15:00:27.000000000 +0200
@@ -1,5 +1,7 @@
 #!/usr/bin/make -f
 
+include /usr/share/dpkg/buildtools.mk
+
 export JAVA_HOME=/usr/lib/jvm/default-java
 
 # Put depended upon jars in here
@@ -12,7 +14,7 @@
 
 override_dh_auto_build:
 	dh_auto_build
-	g++ $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux -fPIC -shared -o libjSSC-$(LIBRARY_VERSION).so src/cpp/_nix_based/jssc.cpp
+	$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux -fPIC -shared -o libjSSC-$(LIBRARY_VERSION).so src/cpp/_nix_based/jssc.cpp
 
 override_dh_installchangelogs:
 	dh_installchangelogs -k README.txt


More information about the pkg-java-maintainers mailing list