Source: optipng
Version: 0.7.6-1
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

optipng fails to cross build from source, because it uses the build
architecture compiler. Simply setting up a CC environment variable
pointing to a triplet-prefixed compiler is sufficient for letting the
handcrafted ./configure pick it up and properly cross compile optipng.
Please consider applying the attached patch.

Helmut
diff --minimal -Nru optipng-0.7.6/debian/changelog 
optipng-0.7.6/debian/changelog
--- optipng-0.7.6/debian/changelog      2016-04-08 23:13:43.000000000 +0200
+++ optipng-0.7.6/debian/changelog      2016-11-26 22:35:46.000000000 +0100
@@ -1,3 +1,10 @@
+optipng (0.7.6-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Export triplet-prefixed CC (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sat, 26 Nov 2016 22:35:46 +0100
+
 optipng (0.7.6-1) unstable; urgency=medium
 
   * New upstream release
diff --minimal -Nru optipng-0.7.6/debian/rules optipng-0.7.6/debian/rules
--- optipng-0.7.6/debian/rules  2016-04-08 22:43:41.000000000 +0200
+++ optipng-0.7.6/debian/rules  2016-11-26 22:35:45.000000000 +0100
@@ -1,6 +1,11 @@
 #!/usr/bin/make -f
 
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+include /usr/share/dpkg/architecture.mk
+ifeq ($(origin CC),default)
+CC := $(DEB_HOST_GNU_TYPE)-gcc
+endif
+export CC
 
 override_dh_auto_configure:
        ./configure -prefix=/usr -mandir=/usr/share/man -with-system-libs
_______________________________________________
Pkg-phototools-devel mailing list
Pkg-phototools-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-phototools-devel

Reply via email to