Source: prctl
Version: 1.7-1
Tags: patch
User: [email protected]
Usertags: ftcbfs

prctl fails to cross build from source, because it does not pass --host 
to ./configure and thus configures for the build architecture. The 
easiest way of passing the flag - using dh_auto_configure - also passes 
dpkg's buildflags and makes prctl cross buildable. I'm attaching a patch 
for your convenience and recommend converting the package to a more 
modern debhelper usage.

Helmut
diff -Nru prctl-1.7/debian/changelog prctl-1.7/debian/changelog
--- prctl-1.7/debian/changelog  2024-07-29 21:13:58.000000000 +0200
+++ prctl-1.7/debian/changelog  2025-09-18 13:28:23.000000000 +0200
@@ -1,3 +1,10 @@
+prctl (1.7-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dh_auto_configure pass --host to configure. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Thu, 18 Sep 2025 13:28:23 +0200
+
 prctl (1.7-1) unstable; urgency=low
 
   * New upstream release
diff -Nru prctl-1.7/debian/rules prctl-1.7/debian/rules
--- prctl-1.7/debian/rules      2024-07-27 00:08:26.000000000 +0200
+++ prctl-1.7/debian/rules      2025-09-18 13:28:23.000000000 +0200
@@ -8,7 +8,7 @@
        dh_testdir
        dh_update_autotools_config
        dh_autoreconf
-       CPPFLAGS="$(shell dpkg-buildflags --get CPPFLAGS)" CFLAGS="$(shell 
dpkg-buildflags --get CFLAGS)" LDFLAGS="$(shell dpkg-buildflags --get LDFLAGS)" 
./configure --prefix=/usr
+       dh_auto_configure
        touch configure-stamp
 
 build: build-arch build-indep

Reply via email to