Package: libcap-ng
Version: 0.6.2-3
Severity: serious
Tags: patch
User: debian-sp...@lists.debian.org
Usertags: sparc64

The package fails to build on sparc and sparc64 due to a compiler bug. A workaround is to build with -O0 on these architectures.
Upstream bug files at http://gcc.gnu.org/PR42564.
diff -u libcap-ng-0.6.2/debian/rules libcap-ng-0.6.2/debian/rules
--- libcap-ng-0.6.2/debian/rules
+++ libcap-ng-0.6.2/debian/rules
@@ -27,6 +27,12 @@
 ifeq ($(shell dpkg-architecture -qDEB_HOST_ARCH),armel)
 CFLAGS += -O0
 endif
+ifeq ($(shell dpkg-architecture -qDEB_HOST_ARCH),sparc)
+CFLAGS += -O0
+endif
+ifeq ($(shell dpkg-architecture -qDEB_HOST_ARCH),sparc64)
+CFLAGS += -O0
+endif
 
 # shared library versions, option 1
 version=2.0.5
diff -u libcap-ng-0.6.2/debian/changelog libcap-ng-0.6.2/debian/changelog
--- libcap-ng-0.6.2/debian/changelog
+++ libcap-ng-0.6.2/debian/changelog
@@ -1,3 +1,10 @@
+libcap-ng (0.6.2-3.1) unstable; urgency=low
+
+  * NMU
+  * Build with -O0 on sparc/sparc64 to work around GCC ICE.
+
+ -- Matthias Klose <d...@debian.org>  Thu, 31 Dec 2009 11:30:56 +0100
+
 libcap-ng (0.6.2-3) unstable; urgency=low
 
   * Apply patch from Simon McVittie:

Reply via email to