Source: libpam-radius-auth
Version: 2.0.1-1
Tags: patch
User: [email protected]
Usertags: ftcbfs

libpam-radius-auth fails to cross build from source, because it actually
attempts to build for the build architecture since it does not pass
--host to configure. The easiest way of doing so would be using
dh_auto_configure, but it seems this is not possible here. Hence, I am
proposing a patch that adds the relevant --build and --host flags
explicitly. Please consider applying it.

Helmut
diff --minimal -Nru libpam-radius-auth-2.0.1/debian/changelog 
libpam-radius-auth-2.0.1/debian/changelog
--- libpam-radius-auth-2.0.1/debian/changelog   2023-08-19 16:08:42.000000000 
+0200
+++ libpam-radius-auth-2.0.1/debian/changelog   2024-02-07 19:17:45.000000000 
+0100
@@ -1,3 +1,10 @@
+libpam-radius-auth (2.0.1-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass --build/--host to configure. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Wed, 07 Feb 2024 19:17:45 +0100
+
 libpam-radius-auth (2.0.1-1) unstable; urgency=medium
 
   [ Debian Janitor ]
diff --minimal -Nru libpam-radius-auth-2.0.1/debian/rules 
libpam-radius-auth-2.0.1/debian/rules
--- libpam-radius-auth-2.0.1/debian/rules       2023-08-19 11:12:42.000000000 
+0200
+++ libpam-radius-auth-2.0.1/debian/rules       2024-02-07 19:17:44.000000000 
+0100
@@ -1,5 +1,7 @@
 #!/usr/bin/make -f
 
+include /usr/share/dpkg/architecture.mk
+
 # Uncomment this to turn on verbose mode.
 # export DH_VERBOSE=1
 
@@ -17,7 +19,7 @@
        rm -f Make.inc
 
 override_dh_auto_configure:
-       ./configure --prefix=$(CURDIR)/debian
+       ./configure --prefix=$(CURDIR)/debian --build=$(DEB_BUILD_GNU_TYPE) 
--host=$(DEB_HOST_GNU_TYPE)
 
 # Skip
 override_dh_auto_install:

Reply via email to