[libvirt PATCH 1/2] ci: Make container environment available to scripts

Andrea Bolognani abologna at redhat.com
Mon Feb 10 17:21:12 UTC 2020


For container images targeted at cross-building, we bake a small
amount of architecture-specific information in the environment so
that builds can work as expected without requiring additional work
from the user; unfortunately this information got lost as soon as
we called sudo. Explicitly allow it.

Signed-off-by: Andrea Bolognani <abologna at redhat.com>
---
 ci/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ci/Makefile b/ci/Makefile
index acb655941c..03799924b4 100644
--- a/ci/Makefile
+++ b/ci/Makefile
@@ -220,6 +220,8 @@ ci-run-command@%: ci-prepare-tree
 		  --login \
 		  --user="#$(CI_UID)" \
 		  --group="#$(CI_GID)" \
+		  CONFIGURE_OPTS="$$CONFIGURE_OPTS" \
+		  PKG_CONFIG_LIBDIR="$$PKG_CONFIG_LIBDIR" \
 		  CI_CONT_SRCDIR="$(CI_CONT_SRCDIR)" \
 		  CI_CONT_BUILDDIR="$(CI_CONT_BUILDDIR)" \
 		  CI_SMP="$(CI_SMP)" \
-- 
2.24.1




More information about the libvir-list mailing list