Source: tgt
Version: 1:1.0.85-1.1
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

tgt fails to cross build from source, because debian/rules hard codes
the build architecture pkg-config causing a misdetection and subsequent
failure in dh_install. I'm attaching a patch for your convenience.

Helmut
diff --minimal -Nru tgt-1.0.85/debian/changelog tgt-1.0.85/debian/changelog
--- tgt-1.0.85/debian/changelog 2023-11-17 22:35:38.000000000 +0100
+++ tgt-1.0.85/debian/changelog 2023-12-24 10:35:35.000000000 +0100
@@ -1,3 +1,10 @@
+tgt (1:1.0.85-1.2) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Use the host architecture pkg-config. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sun, 24 Dec 2023 10:35:35 +0100
+
 tgt (1:1.0.85-1.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff --minimal -Nru tgt-1.0.85/debian/rules tgt-1.0.85/debian/rules
--- tgt-1.0.85/debian/rules     2023-11-17 22:35:38.000000000 +0100
+++ tgt-1.0.85/debian/rules     2023-12-24 10:35:34.000000000 +0100
@@ -1,9 +1,11 @@
 #!/usr/bin/make -f
 #export DH_VERBOSE=1
 
+include /usr/share/dpkg/buildtools.mk
+
 FEATURES = ISCSI_RDMA=1 CEPH_RBD=1 SD_NOTIFY=1
 
-glfs_libs = $(shell pkg-config --libs glusterfs-api 2>/dev/null)
+glfs_libs = $(shell $(PKG_CONFIG) --libs glusterfs-api 2>/dev/null)
 ifneq ($(glfs_libs),)
         FEATURES += GLFS_BD=1
 endif

Reply via email to