* [PATCH 1/2] meson: fix MSI rule
@ 2020-09-11 12:42 marcandre.lureau
2020-09-11 12:42 ` [PATCH 2/2] meson: error out if qemu_suffix starts with / marcandre.lureau
0 siblings, 1 reply; 3+ messages in thread
From: marcandre.lureau @ 2020-09-11 12:42 UTC (permalink / raw)
To: qemu-devel; +Cc: pbonzini, Marc-André Lureau
From: Marc-André Lureau <marcandre.lureau@redhat.com>
The environment variables can't be passed through an env: argument
yet (meson#2723), use 'env' as suggested in:
https://github.com/mesonbuild/meson/issues/2723#issuecomment-348630957
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
qga/meson.build | 1 +
1 file changed, 1 insertion(+)
diff --git a/qga/meson.build b/qga/meson.build
index e5c5778a3e..c10a0526b2 100644
--- a/qga/meson.build
+++ b/qga/meson.build
@@ -70,6 +70,7 @@ if targetos == 'windows'
output: 'qemu-ga-@0@.msi'.format(config_host['ARCH']),
depends: deps,
command: [
+ find_program('env'),
'QEMU_GA_VERSION=' + config_host['QEMU_GA_VERSION'],
'QEMU_GA_MANUFACTURER=' + config_host['QEMU_GA_MANUFACTURER'],
'QEMU_GA_DISTRO=' + config_host['QEMU_GA_DISTRO'],
--
2.26.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] meson: error out if qemu_suffix starts with /
2020-09-11 12:42 [PATCH 1/2] meson: fix MSI rule marcandre.lureau
@ 2020-09-11 12:42 ` marcandre.lureau
2020-09-11 13:42 ` Paolo Bonzini
0 siblings, 1 reply; 3+ messages in thread
From: marcandre.lureau @ 2020-09-11 12:42 UTC (permalink / raw)
To: qemu-devel; +Cc: pbonzini, Marc-André Lureau
From: Marc-André Lureau <marcandre.lureau@redhat.com>
Since the variable is used for path concatenation, the result would
ignore the prefix directory altogether.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
meson.build | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/meson.build b/meson.build
index 5421eca66a..cbe1cb51b3 100644
--- a/meson.build
+++ b/meson.build
@@ -17,6 +17,11 @@ config_host = keyval.load(meson.current_build_dir() / 'config-host.mak')
enable_modules = 'CONFIG_MODULES' in config_host
enable_static = 'CONFIG_STATIC' in config_host
build_docs = 'BUILD_DOCS' in config_host
+
+if get_option('qemu_suffix').startswith('/')
+ error('qemu_suffix cannot start with a /')
+endif
+
qemu_datadir = get_option('datadir') / get_option('qemu_suffix')
qemu_docdir = get_option('docdir') / get_option('qemu_suffix')
config_host_data = configuration_data()
--
2.26.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 2/2] meson: error out if qemu_suffix starts with /
2020-09-11 12:42 ` [PATCH 2/2] meson: error out if qemu_suffix starts with / marcandre.lureau
@ 2020-09-11 13:42 ` Paolo Bonzini
0 siblings, 0 replies; 3+ messages in thread
From: Paolo Bonzini @ 2020-09-11 13:42 UTC (permalink / raw)
To: marcandre.lureau, qemu-devel
On 11/09/20 14:42, marcandre.lureau@redhat.com wrote:
> From: Marc-André Lureau <marcandre.lureau@redhat.com>
>
> Since the variable is used for path concatenation, the result would
> ignore the prefix directory altogether.
>
> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> ---
> meson.build | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/meson.build b/meson.build
> index 5421eca66a..cbe1cb51b3 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -17,6 +17,11 @@ config_host = keyval.load(meson.current_build_dir() / 'config-host.mak')
> enable_modules = 'CONFIG_MODULES' in config_host
> enable_static = 'CONFIG_STATIC' in config_host
> build_docs = 'BUILD_DOCS' in config_host
> +
> +if get_option('qemu_suffix').startswith('/')
> + error('qemu_suffix cannot start with a /')
> +endif
> +
> qemu_datadir = get_option('datadir') / get_option('qemu_suffix')
> qemu_docdir = get_option('docdir') / get_option('qemu_suffix')
> config_host_data = configuration_data()
>
Queued both, thanks.
Paolo
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-09-11 13:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-11 12:42 [PATCH 1/2] meson: fix MSI rule marcandre.lureau
2020-09-11 12:42 ` [PATCH 2/2] meson: error out if qemu_suffix starts with / marcandre.lureau
2020-09-11 13:42 ` Paolo Bonzini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).