From 433b8ec92c94d67f7e59b7a2742b81a1a2611ff3 Mon Sep 17 00:00:00 2001 From: Oreo Yang Date: Fri, 19 Sep 2025 08:44:36 +0800 Subject: [PATCH] meson0.57.2 setup failed with option -Duuid=ossp --- meson.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index d71c7c8267e..395416a6060 100644 --- a/meson.build +++ b/meson.build @@ -1607,7 +1607,10 @@ if uuidopt != 'none' elif uuidopt == 'ossp' # In upstream, the package and library is called just 'uuid', but many # distros change it to 'ossp-uuid'. - uuid = dependency('ossp-uuid', 'uuid', required: false) + uuid = dependency('ossp-uuid', required: false) + if not uuid.found() + uuid = dependency('uuid', required: false) + endif uuidfunc = 'uuid_export' uuidheader = 'uuid.h' -- 2.43.0