[Pkg-gnutls-commits] r870 - in /packages/gnutls26/branches/branch2.9.x/debian: changelog rules

ametzler at users.alioth.debian.org ametzler at users.alioth.debian.org
Sat Jun 19 11:31:24 UTC 2010


Author: ametzler
Date: Sat Jun 19 11:31:22 2010
New Revision: 870

URL: http://svn.debian.org/wsvn/pkg-gnutls/?sc=1&rev=870
Log:
Work around gcc-4.4 bug #519006 by building without -g on mips/mipsel.

Modified:
    packages/gnutls26/branches/branch2.9.x/debian/changelog
    packages/gnutls26/branches/branch2.9.x/debian/rules

Modified: packages/gnutls26/branches/branch2.9.x/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnutls/packages/gnutls26/branches/branch2.9.x/debian/changelog?rev=870&op=diff
==============================================================================
--- packages/gnutls26/branches/branch2.9.x/debian/changelog (original)
+++ packages/gnutls26/branches/branch2.9.x/debian/changelog Sat Jun 19 11:31:22 2010
@@ -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/branches/branch2.9.x/debian/rules
URL: http://svn.debian.org/wsvn/pkg-gnutls/packages/gnutls26/branches/branch2.9.x/debian/rules?rev=870&op=diff
==============================================================================
--- packages/gnutls26/branches/branch2.9.x/debian/rules (original)
+++ packages/gnutls26/branches/branch2.9.x/debian/rules Sat Jun 19 11:31:22 2010
@@ -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 := -Xusr/lib/libguile-gnutls-
 DEB_COMPRESS_EXCLUDE := gnutls.pdf




More information about the Pkg-gnutls-commits mailing list