[SCM] alsaequal/master: Enable security hardening flags

ghedo-guest at users.alioth.debian.org ghedo-guest at users.alioth.debian.org
Mon Mar 5 21:53:50 UTC 2012


The following commit has been merged in the master branch:
commit f227a2508c10bceb2791da89ab41c2d293b7674d
Author: Alessandro Ghedini <al3xbio at gmail.com>
Date:   Mon Mar 5 22:42:22 2012 +0100

    Enable security hardening flags
    
    Closes: #662695
    Thanks: Simon Ruderich for the patch

diff --git a/debian/patches/0004-dpkg-buildflags.patch b/debian/patches/0004-dpkg-buildflags.patch
new file mode 100644
index 0000000..2439cf7
--- /dev/null
+++ b/debian/patches/0004-dpkg-buildflags.patch
@@ -0,0 +1,29 @@
+Description: Use build flags from environment (dpkg-buildflags).
+ Also use CPPFLAGS, necessary for hardening. -O2 is handled by
+ dpkg-buildflags, which also respects noopt.
+Author: Simon Ruderich <simon at ruderich.org>
+Last-Update: 2012-03-05
+
+--- alsaequal-0.6.orig/Makefile
++++ alsaequal-0.6/Makefile
+@@ -5,9 +5,9 @@ Q	?= @
+ 
+ # Build Tools
+ CC 	:= gcc
+-CFLAGS := -I. -O2 -Wall -funroll-loops -ffast-math -fPIC -DPIC
++CFLAGS += -I. -Wall -funroll-loops -ffast-math -fPIC -DPIC
+ LD := gcc
+-LDFLAGS := -O2 -Wall -shared -lasound
++LDFLAGS += -Wall -shared -lasound
+ 
+ SND_PCM_OBJECTS = pcm_equal.o ladspa_utils.o
+ SND_PCM_LIBS =
+@@ -39,7 +39,7 @@ $(SND_CTL_BIN): $(SND_CTL_OBJECTS)
+ 
+ %.o: %.c
+ 	@echo GCC $<
+-	$(Q)$(CC) -c $(CFLAGS) $<
++	$(Q)$(CC) -c $(CFLAGS) $(CPPFLAGS) $<
+ 
+ clean:
+ 	@echo Cleaning...
diff --git a/debian/patches/series b/debian/patches/series
index 790ab9f..630d523 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 0002-remove-ladspa-sdk.patch
 0003-multiarch-dirs.patch
+0004-dpkg-buildflags.patch

-- 
alsaequal packaging



More information about the pkg-multimedia-commits mailing list