From 892cfdeffb2caf963087420e18c15a77d0662a24 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 27 Nov 2024 21:16:28 +0200 Subject: 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 --- gnu/packages/check.scm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index ef1c08f8f3..41ea34249b 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -3915,6 +3915,11 @@ pre-condition.") (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 -- cgit v1.2.3