Skip to content

Commit 8a29c20

Browse files
committed
meson: require 0.61.3
This removes the dependency of dbus-display on --enable-modules. It also allows cleanups in modinfo collection and allows moving C++ compiler detection to meson.build. Because it is now deprecated to use install_subdir to create an empty directory, replace it with install_emptydir. Updating the Meson submodule to 0.61.5 also removes the message WARNING: Broken python installation detected. Python files installed by Meson might not be found by python interpreter. unless using system meson is forced with --meson. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/873 Resolves: https://gitlab.com/qemu-project/qemu/-/issues/848 Reviewed-by: Marc-André Lureau <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent bb2dc4b commit 8a29c20

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

configure

+1-1
Original file line numberDiff line numberDiff line change
@@ -1114,7 +1114,7 @@ fi
11141114
python="$python -B"
11151115

11161116
if test -z "$meson"; then
1117-
if test "$explicit_python" = no && has meson && version_ge "$(meson --version)" 0.59.3; then
1117+
if test "$explicit_python" = no && has meson && version_ge "$(meson --version)" 0.61.5; then
11181118
meson=meson
11191119
elif test "$git_submodules_action" != 'ignore' ; then
11201120
meson=git

meson

Submodule meson updated from 12f9f04 to 3a9b285

meson.build

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
project('qemu', ['c'], meson_version: '>=0.59.3',
1+
project('qemu', ['c'], meson_version: '>=0.61.3',
22
default_options: ['warning_level=1', 'c_std=gnu11', 'cpp_std=gnu++11', 'b_colorout=auto',
33
'b_staticpic=false', 'stdsplit=false', 'optimization=2', 'b_pie=true'],
44
version: files('VERSION'))
@@ -1674,12 +1674,9 @@ endif
16741674
have_host_block_device = (targetos != 'darwin' or
16751675
cc.has_header('IOKit/storage/IOMedia.h'))
16761676

1677-
# FIXME enable_modules shouldn't be necessary, but: https://github.com/mesonbuild/meson/issues/8333
16781677
dbus_display = get_option('dbus_display') \
16791678
.require(gio.version().version_compare('>=2.64'),
16801679
error_message: '-display dbus requires glib>=2.64') \
1681-
.require(enable_modules,
1682-
error_message: '-display dbus requires --enable-modules') \
16831680
.require(gdbus_codegen.found(),
16841681
error_message: gdbus_codegen_error.format('-display dbus')) \
16851682
.require(opengl.found() and gbm.found(),

qga/meson.build

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ else
138138
if get_option('guest_agent_msi').enabled()
139139
error('MSI guest agent package is available only for MinGW Windows cross-compilation')
140140
endif
141-
install_subdir('run', install_dir: get_option('localstatedir'))
141+
install_emptydir(get_option('localstatedir') / 'run')
142142
endif
143143

144144
alias_target('qemu-ga', all_qga)

0 commit comments

Comments
 (0)