]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Use __meson_verbose in opensuse build script 33192/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 4 Jun 2024 09:04:05 +0000 (11:04 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 4 Jun 2024 09:04:46 +0000 (11:04 +0200)
OpenSUSE Tumbleweed now ships meson 1.4.0 which ships the new
__meson_verbose macro.

mkosi.images/system/mkosi.conf.d/10-opensuse/mkosi.build.chroot

index 28c43fd4f59c3bf8807cdf787e8dc24c3e61d3aa..0a08e8191a9b86d49d3cbd843b384acd282da2fb 100755 (executable)
@@ -69,8 +69,6 @@ fi
 
 build() {
     IFS=
-    # TODO: Replace meson_build and meson_install overrides with "--undefine __meson_verbose" once
-    # https://github.com/mesonbuild/meson/pull/12835 is available.
     # shellcheck disable=SC2046
     env \
     --unset CFLAGS \
@@ -99,8 +97,7 @@ build() {
         --define "build_cflags $(rpm --eval "%{?build_cflags}") $MKOSI_CFLAGS $CFLAGS" \
         --define "build_cxxflags $(rpm --eval "%{?build_cxxflags}") $MKOSI_CFLAGS $CFLAGS" \
         --define "build_ldflags $MKOSI_LDFLAGS $LDFLAGS" \
-        --define "meson_build %{shrink:%{__meson} compile -C %{_vpath_builddir} -j %{_smp_build_ncpus} $( ((MESON_VERBOSE)) && echo --verbose) %{nil}}" \
-        --define "meson_install %{shrink:DESTDIR=%{buildroot} %{__meson} install -C %{_vpath_builddir} --no-rebuild --quiet %{nil}}" \
+        $( ((MESON_VERBOSE)) || echo "--undefine=__meson_verbose") \
         --define "meson_extra_configure_options $MKOSI_MESON_OPTIONS $MESON_OPTIONS" \
         --define "__os_install_post /usr/lib/rpm/brp-suse %{nil}" \
         --define "__elf_exclude_path ^/usr/lib/systemd/tests/unit-tests/.*$" \