From 118841cc490e4143954271a03b2420e935cd2943 Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Fri, 8 Sep 2023 17:44:17 +0300 Subject: [PATCH] ci: Build glib subproject fallback for clang builds We currently have glib 2.68 in the image, which produces a couple of warning around g_atomic_ apis. This has since been fixed/worked around in glib itself [1] [2] [3]. Build the subproject until we update to a toolchain/ci-image with new enough glib. [1] https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2114 [2] https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2578 [3] https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2864 Part-of: --- .gitlab-ci.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b0fb359abc..873eaf24d7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -403,6 +403,9 @@ build fedora clang: matrix: - BUILD_TYPE: [ "--default-library=shared", "--default-library=both"] BUILD_GST_DEBUG: ["-Dgstreamer:gst_debug=true"] + MESON_ARGS: >- + ${SIMPLE_BUILD} + --force-fallback-for=glib - BUILD_TYPE: [ "--default-library=shared", "--default-library=both"] BUILD_GST_DEBUG: ["-Dgstreamer:gst_debug=false"] @@ -414,7 +417,10 @@ build fedora clang: # ../subprojects/gstreamer/gst/gstchildproxy.h:57: Error: Gst: identifier not found on the first line: # * GstChildProxyInterface.get_child_by_name: # ^ - MESON_ARGS: "${SIMPLE_BUILD} -Dintrospection=disabled" + MESON_ARGS: >- + ${SIMPLE_BUILD} + -Dintrospection=disabled + --force-fallback-for=glib - BUILD_TYPE: ["--default-library=static"] BUILD_GST_DEBUG: ["-Dgstreamer:gst_debug=true", "-Dgstreamer:gst_debug=false"] @@ -430,7 +436,15 @@ build fedora clang: # # Disabling gstreamer-sharp tests because they download things as part of configure with # nuget which frequently fails on the CI (possibly because we're hammering the site) - MESON_ARGS: "${DEFAULT_MESON_ARGS} -Dvaapi=disabled -Dpython=auto -Dgst-editing-services:python=disabled -Dintrospection=disabled -Ddoc=disabled -Dgstreamer-sharp:tests=disabled" + MESON_ARGS: >- + ${DEFAULT_MESON_ARGS} + -Dvaapi=disabled + -Dpython=auto + -Dgst-editing-services:python=disabled + -Dintrospection=disabled + -Ddoc=disabled + -Dgstreamer-sharp:tests=disabled + --force-fallback-for=glib .build windows: image: $WINDOWS_IMAGE