Patch for better support of hardening
authorJoachim Wiedorn <joodebian@joonet.de>
Fri, 15 Jul 2016 20:37:14 +0000 (22:37 +0200)
committerJoachim Wiedorn <joodebian@joonet.de>
Fri, 15 Jul 2016 20:37:14 +0000 (22:37 +0200)
debian/changelog
debian/patches/07_hardening-cflags+cppflags.patch [new file with mode: 0644]
debian/patches/series
debian/patches/ubuntu.series

index 50724fb5c8533e091fa3ee26a58ab6914c0e3e04..0ea64fce5e5108d5e2d571a75cf24126efcc6c69 100644 (file)
@@ -5,6 +5,8 @@ lilo (1:24.2-2) UNRELEASED; urgency=medium
       (creating only arch-independent packages). Closes: #806656
   * debian/control:
     - Bump Standards Version to 3.9.8 (no changes).
+  * New patches:
+    - Fix warning found in buildd logs: dpkg-buildflags-missing CFLAGS
 
  -- Joachim Wiedorn <joodebian@joonet.de>  Fri, 15 Jul 2016 21:23:45 +0200
 
diff --git a/debian/patches/07_hardening-cflags+cppflags.patch b/debian/patches/07_hardening-cflags+cppflags.patch
new file mode 100644 (file)
index 0000000..5fc6e74
--- /dev/null
@@ -0,0 +1,21 @@
+Package:     lilo
+Subject:     hardening CFLAGS and CPPFLAGS
+Author:      Joachim Wiedorn <joodebian at joonet.de>
+Origin:      issues found in buildd logs for lilo
+Forwarded:   no
+Last-Update: 2016-07-15
+---
+
+diff -urN s06/src/Makefile s07/src/Makefile
+--- s06/src/Makefile   2016-07-15 21:41:14.977602579 +0200
++++ s07/src/Makefile   2016-07-15 21:52:35.979409943 +0200
+@@ -22,7 +22,8 @@
+ NASM=nasm
+ G=`cat foo1 foo2 | grep version | cut -d " " -f 3`
+-CFLAGS=$(OPT) -Wall $(PCONFIG)
++CFLAGS = $(OPT) -Wall $(PCONFIG) `dpkg-buildflags --get CFLAGS`
++CPPFLAGS = `dpkg-buildflags --get CPPFLAGS`
+ LIBS=$(DEVMAPPER)
+ OBJS=lilo.o raid.o map.o geometry.o boot.o device.o common.o bsect.o cfg.o \
index a7b98cc27774e5d10b09c9f6390d21a62a01ea40..fac4a84a1a404191bacf774c2ea3f8055b608f5c 100644 (file)
@@ -3,3 +3,4 @@
 03_keytab-lilo.8-debian-based.patch
 05_readme.disk-change.patch
 06_notinteractive.patch
+07_hardening-cflags+cppflags.patch
index eac27f8da96462058c2f4c1b5e13a2b4504e6be0..43bff486d3ccd19637b974550a51713adb9b52b9 100644 (file)
@@ -3,3 +3,4 @@
 03_keytab-lilo.8-debian-based.patch
 05_readme.disk-change.patch
 06_notinteractive.patch
+07_hardening-cflags+cppflags.patch