Source: libreswan
Version: 5.2-2.2
Tags: patch
User: [email protected]
Usertags: ftcbfs

libreswan fails to cross build from source, because debian/rules
defaults to the build architecture pkg-config. I suggest letting dpkg's
buildtools.mk select an appropriate command. Doing so makes libreswan
cross buildable. Consider applying the attached patch.

Helmut
diff -Nru libreswan-5.2/debian/changelog libreswan-5.2/debian/changelog
--- libreswan-5.2/debian/changelog      2025-05-04 22:47:23.000000000 +0200
+++ libreswan-5.2/debian/changelog      2025-08-23 12:41:41.000000000 +0200
@@ -1,3 +1,10 @@
+libreswan (5.2-2.3) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dpkg's buildtools.mk initialize PKG_CONFIG. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Sat, 23 Aug 2025 12:41:41 +0200
+
 libreswan (5.2-2.2) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -Nru libreswan-5.2/debian/rules libreswan-5.2/debian/rules
--- libreswan-5.2/debian/rules  2025-05-04 22:46:35.000000000 +0200
+++ libreswan-5.2/debian/rules  2025-08-23 12:41:22.000000000 +0200
@@ -1,6 +1,7 @@
 #!/usr/bin/make -f
 
 include /usr/share/dpkg/default.mk
+include /usr/share/dpkg/buildtools.mk
 
 %:
        dh $@
@@ -21,8 +22,6 @@
   FLAG_INITSYSTEM =
 endif
 
-PKG_CONFIG ?= pkg-config
-
 NSS_CFLAGS := $(shell $(PKG_CONFIG) --cflags nss)
 NSS_LDFLAGS := $(shell $(PKG_CONFIG) --libs nss)
 

Reply via email to