Source: libpfm4 Version: 4.10.1+git14-g815ff28-1 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
libpfm4 fails to cross build from source. It actually builds fine for some architectures. For ppc64el, the archmap entry is missing though. However during make install it rebuilds from scratch for the build architecture, because the arch flag is not passed. The attached patch fixes both and makes libpfm4 cross buildable at least for ppc64el. Please consider applying the patch. Helmut
diff --minimal -Nru libpfm4-4.10.1+git14-g815ff28/debian/changelog libpfm4-4.10.1+git14-g815ff28/debian/changelog --- libpfm4-4.10.1+git14-g815ff28/debian/changelog 2019-08-14 16:04:02.000000000 +0200 +++ libpfm4-4.10.1+git14-g815ff28/debian/changelog 2019-09-04 20:36:33.000000000 +0200 @@ -1,3 +1,12 @@ +libpfm4 (4.10.1+git14-g815ff28-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS for ppc64el: (Closes: #-1) + + Pass LIBPFM4_ARCH_FLAG to make install to avoid a rebuild. + + Extecn LIBPFM4_ARCH_ map for ppc64el. + + -- Helmut Grohne <hel...@subdivi.de> Wed, 04 Sep 2019 20:36:33 +0200 + libpfm4 (4.10.1+git14-g815ff28-1) unstable; urgency=medium * New upstream GIT snapshot. diff --minimal -Nru libpfm4-4.10.1+git14-g815ff28/debian/rules libpfm4-4.10.1+git14-g815ff28/debian/rules --- libpfm4-4.10.1+git14-g815ff28/debian/rules 2019-08-14 16:04:02.000000000 +0200 +++ libpfm4-4.10.1+git14-g815ff28/debian/rules 2019-09-04 20:36:33.000000000 +0200 @@ -19,6 +19,7 @@ LIBPFM4_ARCH_armel = arm LIBPFM4_ARCH_armhf = arm LIBPFM4_ARCH_i386 = i386 +LIBPFM4_ARCH_ppc64el = powerpc LIBPFM4_ARCH_FLAG = $(foreach a,$(strip $(LIBPFM4_ARCH_$(DEB_HOST_ARCH))),ARCH=$a) @@ -38,7 +39,8 @@ DESTDIR=$(CURDIR)/debian/tmp \ PREFIX=/usr \ LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) \ - LDCONFIG=true + LDCONFIG=true \ + $(LIBPFM4_ARCH_FLAG) override_dh_missing: dh_missing --list-missing