[Pkg-electronics-devel] Bug#1129218: route-rnd FTCBFS: builds for the build architecture

Helmut Grohne helmut at subdivi.de
Fri Feb 27 06:39:15 GMT 2026


Source: route-rnd
Version: 0.9.3-1
Tags: patch
User: debian-cross at lists.debian.org
Usertags: ftcbfs

route-rnd fails to cross build from source, because it builds for the
build architecture. It is treated as an autoconf project by debhelper,
because there is a configure script, but that configure script ignores
all arguments and environment variables and does not configure anything.
The crucial piece to making this work is running dh_auto_build as a
makefile buildsystem where debhelper passes cross tools. In the attached
patch, I opted for including some related improvements and hope you
agree with them. Let me know if you prefer a minimal patch.

Helmut
-------------- next part --------------
diff -Nru route-rnd-0.9.3/debian/changelog route-rnd-0.9.3/debian/changelog
--- route-rnd-0.9.3/debian/changelog	2024-12-12 10:03:13.000000000 +0100
+++ route-rnd-0.9.3/debian/changelog	2026-02-27 07:14:39.000000000 +0100
@@ -1,3 +1,13 @@
+route-rnd (0.9.3-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Build as makefile buildsystem. (Closes: #-1)
+  * Let architecture.mk initialize DEB_HOST_* variables.
+  * Avoid branching for --no-parallel computation.
+  * configure ignores all flags, drop them.
+
+ -- Helmut Grohne <helmut at subdivi.de>  Fri, 27 Feb 2026 07:14:39 +0100
+
 route-rnd (0.9.3-1) unstable; urgency=high
 
   * new upstream version
diff -Nru route-rnd-0.9.3/debian/rules route-rnd-0.9.3/debian/rules
--- route-rnd-0.9.3/debian/rules	2024-12-12 10:03:13.000000000 +0100
+++ route-rnd-0.9.3/debian/rules	2026-02-27 07:14:37.000000000 +0100
@@ -2,28 +2,21 @@
 
 DH_VERBOSE = 1
 DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/architecture.mk
 include /usr/share/dpkg/buildflags.mk
-DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
 export DEB_CFLAGS_MAINT_APPEND = -Wno-error=incompatible-pointer-types
 
 %:
-ifeq (mipsel,$(findstring mipsel,$(DEB_HOST_ARCH)))
-	dh $@ --no-parallel
-else ifeq (mips64el,$(findstring mips64el,$(DEB_HOST_ARCH)))
-	dh $@ --no-parallel
-else
-	dh $@
-endif
+	dh $@ \
+		$(if $(filter mipsel mips64el,$(DEB_HOST_ARCH_CPU)),--no-parallel) \
+		--buildsystem=makefile
 
 override_dh_auto_clean:
 	# only try to run dh_auto_clean if configure has been run
 	test -f Makefile.conf && dh_auto_clean || true
 
 override_dh_auto_configure:
-	./configure \
-		--LDFLAGS='$(LDFLAGS)' \
-		--CFLAGS='$(CFLAGS) $(CPPFLAGS)' \
-		--prefix=/usr 
+	./configure
 
 override_dh_install:
 


More information about the Pkg-electronics-devel mailing list