From ad797e531290412a6981c2b199a1c9ec94221c91 Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Sat, 19 May 2012 17:21:03 +0900 Subject: Fix CPPFLAGS hardening flags missing (closes: #665491) Patch from provided by Simon Ruderich. --- debian/patches/100_use-cppflags.patch | 17 +++++++++++++++++ debian/patches/series | 1 + 2 files changed, 18 insertions(+) create mode 100644 debian/patches/100_use-cppflags.patch (limited to 'debian/patches') diff --git a/debian/patches/100_use-cppflags.patch b/debian/patches/100_use-cppflags.patch new file mode 100644 index 0000000..0b76fb2 --- /dev/null +++ b/debian/patches/100_use-cppflags.patch @@ -0,0 +1,17 @@ +Description: Use $(CPPFLAGS) with $(CPP) + Use CPPFLAGS from environment (dpkg-buildflags). + Necessary for hardening flags. +Author: Simon Ruderich +Bug-Debian: http://bugs.debian.org/665491 + +--- w3m-0.5.3.orig/Makefile.in ++++ w3m-0.5.3/Makefile.in +@@ -150,7 +150,7 @@ parsetagx.o: html.c + + funcname.tab: $(DEFUNS) + (echo '#define DEFUN(x,y,z) x y';\ +- sed -ne '/^DEFUN/{p;n;/^[ ]/p;}' $(DEFUNS)) | $(CPP) - | \ ++ sed -ne '/^DEFUN/{p;n;/^[ ]/p;}' $(DEFUNS)) | $(CPP) $(CPPFLAGS) - | \ + awk '$$1 ~ /^[_A-Za-z]/ { \ + for (i=2;i<=NF;i++) { print $$i, $$1} \ + }' > $@.tmp diff --git a/debian/patches/series b/debian/patches/series index 4e54238..b106e0a 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -7,3 +7,4 @@ 070_glibc2.14.patch 080_gc72.patch 090_parallel-make.patch +100_use-cppflags.patch -- cgit v1.2.3