From e997d092bb47ed71c50d3454db99ff59648abe76 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Sat, 16 Nov 2019 19:51:10 +0300 Subject: Make dh_installsystemd a no-op on non-linux --- dh_installsystemd | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dh_installsystemd b/dh_installsystemd index 48a0e787..691eeee7 100755 --- a/dh_installsystemd +++ b/dh_installsystemd @@ -12,6 +12,13 @@ use Debian::Debhelper::Dh_Lib; use File::Find; use Cwd qw(getcwd abs_path); +my $deb_host_arch_os = dpkg_architecture_value('DEB_HOST_ARCH_OS'); +if ($deb_host_arch_os ne 'linux') +{ + warning("systemd is unsupported on $deb_host_arch_os, doing nothing"); + exit(0); +} + our $VERSION = DH_BUILTIN_VERSION; =head1 SYNOPSIS -- cgit v1.2.3