[linux] 03/06: Set -fdebug-prefix-map=... in compiler options for kernel and userland

debian-kernel at lists.debian.org debian-kernel at lists.debian.org
Fri Sep 16 15:41:12 UTC 2016


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

benh pushed a commit to branch master
in repository linux.

commit 725eaac2b5d3bea0c760cac66a9a0f551c8389d1
Author: Ben Hutchings <ben at decadent.org.uk>
Date:   Mon Sep 12 04:32:37 2016 +0100

    Set -fdebug-prefix-map=... in compiler options for kernel and userland
    
    For userland we already got this through dpkg-buildflags, but it uses
    the current directory rather than the source package's top directory
    as the default 'old' path.  Set DEB_BUILD_PATH to fix this.
---
 debian/changelog  | 1 +
 debian/rules.real | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 1898e29..0a653b5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ linux (4.8~rc5-1~exp2) UNRELEASED; urgency=medium
   [ Ben Hutchings ]
   * Fix some new reproducibility issues:
     - linux-source: Exclude Python bytecode generated when running Sphinx
+    - Set -fdebug-prefix-map=... in compiler options for kernel and userland
 
  -- Ben Hutchings <ben at decadent.org.uk>  Fri, 16 Sep 2016 16:39:53 +0100
 
diff --git a/debian/rules.real b/debian/rules.real
index 71717d6..0ee1875 100644
--- a/debian/rules.real
+++ b/debian/rules.real
@@ -29,6 +29,7 @@ export CROSS_COMPILE
 export PYTHONPATH = $(CURDIR)/debian/lib/python
 export DH_OPTIONS
 export DEB_HOST_ARCH DEB_HOST_GNU_TYPE DEB_BUILD_ARCH
+export DEB_BUILD_PATH = $(CURDIR)  # for dpkg-buildflags
 export LC_ALL = C.UTF-8
 
 include debian/rules.defs
@@ -38,7 +39,7 @@ stamp = [ -d $(dir $@) ] || mkdir $(dir $@); touch $@
 setup_env := env -u ABINAME -u ARCH -u FEATURESET -u FLAVOUR -u VERSION -u LOCALVERSION
 setup_env += DISTRIBUTION_OFFICIAL_BUILD=1 DISTRIBUTOR="$(DISTRIBUTOR)" DISTRIBUTION_VERSION="$(SOURCEVERSION)" KBUILD_BUILD_TIMESTAMP="$(SOURCE_DATE)" KBUILD_BUILD_VERSION_TIMESTAMP="$(DISTRIBUTOR) $(SOURCEVERSION) ($(SOURCE_DATE_UTC_ISO))" KBUILD_BUILD_USER="$(word 1,$(subst @, ,$(MAINTAINER)))" KBUILD_BUILD_HOST="$(word 2,$(subst @, ,$(MAINTAINER)))"
 
-MAKE_CLEAN = $(setup_env) $(MAKE)
+MAKE_CLEAN = $(setup_env) $(MAKE) CFLAGS_KERNEL=-fdebug-prefix-map=$(CURDIR)=. CFLAGS_MODULE=-fdebug-prefix-map=$(CURDIR)=.
 MAKE_SELF := $(MAKE) -f debian/rules.real $(MAKEOVERRIDES)
 MAKEOVERRIDES =
 

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



More information about the Kernel-svn-changes mailing list