[SCM] qsynth/master: Fix some hardening.

mira-guest at users.alioth.debian.org mira-guest at users.alioth.debian.org
Fri Jun 17 10:39:48 UTC 2016


The following commit has been merged in the master branch:
commit 021158422c16a520813cf4c7950b253f313ac72a
Author: Jaromír Mikeš <mira.mikes at seznam.cz>
Date:   Fri Jun 17 12:31:11 2016 +0200

    Fix some hardening.

diff --git a/debian/patches/3001-hardening.patch b/debian/patches/3001-hardening.patch
new file mode 100644
index 0000000..b8ea311
--- /dev/null
+++ b/debian/patches/3001-hardening.patch
@@ -0,0 +1,17 @@
+Description: Fix hardening by passing flags
+Author: Jaromír Mikeš <mira.mikes at seznam.cz>
+Forwarded: no
+
+Index: qsynth/src/src.pri.in
+===================================================================
+--- qsynth.orig/src/src.pri.in
++++ qsynth/src/src.pri.in
+@@ -6,5 +6,6 @@ INCLUDEPATH += @ac_incpath@
+ LIBS += @ac_libs@
+ 
+ # Extra optimization flags
+-QMAKE_CXXFLAGS += @ac_cflags@
+-QMAKE_LFLAGS += @ac_ldflags@
++QMAKE_CXXFLAGS += $(CPPFLAGS) @ac_cflags@
++QMAKE_CFLAGS += $(CPPFLAGS)
++QMAKE_LFLAGS += $(LDFLAGS)
diff --git a/debian/patches/series b/debian/patches/series
index 6c62fda..9635512 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 1001-soundfont_default_dir.patch
 2001-libx11_underlinkage.patch
+3001-hardening.patch
diff --git a/debian/rules b/debian/rules
index f9133f3..4036b45 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,8 @@
 #!/usr/bin/make -f
 # -*- makefile -*-
 
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
 export QT_SELECT=qt5
 
 %:

-- 
qsynth packaging



More information about the pkg-multimedia-commits mailing list