[PATCH] build-sys: fix a meson deprecation warning

marcandre.lureau@redhat.com posted 1 patch 2 years, 3 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20220113162148.3621818-1-marcandre.lureau@redhat.com
tests/qtest/meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] build-sys: fix a meson deprecation warning
Posted by marcandre.lureau@redhat.com 2 years, 3 months ago
From: Marc-André Lureau <marcandre.lureau@redhat.com>

WARNING: Deprecated features used:
 * 0.56.0: {'meson.source_root'}

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reported-by: Peter Maydell <peter.maydell@linaro.org>
---
 tests/qtest/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build
index 37e1eaa4498e..2f6687576757 100644
--- a/tests/qtest/meson.build
+++ b/tests/qtest/meson.build
@@ -103,7 +103,7 @@ if dbus_daemon.found() and config_host.has_key('GDBUS_CODEGEN')
   #qtests_i386 += ['dbus-vmstate-test']
   dbus_vmstate1 = custom_target('dbus-vmstate description',
                                 output: ['dbus-vmstate1.h', 'dbus-vmstate1.c'],
-                                input: meson.source_root() / 'backends/dbus-vmstate1.xml',
+                                input: meson.project_source_root() / 'backends/dbus-vmstate1.xml',
                                 command: [config_host['GDBUS_CODEGEN'],
                                           '@INPUT@',
                                           '--interface-prefix', 'org.qemu',
-- 
2.34.1.428.gdcc0cd074f0c


Re: [PATCH] build-sys: fix a meson deprecation warning
Posted by Paolo Bonzini 2 years, 3 months ago
On 1/13/22 17:21, marcandre.lureau@redhat.com wrote:
> From: Marc-André Lureau <marcandre.lureau@redhat.com>
> 
> WARNING: Deprecated features used:
>   * 0.56.0: {'meson.source_root'}
> 
> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> Reported-by: Peter Maydell <peter.maydell@linaro.org>
> ---
>   tests/qtest/meson.build | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build
> index 37e1eaa4498e..2f6687576757 100644
> --- a/tests/qtest/meson.build
> +++ b/tests/qtest/meson.build
> @@ -103,7 +103,7 @@ if dbus_daemon.found() and config_host.has_key('GDBUS_CODEGEN')
>     #qtests_i386 += ['dbus-vmstate-test']
>     dbus_vmstate1 = custom_target('dbus-vmstate description',
>                                   output: ['dbus-vmstate1.h', 'dbus-vmstate1.c'],
> -                                input: meson.source_root() / 'backends/dbus-vmstate1.xml',
> +                                input: meson.project_source_root() / 'backends/dbus-vmstate1.xml',
>                                   command: [config_host['GDBUS_CODEGEN'],
>                                             '@INPUT@',
>                                             '--interface-prefix', 'org.qemu',

Queued, thanks.

Paolo