Adds an update for the python/pygrub environment patch for the current
Xen 4.18 development tree.

Signed-off-by: Christopher Clark <[email protected]>
---
Compile tested for qemux86-64 and raspberrypi4-64;
posted to fix the build with the new gcc.

 ...ython-pygrub-pass-DISTUTILS-xen-4.18.patch | 41 +++++++++++++++++++
 recipes-extended/xen/xen-tools_git.bb         |  7 ++--
 recipes-extended/xen/xen_git.bb               |  4 +-
 3 files changed, 46 insertions(+), 6 deletions(-)
 create mode 100644 
recipes-extended/xen/files/0001-python-pygrub-pass-DISTUTILS-xen-4.18.patch

diff --git 
a/recipes-extended/xen/files/0001-python-pygrub-pass-DISTUTILS-xen-4.18.patch 
b/recipes-extended/xen/files/0001-python-pygrub-pass-DISTUTILS-xen-4.18.patch
new file mode 100644
index 0000000..3c7a97d
--- /dev/null
+++ 
b/recipes-extended/xen/files/0001-python-pygrub-pass-DISTUTILS-xen-4.18.patch
@@ -0,0 +1,41 @@
+diff --git a/tools/pygrub/Makefile b/tools/pygrub/Makefile
+index 4963bc89c6..c1c05eb421 100644
+--- a/tools/pygrub/Makefile
++++ b/tools/pygrub/Makefile
+@@ -13,14 +13,14 @@ setup.py = CC="$(CC)" CFLAGS="$(PY_CFLAGS)" 
LDSHARED="$(CC)" LDFLAGS="$(PY_LDFLA
+ all: build
+ .PHONY: build
+ build:
+-      $(setup.py) build
++      $(setup.py) build $(DISTUTILS_BUILD_ARGS)
+ 
+ .PHONY: install
+ install: all
+       $(INSTALL_DIR) $(DESTDIR)/$(bindir)
+       $(INSTALL_DIR) $(DESTDIR)/$(LIBEXEC_BIN)
+       $(setup.py) install --record $(INSTALL_LOG) $(PYTHON_PREFIX_ARG) \
+-              --root="$(DESTDIR)" --force
++              --root="$(DESTDIR)" --force  $(DISTUTILS_INSTALL_ARGS)
+       $(INSTALL_PYTHON_PROG) src/pygrub $(DESTDIR)/$(LIBEXEC_BIN)/pygrub
+       set -e; if [ $(bindir) != $(LIBEXEC_BIN) -a \
+                    "`readlink -f $(DESTDIR)/$(bindir)`" != \
+diff --git a/tools/python/Makefile b/tools/python/Makefile
+index 437431c48e..0a99c2067e 100644
+--- a/tools/python/Makefile
++++ b/tools/python/Makefile
+@@ -16,13 +16,13 @@ setup.py = CC="$(CC)" CFLAGS="$(PY_CFLAGS)" 
LDSHARED="$(CC)" LDFLAGS="$(PY_LDFLA
+ 
+ .PHONY: build
+ build:
+-      $(setup.py) build
++      $(setup.py) build $(DISTUTILS_BUILD_ARGS)
+ 
+ .PHONY: install
+ install:
+       $(INSTALL_DIR) $(DESTDIR)$(LIBEXEC_BIN)
+       $(setup.py) install --record $(INSTALL_LOG) $(PYTHON_PREFIX_ARG) \
+-              --root="$(DESTDIR)" --force
++              --root="$(DESTDIR)" --force $(DISTUTILS_INSTALL_ARGS)
+       $(INSTALL_PYTHON_PROG) scripts/convert-legacy-stream 
$(DESTDIR)$(LIBEXEC_BIN)
+       $(INSTALL_PYTHON_PROG) scripts/verify-stream-v2 $(DESTDIR)$(LIBEXEC_BIN)
+ 
diff --git a/recipes-extended/xen/xen-tools_git.bb 
b/recipes-extended/xen/xen-tools_git.bb
index 7557081..a71157a 100644
--- a/recipes-extended/xen/xen-tools_git.bb
+++ b/recipes-extended/xen/xen-tools_git.bb
@@ -1,13 +1,12 @@
-# master status on 2022-12-29
-SRCREV ?= "7eef80e06ed2282bbcec3619d860c6aacb0515d8"
+# master status on 2023-05-26
+SRCREV ?= "380c6c170393c48852d4f2b1ea97125a399cfc61"
 
 XEN_REL ?= "4.18"
 XEN_BRANCH ?= "master"
 
 SRC_URI = " \
     git://xenbits.xen.org/xen.git;branch=${XEN_BRANCH} \
-    file://0001-python-pygrub-pass-DISTUTILS-xen-4.15.patch \
-    file://0001-tools-xenstore-xenstored_control.c-correctly-print-t.patch \
+    file://0001-python-pygrub-pass-DISTUTILS-xen-4.18.patch \
     "
 
 LIC_FILES_CHKSUM ?= "file://COPYING;md5=d1a1e216f80b6d8da95fec897d0dbec9"
diff --git a/recipes-extended/xen/xen_git.bb b/recipes-extended/xen/xen_git.bb
index 9949006..7ed8977 100644
--- a/recipes-extended/xen/xen_git.bb
+++ b/recipes-extended/xen/xen_git.bb
@@ -1,5 +1,5 @@
-# master status on 2022-12-29
-SRCREV ?= "e4a5fb9227889bec99ab212b839680f4d5b51e60"
+# master status on 2023-05-26
+SRCREV ?= "380c6c170393c48852d4f2b1ea97125a399cfc61"
 
 XEN_REL ?= "4.18"
 XEN_BRANCH ?= "master"
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#8082): 
https://lists.yoctoproject.org/g/meta-virtualization/message/8082
Mute This Topic: https://lists.yoctoproject.org/mt/99173448/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to