Source: mergerfs Version: 2.24.2-3 Tags: patch User: helm...@debian.org Usertags: rebootstrap
mergerfs fails to cross build from source. The configure invocation for libfuse lacks the crucial --host flag. The easiest way of fixing that is running dh_auto_configure (after creating the configure script using dh-autoreconf). After doing so, mergerfs mostly builds fine except that make install relinks the mergerfs binary using the wrong compiler, because version is a .PHONY target. Exporting a suitable CXX for all targets (including make install) fixes that and makes mergerfs cross buildable. Alternatively, one can remove the unused version dependency from the $(TARGET). Please consider applying the attached patch. Helmut
diff --minimal -Nru mergerfs-2.24.2/debian/autoreconf mergerfs-2.24.2/debian/autoreconf --- mergerfs-2.24.2/debian/autoreconf 1970-01-01 01:00:00.000000000 +0100 +++ mergerfs-2.24.2/debian/autoreconf 2018-11-15 22:26:17.000000000 +0100 @@ -0,0 +1 @@ +libfuse diff --minimal -Nru mergerfs-2.24.2/debian/changelog mergerfs-2.24.2/debian/changelog --- mergerfs-2.24.2/debian/changelog 2018-09-18 08:17:47.000000000 +0200 +++ mergerfs-2.24.2/debian/changelog 2018-11-15 22:26:40.000000000 +0100 @@ -1,3 +1,10 @@ +mergerfs (2.24.2-3.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Let dh_auto_configure pass --host to libfuse/configure. + + Pass CXX to make install as it insists on relinking. + + -- Helmut Grohne <hel...@subdivi.de> Thu, 15 Nov 2018 22:26:40 +0100 + mergerfs (2.24.2-3) unstable; urgency=medium * Switch project hosting to Salsa diff --minimal -Nru mergerfs-2.24.2/debian/control mergerfs-2.24.2/debian/control --- mergerfs-2.24.2/debian/control 2018-08-06 09:30:55.000000000 +0200 +++ mergerfs-2.24.2/debian/control 2018-11-15 22:26:40.000000000 +0100 @@ -2,7 +2,7 @@ Section: utils Priority: optional Maintainer: Ritesh Raj Sarraf <r...@debian.org> -Build-Depends: debhelper (>= 9.0.0), dpkg-dev (>= 1.16.1~), +Build-Depends: debhelper (>= 9.0.0), dh-autoreconf, dpkg-dev (>= 1.16.1~), libfuse-dev, libattr1-dev, pkg-config diff --minimal -Nru mergerfs-2.24.2/debian/rules mergerfs-2.24.2/debian/rules --- mergerfs-2.24.2/debian/rules 2018-05-18 08:36:37.000000000 +0200 +++ mergerfs-2.24.2/debian/rules 2018-11-15 22:26:40.000000000 +0100 @@ -8,9 +8,14 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk +-include /usr/share/dpkg/buildtools.mk +export CXX %: - dh $@ --parallel + dh $@ --parallel --with=autoreconf + +override_dh_auto_configure: + dh_auto_configure --sourcedirectory=libfuse -- --enable-lib --disable-util --disable-example override_dh_auto_install: $(MAKE) DESTDIR=$(CURDIR)/debian/mergerfs PREFIX=/usr install