Your message dated Sun, 15 Jan 2012 13:02:11 +0000
with message-id <[email protected]>
and subject line Bug#655874: fixed in hostname 3.10
has caused the Debian Bug report #655874,
regarding Please enabled 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.)


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

Please enabled hardened build flags through dpkg-buildflags.

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

Cheers,
        Moritz
diff -aur hostname-3.09.orig/debian/rules hostname-3.09/debian/rules
--- hostname-3.09.orig/debian/rules	2011-12-22 16:42:29.000000000 +0100
+++ hostname-3.09/debian/rules	2012-01-14 14:07:44.000000000 +0100
@@ -6,13 +6,10 @@
 DEBVERSION := $(shell dpkg-parsechangelog | awk '/Version:/ { print substr($$2,1,4)}')
 PRGVERSION := $(shell awk '/define VERSION/ { print substr($$3,2,length($$3)-2)}' hostname.c)
 
-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`
 
 DEB_HOST_GNU_TYPE=$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 DEB_BUILD_GNU_TYPE=$(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
@@ -31,7 +28,7 @@
 
 	# Building package
 	[ "$(DEBVERSION)" = "$(PRGVERSION)" ] || exit 1
-	CFLAGS="$(CFLAGS)" $(MAKE) $(CROSS)
+	CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" $(MAKE) $(CROSS)
 
 	touch build-stamp
 
diff -aur hostname-3.09.orig/Makefile hostname-3.09/Makefile
--- hostname-3.09.orig/Makefile	2010-11-16 14:13:21.000000000 +0100
+++ hostname-3.09/Makefile	2012-01-14 14:08:10.000000000 +0100
@@ -6,7 +6,7 @@
 OBJS=hostname.o
 
 hostname: $(OBJS)
-	$(CC) $(CFLAGS) -o $@ $(OBJS) -lnsl
+	$(CC) $(CFLAGS) -o $@ $(OBJS) $(LDFLAGS) -lnsl
 	ln -fs hostname dnsdomainname
 	ln -fs hostname domainname
 	ln -fs hostname ypdomainname
Nur in hostname-3.09: Makefile~.

--- End Message ---
--- Begin Message ---
Source: hostname
Source-Version: 3.10

We believe that the bug you reported is fixed in the latest version of
hostname, which is due to be installed in the Debian FTP archive:

hostname_3.10.dsc
  to main/h/hostname/hostname_3.10.dsc
hostname_3.10.tar.gz
  to main/h/hostname/hostname_3.10.tar.gz
hostname_3.10_amd64.deb
  to main/h/hostname/hostname_3.10_amd64.deb



A summary of the changes between this version and the previous one is
attached.

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.

Debian distribution maintenance software
pp.
Michael Meskes <[email protected]> (supplier of updated hostname package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sun, 15 Jan 2012 13:52:38 +0100
Source: hostname
Binary: hostname
Architecture: source amd64
Version: 3.10
Distribution: unstable
Urgency: low
Maintainer: Debian Hostname Team <[email protected]>
Changed-By: Michael Meskes <[email protected]>
Description: 
 hostname   - utility to set/show the host name or domain name
Closes: 655874
Changes: 
 hostname (3.10) unstable; urgency=low
 .
   * Enabled hardened build flag.
     Thanks to Moritz Muehlenhoff <[email protected]> (Closes: #655874)
Checksums-Sha1: 
 3d233740aa9b6dab68620100495a5b910dcff5c4 804 hostname_3.10.dsc
 a062a33aee327fa8a056d47a1d5575b4c320ccef 13304 hostname_3.10.tar.gz
 67f96dcb59083aabf2e4bfbba86de883f73bc8a1 16214 hostname_3.10_amd64.deb
Checksums-Sha256: 
 00b23c42ef8c89ec549868dd6875484b14f83bc5e9c9994d1bf310290686f748 804 
hostname_3.10.dsc
 6f4df19624f64b4268ef8c84446584dd7795c457d39f9c58d0b765f2f7c254be 13304 
hostname_3.10.tar.gz
 c150502fe06d8fbb8fd8f46b47b37d9400077f4acca59601f1f7901acfed86eb 16214 
hostname_3.10_amd64.deb
Files: 
 89a65fa97bf117c94fa0d435a1fffa9f 804 admin required hostname_3.10.dsc
 beff8b0b16ae63eb1ca6b9988929ac86 13304 admin required hostname_3.10.tar.gz
 bb8677b1634baa828b095cb56f127b01 16214 admin required hostname_3.10_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iD8DBQFPEsxmVkEm8inxm9ERAmqHAKCC6v28s9EOleyaVRuhg2zyN9J16ACfRi3V
zQPOHRWYyDqJUm5Sb3mUK00=
=w4zC
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to