tag 625328 + patch
thanks

On Tue, May 03, 2011 at 10:32:49AM +0000, Matthias Klose wrote:
> Package: freetype
> Version: 2.4.4-1
> Severity: important
> Tags: wheezy sid
> User: debian-...@lists.debian.org
> Usertags: ftbfs-gcc-4.6 ftbfs-werror
> 
> This package builds with -Werror, and GCC 4.6 triggers new warnings
> which will make the package fail to build.  Currently a Debian patch
> just passes
>     -Wno-error=unused-but-set-variable and
>     -Wno-error=unused-but-set-parameter
> to avoid build failures, but this patch will be reverted with the
> GCC 4.6.1 release, and the severity of the report will be raised.
> 

I first tried to fix this issue by changing the code, but most errors
are due to #ifdef blocks, so it's better to just silent the error for
now. The patch below does that.


diff -u freetype-2.4.4/debian/rules freetype-2.4.4/debian/rules
--- freetype-2.4.4/debian/rules
+++ freetype-2.4.4/debian/rules
@@ -4,7 +4,7 @@
 # version 2 or later for copying conditions.  There is NO warranty.
 
 # FreeType sets its -Wall in XX_CFLAGS 
-CFLAGS = -g -Werror
+CFLAGS = -g -Werror -Wno-error=unused-but-set-variable
 
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 
diff -u freetype-2.4.4/debian/changelog freetype-2.4.4/debian/changelog
--- freetype-2.4.4/debian/changelog
+++ freetype-2.4.4/debian/changelog
@@ -1,3 +1,9 @@
+freetype (2.4.4-2+s390x) unreleased; urgency=low
+
+  * Fix FTBFS with gcc-4.6.
+
+ -- Aurelien Jarno <aure...@debian.org>  Thu, 28 Jul 2011 11:55:33 +0200
+
 freetype (2.4.4-2) unstable; urgency=low
 
   * Build for multiarch, using debhelper compat 9.

-- 
Aurelien Jarno                          GPG: 1024D/F1BCDB73
aurel...@aurel32.net                 http://www.aurel32.net



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to