Skip to contentSkip to conversation

dockerfiles: update CentOS Stream 9 to Python 3.11, Meson to 1.12

PATCH New Paolo Bonzini 2 participants 8 messages Aug 17

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover dockerfiles: update CentOS Stream 9 to Python 3.11, Meson to 1.12

Meson 1.12 has been released and allows removing almost 1000 lines of meson.build junk for Rust. However, it also requires Python 3.11 which is newer than the version available in CentOS Stream 9 as the platform Python interpreter. So adjust it in tests/lcitool/mappings.yml, similar to how it was done previously for CentOS Stream 8 and OpenSUSE LEAP 15.

However, Meson 1.12 also makes werror apply to linker warnings as well, which hits us negatively for static builds, due to glibc warning about usage of getpw* functions in statically linked code. Work around that, and make sure that will be in QEMU stable releases too.

Paolo

Paolo Bonzini (3):
meson: make linker warnings non-fatal on Linux
dockerfiles: remove packages required by Avocado
dockerfiles: update CentOS Stream 9 to Python 3.11, Meson to 1.12

 meson.build                                   |  5 ++++
 tests/docker/dockerfiles/alpine.docker        |  3 ---
 tests/docker/dockerfiles/centos9.docker       | 19 +++++++-------
 .../dockerfiles/debian-all-test-cross.docker  |  2 +-
 .../dockerfiles/debian-amd64-cross.docker     |  6 +----
 .../dockerfiles/debian-arm64-cross.docker     |  6 +----
 .../dockerfiles/debian-armhf-cross.docker     |  6 +----
 .../dockerfiles/debian-i686-cross.docker      |  6 +----
 .../dockerfiles/debian-ppc64el-cross.docker   |  6 +----
 .../dockerfiles/debian-riscv64-cross.docker   |  6 +----
 .../dockerfiles/debian-s390x-cross.docker     |  6 +----
 tests/docker/dockerfiles/debian.docker        |  6 +----
 .../dockerfiles/fedora-rust-nightly.docker    |  6 +----
 .../dockerfiles/fedora-win64-cross.docker     |  6 +----
 tests/docker/dockerfiles/fedora.docker        |  6 +----
 tests/docker/dockerfiles/opensuse-leap.docker |  4 ---
 tests/docker/dockerfiles/ubuntu2404.docker    |  6 +----
 .gitlab-ci.d/macos-14.vars                    |  2 +-
 .../ci/setup/debian/debian-13-ppc64le.yaml    |  4 ---
 .../ci/setup/ubuntu/ubuntu-2404-aarch64.yaml  |  4 ---
 .../ci/setup/ubuntu/ubuntu-2404-s390x.yaml    |  4 ---
 tests/lcitool/mappings.yml                    | 26 ++++++++++++++++++-
 tests/lcitool/projects/qemu.yml               |  4 ---
 ...ensuse-leap-15.yml => centos-stream-9.yml} |  0
 tests/vm/generated/freebsd.json               |  4 ---
 25 files changed, 53 insertions(+), 100 deletions(-)
 rename tests/lcitool/targets/{opensuse-leap-15.yml => centos-stream-9.yml} (100%)
Signature · 1 line
2.55.0
#1 lore raw

PATCH 1/3 meson: make linker warnings non-fatal on Linux

These cause a werror=true build to fail with Meson 1.12.0, as it now makes linker warnings fatal as well.

---
 meson.build | 5 +++++
 1 file changed, 5 insertions(+)
meson.build +5 -0
index 49a5baf5b52..40e3f4ec44c 100644
@@ -602,6 +602,11 @@ if host_os == 'windows'
   qemu_ldflags += cc.get_supported_link_arguments('-Wl,--no-seh', '-Wl,--nxcompat')
   qemu_ldflags += cc.get_supported_link_arguments('-Wl,--dynamicbase', '-Wl,--high-entropy-va')
 endif
