Source: netpbm-free
Version: 2:10.0-15.3
Tags: patch
User: [email protected]
Usertags: rebootstrap
netpbm-free fails to cross build from source, because it uses the build
architecture compiler and thus fails finding dependencies (e.g. zlib).
Making the build actually work is a bit fidly as simply setting CC as
dh_auto_build does also overrides CC_FOR_BUILD. The upstream build
system also tries to strip objects with install (and thus build
architecture strip). Furthermore, the install.lib.old-shared.lib target
was actually building things as build.lib.old-shared wasn't build. After
fixing all of the above, netpbm-free cross builds just fine. Please
consider applying the attached patch.
Helmut
diff -u netpbm-free-10.0/debian/changelog netpbm-free-10.0/debian/changelog
--- netpbm-free-10.0/debian/changelog
+++ netpbm-free-10.0/debian/changelog
@@ -1,3 +1,14 @@
+netpbm-free (2:10.0-15.4) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: (Closes: #-1)
+ + Let dh_auto_build pass cross compilers.
+ + Do not use cross compilers for {CC,LD}_FOR_BUILD
+ + Disable upstream stripping: Let dh_strip produce a -dbgsym
+ + Do not build old-shared during install
+
+ -- Helmut Grohne <[email protected]> Tue, 06 Dec 2016 06:11:01 +0100
+
netpbm-free (2:10.0-15.3) unstable; urgency=medium
* Non-maintainer upload.
diff -u netpbm-free-10.0/debian/rules netpbm-free-10.0/debian/rules
--- netpbm-free-10.0/debian/rules
+++ netpbm-free-10.0/debian/rules
@@ -20,7 +20,7 @@
cp -af Makefile.config.in Makefile.config
make depend
- make build
+ dh_auto_build --buildsystem=makefile -- CC_FOR_BUILD=cc LD_FOR_BUILD=cc
STRIPFLAG= build build.lib.old-shared
touch build-stamp
@@ -49,7 +49,7 @@
# install netpbm
make PREFIX=$(DEBIAN_DIR)/netpbm/usr \
- install.bin
+ install.bin STRIPFLAG=
make PREFIX=$(DEBIAN_DIR)/netpbm/usr/share \
install.man.bin install.man.general
dh_installdirs -pnetpbm usr/share/doc/netpbm