[PATCH v1] automation: use python-3.11 in Leap container

Olaf Hering posted 1 patch 2 months, 2 weeks ago
Failed in applying to current master (apply log)
automation/build/opensuse/leap-15.6-x86_64.dockerfile | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
[PATCH v1] automation: use python-3.11 in Leap container
Posted by Olaf Hering 2 months, 2 weeks ago
python311 is available since Leap 15.4 as additional Python variant.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
---
 automation/build/opensuse/leap-15.6-x86_64.dockerfile | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/automation/build/opensuse/leap-15.6-x86_64.dockerfile b/automation/build/opensuse/leap-15.6-x86_64.dockerfile
index ea70dffe2a..97890dfc00 100644
--- a/automation/build/opensuse/leap-15.6-x86_64.dockerfile
+++ b/automation/build/opensuse/leap-15.6-x86_64.dockerfile
@@ -3,6 +3,7 @@ FROM --platform=linux/amd64 opensuse/leap:15.6
 LABEL maintainer.name="The Xen Project"
 LABEL maintainer.email="xen-devel@lists.xenproject.org"
 
+ENV PYTHON=python3.11
 ENV XEN_TARGET_ARCH=x86_64
 
 RUN <<EOF
@@ -25,7 +26,7 @@ RUN <<EOF
         gawk
         gcc
         make
-        python3
+        python311
 
         # Tools (general)
         git-core
@@ -53,8 +54,8 @@ RUN <<EOF
         # xentop
         'pkgconfig(ncurses)'
         # Python bindings
-        python3-devel
-        python3-setuptools
+        python311-devel
+        python311-setuptools
         # Ocaml bindings/oxenstored
         ocaml
         ocaml-findlib
@@ -68,7 +69,7 @@ RUN <<EOF
         ninja
         'pkgconfig(glib-2.0)'
         'pkgconfig(pixman-1)'
-        python3-packaging
+        python311-packaging
     )
 
     zypper install -y --no-recommends "${DEPS[@]}"
Re: [PATCH v1] automation: use python-3.11 in Leap container
Posted by Andrew Cooper 2 months, 2 weeks ago
On 07/10/2024 4:25 pm, Olaf Hering wrote:
> python311 is available since Leap 15.4 as additional Python variant.
>
> Signed-off-by: Olaf Hering <olaf@aepfle.de>

Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>

I'm tempted to take and deploy this immediately.  Leap is already not
building QEMU, and this patch doesn't change.

Re: [PATCH v1] automation: use python-3.11 in Leap container
Posted by Stefano Stabellini 2 months, 2 weeks ago
On Mon, 7 Oct 2024, Andrew Cooper wrote:
> On 07/10/2024 4:25 pm, Olaf Hering wrote:
> > python311 is available since Leap 15.4 as additional Python variant.
> >
> > Signed-off-by: Olaf Hering <olaf@aepfle.de>
> 
> Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>

assuming it doesn't break the build:
Acked-by: Stefano Stabellini <sstabellini@kernel.org>

> I'm tempted to take and deploy this immediately.  Leap is already not
> building QEMU, and this patch doesn't change.

I am OK with that