+if host_os == 'linux' and get_option('werror') and get_option('prefer_static')
+  # On glibc systems, glib causes warnings about getpwuid, getpwuid_r
+  # and getpwnam_r not being supported with static linking
+  qemu_ldflags += cc.get_supported_link_arguments('-Wl,--no-fatal-warnings')
+endif
 
 if get_option('fuzzing')
   # Specify a filter to only instrument code that is directly related to
Signature · 1 line
2.55.0
#3 lore raw

PATCH 2/3 dockerfiles: remove packages required by Avocado

In reply to Paolo Bonzini

Make our CI containers smaller, by removing a handful of packages that were only included as dependencies of Avocado.

---
 tests/docker/dockerfiles/alpine.docker               | 3 ---
 tests/docker/dockerfiles/centos9.docker              | 3 ---
 tests/docker/dockerfiles/debian-amd64-cross.docker   | 4 ----
 tests/docker/dockerfiles/debian-arm64-cross.docker   | 4 ----
 tests/docker/dockerfiles/debian-armhf-cross.docker   | 4 ----
 tests/docker/dockerfiles/debian-i686-cross.docker    | 4 ----
 tests/docker/dockerfiles/debian-ppc64el-cross.docker | 4 ----
 tests/docker/dockerfiles/debian-riscv64-cross.docker | 4 ----
 tests/docker/dockerfiles/debian-s390x-cross.docker   | 4 ----
 tests/docker/dockerfiles/debian.docker               | 4 ----
 tests/docker/dockerfiles/fedora-rust-nightly.docker  | 4 ----
 tests/docker/dockerfiles/fedora-win64-cross.docker   | 4 ----
 tests/docker/dockerfiles/fedora.docker               | 4 ----
 tests/docker/dockerfiles/opensuse-leap.docker        | 4 ----
 tests/docker/dockerfiles/ubuntu2404.docker           | 4 ----
 .gitlab-ci.d/macos-14.vars                           | 2 +-
 scripts/ci/setup/debian/debian-13-ppc64le.yaml       | 4 ----
 scripts/ci/setup/ubuntu/ubuntu-2404-aarch64.yaml     | 4 ----
 scripts/ci/setup/ubuntu/ubuntu-2404-s390x.yaml       | 4 ----
 tests/lcitool/projects/qemu.yml                      | 4 ----
 tests/vm/generated/freebsd.json                      | 4 ----
 21 files changed, 1 insertion(+), 79 deletions(-)
tests/docker/dockerfiles/alpine.docker +0 -3
index 118c6e8eeaf..8a5a355e89a 100644
@@ -83,14 +83,11 @@ RUN apk update && \
         pixman-dev \
         pkgconf \
         pulseaudio-dev \
-        py3-numpy \
-        py3-pillow \
         py3-pip \
         py3-setuptools \
         py3-sphinx \
         py3-sphinx_rtd_theme \
         py3-wheel \
-        py3-yaml \
         python3 \
         rpm2cpio \
         rust \
tests/docker/dockerfiles/centos9.docker +0 -3
index 0d5b5fa7f59..e38cd692db9 100644
@@ -96,9 +96,6 @@ RUN dnf --quiet distro-sync -y && \
                 pkgconfig \
                 pulseaudio-libs-devel \
                 python3 \
-                python3-PyYAML \
-                python3-numpy \
-                python3-pillow \
                 python3-pip \
                 python3-setuptools \
                 python3-sphinx \
tests/docker/dockerfiles/debian-amd64-cross.docker +0 -4
index 061cd8e9b82..823606dc52a 100644
@@ -41,9 +41,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       openssh-client \
                       pkgconf \
                       python3 \
-                      python3-numpy \
-                      python3-opencv \
-                      python3-pillow \
                       python3-pip \
                       python3-setuptools \
                       python3-sphinx \
@@ -51,7 +48,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       python3-tomli \
                       python3-venv \
                       python3-wheel \
-                      python3-yaml \
                       rpm2cpio \
                       rustc \
                       sed \
