[SCM] signon-plugin-oauth2 packaging branch, master, updated. 4a28cdc69f21eb8af3d09fee7a54327bc7815d44

Diane Trout diane at moszumanska.debian.org
Thu Sep 10 06:08:46 UTC 2015


Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/signon-plugin-oauth2.git;a=commitdiff;h=d1e6de2

The following commit has been merged in the master branch:
commit d1e6de236b3803a91ab801b531b2dcd08adad6d4
Author: Diane Trout <diane at ghic.org>
Date:   Wed Sep 9 23:06:18 2015 -0700

    force qmake to use hardening flatgs. See https://wiki.debian.org/Hardening#Notes_for_packages_using_QMake
---
 debian/patches/hardening.patch | 18 ++++++++++++++++++
 debian/patches/series          |  2 ++
 2 files changed, 20 insertions(+)

diff --git a/debian/patches/hardening.patch b/debian/patches/hardening.patch
new file mode 100644
index 0000000..82db5d0
--- /dev/null
+++ b/debian/patches/hardening.patch
@@ -0,0 +1,18 @@
+Author: Diane Trout <diane at debian.org>
+Description: Pass hardening flags to the compiler through qmake.
+ (Qmake doesn't respect the standard environment variables).
+--- a/common-project-config.pri
++++ b/common-project-config.pri
+@@ -20,6 +20,12 @@
+ # we don't like warnings...
+ QMAKE_CXXFLAGS += -Werror
+ 
++# Add in hardning macros
++QMAKE_CPPFLAGS += $(shell dpkg-buildflags --get CPPFLAGS)
++QMAKE_CFLAGS   += $(shell dpkg-buildflags --get CFLAGS)
++QMAKE_CXXFLAGS += $(shell dpkg-buildflags --get CXXFLAGS)
++QMAKE_LFLAGS   += $(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed
++
+ TOP_SRC_DIR     = $$PWD
+ 
+ #DEFINES += QT_NO_DEBUG_OUTPUT
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..db655c6
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+hardening.patch
+

-- 
signon-plugin-oauth2 packaging



More information about the pkg-kde-commits mailing list