From b5285884d4153d197f83c5927b835ab05447342c Mon Sep 17 00:00:00 2001 From: James Page Date: Fri, 2 Nov 2018 13:07:00 +0000 Subject: [PATCH] Ensure libvirt is discovered from previous built part --- snapcraft.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/snapcraft.yaml b/snapcraft.yaml index 47ae8ce..60fbc2d 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -329,6 +329,10 @@ parts: - coreutils - qemu-utils - haproxy + override-build: | + # Ensure libvirt is discovered from previous built part + export PKG_CONFIG_PATH=$SNAPCRAFT_STAGE/lib/pkgconfig + snapcraftctl build override-prime: | snapcraftctl prime # Now that everything is built, let's disable user site-packages