tests/docker/dockerfiles/debian-arm64-cross.docker +0 -4
index 3dfa60fdfd7..ed58e089ec0 100644
@@ -41,9 +41,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       openssh-client \
                       pkgconf \
                       python3 \
-                      python3-numpy \
-                      python3-opencv \
-                      python3-pillow \
                       python3-pip \
                       python3-setuptools \
                       python3-sphinx \
@@ -51,7 +48,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       python3-tomli \
                       python3-venv \
                       python3-wheel \
-                      python3-yaml \
                       rpm2cpio \
                       rustc \
                       sed \
tests/docker/dockerfiles/debian-armhf-cross.docker +0 -4
index 401c64269c1..0843f7428a9 100644
@@ -41,9 +41,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       openssh-client \
                       pkgconf \
                       python3 \
-                      python3-numpy \
-                      python3-opencv \
-                      python3-pillow \
                       python3-pip \
                       python3-setuptools \
                       python3-sphinx \
@@ -51,7 +48,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       python3-tomli \
                       python3-venv \
                       python3-wheel \
-                      python3-yaml \
                       rpm2cpio \
                       rustc \
                       sed \
tests/docker/dockerfiles/debian-i686-cross.docker +0 -4
index 8b60c7b085f..caba08f842e 100644
@@ -41,9 +41,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       openssh-client \
                       pkgconf \
                       python3 \
-                      python3-numpy \
-                      python3-opencv \
-                      python3-pillow \
                       python3-pip \
                       python3-setuptools \
                       python3-sphinx \
@@ -51,7 +48,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       python3-tomli \
                       python3-venv \
                       python3-wheel \
-                      python3-yaml \
                       rpm2cpio \
                       rustc \
                       sed \
tests/docker/dockerfiles/debian-ppc64el-cross.docker +0 -4
index 2a7e8cba056..17018c0dab7 100644
@@ -41,9 +41,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       openssh-client \
                       pkgconf \
                       python3 \
-                      python3-numpy \
-                      python3-opencv \
-                      python3-pillow \
                       python3-pip \
                       python3-setuptools \
                       python3-sphinx \
@@ -51,7 +48,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       python3-tomli \
                       python3-venv \
                       python3-wheel \
-                      python3-yaml \
                       rpm2cpio \
                       rustc \
                       sed \
tests/docker/dockerfiles/debian-riscv64-cross.docker +0 -4
index 349de3a0bbb..2408d453c20 100644
@@ -41,9 +41,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       openssh-client \
                       pkgconf \
                       python3 \
-                      python3-numpy \
-                      python3-opencv \
-                      python3-pillow \
                       python3-pip \
                       python3-setuptools \
                       python3-sphinx \
@@ -51,7 +48,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       python3-tomli \
                       python3-venv \
                       python3-wheel \
-                      python3-yaml \
                       rpm2cpio \
                       rustc \
                       sed \
tests/docker/dockerfiles/debian-s390x-cross.docker +0 -4
index 8bc42b1e00b..2b0a344c2c5 100644
@@ -41,9 +41,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       openssh-client \
                       pkgconf \
                       python3 \
-                      python3-numpy \
-                      python3-opencv \
-                      python3-pillow \
                       python3-pip \
                       python3-setuptools \
                       python3-sphinx \
@@ -51,7 +48,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       python3-tomli \
                       python3-venv \
                       python3-wheel \
-                      python3-yaml \
                       rpm2cpio \
                       rustc \
                       sed \
tests/docker/dockerfiles/debian.docker +0 -4
index 413986d3f07..064b2ad1f12 100644
@@ -113,9 +113,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       openssh-client \
                       pkgconf \
                       python3 \
-                      python3-numpy \
-                      python3-opencv \
-                      python3-pillow \
                       python3-pip \
                       python3-setuptools \
                       python3-sphinx \
@@ -123,7 +120,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       python3-tomli \
                       python3-venv \
                       python3-wheel \
-                      python3-yaml \
                       rpm2cpio \
                       rustc \
                       sed \
