[Pkg-libvirt-maintainers] Bug#867393: libvirt: FTBFS on !linux archs

Pino Toscano pino at debian.org
Thu Jul 6 12:01:23 UTC 2017


Source: libvirt
Version: 3.5.0-1
Severity: important
Tags: patch

Hi,

currently, the nss plugin is unconditionally enabled on any
architecture, although it depends on network support (see
m4/virt-nss.m4). Since networking is enabled only on Linux
architectures, this makes configure fail on non-Linux architectures.

libnss-libvirt is already linux-any, so the easy solution is to enable
and install the nss plugin only on Linux. Patch attached for this.

Thanks,
-- 
Pino
-------------- next part --------------
--- a/debian/rules
+++ b/debian/rules
@@ -39,6 +39,7 @@ ifneq (,$(findstring $(DEB_HOST_ARCH_OS)
   WITH_AUDIT          = --with-audit
   WITH_SELINUX        = --with-selinux --with-secdriver-selinux --with-selinux-mount=/sys/fs/selinux
   WITH_APPARMOR       = --with-apparmor --with-secdriver-apparmor --with-apparmor-profiles
+  WITH_NSS_PLUGIN     = --with-nss-plugin
   ifneq (,$(findstring $(DEB_HOST_ARCH), amd64 armel armhf i386 ia64 powerpc s390))
       WITH_DTRACE     = --with-dtrace
   else
@@ -76,6 +77,7 @@ else
   WITH_AUDIT          = --without-audit
   WITH_SELINUX        = --without-selinux
   WITH_APPARMOR       = --without-apparmor
+  WITH_NSS_PLUGIN     = --without-nss-plugin
   WITH_DTRACE         = --without-dtrace
   WITH_XEN            = --without-xen
   WITH_LIBXL          = --without-libxl
@@ -126,7 +128,7 @@ DEB_CONFIGURE_EXTRA_ARGS :=      \
 	--without-hal            \
 	$(WITH_FIREWALLD)        \
 	--without-attr           \
-        --with-nss-plugin        \
+	$(WITH_NSS_PLUGIN)       \
         $(NULL)
 
 LIBVIRT_SYSTEM_SERVICES = \
@@ -189,12 +191,12 @@ ifneq (,$(findstring $(DEB_HOST_ARCH_OS)
 	dh_install -p libvirt-daemon-system etc/libvirt/qemu/networks/
 	dh_install -p libvirt-daemon-system etc/libvirt/nwfilter/
 	dh_install -p libvirt-clients etc/libvirt/virt-login-shell.conf
+	dh_install -p libnss-libvirt usr/lib/libnss_libvirt.so.2 lib/$(DEB_HOST_MULTIARCH)/
 endif
 ifeq ($(XEN_ENABLED), 1)
 	dh_install -p libvirt-daemon-system etc/libvirt/libxl.conf
 	dh_install -p libvirt-daemon-system etc/libvirt/libxl-lockd.conf
 endif
-	dh_install -p libnss-libvirt usr/lib/libnss_libvirt.so.2 lib/$(DEB_HOST_MULTIARCH)/
 
 	for l in $(LOGROTATE); do \
 		cp $(CURDIR)/debian/build/daemon/$$l.logrotate \


More information about the Pkg-libvirt-maintainers mailing list