From 68b1d566ae480617872c21a5efc2de8323c8776a Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Sun, 21 Feb 2016 16:58:27 +0000 Subject: [PATCH] hyperv-daemons: Only build the progarams on x86 (fixes FTBFS) The daemons themselves can be built for any architecture, although on !x86 they are useless and won't be included in any package. However, the newly introduced check-hyperv.c include inline assembly which breaks the build. --- debian/build/tools/hv/Makefile | 9 +++++++++ debian/changelog | 6 ++++++ 2 files changed, 15 insertions(+) diff --git a/debian/build/tools/hv/Makefile b/debian/build/tools/hv/Makefile index fb3ff37a2..c958962cb 100644 --- a/debian/build/tools/hv/Makefile +++ b/debian/build/tools/hv/Makefile @@ -1,3 +1,10 @@ +ifeq ($(filter i386 amd64 x32,$(DEB_BUILD_ARCH)),) + +# Build nothing +include ../../Makefile.inc + +else + PROGS = \ hv_fcopy_daemon \ hv_kvp_daemon \ @@ -15,3 +22,5 @@ install-local-progs: $(PROGS) install -D -m755 "$$p" "$(DESTDIR)/$(prefix)/$$(basename $$p)"; \ done install -D -m755 check-hyperv '$(DESTDIR)/lib/hyperv-daemons/check-hyperv' + +endif diff --git a/debian/changelog b/debian/changelog index fecf5bb31..3a35e5065 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +linux-tools (4.4-4) unstable; urgency=medium + + * hyperv-daemons: Only build the progarams on x86 (fixes FTBFS) + + -- Ben Hutchings Sun, 21 Feb 2016 16:57:55 +0000 + linux-tools (4.4-3) unstable; urgency=medium * hyperv-daemons: Add init scripts