tests/docker/dockerfiles/fedora-rust-nightly.docker +0 -4
index 4f84b803798..dcad3af2a7f 100644
@@ -104,10 +104,6 @@ exec "$@"\n' > /usr/bin/nosync && \
                        pkgconfig \
                        pulseaudio-libs-devel \
                        python3 \
-                       python3-PyYAML \
-                       python3-numpy \
-                       python3-opencv \
-                       python3-pillow \
                        python3-pip \
                        python3-setuptools \
                        python3-sphinx \
tests/docker/dockerfiles/fedora-win64-cross.docker +0 -4
index c1e63feb46f..bce350dfd8d 100644
@@ -44,10 +44,6 @@ exec "$@"\n' > /usr/bin/nosync && \
                        ninja-build \
                        openssh-clients \
                        python3 \
-                       python3-PyYAML \
-                       python3-numpy \
-                       python3-opencv \
-                       python3-pillow \
                        python3-pip \
                        python3-setuptools \
                        python3-sphinx \
tests/docker/dockerfiles/fedora.docker +0 -4
index a6996917c4b..c541f5d5b18 100644
@@ -104,10 +104,6 @@ exec "$@"\n' > /usr/bin/nosync && \
                        pkgconfig \
                        pulseaudio-libs-devel \
                        python3 \
-                       python3-PyYAML \
-                       python3-numpy \
-                       python3-opencv \
-                       python3-pillow \
                        python3-pip \
                        python3-setuptools \
                        python3-sphinx \
tests/docker/dockerfiles/opensuse-leap.docker +0 -4
index fc363c647cd..8d8631bbcf0 100644
@@ -93,12 +93,8 @@ RUN zypper update -y && \
            pcre2-devel-static \
            pipewire-devel \
            pkgconfig \
-           python3-Pillow \
-           python3-PyYAML \
            python3-Sphinx \
            python3-base \
-           python3-numpy \
-           python3-opencv \
            python3-pip \
            python3-setuptools \
            python3-sphinx_rtd_theme \
tests/docker/dockerfiles/ubuntu2404.docker +0 -4
index 27992e34fd9..f027eef022e 100644
@@ -113,9 +113,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       openssh-client \
                       pkgconf \
                       python3 \
-                      python3-numpy \
-                      python3-opencv \
-                      python3-pillow \
                       python3-pip \
                       python3-setuptools \
                       python3-sphinx \
@@ -123,7 +120,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       python3-tomli \
                       python3-venv \
                       python3-wheel \
-                      python3-yaml \
                       rpm2cpio \
                       rustc-1.83 \
                       sed \
.gitlab-ci.d/macos-14.vars +1 -1
index def77cfdea5..0c187624dd0 100644
@@ -12,5 +12,5 @@ NINJA='/opt/homebrew/bin/ninja'
 PACKAGING_COMMAND='brew'
 PIP3='/opt/homebrew/bin/pip3'
 PKGS='bash bc bindgen bison bzip2 capstone ccache cmocka coreutils ctags curl dbus diffutils dtc flex gcovr gettext git glib gnu-sed gnutls gtk+3 gtk-vnc jemalloc jpeg-turbo json-c libcbor libepoxy libffi libgcrypt libiscsi libnfs libpng libslirp libssh libtasn1 libusb llvm lzo make meson mtools ncurses nettle ninja pixman pkg-config python-setuptools python3 rpm2cpio rust sdl2 sdl2_image snappy socat sparse spice-protocol swtpm tesseract usbredir vde vte3 vulkan-tools xorriso zlib zstd'
-PYPI_PKGS='PyYAML numpy pillow sphinx sphinx-rtd-theme tomli'
+PYPI_PKGS='sphinx sphinx-rtd-theme tomli'
 PYTHON='/opt/homebrew/bin/python3'
scripts/ci/setup/debian/debian-13-ppc64le.yaml +0 -4
index e64321357da..9acd99a7433 100644
@@ -105,9 +105,6 @@ packages:
   - openssh-client
   - pkgconf
   - python3
