]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
CI: Only use openSUSE mingw*-meson as a replacement for `meson setup`
authorSimon McVittie <smcv@collabora.com>
Fri, 24 Jun 2022 15:48:46 +0000 (16:48 +0100)
committerSimon McVittie <smcv@collabora.com>
Wed, 13 Jul 2022 19:36:13 +0000 (20:36 +0100)
These pass a lot of configure arguments taken from RPM macros, which
are only accepted by the meson command if we don't explicitly select
a mode.

Signed-off-by: Simon McVittie <smcv@collabora.com>
tools/ci-build.sh

index 694fc1284e3a27061782fd4c327599f5820a1523..8a0ddcc03d20ab39b7e3b7d01761cfda6ce69214 100755 (executable)
@@ -438,20 +438,28 @@ case "$ci_buildsys" in
         # travis-ci, and too slow when running under wine.
         export DBUS_TEST_MALLOC_FAILURES=0
 
-        meson=meson
+        meson_setup=
+
+        # openSUSE has convenience wrappers that run Meson with appropriate
+        # cross options
         case "$ci_host" in
             (i686-w64-mingw32)
-                meson=mingw32-meson
+                meson_setup=mingw32-meson
                 ;;
             (x86_64-w64-mingw32)
-                meson=mingw64-meson
+                meson_setup=mingw64-meson
                 ;;
         esac
+
+        if [ -z "$meson_setup" ]; then
+            meson_setup="meson setup"
+        fi
+
         # FIXME: ducktype target fails on debian CI..
-        $meson setup -Dducktype_docs=disabled
-        $meson compile
-        [ "$ci_test" = no ] || $meson test
-        DESTDIR=DESTDIR $meson install
+        $meson_setup -Dducktype_docs=disabled
+        meson compile
+        [ "$ci_test" = no ] || meson test
+        DESTDIR=DESTDIR meson install
         ( cd DESTDIR && find . -ls)
         ;;
 esac