]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix location of blkid.h in include header
authorNehal J Wani <nehaljw.kkd1@gmail.com>
Fri, 3 Mar 2017 15:42:09 +0000 (21:12 +0530)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 3 Mar 2017 15:48:32 +0000 (16:48 +0100)
commit2d8fbeb8a5f7c7d1fd5afc8c90ca5543c107378d
treefe215645c40dec7858965b6d5b32b44687a15383
parent7d48cb9bbb27eee5228f4e3b671b5a7ecd2d13c0
Fix location of blkid.h in include header

The build system for libvirt correctly detects the location of blkid
using PKG_CONFIG_PATH environment variable. The file blkid.pc states
that the include flags should be: 'Cflags: -I${includedir}/blkid' but
libvirt searches for blkid.h inside ${includedir}/blkid/blkid, which is
wrong. Until now, the compilation for libvirt succeeded because of pure
luck, as it had -I/usr/include as a CFLAG. This issue was faced while
compiling libvirt on Ubuntu 16.04.2 with bare minimum dev packages and a
custom compiled blkid kept in a non-standard $prefix.

Signed-off-by: Nehal J Wani <nehaljw.kkd1@gmail.com>
src/lxc/lxc_container.c
src/storage/storage_util.c