[Buildroot] [PATCH 1/1] lxc: fix build with pkgconf 1.5.3

Fabrice Fontaine fontaine.fabrice at gmail.com
Sat Dec 15 18:05:50 UTC 2018

Since the bump to 1.5.3, pkgconf prepends the sysroot to all absolute
paths found in the .pc file. This is correct when the paths refer to
something in STAGING_DIR (e.g. libdir, includedir), but not when it
refers to something used for the target.

lxc uses the completionsdir variable from bash-completions.pc to decide
where to install things. Since DESTDIR is prepended to the install
destination, this will end up in the wrong location.

Until a better solution is found in pkgconf, pass the bashcompdir to use
explicitly instead of relying on bash-completions.pc.

 - http://autobuild.buildroot.org/results/d99e5b749cb09adc04393e3933ba3defb6d9642a

Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
 package/lxc/lxc.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/lxc/lxc.mk b/package/lxc/lxc.mk
index c9838fb229..a225d72c08 100644
--- a/package/lxc/lxc.mk
+++ b/package/lxc/lxc.mk
@@ -17,6 +17,10 @@ LXC_CONF_OPTS = --disable-apparmor --with-distro=buildroot \
 	--disable-werror \
 	$(if $(BR2_PACKAGE_BASH),,--disable-bash)
+LXC_CONF_ENV += bashcompdir=/usr/share/bash-completion/completions
 ifeq ($(BR2_PACKAGE_GNUTLS),y)
 LXC_CONF_OPTS += --enable-gnutls

More information about the buildroot mailing list