Source: frobby
Version: 0.9.6-1
Tags: patch
User: [email protected]
Usertags: ftcbfs

frobby fails to cross build from source, because it does not pass any
cross tools to make. The easiest way of doing so - using dh_auto_build -
mostly fixed this. It still fails stripping with the build architecture
strip, which is hard coded in the upstream Makefile. Such stripping also
breaks DEB_BUILD_OPTIONS=nostrip as well as generation of -dbgsym
packages. Hence, it is best to avoid doing so. I'm attaching a patch to
fix all of the above for your convenience.

Helmut
diff -Nru frobby-0.9.6/debian/changelog frobby-0.9.6/debian/changelog
--- frobby-0.9.6/debian/changelog       2025-12-28 13:37:53.000000000 +0100
+++ frobby-0.9.6/debian/changelog       2026-01-09 11:46:38.000000000 +0100
@@ -1,3 +1,12 @@
+frobby (0.9.6-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Let dh_auto_build pass cross tools to make.
+    + Don't strip during build.
+
+ -- Helmut Grohne <[email protected]>  Fri, 09 Jan 2026 11:46:38 +0100
+
 frobby (0.9.6-1) unstable; urgency=medium
 
   * Upload to unstable for libfrobby0 -> libfrobby1 transition.
diff -Nru frobby-0.9.6/debian/patches/nostrip.patch 
frobby-0.9.6/debian/patches/nostrip.patch
--- frobby-0.9.6/debian/patches/nostrip.patch   1970-01-01 01:00:00.000000000 
+0100
+++ frobby-0.9.6/debian/patches/nostrip.patch   2026-01-09 11:46:38.000000000 
+0100
@@ -0,0 +1,21 @@
+--- frobby-0.9.6.orig/Makefile
++++ frobby-0.9.6/Makefile
+@@ -86,6 +86,9 @@
+ ifndef CXX
+   CXX      = "g++"
+ endif
++ifndef STRIP
++  STRIP    = strip
++endif
+ 
+ cxxflags = $(CXXFLAGS) $(CPPFLAGS) -I $(GMP_INC_DIR) -Wno-uninitialized 
-Wno-unused-parameter
+ program = frobby
+@@ -223,7 +226,7 @@
+       fi
+ endif
+ ifeq ($(MODE), release)
+-      strip $@
++      $(STRIP) $@
+ endif
+ 
+ # Link object files into library
diff -Nru frobby-0.9.6/debian/patches/series frobby-0.9.6/debian/patches/series
--- frobby-0.9.6/debian/patches/series  2025-12-28 13:19:36.000000000 +0100
+++ frobby-0.9.6/debian/patches/series  2026-01-09 11:46:38.000000000 +0100
@@ -1 +1,2 @@
 frobgrob.patch
+nostrip.patch
diff -Nru frobby-0.9.6/debian/rules frobby-0.9.6/debian/rules
--- frobby-0.9.6/debian/rules   2025-12-28 13:19:36.000000000 +0100
+++ frobby-0.9.6/debian/rules   2026-01-09 11:46:38.000000000 +0100
@@ -10,16 +10,16 @@
 export FORCE_SOURCE_DATE = 1
 
 %:
-       dh $@ --no-parallel
+       dh $@ --no-parallel --buildsystem=makefile
 
 override_dh_auto_build-arch:
-       $(MAKE) all
-       $(MAKE) library
-       $(MAKE) library MODE=shared
-       $(MAKE) docPdf
+       dh_auto_build -- all STRIP=:
+       dh_auto_build -- library
+       dh_auto_build -- library MODE=shared
+       dh_auto_build -- docPdf
 
 override_dh_auto_build-indep:
-       $(MAKE) develDocHtml
+       dh_auto_build -- develDocHtml
 
 override_dh_auto_test-indep override_dh_auto_install-indep:
 

Reply via email to