-  - python3-numpy
-  - python3-opencv
-  - python3-pillow
   - python3-pip
   - python3-setuptools
   - python3-sphinx
@@ -115,7 +112,6 @@ packages:
   - python3-tomli
   - python3-venv
   - python3-wheel
-  - python3-yaml
   - rpm2cpio
   - rustc
   - sed
scripts/ci/setup/ubuntu/ubuntu-2404-aarch64.yaml +0 -4
index 12b0e38a220..5c948109df8 100644
@@ -106,9 +106,6 @@ packages:
   - openssh-client
   - pkgconf
   - python3
-  - python3-numpy
-  - python3-opencv
-  - python3-pillow
   - python3-pip
   - python3-setuptools
   - python3-sphinx
@@ -116,7 +113,6 @@ packages:
   - python3-tomli
   - python3-venv
   - python3-wheel
-  - python3-yaml
   - rpm2cpio
   - rustc-1.83
   - sed
scripts/ci/setup/ubuntu/ubuntu-2404-s390x.yaml +0 -4
index 56299f4cc2b..010b7f86aab 100644
@@ -104,9 +104,6 @@ packages:
   - openssh-client
   - pkgconf
   - python3
-  - python3-numpy
-  - python3-opencv
-  - python3-pillow
   - python3-pip
   - python3-setuptools
   - python3-sphinx
@@ -114,7 +111,6 @@ packages:
   - python3-tomli
   - python3-venv
   - python3-wheel
-  - python3-yaml
   - rpm2cpio
   - rustc-1.83
   - sed
tests/lcitool/projects/qemu.yml +0 -4
index 7d185cda3cc..b3c99936723 100644
@@ -91,11 +91,7 @@ packages:
  - pkg-config
  - pulseaudio
  - python3
- - python3-numpy
- - python3-opencv
- - python3-pillow
  - python3-pip
- - python3-PyYAML
  - python3-setuptools
  - python3-sphinx
  - python3-sphinx-rtd-theme
tests/vm/generated/freebsd.json +0 -4
index 08b6eb61553..dfa8b41a524 100644
@@ -49,14 +49,10 @@
     "ncurses",
     "nettle",
     "ninja",
-    "opencv",
     "pixman",
     "pkgconf",
     "png",
-    "py311-numpy",
-    "py311-pillow",
     "py311-pip",
-    "py311-pyyaml",
     "py311-setuptools",
     "py311-sphinx",
     "py311-sphinx_rtd_theme",
Signature · 1 line
2.55.0
#5 lore raw

PATCH 3/3 dockerfiles: update CentOS Stream 9 to Python 3.11, Meson to 1.12

In reply to Paolo Bonzini

Python 3.10, which is a requirement for Meson 1.12.0, was never packages for CentOS Stream 9 so update directly to 3.11.

The opensuse-leap-15.yml file was not in use anymore, so delete it while touching tests/lcitool/targets/.

---
 tests/docker/dockerfiles/centos9.docker       | 16 +++++++-----
 .../dockerfiles/debian-all-test-cross.docker  |  2 +-
 .../dockerfiles/debian-amd64-cross.docker     |  2 +-
 .../dockerfiles/debian-arm64-cross.docker     |  2 +-
 .../dockerfiles/debian-armhf-cross.docker     |  2 +-
 .../dockerfiles/debian-i686-cross.docker      |  2 +-
 .../dockerfiles/debian-ppc64el-cross.docker   |  2 +-
 .../dockerfiles/debian-riscv64-cross.docker   |  2 +-
 .../dockerfiles/debian-s390x-cross.docker     |  2 +-
 tests/docker/dockerfiles/debian.docker        |  2 +-
 .../dockerfiles/fedora-rust-nightly.docker    |  2 +-
 .../dockerfiles/fedora-win64-cross.docker     |  2 +-
 tests/docker/dockerfiles/fedora.docker        |  2 +-
 tests/docker/dockerfiles/ubuntu2404.docker    |  2 +-
 tests/lcitool/mappings.yml                    | 26 ++++++++++++++++++-
 ...ensuse-leap-15.yml => centos-stream-9.yml} |  0
 16 files changed, 47 insertions(+), 21 deletions(-)
 rename tests/lcitool/targets/{opensuse-leap-15.yml => centos-stream-9.yml} (100%)
