Bug#998342: libdevel-nytprof-perl FTCBFS: uses the build architecture ARCHLIB

Helmut Grohne helmut at subdivi.de
Tue Nov 2 15:22:59 GMT 2021


Source: libdevel-nytprof-perl
Version: 6.11+dfsg-1
Tags: patch
User: debian-cross at lists.debian.org
Usertags: ftcbfs

libdevel-nytprof-perl fails to cross build from source, because
debian/rules sets ARCHLIB such that it contains DEB_BUILD_MULTIARCH, but
it operates on he host arch file system tree. Please consider applying
the attached to correctly compute ARCHLIB.

Helmut
-------------- next part --------------
--- libdevel-nytprof-perl-6.11+dfsg/debian/changelog
+++ libdevel-nytprof-perl-6.11+dfsg/debian/changelog
@@ -1,3 +1,10 @@
+libdevel-nytprof-perl (6.11+dfsg-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Set ARCHLIB for the host architecture. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Tue, 02 Nov 2021 16:16:44 +0100
+
 libdevel-nytprof-perl (6.11+dfsg-1) unstable; urgency=medium
 
   * Import upstream version 6.11+dfsg.
--- libdevel-nytprof-perl-6.11+dfsg/debian/rules
+++ libdevel-nytprof-perl-6.11+dfsg/debian/rules
@@ -2,7 +2,10 @@
 
 PACKAGE = $(shell dh_listpackages)
 TMP     = $(CURDIR)/debian/$(PACKAGE)
-ARCHLIB := $(shell perl -MConfig -e 'print $$Config{vendorarch}')
+include /usr/share/dpkg/architecture.mk
+PERLVER := $(shell perl -MConfig -e 'print $$Config{version}')
+ARCHLIB := $(shell perl -I/usr/lib/$(DEB_HOST_MULTIARCH)/perl/cross-config-$(PERLVER) -MConfig -e 'print $$Config{vendorarch}')
+
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 


More information about the pkg-perl-maintainers mailing list