[SCM] ladspa-sdk/master: Added patch to fix hardening

mira-guest at users.alioth.debian.org mira-guest at users.alioth.debian.org
Sat Jun 15 10:01:59 UTC 2013


The following commit has been merged in the master branch:
commit d66073d34560879752b69f1db6d3219e47ca237d
Author: Jaromír Mikeš <mira.mikes at seznam.cz>
Date:   Sat Jun 15 12:10:57 2013 +0200

    Added patch to fix hardening

diff --git a/debian/patches/07-hardening-fix.patch b/debian/patches/07-hardening-fix.patch
new file mode 100644
index 0000000..9df8a42
--- /dev/null
+++ b/debian/patches/07-hardening-fix.patch
@@ -0,0 +1,31 @@
+Description:  Fix hardening
+Author: Jaromír Mikeš <mira.mikes at seznam.cz>
+Forwarded: no
+
+Index: ladspa-sdk/src/makefile
+===================================================================
+--- ladspa-sdk.orig/src/makefile	2013-06-15 12:05:32.948969369 +0200
++++ ladspa-sdk/src/makefile	2013-06-15 12:07:39.308974508 +0200
+@@ -14,9 +14,10 @@
+ #
+ 
+ INCLUDES	=	-I.
+-LIBRARIES	=	-ldl -lm -lc
+-CFLAGS		=	$(INCLUDES) -Wall -Werror -O2 -fPIC
+-CXXFLAGS	=	$(CFLAGS)
++LIBRARIES	=	-ldl -lm -lc -z relro -z now
++CFLAGS		=
++CXXFLAGS	=
++LDFLAGS		=
+ PLUGINS		=	../plugins/amp.so				\
+ 			../plugins/delay.so				\
+ 			../plugins/filter.so				\
+@@ -39,7 +40,7 @@
+ 
+ ../plugins/%.so:	plugins/%.cpp ladspa.h
+ 	$(CPP) $(CXXFLAGS) -o plugins/$*.o -c plugins/$*.cpp
+-	$(CPP) -o ../plugins/$*.so plugins/$*.o -shared
++	$(CPP) -o ../plugins/$*.so plugins/$*.o -shared $(LDFLAGS)
+ 
+ ###############################################################################
+ #
diff --git a/debian/patches/series b/debian/patches/series
index 1ce24ad..a62370e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@
 04_fix-linkage-C-plugins.diff
 05_linking_order.diff
 06_include_fix.patch
+07-hardening-fix.patch
diff --git a/debian/rules b/debian/rules
index ffbd66e..b84c2d7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,10 @@
 #!/usr/bin/make -f
 
+CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
+CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
+CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
+LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
+
 include /usr/share/cdbs/1/class/makefile.mk
 include /usr/share/cdbs/1/rules/debhelper.mk
 

-- 
ladspa-sdk packaging



More information about the pkg-multimedia-commits mailing list