Source: fuse-zip Version: 0.4.4-1 Tags: patch User: [email protected] Usertags: rebootstrap
fuse-zip fails to cross build from source, because its Makefiles hard code the build architecture pkg-config. After making it substitutable, it mostly cross builds, but it insists on relinking fuse-zip during make install and dh_auto_install does not pass any cross tools along (expecting that you build during dh_auto_build). Thus we need to export build tools ourselves (or fix the Makefile) to make it cross buildable. Please consider applying the attached patch. Helmut
--- fuse-zip-0.4.4/debian/changelog +++ fuse-zip-0.4.4/debian/changelog @@ -1,3 +1,12 @@ +fuse-zip (0.4.4-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + cross.patch: Make build tools substitutable. + + Also substitute build tools for make install. + + -- Helmut Grohne <[email protected]> Thu, 21 Jun 2018 21:34:10 +0200 + fuse-zip (0.4.4-1) unstable; urgency=low * New upstream release (Closes: #795675) --- fuse-zip-0.4.4/debian/patches/cross.patch +++ fuse-zip-0.4.4/debian/patches/cross.patch @@ -0,0 +1,35 @@ +--- fuse-zip-0.4.4.orig/Makefile ++++ fuse-zip-0.4.4/Makefile +@@ -7,12 +7,13 @@ + mandir=$(datarootdir)/man + man1dir=$(mandir)/man1 + manext=.1 +-LIBS=-Llib -lfusezip $(shell pkg-config fuse --libs) $(shell pkg-config libzip --libs) ++PKG_CONFIG?=pkg-config ++LIBS=-Llib -lfusezip $(shell $(PKG_CONFIG) fuse --libs) $(shell $(PKG_CONFIG) libzip --libs) + LIB=lib/libfusezip.a + CXXFLAGS=-g -O0 -Wall -Wextra + RELEASE_CXXFLAGS=-O2 -Wall -Wextra +-FUSEFLAGS=$(shell pkg-config fuse --cflags) +-ZIPFLAGS=$(shell pkg-config libzip --cflags) ++FUSEFLAGS=$(shell $(PKG_CONFIG) fuse --cflags) ++ZIPFLAGS=$(shell $(PKG_CONFIG) libzip --cflags) + SOURCES=main.cpp + OBJECTS=$(SOURCES:.cpp=.o) + MANSRC=fuse-zip.1 +--- fuse-zip-0.4.4.orig/lib/Makefile ++++ fuse-zip-0.4.4/lib/Makefile +@@ -1,9 +1,10 @@ + DEST=libfusezip.a +-LIBS=$(shell pkg-config fuse --libs) $(shell pkg-config libzip --libs) ++PKG_CONFIG?=pkg-config ++LIBS=$(shell $(PKG_CONFIG) fuse --libs) $(shell $(PKG_CONFIG) libzip --libs) + CXXFLAGS=-g -O0 -Wall -Wextra + RELEASE_CXXFLAGS=-O2 -Wall -Wextra +-FUSEFLAGS=$(shell pkg-config fuse --cflags) +-ZIPFLAGS=$(shell pkg-config libzip --cflags) ++FUSEFLAGS=$(shell $(PKG_CONFIG) fuse --cflags) ++ZIPFLAGS=$(shell $(PKG_CONFIG) libzip --cflags) + SOURCES=$(sort $(wildcard *.cpp)) + OBJECTS=$(SOURCES:.cpp=.o) + CLEANFILES=$(OBJECTS) $(DEST) --- fuse-zip-0.4.4/debian/patches/series +++ fuse-zip-0.4.4/debian/patches/series @@ -1 +1,2 @@ reproducible-build.patch +cross.patch --- fuse-zip-0.4.4/debian/rules +++ fuse-zip-0.4.4/debian/rules @@ -1,5 +1,9 @@ #!/usr/bin/make -f +# for relinking fuse-zip during make install +DPKG_EXPORT_BUILDTOOLS=1 +-include /usr/share/dpkg/buildtools.mk + LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS) CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS) CXXFLAGS += $(shell dpkg-buildflags --get CPPFLAGS)

