[dpkg] 13/27: dpkg-buildpackage: Pass the debian/control source stanza to R³ parser

Mattia Rizzolo mattia at debian.org
Mon Oct 23 18:10:28 UTC 2017


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

mattia pushed a commit to branch master
in repository dpkg.

commit 96547b59076841cb85a2682870cf6742dbb9a3e3
Author: Guillem Jover <guillem at debian.org>
Date:   Thu Oct 19 00:51:54 2017 +0200

    dpkg-buildpackage: Pass the debian/control source stanza to R³ parser
    
    This meant the field was being ignored.
---
 debian/changelog             | 2 ++
 scripts/dpkg-buildpackage.pl | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index e553e72..a0620f4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,8 @@ dpkg (1.19.1) UNRELEASED; urgency=medium
     Thanks to James Clarke <jrtc27 at debian.org>. Closes: #878899
   * Do not try to recompute hashes for the .dsc file when signing binary-only
     builds in dpkg-buildpackage. Reported by Ximin Luo <infinity0 at debian.org>.
+  * Pass the correct source stanza to the dpkg-buildpackage code parsing the
+    Rules-Requires-Root field. This meant the field was being ignored.
   * Documentation:
     - Update gettext minimal version in README.
   * Packaging:
diff --git a/scripts/dpkg-buildpackage.pl b/scripts/dpkg-buildpackage.pl
index 0705aca..df2e1bb 100755
--- a/scripts/dpkg-buildpackage.pl
+++ b/scripts/dpkg-buildpackage.pl
@@ -464,7 +464,7 @@ $ENV{SOURCE_DATE_EPOCH} ||= $changelog->{timestamp} || time;
 
 # Check whether we are doing some kind of rootless build, and sanity check
 # the fields values.
-my %rules_requires_root = parse_rules_requires_root($ctrl);
+my %rules_requires_root = parse_rules_requires_root($ctrl->get_source());
 
 my @arch_opts;
 push @arch_opts, ('--host-arch', $host_arch) if $host_arch;

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