From ad64e707e11a0be5cd11382dc74f0702450eb0ff Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ga=C3=ABl=20Bonithon?= <gael@xfce.org>
Date: Mon, 20 Jan 2025 11:20:45 +0100
Subject: [PATCH] meson-build: Let pkg.generate() fill in required libs

It completes what we put in 'requires' from the dependencies declared in
library() anyway, by filling in the 'requires_private' field, whose use
is recommended by default. So we probably don't need to fill this in in
general: it's one less thing to maintain, and the dependencies we've
declared public so far should probably have been declared private
instead.

See-also:
https://mesonbuild.com/Pkgconfig-module.html
https://people.freedesktop.org/~dbn/pkg-config-guide.html
https://stackoverflow.com/a/61674208
---
 libxfce4util/meson.build | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/libxfce4util/meson.build b/libxfce4util/meson.build
index 0516a85..492b004 100644
--- a/libxfce4util/meson.build
+++ b/libxfce4util/meson.build
@@ -122,9 +122,6 @@ pkgconfig.generate(
   name: libxfce4util_pkgname,
   filebase: libxfce4util_pkgname,
   description: 'Utility library for the Xfce 4 desktop environment',
-  requires: [
-    'glib-2.0',
-  ],
   subdirs: [
     'xfce4',
   ],
-- 
GitLab