[mate-sensors-applet] 02/04: debian/rules: On kfreebsd and hurd exclude liblibsensors.so and libudisks.so plugin, as it does not get built there.

Vangelis Mouhtsis gnugr-guest at moszumanska.debian.org
Thu Aug 24 07:53:28 UTC 2017


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

gnugr-guest pushed a commit to branch parrot/3.7
in repository mate-sensors-applet.

commit 0ab0e20fcb1507ca2629f69f636211037ec631d7
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Wed Aug 23 16:50:10 2017 +0200

    debian/rules: On kfreebsd and hurd exclude liblibsensors.so and libudisks.so plugin, as it does not get built there.
---
 debian/rules | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 73ff356..707b3c1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,6 +2,15 @@
 
 DHFLAGS=--parallel
 
+DH_INSTALL_EXCLUDES=
+DEB_BUILD_ARCH_OS=$(shell dpkg-architecture -qDEB_BUILD_ARCH_OS)
+ifneq (,$(filter kfreebsd,$(DEB_BUILD_ARCH_OS)))
+DH_INSTALL_EXCLUDES = --exclude liblibsensors.so --exclude libudisks.so
+endif
+ifneq (,$(filter hurd,$(DEB_BUILD_ARCH_OS)))
+DH_INSTALL_EXCLUDES = --exclude liblibsensors.so --exclude libudisks.so
+endif
+
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 DPKG_EXPORT_BUILDFLAGS = 1
 include /usr/share/dpkg/buildflags.mk
@@ -17,7 +26,8 @@ override_dh_install:
 	rm -rfv debian/tmp/usr/lib/*/*.la
 	rm -rfv debian/tmp/usr/lib/*/mate-sensors-applet/plugins/*.a
 	rm -rfv debian/tmp/usr/lib/*/mate-sensors-applet/plugins/*.la
-	dh_install
+
+	dh_install $(DH_INSTALL_EXCLUDES)
 
 override_dh_auto_configure:
 	NOCONFIGURE=1 ./autogen.sh

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mate/mate-sensors-applet.git



More information about the pkg-mate-commits mailing list