libvirt/ci
Andrea Bolognani 058b30b382 ci: Fix handling of $PKG_CONFIG_LIBDIR
There are two environment variables that are baked into our
cross-compilation container images at build time, $CONFIGURE_OPTS
and $PKG_CONFIG_LIBDIR: the former contain the options necessary
to convince configure to perform a cross build rather than a
native one, and the latter is necessary so that pkg-config will
locate the .pc files for MinGW libraries. Container images that
are not intended for cross-compilation will not have either one
defined.

The problem is that, while an empty $CONFIGURE_OPTS is completely
harmless, setting $PKG_CONFIG_LIBDIR to an emtpy value will
result in pkg-config not looking in its default search path, thus
not finding any library, and subsequently breaking native builds.

To work around this issue, only pass $PKG_CONFIG_LIBDIR to sudo
when the value is set in the calling environment.

Fixes: 71517ae4db
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
2020-02-24 15:40:55 +01:00
..
build.sh gnulib: delete all gnulib integration 2020-02-07 15:03:54 +00:00
list-images.sh ci: Fetch list of available container images dynamically 2020-01-06 16:43:46 +01:00
Makefile ci: Fix handling of $PKG_CONFIG_LIBDIR 2020-02-24 15:40:55 +01:00
prepare.sh ci: Run $(CI_PREPARE_SCRIPT) as root 2019-08-21 18:58:31 +02:00