Bug 1330114

Summary: error: You must install the libsystemd-daemon >= 0.27.1 pkg-config module to compile libvirt although it's not available anymore on official Ubuntu repository
Product: [Community] Virtualization Tools Reporter: jean-christophe manciot <actionmystique>
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: rbalakri
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-25 16:13:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description jean-christophe manciot 2016-04-25 12:22:50 UTC
Description of problem:
----------------------
The libsystemd-daemon-dev package has vanished into thin air during the recent upgrade of Ubuntu 15.10 -> 16.04. Only libsystemd-dev is available now.

sudo pkg-config --list-all | grep systemd
systemd                             systemd - systemd System and Service Manager
libsystemd                          systemd - systemd Library

Configuring & compiling libvirt 1.3.3 is now impossible without modifying m4/virt-systemd-daemon.m4: 
21:   LIBVIRT_CHECK_PKG([SYSTEMD_DAEMON], [libsystemd-daemon], [0.27.1])
into
21:   LIBVIRT_CHECK_PKG([SYSTEMD_DAEMON], [libsystemd], [0.27.1])

Version-Release number of selected component (if applicable):
------------------------------------------------------------
1.3.3 (commit 0086221cb377c7a1c2df58b8ee5eb8223f989765) but probably also previous versions.

How reproducible:
----------------
Configure libvirt with Ubuntu 16.04

Steps to Reproduce:
------------------
1. Use/upgrade to Ubuntu 16.04
2. Configure with the follwoing options (only systemd-daemon is significant here)
./autogen.sh	--without-apparmor \
	    	--without-apparmor-mount \
	    	--without-apparmor-profiles \
	    	--without-secdriver-apparmor \
		--without-wireshark-dissector \
		--with-openssl \
		--with-systemd-daemon \
		--with-numactl \
		--with-numad \
		--prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=/usr/lib

Actual results:
--------------
checking for SYSTEMD_DAEMON... no
configure: error: You must install the libsystemd-daemon >= 0.27.1 pkg-config module to compile libvirt
Makefile:1925: recipe for target 'config.status' failed
make: *** [config.status] Error 1

Although:
sudo pkg-config --modversion libsystemd
229

Comment 1 jean-christophe manciot 2016-04-25 16:13:59 UTC
A much cleaner way is to use a transitional package unavailable on the official Ubuntu repositories, but downloadable from the official launchpad: https://launchpad.net/ubuntu/wily/+package/libsystemd-daemon-dev.

This enables us to configure & compile libvirt 1.3.3 on Ubuntu 16.04 without modifying m4/virt-systemd-daemon.m4.