chiark / gitweb /
dgit: build: Squash $buildproductsdir
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 26 Aug 2018 11:20:44 +0000 (12:20 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 26 Aug 2018 12:32:45 +0000 (13:32 +0100)
Things malfunction, because some things end up in .. and some in bpd.
Overriding this at least makes `dgit build' produce correct results,
albeit in the wrong place.

Closes: #906786.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
dgit

diff --git a/dgit b/dgit
index 396213475b9cc38ce8d8a63a44231ffe60e329b4..d38d9149552aa06e45f66aa66cd9b818c162d347 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -6324,9 +6324,10 @@ sub postbuild_mergechanges_vanilla ($) {
 sub cmd_build {
     build_prep_early();
     $buildproductsdir eq '..' or print STDERR <<END;
-$us: warning: build-products-dir set, but not supported by dgit build
-$us: warning: things may go wrong or files may go to the wrong place
+$us: warning: build-products-dir set, but not supported by dpkg-buildpackage
+$us: warning: build-products-dir will be ignored; files will go to ..
 END
+    $buildproductsdir = '..';
     my @dbp = (@dpkgbuildpackage, qw(-us -uc), changesopts_initial(), @ARGV);
     my $wantsrc = massage_dbp_args \@dbp;
     build_prep($wantsrc);