[PATCH] meson: Replace meson.source_root() with meson.project_source_root()

Michal Privoznik posted 1 patch 1 week ago
meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] meson: Replace meson.source_root() with meson.project_source_root()
Posted by Michal Privoznik 1 week ago
The source_root() method is deprecated in 0.56.0 and we're
recommended to use project_source_root() instead.

This is similar to commit v8.9.0-rc1~70 but somehow, the old
method sneaked in.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
---
 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index c1a2e6eadb..f8eff99e2c 100644
--- a/meson.build
+++ b/meson.build
@@ -17,7 +17,7 @@ endif
 
 i18n = import('i18n')
 
-po_dir = meson.source_root() / 'po'
+po_dir = meson.project_source_root() / 'po'
 
 # figure out if we are building from git
 
-- 
2.45.2
Re: [PATCH] meson: Replace meson.source_root() with meson.project_source_root()
Posted by Daniel P. Berrangé 1 week ago
On Mon, Jan 13, 2025 at 09:23:33AM +0100, Michal Privoznik wrote:
> The source_root() method is deprecated in 0.56.0 and we're
> recommended to use project_source_root() instead.
> 
> This is similar to commit v8.9.0-rc1~70 but somehow, the old
> method sneaked in.
> 
> Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
> ---
>  meson.build | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>


With regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|