From 4928a2badf237e99763964bbf3c940d4be9df7d6 Mon Sep 17 00:00:00 2001 From: Mart Raudsepp Date: Mon, 19 Sep 2022 23:04:05 +0300 Subject: [PATCH] dav1ddec: Require dav1d 1.0.0 in meson https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/698 raised the dependency via bumping the dav1d rust crate used, but didn't add a requirement at meson level, thus with automatic or enabled option for dav1d it would pass with an older failure, but then during compilation phase fail with: --- stderr thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: PkgConfig(`"pkg-config" "--libs" "--cflags" "dav1d" "dav1d >= 1.0.0"` did not exit successfully: exit status: 1 error: could not find system library 'dav1d' required by the 'dav1d-sys' crate --- stderr Package dependency requirement 'dav1d >= 1.0.0' could not be satisfied. Package 'dav1d' has version '0.8.2', required version is '>= 1.0.0' )', /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/dav1d-sys-0.5.0/build.rs:80:10 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace warning: build failed, waiting for other jobs to finish... --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 4f6487e9..89c69f54 100644 --- a/meson.build +++ b/meson.build @@ -77,7 +77,7 @@ if dependency('pangocairo', required : get_option('closedcaption')).found() plugins += {'gst-plugin-closedcaption' : 'libgstrsclosedcaption',} endif -if dependency('dav1d', required : get_option('dav1d')).found() +if dependency('dav1d', version : '>= 1.0.0', required : get_option('dav1d')).found() plugins += {'gst-plugin-dav1d' : 'libgstrsdav1d'} endif