[libvirt] [jenkins-ci PATCH 2/3] jobs: Tweak autotools-mingw-job template

Andrea Bolognani abologna at redhat.com
Tue Apr 17 15:43:11 UTC 2018


Make it more similar to the autotools-build-job by dropping the
custom $PREFIX variable and redefining the standard $VIRT_PREFIX
instead, which also makes $PKG_CONFIG_PATH shorter, and moving
all environment variables together.

Signed-off-by: Andrea Bolognani <abologna at redhat.com>
---
 jobs/autotools.yaml | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/jobs/autotools.yaml b/jobs/autotools.yaml
index 5c78e6a..ac7099f 100644
--- a/jobs/autotools.yaml
+++ b/jobs/autotools.yaml
@@ -228,13 +228,14 @@
           # to unset it here.
           export CC=
 
+          export VIRT_PREFIX="$VIRT_PREFIX/i686-w64-mingw32/sys-root/mingw"
+          export PKG_CONFIG_PATH="$VIRT_PREFIX/lib/pkgconfig"
+          export PKG_CONFIG_LIBDIR="/usr/i686-w64-mingw32/sys-root/mingw/lib/pkgconfig:/usr/i686-w64-mingw32/sys-root/mingw/share/pkgconfig"
+
           mkdir -p build32
           cd build32
 
-          export PKG_CONFIG_LIBDIR="/usr/i686-w64-mingw32/sys-root/mingw/lib/pkgconfig:/usr/i686-w64-mingw32/sys-root/mingw/share/pkgconfig"
-          export PKG_CONFIG_PATH="$VIRT_PREFIX/i686-w64-mingw32/sys-root/mingw/lib/pkgconfig" \
-          export PREFIX=$VIRT_PREFIX/i686-w64-mingw32/sys-root/mingw
-          ../autogen.sh --host=i686-w64-mingw32 --prefix=$PREFIX
+          ../autogen.sh --prefix=$VIRT_PREFIX --host=i686-w64-mingw32
           $MAKE -j{smp}
           $MAKE -j{smp} install
       - shell: |
@@ -243,13 +244,14 @@
           # See above
           export CC=
 
+          export VIRT_PREFIX="$VIRT_PREFIX/x86_64-w64-mingw32/sys-root/mingw"
+          export PKG_CONFIG_PATH="$VIRT_PREFIX/lib/pkgconfig"
+          export PKG_CONFIG_LIBDIR="/usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig:/usr/x86_64-w64-mingw32/sys-root/mingw/share/pkgconfig"
+
           mkdir -p build64
           cd build64
 
-          export PKG_CONFIG_LIBDIR="/usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig:/usr/x86_64-w64-mingw32/sys-root/mingw/share/pkgconfig"
-          export PKG_CONFIG_PATH="$VIRT_PREFIX/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig" \
-          export PREFIX=$VIRT_PREFIX/x86_64-w64-mingw32/sys-root/mingw
-          ../autogen.sh --host=x86_64-w64-mingw32 --prefix=$PREFIX
+          ../autogen.sh --prefix=$VIRT_PREFIX --host=x86_64-w64-mingw32
           $MAKE -j{smp}
           $MAKE -j{smp} install
     publishers:
-- 
2.14.3




More information about the libvir-list mailing list