Source: dlm
Version: 4.1.1-1
Tags: patch
User: [email protected]
Usertags: ftcbfs

dlm fails to cross build from source. It actually fails the clean
target, which now requires pkg-config to work, but debhelper only passes
a cross pkg-config for dh_auto_build. Thus we should do ourselves for
other targets. I'm attaching a patch for your convenience.

Helmut
diff --minimal -Nru dlm-4.1.1/debian/changelog dlm-4.1.1/debian/changelog
--- dlm-4.1.1/debian/changelog  2021-11-27 12:47:05.000000000 +0100
+++ dlm-4.1.1/debian/changelog  2022-11-14 13:53:33.000000000 +0100
@@ -1,3 +1,10 @@
+dlm (4.1.1-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: export PKG_CONFIG for all targets. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Mon, 14 Nov 2022 13:53:33 +0100
+
 dlm (4.1.1-1) unstable; urgency=medium
 
   * [14a17b3] Switch to the monolithic Salsa CI recipe
diff --minimal -Nru dlm-4.1.1/debian/rules dlm-4.1.1/debian/rules
--- dlm-4.1.1/debian/rules      2021-11-27 11:44:53.000000000 +0100
+++ dlm-4.1.1/debian/rules      2022-11-14 13:21:41.000000000 +0100
@@ -6,7 +6,9 @@
 # Ensure that we link against all needed libraries (cf. Policy 10.2)
 export DEB_LDFLAGS_MAINT_APPEND=-Wl,-z,defs
 
-DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+include /usr/share/dpkg/architecture.mk
+DPKG_EXPORT_BUILDTOOLS=1
+include /usr/share/dpkg/buildtools.mk
 
 %:
        dh $@

Reply via email to