[dpkg] 181/200: Dpkg::Vendor::Debian: Mark more architectures as having gcc builtin PIE

Ximin Luo infinity0 at debian.org
Wed Apr 5 15:17:38 UTC 2017


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

infinity0 pushed a commit to branch master
in repository dpkg.

commit 8e6660991e63cce477c8cb2e2ba62237b351efc0
Author: Guillem Jover <guillem at debian.org>
Date:   Tue Feb 7 01:51:12 2017 +0100

    Dpkg::Vendor::Debian: Mark more architectures as having gcc builtin PIE
    
    Specifically kfreebsd-amd64, kfreebsd-i386, sparc and sparc64.
---
 debian/changelog              | 2 ++
 man/dpkg-buildflags.man       | 5 +++--
 scripts/Dpkg/Vendor/Debian.pm | 3 ++-
 3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 74296a5..ec8551d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -15,6 +15,8 @@ dpkg (1.18.23) UNRELEASED; urgency=medium
     - Add ‘.mnt-ignore’ to the default ignore lists in Dpkg::Source::Package,
       as we were already ignoring the ‘_MTN’ pathnames. Closes: #855450
       Thanks to Nicolas Boulenguez <nicolas at debian.org>.
+    - Mark kfreebsd-amd64, kfreebsd-i386, sparc and sparc64 architectures as
+      having gcc builtin PIE in Dpkg::Vendor::Debian.
   * Documentation:
     - Clarify the requirements for deb-conffile(5) pathnames. Closes: #854417
       Proposed by Dieter Adriaenssens <dieter.adriaenssens at gmail.com>.
diff --git a/man/dpkg-buildflags.man b/man/dpkg-buildflags.man
index 946f6d1..e5ec7f7 100644
--- a/man/dpkg-buildflags.man
+++ b/man/dpkg-buildflags.man
@@ -348,8 +348,9 @@ above). The option cannot become enabled if \fBrelro\fP is not enabled.
 .TP
 .B pie
 This setting (enabled by default since dpkg 1.18.11, and injected by default
-by gcc on the amd64, arm64, armel, armhf, i386, mips, mipsel, mips64el,
-ppc64el and s390x Debian architectures) adds the required options if
+by gcc on the amd64, arm64, armel, armhf, i386, kfreebsd-amd64, kfreebsd-i386,
+mips, mipsel, mips64el, ppc64el, s390x, sparc and sparc64 Debian architectures)
+adds the required options via gcc specs files if
 needed to enable or disable PIE. When enabled and injected by gcc,
 adds nothing. When enabled and not injected by gcc, adds \fB\-fPIE\fP
 to \fBCFLAGS\fP, \fBCXXFLAGS\fP, \fBOBJCFLAGS\fP, \fBOBJCXXFLAGS\fP,
diff --git a/scripts/Dpkg/Vendor/Debian.pm b/scripts/Dpkg/Vendor/Debian.pm
index d719ee6..1ddd6f7 100644
--- a/scripts/Dpkg/Vendor/Debian.pm
+++ b/scripts/Dpkg/Vendor/Debian.pm
@@ -271,7 +271,8 @@ sub _add_hardening_flags {
     );
 
     my %builtin_pie_arch = map { $_ => 1 } qw(
-        amd64 arm64 armel armhf i386 mips mipsel mips64el ppc64el s390x
+        amd64 arm64 armel armhf i386 kfreebsd-amd64 kfreebsd-i386
+        mips mipsel mips64el ppc64el s390x sparc sparc64
     );
 
     # Mask builtin features that are not enabled by default in the compiler.

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



More information about the Reproducible-commits mailing list