Source: rox Version: 1:2.11-1 Tags: patch User: [email protected] Usertags: rebootstrap
rox fails to cross build from source, because it configures for the build architecture. It uses a quite unusual shell script wrapper to invoke the relevant configure script. Thus it cannot use dh_auto_configure, which would have taken care of the relevant flags automatically. Rather, we must pass the --host flag explicitly. The upstream configure also avoids the well established PKG_PROG_PKG_CONFIG macro that would have just worked and hand crafts its own check that requires the maintainer to supply a working PKG_CONFIG. After doing both, rox cross builds successfully. Please consider applying the attached patch. Helmut
diff --minimal -Nru rox-2.11/debian/changelog rox-2.11/debian/changelog --- rox-2.11/debian/changelog 2014-03-09 15:31:58.000000000 +0100 +++ rox-2.11/debian/changelog 2018-08-12 08:16:54.000000000 +0200 @@ -1,3 +1,12 @@ +rox (1:2.11-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Pass --host to the ./configure wrapper. + + Also export a suitable PKG_CONFIG. + + -- Helmut Grohne <[email protected]> Sun, 12 Aug 2018 08:16:54 +0200 + rox (1:2.11-1) unstable; urgency=low [ Jari Aalto ] diff --minimal -Nru rox-2.11/debian/rules rox-2.11/debian/rules --- rox-2.11/debian/rules 2014-03-09 15:31:58.000000000 +0100 +++ rox-2.11/debian/rules 2018-08-12 08:16:54.000000000 +0200 @@ -4,10 +4,13 @@ DESTDIR := $(shell pwd)/debian/$(PACKAGE) BUILDDIR := $(shell pwd) +include /usr/share/dpkg/architecture.mk export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk +-include /usr/share/dpkg/buildtools.mk +export PKG_CONFIG ?= pkg-config configure: configure-stamp configure-stamp: @@ -25,7 +28,7 @@ build-stamp: dh_testdir - ROX-Filer/AppRun --compile + ROX-Filer/AppRun --compile --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) (cd ROX-Filer/src/po && ./dist) touch build-stamp

