buildsys: Bump meson version to build on macOS Sonoma
v2 cover buildsys: Bump meson version to build on macOS Sonoma
macOS 14 "Sonoma" was released end of September 2023, developers who upgraded they host can not build QEMU anymore because meson v0.63.3 is too old. Bump to a working version. Test our CI covered hosts also work.
Based-on: <[email protected]>
"cirrus CI: Upgrade macOS to 13 (Ventura)"
Supersedes: <[email protected]>
"buildsys: Use host meson on macOS Sonoma (14)"
Philippe Mathieu-Daudé (2):
buildsys: Bump minimal meson version required to v1.2.3 .gitlab-ci.d/cirrus: Add manual testing of macOS 14 (Sonoma)
.gitlab-ci.d/cirrus.yml | 16 ++++++++++++++++ .gitlab-ci.d/cirrus/macos-14.vars | 16 ++++++++++++++++ python/wheels/meson-0.63.3-py3-none-any.whl | Bin 926526 -> 0 bytes python/wheels/meson-1.2.3-py3-none-any.whl | Bin 0 -> 964928 bytes pythondeps.toml | 2 +- tests/lcitool/libvirt-ci | 2 +- tests/lcitool/refresh | 1 + 7 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 .gitlab-ci.d/cirrus/macos-14.vars delete mode 100644 python/wheels/meson-0.63.3-py3-none-any.whl create mode 100644 python/wheels/meson-1.2.3-py3-none-any.whl
Signature · 1 line
2.41.0
PATCH v2 1/2 buildsys: Bump minimal meson version required to v1.2.3
We need meson v1.2.3 to build QEMU on macOS Sonoma.
It also build fine all our CI jobs, so let's use it as our "good enough" packaged wheel.
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1939
--- python/wheels/meson-0.63.3-py3-none-any.whl | Bin 926526 -> 0 bytes python/wheels/meson-1.2.3-py3-none-any.whl | Bin 0 -> 964928 bytes pythondeps.toml | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-) delete mode 100644 python/wheels/meson-0.63.3-py3-none-any.whl create mode 100644 python/wheels/meson-1.2.3-py3-none-any.whl
python/wheels/meson-0.63.3-py3-none-any.whl deleted binary +0 -0
python/wheels/meson-1.2.3-py3-none-any.whl new file binary +0 -0
pythondeps.toml +1 -1
@@ -18,7 +18,7 @@ [meson] # The install key should match the version in python/wheels/ -meson = { accepted = ">=0.63.0", installed = "0.63.3", canary = "meson" } +meson = { accepted = ">=1.2.3", installed = "1.2.3", canary = "meson" } [docs] sphinx = { accepted = ">=1.6", installed = "5.3.0", canary = "sphinx-build" }
Signature · 1 line
2.41.0
Re: [PATCH v2 1/2] buildsys: Bump minimal meson version required to v1.2.3
Quoted 21 lines
We need meson v1.2.3 to build QEMU on macOS Sonoma.
It also build fine all our CI jobs, so let's use it as our "good enough" packaged wheel.
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1939
Suggested-by Paolo Bonzini <[email protected]>Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- python/wheels/meson-0.63.3-py3-none-any.whl | Bin 926526 -> 0 bytes python/wheels/meson-1.2.3-py3-none-any.whl | Bin 0 -> 964928 bytes pythondeps.toml | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-) delete mode 100644 python/wheels/meson-0.63.3-py3-none-any.whl create mode 100644 python/wheels/meson-1.2.3-py3-none-any.whlpythondeps.toml +0
-0
pythondeps.toml line 21
Quoted 5 lines
pythondeps.toml +1
-1@@ -18,7 +18,7 @@ [meson] # The install key should match the version in python/wheels/ -meson = { accepted = ">=0.63.0", installed = "0.63.3", canary = "meson" } +meson = { accepted = ">=1.2.3", installed = "1.2.3", canary = "meson" }
We don't need to block older versions of Meson, and indeed we don't want to because it's fine to use the distro package everywhere (including Sonoma). (So the subject would become would be "buildsys: Bump known good meson version to v1.2.3).
You can look at sphinx below for another case where the accepted versions are much older than the installed one.
If there's anything you'd like to add to the (just sent) documentation to clarify this, please help.
Paolo
Quoted 3 lines
pythondeps.toml +0
-0[docs] sphinx = { accepted = ">=1.6", installed = "5.3.0", canary = "sphinx-build" }
Re: [PATCH v2 1/2] buildsys: Bump minimal meson version required to v1.2.3
Quoted 33 lines · Paolo Bonzini
Quoted 22 lines
We need meson v1.2.3 to build QEMU on macOS Sonoma.
It also build fine all our CI jobs, so let's use it as our "good enough" packaged wheel.
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1939
Suggested-by Paolo Bonzini <[email protected]>Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- python/wheels/meson-0.63.3-py3-none-any.whl | Bin 926526 -> 0 bytes python/wheels/meson-1.2.3-py3-none-any.whl | Bin 0 -> 964928 bytes pythondeps.toml | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-) delete mode 100644 python/wheels/meson-0.63.3-py3-none-any.whl create mode 100644 python/wheels/meson-1.2.3-py3-none-any.whlpythondeps.toml +0
-0pythondeps.toml line 21
Quoted 5 lines
pythondeps.toml +1
-1@@ -18,7 +18,7 @@ [meson] # The install key should match the version in python/wheels/ -meson = { accepted = ">=0.63.0", installed = "0.63.3", canary = "meson" } +meson = { accepted = ">=1.2.3", installed = "1.2.3", canary = "meson" }We don't need to block older versions of Meson, and indeed we don't want to because it's fine to use the distro package everywhere (including Sonoma). (So the subject would become would be "buildsys: Bump known good meson version to v1.2.3).
Quoted 12 lines
You can look at sphinx below for another case where the accepted versions are much older than the installed one.
If there's anything you'd like to add to the (just sent) documentation to clarify this, please help.
Paolo
Quoted 3 lines
pythondeps.toml +0
-0[docs] sphinx = { accepted = ">=1.6", installed = "5.3.0", canary = "sphinx-build" }
I'd like you to also bump the version in the python/scripts/vendor.py script. You may have obtained it by other means, but I like documenting precisely where these .whl files come from in the form of the script.
Re: [PATCH v2 1/2] buildsys: Bump minimal meson version required to v1.2.3
Quoted 7 lines · John Snow
Quoted 6 lines · Paolo Bonzini
Quoted 6 lines
We need meson v1.2.3 to build QEMU on macOS Sonoma.
It also build fine all our CI jobs, so let's use it as our "good enough" packaged wheel.
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1939
Suggested-by Paolo Bonzini <[email protected]>Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- python/wheels/meson-0.63.3-py3-none-any.whl | Bin 926526 -> 0 bytes python/wheels/meson-1.2.3-py3-none-any.whl | Bin 0 -> 964928 bytes pythondeps.toml | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-) delete mode 100644 python/wheels/meson-0.63.3-py3-none-any.whl create mode 100644 python/wheels/meson-1.2.3-py3-none-any.whl
So these are packaged with the source. I did not know that. Now I get what you mean by s/downolads/installs/ in your reply. But then this is disabled by --disable-download but actually downloading avocado isn't? Confusing.
Regards,
BALATON Zoltan
Quoted 36 lines
Quoted 16 lines
pythondeps.toml line 21
Quoted 10 lines
pythondeps.toml +1
-1@@ -18,7 +18,7 @@ [meson] # The install key should match the version in python/wheels/ -meson = { accepted = ">=0.63.0", installed = "0.63.3", canary = "meson" } +meson = { accepted = ">=1.2.3", installed = "1.2.3", canary = "meson" }We don't need to block older versions of Meson, and indeed we don't want to because it's fine to use the distro package everywhere (including Sonoma). (So the subject would become would be "buildsys: Bump known good meson version to v1.2.3).
Quoted 12 lines
You can look at sphinx below for another case where the accepted versions are much older than the installed one.
If there's anything you'd like to add to the (just sent) documentation to clarify this, please help.
Paolo
Quoted 3 lines
pythondeps.toml +0
-0[docs] sphinx = { accepted = ">=1.6", installed = "5.3.0", canary = "sphinx-build" }I'd like you to also bump the version in the
python/scripts/vendor.pyscript. You may have obtained it by other means, but I like documenting precisely where these .whl files come from in the form of the script.
Re: [PATCH v2 1/2] buildsys: Bump minimal meson version required to v1.2.3
Quoted 3 lines · BALATON Zoltan
So these are packaged with the source. I did not know that. Now I get what you mean by s/downolads/installs/ in your reply. But then this is disabled by --disable-download but actually downloading avocado isn't? Confusing.
Yes, that's mostly historical because avocado didn't use mkvenv.py. I'll fix it.
Paolo
Re: [PATCH v2 1/2] buildsys: Bump minimal meson version required to v1.2.3
In reply to John SnowQuoted 43 lines · John Snow
Quoted 42 lines · Paolo Bonzini
Quoted 22 lines
We need meson v1.2.3 to build QEMU on macOS Sonoma.
It also build fine all our CI jobs, so let's use it as our "good enough" packaged wheel.
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1939
Suggested-by Paolo Bonzini <[email protected]>Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- python/wheels/meson-0.63.3-py3-none-any.whl | Bin 926526 -> 0 bytes python/wheels/meson-1.2.3-py3-none-any.whl | Bin 0 -> 964928 bytes pythondeps.toml | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-)delete mode 100644 python/wheels/meson-0.63.3-py3-none-any.whl create mode 100644 python/wheels/meson-1.2.3-py3-none-any.whl
pythondeps.toml +0
-0pythondeps.toml line 21
Quoted 5 lines
pythondeps.toml +1
-1@@ -18,7 +18,7 @@ [meson] # The install key should match the version in python/wheels/ -meson = { accepted = ">=0.63.0", installed = "0.63.3", canary = "meson" } +meson = { accepted = ">=1.2.3", installed = "1.2.3", canary = "meson" }We don't need to block older versions of Meson, and indeed we don't want to because it's fine to use the distro package everywhere (including Sonoma). (So the subject would become would be "buildsys: Bump known good meson version to v1.2.3).
You can look at sphinx below for another case where the accepted versions are much older than the installed one.
If there's anything you'd like to add to the (just sent) documentation to clarify this, please help.
Paolo
Quoted 1 line
Quoted 8 lines
Quoted 3 lines
Quoted 2 lines
[docs]
sphinx = { accepted = ">=1.6", installed = "5.3.0", canary = "sphinx-build" }I'd like you to also bump the version in the
python/scripts/vendor.pyscript. You may have obtained it by other means, but I like documenting precisely where these .whl files come from in the form of the script.
Indeed I had a tab with https://pypi.org/project/meson/1.2.3/ opened but neglected to mention it in the patch description.
I have no clue how this wheel package is prepared. It could come from
https://github.com/mesonbuild/meson/actions/runs/6569797806/workflow but unfortunately the artifacts are not available anymore.
FWIW per https://pypi.org/project/meson/1.2.3/#copy-hash-modal-b6a34cf2-bd2f-4018-bfb0-b10d0fba8a3d
the sha-256 is 4533a43c34548edd1f63a276a42690fce15bde9409bcf20c4b8fa3d7e4d7cac1.
Regards,
Phil.
Re: [PATCH v2 1/2] buildsys: Bump minimal meson version required to v1.2.3
In reply to Paolo BonziniQuoted 5 lines · Paolo Bonzini
Quoted 5 lines
We need meson v1.2.3 to build QEMU on macOS Sonoma.
It also build fine all our CI jobs, so let's use it as our "good enough" packaged wheel.
Quoted 10 lines
Quoted 10 lines
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1939
Suggested-by Paolo Bonzini <[email protected]>Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- python/wheels/meson-0.63.3-py3-none-any.whl | Bin 926526 -> 0 bytes python/wheels/meson-1.2.3-py3-none-any.whl | Bin 0 -> 964928 bytes pythondeps.toml | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-)delete mode 100644 python/wheels/meson-0.63.3-py3-none-any.whl create mode 100644 python/wheels/meson-1.2.3-py3-none-any.whl
This file comes from https://pypi.org/project/meson/1.2.3/
Its SHA-256 hash can be checked vs https://pypi.org/project/meson/1.2.3/#copy-hash-modal-b6a34cf2-bd2f-4018-bfb0-b10d0fba8a3d
Quoted 28 lines
pythondeps.toml line 21
Quoted 10 lines
pythondeps.toml +1
-1@@ -18,7 +18,7 @@ [meson] # The install key should match the version in python/wheels/ -meson = { accepted = ">=0.63.0", installed = "0.63.3", canary = "meson" } +meson = { accepted = ">=1.2.3", installed = "1.2.3", canary = "meson" }We don't need to block older versions of Meson, and indeed we don't want to because it's fine to use the distro package everywhere (including Sonoma). (So the subject would become would be "buildsys: Bump known good meson version to v1.2.3).
You can look at sphinx below for another case where the accepted versions are much older than the installed one.
If there's anything you'd like to add to the (just sent) documentation to clarify this, please help.
Paolo
Quoted 3 lines
pythondeps.toml +0
-0[docs] sphinx = { accepted = ">=1.6", installed = "5.3.0", canary = "sphinx-build" }
PATCH v2 2/2 .gitlab-ci.d/cirrus: Add manual testing of macOS 14 (Sonoma)
In reply to Philippe Mathieu-DaudéUpgrade libvirt-ci so it covers macOS 14. Add a manual entry (QEMU_JOB_OPTIONAL: 1) to test on Sonoma release. Refresh the lci-tool generated files.
--- .gitlab-ci.d/cirrus.yml | 16 ++++++++++++++++ .gitlab-ci.d/cirrus/macos-14.vars | 16 ++++++++++++++++ tests/lcitool/libvirt-ci | 2 +- tests/lcitool/refresh | 1 + 4 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 .gitlab-ci.d/cirrus/macos-14.vars
.gitlab-ci.d/cirrus.yml +16 -0
@@ -74,6 +74,22 @@ aarch64-macos-13-base-build: PKG_CONFIG_PATH: /opt/homebrew/curl/lib/pkgconfig:/opt/homebrew/ncurses/lib/pkgconfig:/opt/homebrew/readline/lib/pkgconfig TEST_TARGETS: check-unit check-block check-qapi-schema check-softfloat check-qtest-x86_64 +aarch64-macos-14-base-build: + extends: .cirrus_build_job + variables: + NAME: macos-14 + CIRRUS_VM_INSTANCE_TYPE: macos_instance + CIRRUS_VM_IMAGE_SELECTOR: image + CIRRUS_VM_IMAGE_NAME: ghcr.io/cirruslabs/macos-sonoma-base:latest + CIRRUS_VM_CPUS: 12 + CIRRUS_VM_RAM: 24G + UPDATE_COMMAND: brew update + INSTALL_COMMAND: brew install + PATH_EXTRA: /opt/homebrew/ccache/libexec:/opt/homebrew/gettext/bin + PKG_CONFIG_PATH: /opt/homebrew/curl/lib/pkgconfig:/opt/homebrew/ncurses/lib/pkgconfig:/opt/homebrew/readline/lib/pkgconfig + TEST_TARGETS: check-unit check-block check-qapi-schema check-softfloat check-qtest-x86_64 + QEMU_JOB_OPTIONAL: 1 + # The following jobs run VM-based tests via KVM on a Linux-based Cirrus-CI job .cirrus_kvm_job:
.gitlab-ci.d/cirrus/macos-14.vars new file +16 -0
@@ -0,0 +1,16 @@ +# THIS FILE WAS AUTO-GENERATED +# +# $ lcitool variables macos-14 qemu +# +# https://gitlab.com/libvirt/libvirt-ci + +CCACHE='/opt/homebrew/bin/ccache' +CPAN_PKGS='' +CROSS_PKGS='' +MAKE='/opt/homebrew/bin/gmake' +NINJA='/opt/homebrew/bin/ninja' +PACKAGING_COMMAND='brew' +PIP3='/opt/homebrew/bin/pip3' +PKGS='bash bc bison bzip2 capstone ccache cmocka ctags curl dbus diffutils dtc flex gcovr gettext git glib gnu-sed gnutls gtk+3 jemalloc jpeg-turbo json-c libepoxy libffi libgcrypt libiscsi libnfs libpng libslirp libssh libtasn1 libusb llvm lzo make meson mtools ncurses nettle ninja pixman pkg-config python3 rpm2cpio sdl2 sdl2_image snappy socat sparse spice-protocol swtpm tesseract usbredir vde vte3 xorriso zlib zstd' +PYPI_PKGS='PyYAML numpy pillow sphinx sphinx-rtd-theme tomli' +PYTHON='/opt/homebrew/bin/python3'
tests/lcitool/libvirt-ci +1 -1
@@ -1 +1 @@ -Subproject commit 36bc517161c45ead20224d47f2dc4fa428af6724 +Subproject commit 77c800186f34b21be7660750577cc5582a914deb
tests/lcitool/refresh +1 -0
@@ -197,6 +197,7 @@ try: # generate_cirrus("freebsd-13") generate_cirrus("macos-13") + generate_cirrus("macos-14") # # VM packages lists
Signature · 1 line
2.41.0
Paolo Bonzini
AppliedQueued, thanks.
Paolo