[Reproducible-commits] [dpkg] 49/74: dpkg-buildpackage: Use arch:all in .changes filename when not building arch:any

Mattia Rizzolo mattia at debian.org
Sun Jul 3 22:22:56 UTC 2016


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

mattia pushed a commit to annotated tag 1.18.8
in repository dpkg.

commit e635ed265aaa58c4ebc24cc6e661349aa05ad865
Author: Guillem Jover <guillem at debian.org>
Date:   Mon Jun 6 02:56:06 2016 +0200

    dpkg-buildpackage: Use arch:all in .changes filename when not building arch:any
    
    Closes: #826161
---
 debian/changelog             |  3 +++
 scripts/dpkg-buildpackage.pl | 10 +++++-----
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 2745396..f472c5a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -39,6 +39,9 @@ dpkg (1.18.8) UNRELEASED; urgency=medium
     Closes: #759999
   * Do not use the debian/rules build target fallback when building both
     architecture independent and dependent packages in dpkg-buipdpackage.
+  * Use architecture «all» as part of the .changes filename when building
+    architecture independent binaries and no architecture dependent binaries.
+    Closes: #826161
   * Perl modules:
     - Use warnings::warnif() instead of carp() for deprecated warnings.
     - Add new format_range() method and deprecate dpkg() and rfc822() methods
diff --git a/scripts/dpkg-buildpackage.pl b/scripts/dpkg-buildpackage.pl
index 768c59a..890b67e 100755
--- a/scripts/dpkg-buildpackage.pl
+++ b/scripts/dpkg-buildpackage.pl
@@ -434,12 +434,12 @@ while (<$arch_env>) {
 close $arch_env or subprocerr('dpkg-architecture');
 
 my $arch;
-if (build_is(BUILD_SOURCE)) {
-    $arch = 'source';
-} elsif (build_is(BUILD_ARCH_INDEP)) {
-    $arch = 'all';
-} else {
+if (build_has_any(BUILD_ARCH_DEP)) {
     $arch = mustsetvar($ENV{DEB_HOST_ARCH}, g_('host architecture'));
+} elsif (build_has_any(BUILD_ARCH_INDEP)) {
+    $arch = 'all';
+} elsif (build_has_any(BUILD_SOURCE)) {
+    $arch = 'source';
 }
 
 my $pv = "${pkg}_$sversion";

-- 
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