Package: libwebp
Severity: important
Tags: patch

Libwebp FTBFS on arm64 with a couple of internal compiler errors. I've already filed a bug report on gcc-4.9 ( http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=757738 ) but given that we are currently in the process of pushing arm64 into the official debian archive and given that this package is bootstrap critical it would be appreciated if you would apply the attatched patch to disable optimisation on arm64 and push it into sid.
diff -Nru libwebp-0.4.1/debian/changelog libwebp-0.4.1/debian/changelog
--- libwebp-0.4.1/debian/changelog      2014-07-30 23:39:36.000000000 +0000
+++ libwebp-0.4.1/debian/changelog      2014-08-11 01:53:44.000000000 +0000
@@ -1,3 +1,9 @@
+libwebp (0.4.1-1+arm64) unstable; urgency=medium
+
+  * Use -O0 on arm64 to avoid ICE
+
+ -- Peter Michael Green <plugw...@debian.org>  Sun, 10 Aug 2014 13:40:07 +0000
+
 libwebp (0.4.1-1) unstable; urgency=medium
 
   * New upstream release
diff -Nru libwebp-0.4.1/debian/rules libwebp-0.4.1/debian/rules
--- libwebp-0.4.1/debian/rules  2014-01-08 18:14:20.000000000 +0000
+++ libwebp-0.4.1/debian/rules  2014-08-11 01:53:16.000000000 +0000
@@ -6,6 +6,14 @@
 # dh-make output file, you may use that output file without restriction.
 # This special exception was added by Craig Small in version 0.37 of dh-make.
 
+# gcc 4.9 ICEs when building libwebp for arm64, use 4.8 for now
+# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=757738
+DEB_HOST_ARCH ?= $(shell dpkg-architecture -q DEB_HOST_ARCH)
+ifeq ($(DEB_HOST_ARCH),arm64)
+  export DEB_CFLAGS_MAINT_APPEND=-O0
+  export DEB_CFLAGS_MAINT_STRIP=-O2
+endif
+
 # Uncomment this to turn on verbose mode.
 export DH_VERBOSE=1
 

Reply via email to