tests/docker/dockerfiles/centos9.docker +9 -7
index e38cd692db9..8101370a2db 100644
@@ -95,13 +95,11 @@ RUN dnf --quiet distro-sync -y && \
                 pixman-devel \
                 pkgconfig \
                 pulseaudio-libs-devel \
-                python3 \
-                python3-pip \
-                python3-setuptools \
-                python3-sphinx \
-                python3-sphinx_rtd_theme \
                 python3-tomli \
-                python3-wheel \
+                python3.11 \
+                python3.11-pip \
+                python3.11-setuptools \
+                python3.11-wheel \
                 rdma-core-devel \
                 rust \
                 rust-std-static \
@@ -131,11 +129,15 @@ RUN dnf --quiet distro-sync -y && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/clang && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
 
+RUN /usr/bin/pip3.11 install \
+                     sphinx \
+                     sphinx-rtd-theme
+
 ENV CCACHE_WRAPPERSDIR="/usr/libexec/ccache-wrappers"
 ENV LANG="en_US.UTF-8"
 ENV MAKE="/usr/bin/make"
 ENV NINJA="/usr/bin/ninja"
-ENV PYTHON="/usr/bin/python3"
+ENV PYTHON="/usr/bin/python3.11"
 # As a final step configure the user (if env is defined)
 ARG USER
 ARG UID
tests/docker/dockerfiles/debian-all-test-cross.docker +1 -1
index 2dc580552e3..833185f6072 100644
@@ -47,7 +47,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
 
-RUN /usr/bin/pip3 install meson==1.8.1
+RUN /usr/bin/pip3 install meson==1.12.0
 
 ENV CCACHE_WRAPPERSDIR="/usr/libexec/ccache-wrappers"
 ENV LANG="en_US.UTF-8"
tests/docker/dockerfiles/debian-amd64-cross.docker +1 -1
index 823606dc52a..9e30457ca79 100644
@@ -66,7 +66,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
     dpkg-reconfigure locales && \
     rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED
 
-RUN /usr/bin/pip3 install meson==1.8.1
+RUN /usr/bin/pip3 install meson==1.12.0
 
 ENV CCACHE_WRAPPERSDIR="/usr/libexec/ccache-wrappers"
 ENV LANG="en_US.UTF-8"
tests/docker/dockerfiles/debian-arm64-cross.docker +1 -1
index ed58e089ec0..b9b94e5e6fa 100644
@@ -66,7 +66,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
     dpkg-reconfigure locales && \
     rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED
 
-RUN /usr/bin/pip3 install meson==1.8.1
+RUN /usr/bin/pip3 install meson==1.12.0
 
 ENV CCACHE_WRAPPERSDIR="/usr/libexec/ccache-wrappers"
 ENV LANG="en_US.UTF-8"
tests/docker/dockerfiles/debian-armhf-cross.docker +1 -1
index 0843f7428a9..aa412ff66f5 100644
@@ -66,7 +66,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
     dpkg-reconfigure locales && \
     rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED
 
-RUN /usr/bin/pip3 install meson==1.8.1
+RUN /usr/bin/pip3 install meson==1.12.0
 
 ENV CCACHE_WRAPPERSDIR="/usr/libexec/ccache-wrappers"
 ENV LANG="en_US.UTF-8"
tests/docker/dockerfiles/debian-i686-cross.docker +1 -1
index caba08f842e..d07eac84fe8 100644
@@ -66,7 +66,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
     dpkg-reconfigure locales && \
     rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED
 
