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

guillem pushed a commit to branch master
in repository dpkg.

commit f6e152b63f9eb183313807898be0569f5321bdf6
Author: Jack Bates <wdz...@nottheoilrig.com>
Date:   Tue Jan 30 20:46:27 2018 +0000

    scripts/mk: Export architecture variables by default
    
    The dpkg-architecture(1) man page states that these variables are
    exported, and that's what dpkg-buildpackage does itself when setting
    up the build environment. Doing this is always safe.
    
    Closes: #888964
    Signed-off-by: Guillem Jover <guil...@debian.org>
---
 debian/changelog           | 3 +++
 scripts/mk/architecture.mk | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 541b0c2..ad63a24 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -33,6 +33,9 @@ dpkg (1.19.1) UNRELEASED; urgency=medium
   * Specify new DEB_RULES_REQUIRES_ROOT variable for R³ support.
   * Add new --rules-requires-root option to dpkg-buildpackage.
   * Declare R³ specification as "recommendation, stable" with version 1.0.
+  * Export architecture variables by default from architecture.mk, as
+    documented in dpkg-architecture(1). Closes: #88896
+    Thanks to Jack Bates <wdz...@nottheoilrig.com>
   * Architecture support:
     - Add support for riscv64 CPU. Closes: #822914
       Thanks to Manuel A. Fernandez Montecelo <m...@debian.org>
diff --git a/scripts/mk/architecture.mk b/scripts/mk/architecture.mk
index 8520c5b..0af9601 100644
--- a/scripts/mk/architecture.mk
+++ b/scripts/mk/architecture.mk
@@ -4,7 +4,7 @@
 
 dpkg_lazy_eval ?= $$(or $$(value DPKG_CACHE_$(1)),$$(eval DPKG_CACHE_$(1) := 
$$(shell $(2)))$$(value DPKG_CACHE_$(1)))
 
-dpkg_architecture_setvar = $(1) ?= $(call 
dpkg_lazy_eval,$(1),dpkg-architecture -q$(1))
+dpkg_architecture_setvar = export $(1) ?= $(call 
dpkg_lazy_eval,$(1),dpkg-architecture -q$(1))
 
 $(foreach machine,BUILD HOST TARGET,\
   $(foreach var,ARCH ARCH_ABI ARCH_LIBC ARCH_OS ARCH_CPU ARCH_BITS ARCH_ENDIAN 
GNU_CPU GNU_SYSTEM GNU_TYPE MULTIARCH,\

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

Reply via email to