summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2019-11-16 20:47:37 +0300
committerIgor Pashev <pashev.igor@gmail.com>2019-11-16 20:47:37 +0300
commitbca4e7c5a4716d4fdae6559516256e4eabe3020b (patch)
tree50aafd52459d999572191a720b53ae0b914f8d5b
parente997d092bb47ed71c50d3454db99ff59648abe76 (diff)
downloaddebhelper-bca4e7c5a4716d4fdae6559516256e4eabe3020b.tar.gz
Disable dh_dwz due to missing dwz and elfutils
-rw-r--r--debian/control2
-rwxr-xr-xdh_dwz7
2 files changed, 8 insertions, 1 deletions
diff --git a/debian/control b/debian/control
index e2574f68..3b2db249 100644
--- a/debian/control
+++ b/debian/control
@@ -29,7 +29,7 @@ Depends: autotools-dev,
# dbgsym support landed in 1.18.0, 1.18.2 fixes a related nasty bug.
dpkg (>= 1.18.0~),
dpkg-dev (>= 1.18.2~),
- dwz,
+# dwz,
file (>= 3.23),
libdpkg-perl (>= 1.17.14),
man-db,
diff --git a/dh_dwz b/dh_dwz
index 471930b9..211db24e 100755
--- a/dh_dwz
+++ b/dh_dwz
@@ -11,6 +11,13 @@ use warnings;
use File::Find;
use Debian::Debhelper::Dh_Lib;
+my $deb_host_arch_os = dpkg_architecture_value('DEB_HOST_ARCH_OS');
+if ($deb_host_arch_os ne 'linux')
+{
+ warning("dh_dwz is unsupported on $deb_host_arch_os until elfutils are ported, doing nothing");
+ exit(0);
+}
+
our $VERSION = DH_BUILTIN_VERSION;
=head1 SYNOPSIS