[Pkg-gnutls-commits] r962 - in /packages/gnutls26/trunk/debian: changelog rules

ametzler at users.alioth.debian.org ametzler at users.alioth.debian.org
Sun Feb 6 14:49:55 UTC 2011


Author: ametzler
Date: Sun Feb  6 14:49:54 2011
New Revision: 962

URL: http://svn.debian.org/wsvn/pkg-gnutls/?sc=1&rev=962
Log:
[merge r870 from branch2.9.x] Work around gcc-4.4 bug #519006 by building without -g on mips/mipsel.

Modified:
    packages/gnutls26/trunk/debian/changelog
    packages/gnutls26/trunk/debian/rules

Modified: packages/gnutls26/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnutls/packages/gnutls26/trunk/debian/changelog?rev=962&op=diff
==============================================================================
--- packages/gnutls26/trunk/debian/changelog (original)
+++ packages/gnutls26/trunk/debian/changelog Sun Feb  6 14:49:54 2011
@@ -1,6 +1,9 @@
 gnutls26 (2.9.12-2) UNRELEASED; urgency=low
 
   * NOT RELEASED YET
+  * Work around gcc-4.4 bug <http://bugs.debian.org/519006> by building
+    without -g on mips/mipsel. (As a side effect this makes libgnutls26-dbg a
+    useless and almost empty package on these archs.)
 
  -- Andreas Metzler <ametzler at debian.org>  Thu, 17 Jun 2010 19:35:27 +0200
 

Modified: packages/gnutls26/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-gnutls/packages/gnutls26/trunk/debian/rules?rev=962&op=diff
==============================================================================
--- packages/gnutls26/trunk/debian/rules (original)
+++ packages/gnutls26/trunk/debian/rules Sun Feb  6 14:49:54 2011
@@ -1,17 +1,29 @@
 #! /usr/bin/make -f
 # Build the gnutls package for Debian.
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/autotools.mk
 
 CFLAGS += -D_REENTRANT
 ifeq ($(DEB_BUILD_ARCH),hppa)
 	CFLAGS += -fno-gcse
 endif
 
-include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/class/autotools.mk
+# work around gcc-4.4 bug <http://bugs.debian.org/519006> by building without -g
+ifeq ($(DEB_BUILD_ARCH),mips)
+	WORAROUND519006 := yes
+	export CFLAGS := -O2 -Wall -D_REENTRANT
+endif
+ifeq ($(DEB_BUILD_ARCH),mipsel)
+	WORAROUND519006 := yes
+	export CFLAGS := -O2 -Wall -D_REENTRANT
+endif
 
 DEB_CONFIGURE_EXTRA_FLAGS = --enable-ld-version-script --enable-cxx --without-lzo --enable-guile --with-guile-site-dir=/usr/share/guile/site --cache-file=$(CURDIR)/config.cache
 DEB_MAKE_CHECK_TARGET = check
-DEB_DH_STRIP_ARGS = --dbg-package=libgnutls26-dbg
+ifneq ($(WORAROUND519006),yes)
+	DEB_DH_STRIP_ARGS = --dbg-package=libgnutls26-dbg
+endif
 DEB_DH_MAKESHLIBS_ARGS_libgnutls26 := -V 'libgnutls26 (>=2.9.11-0)'
 DEB_DH_MAKESHLIBS_ARGS_guile-gnutls := -V 'guile-gnutls (>=2.7.14-0)'
 DEB_COMPRESS_EXCLUDE := gnutls.pdf




More information about the Pkg-gnutls-commits mailing list