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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux