Package: rsync
Version: 3.0.9-1
Severity: important
Tags: patch

Hi,
hardened build flags are a release goal for Wheezy. Please consider
the attached patch.

Cheers,
        Moritz

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.1.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages rsync depends on:
ii  base-files  6.5
ii  libacl1     2.2.51-5
ii  libc6       2.13-23
ii  libpopt0    1.16-1
ii  lsb-base    3.2-28

rsync recommends no packages.

Versions of packages rsync suggests:
pn  openssh-client  1:5.9p1-2
pn  openssh-server  <none>

-- no debconf information
diff -aur rsync-3.0.9.orig/debian/rules rsync-3.0.9/debian/rules
--- rsync-3.0.9.orig/debian/rules	2011-12-15 18:10:14.000000000 +0100
+++ rsync-3.0.9/debian/rules	2011-12-15 18:13:36.000000000 +0100
@@ -19,6 +19,9 @@
 INSTALL_SCRIPT = $(INSTALL) -p    -o root -g root  -m  755
 INSTALL_DIR = $(INSTALL) -p -d -o root -g root  -m  755
 
+CFLAGS += `dpkg-buildflags --get CFLAGS`
+LDFLAGS = `dpkg-buildflags --get LDFLAGS`
+
 # policy stuff
 ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
 CFLAGS += -g
@@ -58,7 +61,7 @@
 	@echo applying misc Debian patches
 	for i in debian/patches/*.patch debian/patches/*.diff; do if [ -s $$i ]; then echo "  $$i ..."; cat $$i | (cd debian/buildtree; patch -p1) || exit 1; fi; done
 	@echo configuring
-	(cd debian/buildtree; ./configure --prefix=/usr --mandir='$${prefix}/share/man' --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE))
+	(cd debian/buildtree; ./configure --prefix=/usr --mandir='$${prefix}/share/man' --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)) LDFLAGS="$(LDFLAGS)"
 	@echo building
 	$(MAKE) --directory=debian/buildtree CFLAGS="$(CFLAGS)" all
 	touch build-stamp
Nur in rsync-3.0.9/debian: rules~.

Reply via email to