-RUN /usr/bin/pip3 install meson==1.8.1
+RUN /usr/bin/pip3 install meson==1.12.0
 
 ENV CCACHE_WRAPPERSDIR="/usr/libexec/ccache-wrappers"
 ENV LANG="en_US.UTF-8"
tests/docker/dockerfiles/debian-ppc64el-cross.docker +1 -1
index 17018c0dab7..7302c8236e4 100644
@@ -66,7 +66,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
     dpkg-reconfigure locales && \
     rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED
 
-RUN /usr/bin/pip3 install meson==1.8.1
+RUN /usr/bin/pip3 install meson==1.12.0
 
 ENV CCACHE_WRAPPERSDIR="/usr/libexec/ccache-wrappers"
 ENV LANG="en_US.UTF-8"
tests/docker/dockerfiles/debian-riscv64-cross.docker +1 -1
index 2408d453c20..aa5a881cab2 100644
@@ -66,7 +66,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
     dpkg-reconfigure locales && \
     rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED
 
-RUN /usr/bin/pip3 install meson==1.8.1
+RUN /usr/bin/pip3 install meson==1.12.0
 
 ENV CCACHE_WRAPPERSDIR="/usr/libexec/ccache-wrappers"
 ENV LANG="en_US.UTF-8"
tests/docker/dockerfiles/debian-s390x-cross.docker +1 -1
index 2b0a344c2c5..82eae4fc2c2 100644
@@ -66,7 +66,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
     dpkg-reconfigure locales && \
     rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED
 
-RUN /usr/bin/pip3 install meson==1.8.1
+RUN /usr/bin/pip3 install meson==1.12.0
 
 ENV CCACHE_WRAPPERSDIR="/usr/libexec/ccache-wrappers"
 ENV LANG="en_US.UTF-8"
tests/docker/dockerfiles/debian.docker +1 -1
index 064b2ad1f12..3a4f208ccf6 100644
@@ -145,7 +145,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/clang && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
 
-RUN /usr/bin/pip3 install meson==1.8.1
+RUN /usr/bin/pip3 install meson==1.12.0
 
 ENV CCACHE_WRAPPERSDIR="/usr/libexec/ccache-wrappers"
 ENV LANG="en_US.UTF-8"
tests/docker/dockerfiles/fedora-rust-nightly.docker +1 -1
index dcad3af2a7f..0f3dc370a4f 100644
@@ -145,7 +145,7 @@ exec "$@"\n' > /usr/bin/nosync && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/clang && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
 
-RUN /usr/bin/pip3 install meson==1.8.1
+RUN /usr/bin/pip3 install meson==1.12.0
 
 ENV CCACHE_WRAPPERSDIR="/usr/libexec/ccache-wrappers"
 ENV LANG="en_US.UTF-8"
tests/docker/dockerfiles/fedora-win64-cross.docker +1 -1
index bce350dfd8d..6f972f61738 100644
@@ -66,7 +66,7 @@ exec "$@"\n' > /usr/bin/nosync && \
     nosync dnf --quiet clean all -y && \
     rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED
 
-RUN /usr/bin/pip3 install meson==1.8.1
+RUN /usr/bin/pip3 install meson==1.12.0
 
 ENV CCACHE_WRAPPERSDIR="/usr/libexec/ccache-wrappers"
 ENV LANG="en_US.UTF-8"
tests/docker/dockerfiles/fedora.docker +1 -1
index c541f5d5b18..99bb38a3665 100644
@@ -145,7 +145,7 @@ exec "$@"\n' > /usr/bin/nosync && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/clang && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
 
-RUN /usr/bin/pip3 install meson==1.8.1
+RUN /usr/bin/pip3 install meson==1.12.0
 
 ENV CCACHE_WRAPPERSDIR="/usr/libexec/ccache-wrappers"
 ENV LANG="en_US.UTF-8"
tests/docker/dockerfiles/ubuntu2404.docker +1 -1
index f027eef022e..a5c22231f98 100644
@@ -145,7 +145,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/clang && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
 
