gnu: umockdev: Fix build with newer meson.

* gnu/packages/check.scm (umockdev)[arguments]: Add a phase to not error
on unused-variables from the code generated by vala.

Change-Id: I614304dcac9065f4299004e9e4e458d71d308e44
This commit is contained in:
Efraim Flashner 2024-11-27 21:16:28 +02:00
parent 050407b473
commit 892cfdeffb
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -3915,6 +3915,11 @@ (define-public umockdev
(call-with-output-file "tests/test-umockdev.c"
(lambda (port)
(format port "int main(void) { return 0; }")))))
;; https://github.com/martinpitt/umockdev/issues/228#issuecomment-1968397286
(add-after 'unpack 'compat-with-meson-1.4
(lambda _
(substitute* "meson.build"
(("-Werror=unused-variable") "-Wno-error=unused-variable"))))
;; Avoid having to set 'LD_LIBRARY_PATH' to use umockdev
;; via introspection.
(add-after 'unpack 'absolute-introspection-library