Source: libxml-libxml-perl
Version: 2.0207+dfsg-1
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

libxml-libxml-perl fails to cross build from source, because
debian/rules hard codes the build architecture pkg-config. Seeding it
from dpkg's buildtools.mk fixes the build. Please consider applying the
attached patch.

Helmut
diff --minimal -Nru libxml-libxml-perl-2.0207+dfsg/debian/changelog 
libxml-libxml-perl-2.0207+dfsg/debian/changelog
--- libxml-libxml-perl-2.0207+dfsg/debian/changelog     2022-01-14 
22:46:30.000000000 +0100
+++ libxml-libxml-perl-2.0207+dfsg/debian/changelog     2022-01-15 
09:05:08.000000000 +0100
@@ -1,3 +1,10 @@
+libxml-libxml-perl (2.0207+dfsg-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Use the host architecture pkg-config. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sat, 15 Jan 2022 09:05:08 +0100
+
 libxml-libxml-perl (2.0207+dfsg-1) unstable; urgency=medium
 
   [ gregor herrmann ]
diff --minimal -Nru libxml-libxml-perl-2.0207+dfsg/debian/rules 
libxml-libxml-perl-2.0207+dfsg/debian/rules
--- libxml-libxml-perl-2.0207+dfsg/debian/rules 2022-01-14 22:46:30.000000000 
+0100
+++ libxml-libxml-perl-2.0207+dfsg/debian/rules 2022-01-15 09:05:05.000000000 
+0100
@@ -1,11 +1,13 @@
 #!/usr/bin/make -f
 
+include /usr/share/dpkg/buildtools.mk
+
 # skip tests that need files we remove in the +dfsg version
 SKIP_TESTS = $(shell cat debian/tests/pkg-perl/smoke-skip)
 TEST_FILES = $(filter-out $(SKIP_TESTS), $(wildcard t/*.t))
 
-XML_LIBS := $(shell pkg-config --libs   libxml-2.0)
-XML_INC  := $(shell pkg-config --cflags libxml-2.0)
+XML_LIBS := $(shell $(PKG_CONFIG) --libs   libxml-2.0)
+XML_INC  := $(shell $(PKG_CONFIG) --cflags libxml-2.0)
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 

Reply via email to