-RUN /usr/bin/pip3 install meson==1.8.1
+RUN /usr/bin/pip3 install meson==1.12.0
 
 ENV CCACHE_WRAPPERSDIR="/usr/libexec/ccache-wrappers"
 ENV LANG="en_US.UTF-8"
tests/lcitool/mappings.yml +25 -1
index 62fe60d047f..1816556dde4 100644
@@ -3,6 +3,30 @@ mappings:
   bindgen:
     Ubuntu2204:
 
+  python3:
+    CentOSStream9: python3.11
+
+  python3-devel:
+    CentOSStream9: python3.11-devel
+
+  python3-pip:
+    CentOSStream9: python3.11-pip
+
+  python3-setuptools:
+    CentOSStream9: python3.11-setuptools
+
+  python3-sphinx:
+    CentOSStream9:
+
+  python3-sphinx-rtd-theme:
+    CentOSStream9:
+
+  python3-venv:
+    CentOSStream9: python3.11
+
+  python3-wheel:
+    CentOSStream9: python3.11-wheel
+
   meson:
     # Use Meson from PyPI wherever Rust is enabled
     Debian:
@@ -23,7 +47,7 @@ mappings:
 pypi_mappings:
   # Request more recent version
   meson:
-    default: meson==1.8.1
+    default: meson==1.12.0
 
   # Drop packages that need devel headers
   python3-tomli:
tests/lcitool/targets/centos-stream-9.yml renamed from tests/lcitool/targets/opensuse-leap-15.yml +0 -0
similarity index 100%
rename from tests/lcitool/targets/opensuse-leap-15.yml
rename to tests/lcitool/targets/centos-stream-9.yml
Signature · 1 line
2.55.0
#6 lore raw
Quoted 2 lines

Python 3.10, which is a requirement for Meson 1.12.0, was never packages for CentOS Stream 9 so update directly to 3.11.

packaged

Quoted 30 lines

The opensuse-leap-15.yml file was not in use anymore, so delete it while touching tests/lcitool/targets/.

Message-ID: <[email protected]>

tests/docker/dockerfiles/centos9.docker +4 -6
index e38cd692db93..8101370a2dbe 100644
@@ -95,13 +95,11 @@ RUN dnf --quiet distro-sync -y && \
                 pixman-devel \
                 pkgconfig \
                 pulseaudio-libs-devel \
-                python3 \
-                python3-pip \
-                python3-setuptools \
-                python3-sphinx \
-                python3-sphinx_rtd_theme \
                 python3-tomli \
-                python3-wheel \
+                python3.11 \
+                python3.11-pip \
+                python3.11-setuptools \
+                python3.11-wheel \
                 rdma-core-devel \
                 rust \
                 rust-std-static \

tests/docker/dockerfiles/centos9.docker RUN dnf --quiet distro-sync -y && \ · line 134

Quoted 6 lines
tests/docker/dockerfiles/centos9.docker +3 -0
@@ -131,11 +129,15 @@ RUN dnf --quiet distro-sync -y && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/clang && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
 
+RUN /usr/bin/pip3.11 install \
+                     sphinx \
+                     sphinx-rtd-theme

Since it's a rust-enabled container, why not pip install meson 1.12 here?

Signature · 1 line
Marc-André Lureau <[email protected]>
#7 lore raw
Quoted 5 lines · On 8/17/26 18:56, [email protected] wrote:

tests/docker/dockerfiles/centos9.docker RUN dnf --quiet distro-sync -y && \ · line 134

Quoted 3 lines
tests/docker/dockerfiles/centos9.docker +3 -0
+RUN /usr/bin/pip3.11 install \
+                     sphinx \
+                     sphinx-rtd-theme

Since it's a rust-enabled container, why not pip install meson 1.12 here?

Good point, which should be mentioned somewhere. Since it's using a non-default Python, basically nothing is installed including meson. configure will install it from the bundled wheel, so that CI covers that path as well.

Paolo