[Debian-med-packaging] Bug#947285: g2 FTCBFS: builds the perl extension for the build architecture

Helmut Grohne helmut at subdivi.de
Mon Dec 23 23:00:26 GMT 2019


Source: g2
Version: 0.72-8
Tags: patch
User: debian-cross at lists.debian.org
Usertags: ftcbfs

g2 fails to cross build from source, because the perl extension is built
for the build architecture. The easiest way of cross building perl
extensions - using dh_auto_configure - almost solves this, but - like
any perl extension - g2 should build depend on perl-xs-dev. Please
consider applying the attached patch.

Helmut
-------------- next part --------------
diff --minimal -Nru g2-0.72/debian/changelog g2-0.72/debian/changelog
--- g2-0.72/debian/changelog	2018-10-28 12:13:00.000000000 +0100
+++ g2-0.72/debian/changelog	2019-12-23 22:40:33.000000000 +0100
@@ -1,3 +1,12 @@
+g2 (0.72-8.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Let dh_auto_configure call Makefile.PL.
+    + Missing Build-Depends: perl-xs-dev.
+
+ -- Helmut Grohne <helmut at subdivi.de>  Mon, 23 Dec 2019 22:40:33 +0100
+
 g2 (0.72-8) unstable; urgency=medium
 
   * debhelper 11
diff --minimal -Nru g2-0.72/debian/control g2-0.72/debian/control
--- g2-0.72/debian/control	2018-10-28 12:13:00.000000000 +0100
+++ g2-0.72/debian/control	2019-12-23 22:40:33.000000000 +0100
@@ -8,6 +8,7 @@
                libx11-dev,
                chrpath,
                libgd-dev,
+               perl-xs-dev,
                xutils-dev
 Standards-Version: 4.2.1
 Vcs-Browser: https://salsa.debian.org/med-team/g2
diff --minimal -Nru g2-0.72/debian/rules g2-0.72/debian/rules
--- g2-0.72/debian/rules	2018-10-28 12:13:00.000000000 +0100
+++ g2-0.72/debian/rules	2019-12-23 22:40:33.000000000 +0100
@@ -36,7 +36,7 @@
 	# clean up and build the shared lib
 	-rm -f src/*.o src/*/*.o
 	$(MAKE) PICFLAG="-fPIC" RVERSION=$(rversion) MVERSION=$(major) DEBCFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" shared
-	(cd ./g2_perl && perl Makefile.PL INSTALLDIRS=vendor LIBS="-L$(CURDIR) -lg2")
+	dh_auto_configure --sourcedirectory=g2_perl -- LIBS="-L$(CURDIR) -lg2"
 	$(MAKE) -C ./g2_perl LD_RUN_PATH=""
 
 override_dh_auto_install:


More information about the Debian-med-packaging mailing list