summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiko Tyni <ntyni@debian.org>2019-10-27 11:05:15 +0200
committerNiko Tyni <ntyni@debian.org>2019-10-27 11:05:22 +0200
commitb1a9d1a622291373b7abc4eff2a6b2b2fef62083 (patch)
tree1a52705201f7e1d82f3897f5e1f9725c4a647496
parentf5f66df0f27ddc742ad2ae4a63799c709273b2f3 (diff)
downloaddebhelper-b1a9d1a622291373b7abc4eff2a6b2b2fef62083.tar.gz
Fix spurious perl-xs-dev related warnings in cross builds
dh_perl is run for all packages so we cannot expect perl-xs-dev to be installed in the general case.
-rw-r--r--lib/Debian/Debhelper/Dh_Lib.pm5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Debian/Debhelper/Dh_Lib.pm b/lib/Debian/Debhelper/Dh_Lib.pm
index 33187e33..103f2f31 100644
--- a/lib/Debian/Debhelper/Dh_Lib.pm
+++ b/lib/Debian/Debhelper/Dh_Lib.pm
@@ -2718,10 +2718,7 @@ sub perl_cross_incdir {
my $triplet = dpkg_architecture_value("DEB_HOST_MULTIARCH");
my $perl_version = $Config::Config{version};
my $incdir = "/usr/lib/$triplet/perl/cross-config-${perl_version}";
- if (!-e "$incdir/Config.pm") {
- warning("$incdir/Config.pm does not exist (missing build dependency on perl-xs-dev?)");
- return;
- }
+ return undef if !-e "$incdir/Config.pm";
return $incdir;
}