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

guillem pushed a commit to branch master
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=2dadfc74f74f66ee7685ad402ad99dc9ea1476c0

commit 2dadfc74f74f66ee7685ad402ad99dc9ea1476c0
Author: Guillem Jover <[email protected]>
AuthorDate: Mon Jul 23 12:08:58 2018 +0200

    dpkg-buildpackage: Only check required build dependencies for known targets
    
    When we specify the debian/rules targets to call with --rules-target, we
    should check only the build dependencies required bu those targets, and
    nothing more.
    
    Reported-by: Johannes Schauer <[email protected]>
---
 debian/changelog             | 3 +++
 scripts/dpkg-buildpackage.pl | 5 +++++
 2 files changed, 8 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 059de6ed5..58308cfdb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -68,6 +68,9 @@ dpkg (1.19.1) UNRELEASED; urgency=medium
     it as --rules-target, which due to the ordering was a no-op.
   * Only check for fallback build targets presence on binary builds in
     dpkg-buildpackage.
+  * Only check required build dependencies for known targets specified with
+    dpkg-buildpackage --rules-target option.
+    Reported by Johannes Schauer <[email protected]>.
   * Architecture support:
     - Add support for riscv64 CPU. Closes: #822914
       Thanks to Manuel A. Fernandez Montecelo <[email protected]>
diff --git a/scripts/dpkg-buildpackage.pl b/scripts/dpkg-buildpackage.pl
index 64c80635c..5b9fd441f 100755
--- a/scripts/dpkg-buildpackage.pl
+++ b/scripts/dpkg-buildpackage.pl
@@ -354,6 +354,11 @@ while (@ARGV) {
     }
 }
 
+if (@call_target) {
+    my $targets = join ',', @call_target;
+    set_build_type_from_targets($targets, '--rules-target', nocheck => 1);
+}
+
 if (build_has_all(BUILD_BINARY)) {
     $buildtarget = 'build';
     $binarytarget = 'binary';

-- 
Dpkg.Org's dpkg

Reply via email to