[PATCH] meson: replace deprecated get_pkgconfig_variable()

Joe Baldino pedanticdm at gmx.us
Thu Jul 28 05:36:11 UTC 2022


Apparently that function was deprecated in 0.56, so use the generic
getter introduced in 0.51 instead. This squashes a warning.

Signed-off-by: Joe Baldino <pedanticdm at gmx.us>
---

Notes:
    WARNING: Deprecated features used:
     * 0.56.0: {'dependency.get_pkgconfig_variable'}

    See: https://mesonbuild.com/Reference-manual_returned_dep.html#depget_variable

 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index 1519a2bbb4ef..6ea97672e33d 100644
--- a/meson.build
+++ b/meson.build
@@ -43,7 +43,7 @@ endif

 bashcompletion = dependency('bash-completion', required : false)
 if bashcompletion.found()
-  BASHCOMPDIR = bashcompletion.get_pkgconfig_variable('completionsdir')
+  BASHCOMPDIR = bashcompletion.get_variable(pkgconfig: 'completionsdir')
 else
   BASHCOMPDIR = join_paths(DATAROOTDIR, 'bash-completion/completions')
 endif
--
2.37.1



More information about the pacman-dev mailing list