Your message dated Tue, 28 May 2013 14:50:28 +1000
with message-id <[email protected]>
and subject line Done: Please enable hardened build flags
has caused the Debian Bug report #657839,
regarding Please enable hardened build flags
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
657839: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=657839
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: gnumeric
Version: 1.10.17-1
Severity: important
Tags: patch

Please enable hardened build flags through dpkg-buildflags.

Patch attached. (dpkg-buildflags abides "noopt" from DEB_BUILD_OPTIONS)

Cheers,
        Moritz
diff -aur gnumeric-1.10.17.harden/debian/rules gnumeric-1.10.17/debian/rules
--- gnumeric-1.10.17.harden/debian/rules	2011-06-18 13:43:08.000000000 +0200
+++ gnumeric-1.10.17/debian/rules	2012-01-29 11:16:29.000000000 +0100
@@ -73,13 +73,10 @@
 	confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
 endif
 
-CFLAGS = -Wall -g
-
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-        CFLAGS += -O0
-else
-        CFLAGS += -O2
-endif
+CFLAGS = `dpkg-buildflags --get CFLAGS`
+CFLAGS += -Wall
+LDFLAGS = `dpkg-buildflags --get LDFLAGS`
+CPPFLAGS = `dpkg-buildflags --get CPPFLAGS`
 
 # Make the linker work a bit harder so dynamic loading can be done faster.
 LDFLAGS += -Wl,-O1
@@ -108,7 +105,7 @@
 	 
 	mkdir build
 	cd build && env srcdir=`pwd`/.. \
-		../configure $(confflags) "CC=$(CC) $(LDFLAGS)" "CFLAGS=$(CFLAGS)"
+		../configure $(confflags) CC="$(CC)" LDFLAGS="$(LDFLAGS)" CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)"
 
 	touch configure-stamp
 
Nur in gnumeric-1.10.17/debian: rules~.

--- End Message ---
--- Begin Message ---
Package: gnumeric
Version: 1.11.90-1

Fixed in 1.11.90-1, thanks.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Cheers,
 Dmitry Smirnov
 GPG key : 4096R/53968D1B

--- End Message ---

Reply via email to