Fixed: libvirt/libvirt#3159 (master - 058b30b)

Travis CI builds at travis-ci.org
Mon Feb 24 15:25:03 UTC 2020


Build Update for libvirt/libvirt
-------------------------------------

Build: #3159
Status: Fixed

Duration: 39 mins and 12 secs
Commit: 058b30b (master)
Author: Andrea Bolognani
Message: 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: 71517ae4db35c4dcc6c358d60d3a6d5da0615d39
Signed-off-by: Andrea Bolognani <abologna at redhat.com>

View the changeset: https://github.com/libvirt/libvirt/compare/c95656c995e9...058b30b3822f

View the full build log and details: https://travis-ci.org/libvirt/libvirt/builds/654442359?utm_medium=notification&utm_source=email

--

You can unsubscribe from build emails from the libvirt/libvirt repository going to https://travis-ci.org/account/preferences/unsubscribe?repository=4872032&utm_medium=notification&utm_source=email.
Or unsubscribe from *all* email updating your settings at https://travis-ci.org/account/preferences/unsubscribe?utm_medium=notification&utm_source=email.
Or configure specific recipients for build notifications in your .travis.yml file. See https://docs.travis-ci.com/user/notifications.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-ci/attachments/20200224/dbfc2e55/attachment.htm>


More information about the Libvirt-ci mailing list