[Pkg-virtualbox-commits] [virtualbox] 02/02: Enable hardened build flags using hardening-wrapper.

Felix Geyer fgeyer at moszumanska.debian.org
Sat Feb 1 19:43:16 UTC 2014


This is an automated email from the git hooks/post-receive script.

fgeyer pushed a commit to branch master
in repository virtualbox.

commit 618fa94e845c184c4756d2925c30cbc8916f9c76
Author: Felix Geyer <fgeyer at debian.org>
Date:   Sat Feb 1 20:42:08 2014 +0100

    Enable hardened build flags using hardening-wrapper.
    
    The upstream build system ignores the *FLAGS env variables.
    
    Closes: #736459
---
 debian/changelog | 2 ++
 debian/control   | 1 +
 debian/rules     | 3 +++
 3 files changed, 6 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 273699b..72ce049 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
 virtualbox (4.3.2-dfsg-2) UNRELEASED; urgency=medium
 
   * Drop compatibility with old X11 server packages.
+  * Enable hardened build flags using hardening-wrapper. The upstream build
+    system ignores the *FLAGS env variables. (Closes: #736459)
 
  -- Felix Geyer <fgeyer at debian.org>  Sat, 01 Feb 2014 18:50:13 +0100
 
diff --git a/debian/control b/debian/control
index ab66303..fdc0434 100644
--- a/debian/control
+++ b/debian/control
@@ -14,6 +14,7 @@ Build-Depends: bzip2,
                g++-multilib [amd64],
                genisoimage,
                gsoap,
+               hardening-wrapper,
                iasl,
                imagemagick,
                kbuild (>= 1:0.1.9998svn2695),
diff --git a/debian/rules b/debian/rules
index e5aa82d..24de393 100755
--- a/debian/rules
+++ b/debian/rules
@@ -27,6 +27,9 @@ XSERVER_VERSION = 17
 
 SERVER_DEPENDS = $(shell cat /usr/share/xserver-xorg/videodrvdep 2>/dev/null)
 
+export DEB_BUILD_HARDENING=1
+export DEB_BUILD_HARDENING_PIE=0
+
 %:
 	dh $@ --with python2,dkms
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-virtualbox/virtualbox.git



More information about the Pkg-virtualbox-commits mailing list