Source: libtraceevent Version: 1:1.1.0-2 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
libtraceevent fails to cross build from source, because it uses the build architecture ld. While dh_auto_build passes most cross tools, it doesn't pass the LD variable as its use is not consistent across different projects. Failing to do so means that libtraceevent uses the build architecture linker. Cross compiling libtraceevent was intended to use the CROSS_COMPILE variable. Exporting it makes the cross build work. Please consider applying the attached patch. Helmut
diff --minimal -Nru libtraceevent-1.1.0/debian/changelog libtraceevent-1.1.0/debian/changelog --- libtraceevent-1.1.0/debian/changelog 2020-11-01 18:52:58.000000000 +0100 +++ libtraceevent-1.1.0/debian/changelog 2020-11-05 21:47:25.000000000 +0100 @@ -1,3 +1,10 @@ +libtraceevent (1:1.1.0-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Export CROSS_COMPILE. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Thu, 05 Nov 2020 21:47:25 +0100 + libtraceevent (1:1.1.0-2) unstable; urgency=medium * Source only upload. diff --minimal -Nru libtraceevent-1.1.0/debian/rules libtraceevent-1.1.0/debian/rules --- libtraceevent-1.1.0/debian/rules 2020-11-01 18:52:03.000000000 +0100 +++ libtraceevent-1.1.0/debian/rules 2020-11-05 21:47:24.000000000 +0100 @@ -2,6 +2,7 @@ include /usr/share/dpkg/architecture.mk +export CROSS_COMPILE=$(DEB_HOST_GNU_TYPE)- PREFIX=/usr build_flags = prefix=$(PREFIX) libdir_relative=lib/$(DEB_HOST_MULTIARCH) pkgconfig_dir=$(PREFIX)/lib/$(DEB_HOST_MULTIARCH)/pkgconfig V=1