All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [meta-virtualization] [PATCH] xen: Bump SRCREV to 4.14.1 and current master
       [not found] <1664DFE1A4BA4F42.31496@lists.yoctoproject.org>
@ 2021-03-04 17:36 ` Bertrand Marquis
  2021-03-04 18:15   ` Bruce Ashfield
  0 siblings, 1 reply; 9+ messages in thread
From: Bertrand Marquis @ 2021-03-04 17:36 UTC (permalink / raw)
  To: Bruce Ashfield, meta-virtualization; +Cc: nd

Hi Bruce,

> On 18 Feb 2021, at 15:05, Bertrand Marquis via lists.yoctoproject.org <bertrand.marquis=arm.com@lists.yoctoproject.org> wrote:
> 
> This allows to remove some patches related to gcc 10 support which have
> now been merged in Xen.
> 
> Xen-tools is modified to include the latest tools installed with Xen:
> - a rename of the bash-completion,
> - a new xl example,
> - xen-access,
> - xen-memshare (only available on x86).
> 
> A new patch to fix python and pygrub is added as the makefiles have been
> deeply modified in 4.15 which require a new patch (but doing the same).
> 
> Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>

This has now been reviewed by several persons.

When do you think you could check and maybe merge this ?

Cheers
Bertrand

> ---
> ...ython-pygrub-pass-DISTUTILS-xen-4.15.patch | 73 +++++++++++++++++++
> ...ls-xenpmd-Fix-gcc10-snprintf-warning.patch | 60 ---------------
> ...uild-temporarily-inhibit-Werror-4.14.patch | 26 -------
> recipes-extended/xen/xen-tools.inc            | 14 ++++
> recipes-extended/xen/xen-tools_4.14.bb        |  4 +-
> recipes-extended/xen/xen-tools_git.bb         |  6 +-
> recipes-extended/xen/xen_4.14.bb              |  2 +-
> recipes-extended/xen/xen_git.bb               |  2 +-
> 8 files changed, 92 insertions(+), 95 deletions(-)
> create mode 100644 recipes-extended/xen/files/0001-python-pygrub-pass-DISTUTILS-xen-4.15.patch
> delete mode 100644 recipes-extended/xen/files/0001-tools-xenpmd-Fix-gcc10-snprintf-warning.patch
> delete mode 100644 recipes-extended/xen/files/0001-xen-build-temporarily-inhibit-Werror-4.14.patch
> 
> diff --git a/recipes-extended/xen/files/0001-python-pygrub-pass-DISTUTILS-xen-4.15.patch b/recipes-extended/xen/files/0001-python-pygrub-pass-DISTUTILS-xen-4.15.patch
> new file mode 100644
> index 0000000..35cd9a8
> --- /dev/null
> +++ b/recipes-extended/xen/files/0001-python-pygrub-pass-DISTUTILS-xen-4.15.patch
> @@ -0,0 +1,73 @@
> +From 6db88791d923167f160afbcadeffad84a4cbdbc5 Mon Sep 17 00:00:00 2001
> +Message-Id: <6db88791d923167f160afbcadeffad84a4cbdbc5.1612262706.git.bertrand.marquis@arm.com>
> +From: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
> +Date: Fri, 19 Oct 2018 11:01:37 +0200
> +Subject: [PATCH] python,pygrub: pass DISTUTILS env vars as setup.py args
> +
> +Upstream-Status: Xen: Inappropriate [oe specific, python install issues]
> +
> +Allow to respect the target install dir (PYTHON_SITEPACKAGES_DIR)
> +as well as other parameters set by the OpenEmbedded build system.
> +This is especially useful when the target libdir is not the default one
> +(/usr/lib), but for example /usr/lib64.
> +
> +Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
> +
> +Forward-ported to Xen 4.12.0
> +Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
> +
> +Modified to support pygrub installation with python 3
> +Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
> +
> +Forward-ported to Xen 4.14.0
> +Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
> +
> +Forward-ported to Xen 4.15.0
> +Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
> +
> +---
> + tools/pygrub/Makefile | 7 +++++--
> + tools/python/Makefile | 2 +-
> + 2 files changed, 6 insertions(+), 3 deletions(-)
> +
> +diff --git a/tools/pygrub/Makefile b/tools/pygrub/Makefile
> +index 37b2146214..ffb9270065 100644
> +--- a/tools/pygrub/Makefile
> ++++ b/tools/pygrub/Makefile
> +@@ -10,7 +10,7 @@ INSTALL_LOG = build/installed_files.txt
> + all: build
> + .PHONY: build
> + build:
> +-	CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDSHARED="$(CC)" LDFLAGS="$(PY_LDFLAGS)" $(PYTHON) setup.py build
> ++	CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDSHARED="$(CC)" LDFLAGS="$(PY_LDFLAGS)" $(PYTHON) setup.py build $(DISTUTILS_BUILD_ARGS)
> + 
> + .PHONY: install
> + install: all
> +@@ -18,7 +18,10 @@ install: all
> + 	CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDSHARED="$(CC)" \
> + 		LDFLAGS="$(PY_LDFLAGS)" $(PYTHON) setup.py install \
> + 		--record $(INSTALL_LOG) $(PYTHON_PREFIX_ARG) \
> +-		 --root="$(DESTDIR)" --install-scripts=$(LIBEXEC_BIN) --force
> ++		 --root="$(DESTDIR)" --install-scripts=$(LIBEXEC_BIN) --force \
> ++		 $(DISTUTILS_INSTALL_ARGS)
> ++	rm -f $(DESTDIR)/$(LIBEXEC_BIN)/pygrub
> ++	$(INSTALL_PYTHON_PROG) src/pygrub $(DESTDIR)/$(LIBEXEC_BIN)/pygrub
> + 	set -e; if [ $(bindir) != $(LIBEXEC_BIN) -a \
> + 	             "`readlink -f $(DESTDIR)/$(bindir)`" != \
> + 	             "`readlink -f $(LIBEXEC_BIN)`" ]; then \
> +diff --git a/tools/python/Makefile b/tools/python/Makefile
> +index cc76423647..5cb11ae453 100644
> +--- a/tools/python/Makefile
> ++++ b/tools/python/Makefile
> +@@ -12,7 +12,7 @@ setup.py = CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDSHARED="$(CC)" LDFLAGS="$(PY_LDFLA
> +            SHLIB_libxenctrl="$(SHLIB_libxenctrl)" \
> +            SHLIB_libxenguest="$(SHLIB_libxenguest)" \
> +            SHLIB_libxenstore="$(SHLIB_libxenstore)" \
> +-           $(PYTHON) setup.py
> ++           $(PYTHON) setup.py $(DISTUTILS_BUILD_ARGS)
> + 
> + .PHONY: build
> + build:
> +-- 
> +2.17.1
> +
> diff --git a/recipes-extended/xen/files/0001-tools-xenpmd-Fix-gcc10-snprintf-warning.patch b/recipes-extended/xen/files/0001-tools-xenpmd-Fix-gcc10-snprintf-warning.patch
> deleted file mode 100644
> index 0a136c9..0000000
> --- a/recipes-extended/xen/files/0001-tools-xenpmd-Fix-gcc10-snprintf-warning.patch
> +++ /dev/null
> @@ -1,60 +0,0 @@
> -From 0dfddb2116e3757f77a691a3fe335173088d69dc Mon Sep 17 00:00:00 2001
> -Message-Id: <0dfddb2116e3757f77a691a3fe335173088d69dc.1604734077.git.bertrand.marquis@arm.com>
> -From: Bertrand Marquis <bertrand.marquis@arm.com>
> -Date: Thu, 15 Oct 2020 10:16:09 +0100
> -Subject: [PATCH] tools/xenpmd: Fix gcc10 snprintf warning
> -
> -Add a check for snprintf return code and ignore the entry if we get an
> -error. This should in fact never happen and is more a trick to make gcc
> -happy and prevent compilation errors.
> -
> -This is solving the following gcc warning when compiling for arm32 host
> -platforms with optimization activated:
> -xenpmd.c:92:37: error: '%s' directive output may be truncated writing
> -between 4 and 2147483645 bytes into a region of size 271
> -[-Werror=format-truncation=]
> -
> -This is also solving the following Debian bug:
> -https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=970802
> -
> -Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
> -Acked-by: Wei Liu <wl@xen.org>
> ----
> -Upstream-status: Backport from 4.15
> ----
> - tools/xenpmd/xenpmd.c | 9 +++++++--
> - 1 file changed, 7 insertions(+), 2 deletions(-)
> -
> -diff --git a/tools/xenpmd/xenpmd.c b/tools/xenpmd/xenpmd.c
> -index 35fd1c931a..12b82cf43e 100644
> ---- a/tools/xenpmd/xenpmd.c
> -+++ b/tools/xenpmd/xenpmd.c
> -@@ -102,6 +102,7 @@ FILE *get_next_battery_file(DIR *battery_dir,
> -     FILE *file = 0;
> -     struct dirent *dir_entries;
> -     char file_name[284];
> -+    int ret;
> -     
> -     do 
> -     {
> -@@ -111,11 +112,15 @@ FILE *get_next_battery_file(DIR *battery_dir,
> -         if ( strlen(dir_entries->d_name) < 4 )
> -             continue;
> -         if ( battery_info_type == BIF ) 
> --            snprintf(file_name, sizeof(file_name), BATTERY_INFO_FILE_PATH,
> -+            ret = snprintf(file_name, sizeof(file_name), BATTERY_INFO_FILE_PATH,
> -                      dir_entries->d_name);
> -         else 
> --            snprintf(file_name, sizeof(file_name), BATTERY_STATE_FILE_PATH,
> -+            ret = snprintf(file_name, sizeof(file_name), BATTERY_STATE_FILE_PATH,
> -                      dir_entries->d_name);
> -+        /* This should not happen but is needed to pass gcc checks */
> -+        if (ret < 0)
> -+            continue;
> -+        file_name[sizeof(file_name) - 1] = '\0';
> -         file = fopen(file_name, "r");
> -     } while ( !file );
> - 
> --- 
> -2.17.1
> -
> diff --git a/recipes-extended/xen/files/0001-xen-build-temporarily-inhibit-Werror-4.14.patch b/recipes-extended/xen/files/0001-xen-build-temporarily-inhibit-Werror-4.14.patch
> deleted file mode 100644
> index 0e0a3dc..0000000
> --- a/recipes-extended/xen/files/0001-xen-build-temporarily-inhibit-Werror-4.14.patch
> +++ /dev/null
> @@ -1,26 +0,0 @@
> -From 9cff3bf8425ccc593825fcde8ca5eaa32a43d04d Mon Sep 17 00:00:00 2001
> -From: Bruce Ashfield <bruce.ashfield@gmail.com>
> -Date: Thu, 18 Jun 2020 09:05:22 -0400
> -Subject: [PATCH] xen/build: temporarily inhibit Werror
> -
> -Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
> -Rebased on Xen 4.14:
> -Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
> ----
> - tools/libxl/Makefile | 2 +-
> - xen/Rules.mk         | 2 +-
> - 2 files changed, 2 insertions(+), 2 deletions(-)
> -
> -diff --git a/tools/libxl/Makefile b/tools/libxl/Makefile
> -index 6da342ed61..c67560e269 100644
> ---- a/tools/libxl/Makefile
> -+++ b/tools/libxl/Makefile
> -@@ -11,7 +11,7 @@ MINOR = 0
> - XLUMAJOR = 4.14
> - XLUMINOR = 0
> - 
> --CFLAGS += -Werror -Wno-format-zero-length -Wmissing-declarations \
> -+CFLAGS += -Wno-format-zero-length -Wmissing-declarations \
> - 	-Wno-declaration-after-statement -Wformat-nonliteral
> - CFLAGS += -I. -fPIC
> - 
> diff --git a/recipes-extended/xen/xen-tools.inc b/recipes-extended/xen/xen-tools.inc
> index 0c69fec..722c503 100644
> --- a/recipes-extended/xen/xen-tools.inc
> +++ b/recipes-extended/xen/xen-tools.inc
> @@ -234,6 +234,8 @@ PACKAGES = " \
>     ${PN}-xl-examples \
>     ${PN}-xm \
>     ${PN}-xm-examples \
> +    ${PN}-xen-access \
> +    ${PN}-xen-memshare \
>     "
> 
> PROVIDES =+ " \
> @@ -633,6 +635,7 @@ FILES_${PN}-xen-watchdog = "\
> 
> FILES_${PN}-xl = "\
>     ${sysconfdir}/bash_completion.d/xl.sh \
> +    ${sysconfdir}/bash_completion.d/xl \
>     ${sysconfdir}/xen/xl.conf \
>     ${libdir}/xen/bin/libxl-save-helper \
>     ${sbindir}/xl \
> @@ -642,6 +645,7 @@ FILES_${PN}-xl = "\
> FILES_${PN}-xl-examples = "\
>     ${sysconfdir}/xen/xlexample.hvm \
>     ${sysconfdir}/xen/xlexample.pvlinux \
> +    ${sysconfdir}/xen/xlexample.pvhlinux \
>     "
> 
> FILES_${PN}-xm-examples = "\
> @@ -692,6 +696,16 @@ FILES_${PN}-xendomains += "\
>     ${sysconfdir}/sysconfig/xendomains \
>     ${systemd_unitdir}/system/xendomains.service \
>     "
> +FILES_${PN}-xen-access += "\
> +    ${sbindir}/xen-access \
> +    "
> +
> +FILES_${PN}-xen-memshare += "\
> +    ${sbindir}/xen-memshare \
> +    "
> +
> +# memshare is only built for x86, so allow empty package for other archs
> +ALLOW_EMPTY_${PN}-xen-memshare = "1"
> 
> INSANE_SKIP_${PN} = "already-stripped"
> 
> diff --git a/recipes-extended/xen/xen-tools_4.14.bb b/recipes-extended/xen/xen-tools_4.14.bb
> index 73a52bc..a79b41d 100644
> --- a/recipes-extended/xen/xen-tools_4.14.bb
> +++ b/recipes-extended/xen/xen-tools_4.14.bb
> @@ -1,4 +1,4 @@
> -SRCREV ?= "456957aaa1391e0dfa969e2dd97b87c51a79444e"
> +SRCREV ?= "ad844aa352559a8b1f36e391a27d9d7dbddbdc36"
> 
> XEN_REL ?= "4.14"
> XEN_BRANCH ?= "stable-${XEN_REL}"
> @@ -6,8 +6,6 @@ XEN_BRANCH ?= "stable-${XEN_REL}"
> SRC_URI = " \
>     git://xenbits.xen.org/xen.git;branch=${XEN_BRANCH} \
>     file://0001-python-pygrub-pass-DISTUTILS-xen-4.14.patch \
> -    file://0001-xen-build-temporarily-inhibit-Werror-4.14.patch \
> -    file://0001-tools-xenpmd-Fix-gcc10-snprintf-warning.patch \
>     "
> 
> LIC_FILES_CHKSUM ?= "file://COPYING;md5=419739e325a50f3d7b4501338e44a4e5"
> diff --git a/recipes-extended/xen/xen-tools_git.bb b/recipes-extended/xen/xen-tools_git.bb
> index 1f6be1d..71850ee 100644
> --- a/recipes-extended/xen/xen-tools_git.bb
> +++ b/recipes-extended/xen/xen-tools_git.bb
> @@ -1,13 +1,11 @@
> -SRCREV ?= "8c4532f19d6925538fb0c938f7de9a97da8c5c3b"
> +SRCREV ?= "9dc687f155a57216b83b17f9cde55dd43e06b0cd"
> 
> XEN_REL ?= "4.15"
> XEN_BRANCH ?= "master"
> 
> SRC_URI = " \
>     git://xenbits.xen.org/xen.git;branch=${XEN_BRANCH} \
> -    file://0001-python-pygrub-pass-DISTUTILS-xen-4.14.patch \
> -    file://0001-xen-build-temporarily-inhibit-Werror-4.14.patch \
> -    file://0001-tools-xenpmd-Fix-gcc10-snprintf-warning.patch \
> +    file://0001-python-pygrub-pass-DISTUTILS-xen-4.15.patch \
>     "
> 
> LIC_FILES_CHKSUM ?= "file://COPYING;md5=419739e325a50f3d7b4501338e44a4e5"
> diff --git a/recipes-extended/xen/xen_4.14.bb b/recipes-extended/xen/xen_4.14.bb
> index 91e8988..653e3b6 100644
> --- a/recipes-extended/xen/xen_4.14.bb
> +++ b/recipes-extended/xen/xen_4.14.bb
> @@ -1,4 +1,4 @@
> -SRCREV ?= "456957aaa1391e0dfa969e2dd97b87c51a79444e"
> +SRCREV ?= "ad844aa352559a8b1f36e391a27d9d7dbddbdc36"
> 
> XEN_REL ?= "4.14"
> XEN_BRANCH ?= "stable-${XEN_REL}"
> diff --git a/recipes-extended/xen/xen_git.bb b/recipes-extended/xen/xen_git.bb
> index 57791fc..2b62c5c 100644
> --- a/recipes-extended/xen/xen_git.bb
> +++ b/recipes-extended/xen/xen_git.bb
> @@ -1,4 +1,4 @@
> -SRCREV ?= "8c4532f19d6925538fb0c938f7de9a97da8c5c3b"
> +SRCREV ?= "9dc687f155a57216b83b17f9cde55dd43e06b0cd"
> 
> XEN_REL ?= "4.15"
> XEN_BRANCH ?= "master"
> -- 
> 2.17.1
> 
> 
> 
> 


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [meta-virtualization] [PATCH] xen: Bump SRCREV to 4.14.1 and current master
  2021-03-04 17:36 ` [meta-virtualization] [PATCH] xen: Bump SRCREV to 4.14.1 and current master Bertrand Marquis
@ 2021-03-04 18:15   ` Bruce Ashfield
  2021-03-05 10:29     ` Bertrand Marquis
  0 siblings, 1 reply; 9+ messages in thread
From: Bruce Ashfield @ 2021-03-04 18:15 UTC (permalink / raw)
  To: Bertrand Marquis; +Cc: meta-virtualization, nd

On Thu, Mar 4, 2021 at 12:37 PM Bertrand Marquis
<Bertrand.Marquis@arm.com> wrote:
>
> Hi Bruce,
>
> > On 18 Feb 2021, at 15:05, Bertrand Marquis via lists.yoctoproject.org <bertrand.marquis=arm.com@lists.yoctoproject.org> wrote:
> >
> > This allows to remove some patches related to gcc 10 support which have
> > now been merged in Xen.
> >
> > Xen-tools is modified to include the latest tools installed with Xen:
> > - a rename of the bash-completion,
> > - a new xl example,
> > - xen-access,
> > - xen-memshare (only available on x86).
> >
> > A new patch to fix python and pygrub is added as the makefiles have been
> > deeply modified in 4.15 which require a new patch (but doing the same).
> >
> > Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
>
> This has now been reviewed by several persons.
>
> When do you think you could check and maybe merge this ?

It's in the queue.

Christopher only gave me the thumbs up yesterday, so regardless of how
long it has been on the list, it has only been 24 hours or so since it
has gotten all reviews done.

Bruce

>
> Cheers
> Bertrand
>
> > ---
> > ...ython-pygrub-pass-DISTUTILS-xen-4.15.patch | 73 +++++++++++++++++++
> > ...ls-xenpmd-Fix-gcc10-snprintf-warning.patch | 60 ---------------
> > ...uild-temporarily-inhibit-Werror-4.14.patch | 26 -------
> > recipes-extended/xen/xen-tools.inc            | 14 ++++
> > recipes-extended/xen/xen-tools_4.14.bb        |  4 +-
> > recipes-extended/xen/xen-tools_git.bb         |  6 +-
> > recipes-extended/xen/xen_4.14.bb              |  2 +-
> > recipes-extended/xen/xen_git.bb               |  2 +-
> > 8 files changed, 92 insertions(+), 95 deletions(-)
> > create mode 100644 recipes-extended/xen/files/0001-python-pygrub-pass-DISTUTILS-xen-4.15.patch
> > delete mode 100644 recipes-extended/xen/files/0001-tools-xenpmd-Fix-gcc10-snprintf-warning.patch
> > delete mode 100644 recipes-extended/xen/files/0001-xen-build-temporarily-inhibit-Werror-4.14.patch
> >
> > diff --git a/recipes-extended/xen/files/0001-python-pygrub-pass-DISTUTILS-xen-4.15.patch b/recipes-extended/xen/files/0001-python-pygrub-pass-DISTUTILS-xen-4.15.patch
> > new file mode 100644
> > index 0000000..35cd9a8
> > --- /dev/null
> > +++ b/recipes-extended/xen/files/0001-python-pygrub-pass-DISTUTILS-xen-4.15.patch
> > @@ -0,0 +1,73 @@
> > +From 6db88791d923167f160afbcadeffad84a4cbdbc5 Mon Sep 17 00:00:00 2001
> > +Message-Id: <6db88791d923167f160afbcadeffad84a4cbdbc5.1612262706.git.bertrand.marquis@arm.com>
> > +From: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
> > +Date: Fri, 19 Oct 2018 11:01:37 +0200
> > +Subject: [PATCH] python,pygrub: pass DISTUTILS env vars as setup.py args
> > +
> > +Upstream-Status: Xen: Inappropriate [oe specific, python install issues]
> > +
> > +Allow to respect the target install dir (PYTHON_SITEPACKAGES_DIR)
> > +as well as other parameters set by the OpenEmbedded build system.
> > +This is especially useful when the target libdir is not the default one
> > +(/usr/lib), but for example /usr/lib64.
> > +
> > +Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
> > +
> > +Forward-ported to Xen 4.12.0
> > +Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
> > +
> > +Modified to support pygrub installation with python 3
> > +Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
> > +
> > +Forward-ported to Xen 4.14.0
> > +Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
> > +
> > +Forward-ported to Xen 4.15.0
> > +Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
> > +
> > +---
> > + tools/pygrub/Makefile | 7 +++++--
> > + tools/python/Makefile | 2 +-
> > + 2 files changed, 6 insertions(+), 3 deletions(-)
> > +
> > +diff --git a/tools/pygrub/Makefile b/tools/pygrub/Makefile
> > +index 37b2146214..ffb9270065 100644
> > +--- a/tools/pygrub/Makefile
> > ++++ b/tools/pygrub/Makefile
> > +@@ -10,7 +10,7 @@ INSTALL_LOG = build/installed_files.txt
> > + all: build
> > + .PHONY: build
> > + build:
> > +-    CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDSHARED="$(CC)" LDFLAGS="$(PY_LDFLAGS)" $(PYTHON) setup.py build
> > ++    CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDSHARED="$(CC)" LDFLAGS="$(PY_LDFLAGS)" $(PYTHON) setup.py build $(DISTUTILS_BUILD_ARGS)
> > +
> > + .PHONY: install
> > + install: all
> > +@@ -18,7 +18,10 @@ install: all
> > +     CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDSHARED="$(CC)" \
> > +             LDFLAGS="$(PY_LDFLAGS)" $(PYTHON) setup.py install \
> > +             --record $(INSTALL_LOG) $(PYTHON_PREFIX_ARG) \
> > +-             --root="$(DESTDIR)" --install-scripts=$(LIBEXEC_BIN) --force
> > ++             --root="$(DESTDIR)" --install-scripts=$(LIBEXEC_BIN) --force \
> > ++             $(DISTUTILS_INSTALL_ARGS)
> > ++    rm -f $(DESTDIR)/$(LIBEXEC_BIN)/pygrub
> > ++    $(INSTALL_PYTHON_PROG) src/pygrub $(DESTDIR)/$(LIBEXEC_BIN)/pygrub
> > +     set -e; if [ $(bindir) != $(LIBEXEC_BIN) -a \
> > +                  "`readlink -f $(DESTDIR)/$(bindir)`" != \
> > +                  "`readlink -f $(LIBEXEC_BIN)`" ]; then \
> > +diff --git a/tools/python/Makefile b/tools/python/Makefile
> > +index cc76423647..5cb11ae453 100644
> > +--- a/tools/python/Makefile
> > ++++ b/tools/python/Makefile
> > +@@ -12,7 +12,7 @@ setup.py = CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDSHARED="$(CC)" LDFLAGS="$(PY_LDFLA
> > +            SHLIB_libxenctrl="$(SHLIB_libxenctrl)" \
> > +            SHLIB_libxenguest="$(SHLIB_libxenguest)" \
> > +            SHLIB_libxenstore="$(SHLIB_libxenstore)" \
> > +-           $(PYTHON) setup.py
> > ++           $(PYTHON) setup.py $(DISTUTILS_BUILD_ARGS)
> > +
> > + .PHONY: build
> > + build:
> > +--
> > +2.17.1
> > +
> > diff --git a/recipes-extended/xen/files/0001-tools-xenpmd-Fix-gcc10-snprintf-warning.patch b/recipes-extended/xen/files/0001-tools-xenpmd-Fix-gcc10-snprintf-warning.patch
> > deleted file mode 100644
> > index 0a136c9..0000000
> > --- a/recipes-extended/xen/files/0001-tools-xenpmd-Fix-gcc10-snprintf-warning.patch
> > +++ /dev/null
> > @@ -1,60 +0,0 @@
> > -From 0dfddb2116e3757f77a691a3fe335173088d69dc Mon Sep 17 00:00:00 2001
> > -Message-Id: <0dfddb2116e3757f77a691a3fe335173088d69dc.1604734077.git.bertrand.marquis@arm.com>
> > -From: Bertrand Marquis <bertrand.marquis@arm.com>
> > -Date: Thu, 15 Oct 2020 10:16:09 +0100
> > -Subject: [PATCH] tools/xenpmd: Fix gcc10 snprintf warning
> > -
> > -Add a check for snprintf return code and ignore the entry if we get an
> > -error. This should in fact never happen and is more a trick to make gcc
> > -happy and prevent compilation errors.
> > -
> > -This is solving the following gcc warning when compiling for arm32 host
> > -platforms with optimization activated:
> > -xenpmd.c:92:37: error: '%s' directive output may be truncated writing
> > -between 4 and 2147483645 bytes into a region of size 271
> > -[-Werror=format-truncation=]
> > -
> > -This is also solving the following Debian bug:
> > -https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=970802
> > -
> > -Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
> > -Acked-by: Wei Liu <wl@xen.org>
> > ----
> > -Upstream-status: Backport from 4.15
> > ----
> > - tools/xenpmd/xenpmd.c | 9 +++++++--
> > - 1 file changed, 7 insertions(+), 2 deletions(-)
> > -
> > -diff --git a/tools/xenpmd/xenpmd.c b/tools/xenpmd/xenpmd.c
> > -index 35fd1c931a..12b82cf43e 100644
> > ---- a/tools/xenpmd/xenpmd.c
> > -+++ b/tools/xenpmd/xenpmd.c
> > -@@ -102,6 +102,7 @@ FILE *get_next_battery_file(DIR *battery_dir,
> > -     FILE *file = 0;
> > -     struct dirent *dir_entries;
> > -     char file_name[284];
> > -+    int ret;
> > -
> > -     do
> > -     {
> > -@@ -111,11 +112,15 @@ FILE *get_next_battery_file(DIR *battery_dir,
> > -         if ( strlen(dir_entries->d_name) < 4 )
> > -             continue;
> > -         if ( battery_info_type == BIF )
> > --            snprintf(file_name, sizeof(file_name), BATTERY_INFO_FILE_PATH,
> > -+            ret = snprintf(file_name, sizeof(file_name), BATTERY_INFO_FILE_PATH,
> > -                      dir_entries->d_name);
> > -         else
> > --            snprintf(file_name, sizeof(file_name), BATTERY_STATE_FILE_PATH,
> > -+            ret = snprintf(file_name, sizeof(file_name), BATTERY_STATE_FILE_PATH,
> > -                      dir_entries->d_name);
> > -+        /* This should not happen but is needed to pass gcc checks */
> > -+        if (ret < 0)
> > -+            continue;
> > -+        file_name[sizeof(file_name) - 1] = '\0';
> > -         file = fopen(file_name, "r");
> > -     } while ( !file );
> > -
> > ---
> > -2.17.1
> > -
> > diff --git a/recipes-extended/xen/files/0001-xen-build-temporarily-inhibit-Werror-4.14.patch b/recipes-extended/xen/files/0001-xen-build-temporarily-inhibit-Werror-4.14.patch
> > deleted file mode 100644
> > index 0e0a3dc..0000000
> > --- a/recipes-extended/xen/files/0001-xen-build-temporarily-inhibit-Werror-4.14.patch
> > +++ /dev/null
> > @@ -1,26 +0,0 @@
> > -From 9cff3bf8425ccc593825fcde8ca5eaa32a43d04d Mon Sep 17 00:00:00 2001
> > -From: Bruce Ashfield <bruce.ashfield@gmail.com>
> > -Date: Thu, 18 Jun 2020 09:05:22 -0400
> > -Subject: [PATCH] xen/build: temporarily inhibit Werror
> > -
> > -Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
> > -Rebased on Xen 4.14:
> > -Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
> > ----
> > - tools/libxl/Makefile | 2 +-
> > - xen/Rules.mk         | 2 +-
> > - 2 files changed, 2 insertions(+), 2 deletions(-)
> > -
> > -diff --git a/tools/libxl/Makefile b/tools/libxl/Makefile
> > -index 6da342ed61..c67560e269 100644
> > ---- a/tools/libxl/Makefile
> > -+++ b/tools/libxl/Makefile
> > -@@ -11,7 +11,7 @@ MINOR = 0
> > - XLUMAJOR = 4.14
> > - XLUMINOR = 0
> > -
> > --CFLAGS += -Werror -Wno-format-zero-length -Wmissing-declarations \
> > -+CFLAGS += -Wno-format-zero-length -Wmissing-declarations \
> > -     -Wno-declaration-after-statement -Wformat-nonliteral
> > - CFLAGS += -I. -fPIC
> > -
> > diff --git a/recipes-extended/xen/xen-tools.inc b/recipes-extended/xen/xen-tools.inc
> > index 0c69fec..722c503 100644
> > --- a/recipes-extended/xen/xen-tools.inc
> > +++ b/recipes-extended/xen/xen-tools.inc
> > @@ -234,6 +234,8 @@ PACKAGES = " \
> >     ${PN}-xl-examples \
> >     ${PN}-xm \
> >     ${PN}-xm-examples \
> > +    ${PN}-xen-access \
> > +    ${PN}-xen-memshare \
> >     "
> >
> > PROVIDES =+ " \
> > @@ -633,6 +635,7 @@ FILES_${PN}-xen-watchdog = "\
> >
> > FILES_${PN}-xl = "\
> >     ${sysconfdir}/bash_completion.d/xl.sh \
> > +    ${sysconfdir}/bash_completion.d/xl \
> >     ${sysconfdir}/xen/xl.conf \
> >     ${libdir}/xen/bin/libxl-save-helper \
> >     ${sbindir}/xl \
> > @@ -642,6 +645,7 @@ FILES_${PN}-xl = "\
> > FILES_${PN}-xl-examples = "\
> >     ${sysconfdir}/xen/xlexample.hvm \
> >     ${sysconfdir}/xen/xlexample.pvlinux \
> > +    ${sysconfdir}/xen/xlexample.pvhlinux \
> >     "
> >
> > FILES_${PN}-xm-examples = "\
> > @@ -692,6 +696,16 @@ FILES_${PN}-xendomains += "\
> >     ${sysconfdir}/sysconfig/xendomains \
> >     ${systemd_unitdir}/system/xendomains.service \
> >     "
> > +FILES_${PN}-xen-access += "\
> > +    ${sbindir}/xen-access \
> > +    "
> > +
> > +FILES_${PN}-xen-memshare += "\
> > +    ${sbindir}/xen-memshare \
> > +    "
> > +
> > +# memshare is only built for x86, so allow empty package for other archs
> > +ALLOW_EMPTY_${PN}-xen-memshare = "1"
> >
> > INSANE_SKIP_${PN} = "already-stripped"
> >
> > diff --git a/recipes-extended/xen/xen-tools_4.14.bb b/recipes-extended/xen/xen-tools_4.14.bb
> > index 73a52bc..a79b41d 100644
> > --- a/recipes-extended/xen/xen-tools_4.14.bb
> > +++ b/recipes-extended/xen/xen-tools_4.14.bb
> > @@ -1,4 +1,4 @@
> > -SRCREV ?= "456957aaa1391e0dfa969e2dd97b87c51a79444e"
> > +SRCREV ?= "ad844aa352559a8b1f36e391a27d9d7dbddbdc36"
> >
> > XEN_REL ?= "4.14"
> > XEN_BRANCH ?= "stable-${XEN_REL}"
> > @@ -6,8 +6,6 @@ XEN_BRANCH ?= "stable-${XEN_REL}"
> > SRC_URI = " \
> >     git://xenbits.xen.org/xen.git;branch=${XEN_BRANCH} \
> >     file://0001-python-pygrub-pass-DISTUTILS-xen-4.14.patch \
> > -    file://0001-xen-build-temporarily-inhibit-Werror-4.14.patch \
> > -    file://0001-tools-xenpmd-Fix-gcc10-snprintf-warning.patch \
> >     "
> >
> > LIC_FILES_CHKSUM ?= "file://COPYING;md5=419739e325a50f3d7b4501338e44a4e5"
> > diff --git a/recipes-extended/xen/xen-tools_git.bb b/recipes-extended/xen/xen-tools_git.bb
> > index 1f6be1d..71850ee 100644
> > --- a/recipes-extended/xen/xen-tools_git.bb
> > +++ b/recipes-extended/xen/xen-tools_git.bb
> > @@ -1,13 +1,11 @@
> > -SRCREV ?= "8c4532f19d6925538fb0c938f7de9a97da8c5c3b"
> > +SRCREV ?= "9dc687f155a57216b83b17f9cde55dd43e06b0cd"
> >
> > XEN_REL ?= "4.15"
> > XEN_BRANCH ?= "master"
> >
> > SRC_URI = " \
> >     git://xenbits.xen.org/xen.git;branch=${XEN_BRANCH} \
> > -    file://0001-python-pygrub-pass-DISTUTILS-xen-4.14.patch \
> > -    file://0001-xen-build-temporarily-inhibit-Werror-4.14.patch \
> > -    file://0001-tools-xenpmd-Fix-gcc10-snprintf-warning.patch \
> > +    file://0001-python-pygrub-pass-DISTUTILS-xen-4.15.patch \
> >     "
> >
> > LIC_FILES_CHKSUM ?= "file://COPYING;md5=419739e325a50f3d7b4501338e44a4e5"
> > diff --git a/recipes-extended/xen/xen_4.14.bb b/recipes-extended/xen/xen_4.14.bb
> > index 91e8988..653e3b6 100644
> > --- a/recipes-extended/xen/xen_4.14.bb
> > +++ b/recipes-extended/xen/xen_4.14.bb
> > @@ -1,4 +1,4 @@
> > -SRCREV ?= "456957aaa1391e0dfa969e2dd97b87c51a79444e"
> > +SRCREV ?= "ad844aa352559a8b1f36e391a27d9d7dbddbdc36"
> >
> > XEN_REL ?= "4.14"
> > XEN_BRANCH ?= "stable-${XEN_REL}"
> > diff --git a/recipes-extended/xen/xen_git.bb b/recipes-extended/xen/xen_git.bb
> > index 57791fc..2b62c5c 100644
> > --- a/recipes-extended/xen/xen_git.bb
> > +++ b/recipes-extended/xen/xen_git.bb
> > @@ -1,4 +1,4 @@
> > -SRCREV ?= "8c4532f19d6925538fb0c938f7de9a97da8c5c3b"
> > +SRCREV ?= "9dc687f155a57216b83b17f9cde55dd43e06b0cd"
> >
> > XEN_REL ?= "4.15"
> > XEN_BRANCH ?= "master"
> > --
> > 2.17.1
> >
> >
> > 
> >
>


-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [meta-virtualization] [PATCH] xen: Bump SRCREV to 4.14.1 and current master
  2021-03-04 18:15   ` Bruce Ashfield
@ 2021-03-05 10:29     ` Bertrand Marquis
  0 siblings, 0 replies; 9+ messages in thread
From: Bertrand Marquis @ 2021-03-05 10:29 UTC (permalink / raw)
  To: Bruce Ashfield; +Cc: meta-virtualization, nd

Hi Bruce,

> On 4 Mar 2021, at 18:15, Bruce Ashfield <bruce.ashfield@gmail.com> wrote:
> 
> On Thu, Mar 4, 2021 at 12:37 PM Bertrand Marquis
> <Bertrand.Marquis@arm.com> wrote:
>> 
>> Hi Bruce,
>> 
>>> On 18 Feb 2021, at 15:05, Bertrand Marquis via lists.yoctoproject.org <bertrand.marquis=arm.com@lists.yoctoproject.org> wrote:
>>> 
>>> This allows to remove some patches related to gcc 10 support which have
>>> now been merged in Xen.
>>> 
>>> Xen-tools is modified to include the latest tools installed with Xen:
>>> - a rename of the bash-completion,
>>> - a new xl example,
>>> - xen-access,
>>> - xen-memshare (only available on x86).
>>> 
>>> A new patch to fix python and pygrub is added as the makefiles have been
>>> deeply modified in 4.15 which require a new patch (but doing the same).
>>> 
>>> Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
>> 
>> This has now been reviewed by several persons.
>> 
>> When do you think you could check and maybe merge this ?
> 
> It's in the queue.
> 
> Christopher only gave me the thumbs up yesterday, so regardless of how
> long it has been on the list, it has only been 24 hours or so since it
> has gotten all reviews done.

Sorry my mail was just meant to be a friendly ping and not a criticism :-)

Thanks a lot for the merge.

Cheers
Bertrand

> 
> Bruce
> 
>> 
>> Cheers
>> Bertrand
>> 
>>> ---
>>> ...ython-pygrub-pass-DISTUTILS-xen-4.15.patch | 73 +++++++++++++++++++
>>> ...ls-xenpmd-Fix-gcc10-snprintf-warning.patch | 60 ---------------
>>> ...uild-temporarily-inhibit-Werror-4.14.patch | 26 -------
>>> recipes-extended/xen/xen-tools.inc            | 14 ++++
>>> recipes-extended/xen/xen-tools_4.14.bb        |  4 +-
>>> recipes-extended/xen/xen-tools_git.bb         |  6 +-
>>> recipes-extended/xen/xen_4.14.bb              |  2 +-
>>> recipes-extended/xen/xen_git.bb               |  2 +-
>>> 8 files changed, 92 insertions(+), 95 deletions(-)
>>> create mode 100644 recipes-extended/xen/files/0001-python-pygrub-pass-DISTUTILS-xen-4.15.patch
>>> delete mode 100644 recipes-extended/xen/files/0001-tools-xenpmd-Fix-gcc10-snprintf-warning.patch
>>> delete mode 100644 recipes-extended/xen/files/0001-xen-build-temporarily-inhibit-Werror-4.14.patch
>>> 
>>> diff --git a/recipes-extended/xen/files/0001-python-pygrub-pass-DISTUTILS-xen-4.15.patch b/recipes-extended/xen/files/0001-python-pygrub-pass-DISTUTILS-xen-4.15.patch
>>> new file mode 100644
>>> index 0000000..35cd9a8
>>> --- /dev/null
>>> +++ b/recipes-extended/xen/files/0001-python-pygrub-pass-DISTUTILS-xen-4.15.patch
>>> @@ -0,0 +1,73 @@
>>> +From 6db88791d923167f160afbcadeffad84a4cbdbc5 Mon Sep 17 00:00:00 2001
>>> +Message-Id: <6db88791d923167f160afbcadeffad84a4cbdbc5.1612262706.git.bertrand.marquis@arm.com>
>>> +From: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
>>> +Date: Fri, 19 Oct 2018 11:01:37 +0200
>>> +Subject: [PATCH] python,pygrub: pass DISTUTILS env vars as setup.py args
>>> +
>>> +Upstream-Status: Xen: Inappropriate [oe specific, python install issues]
>>> +
>>> +Allow to respect the target install dir (PYTHON_SITEPACKAGES_DIR)
>>> +as well as other parameters set by the OpenEmbedded build system.
>>> +This is especially useful when the target libdir is not the default one
>>> +(/usr/lib), but for example /usr/lib64.
>>> +
>>> +Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
>>> +
>>> +Forward-ported to Xen 4.12.0
>>> +Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
>>> +
>>> +Modified to support pygrub installation with python 3
>>> +Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
>>> +
>>> +Forward-ported to Xen 4.14.0
>>> +Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
>>> +
>>> +Forward-ported to Xen 4.15.0
>>> +Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
>>> +
>>> +---
>>> + tools/pygrub/Makefile | 7 +++++--
>>> + tools/python/Makefile | 2 +-
>>> + 2 files changed, 6 insertions(+), 3 deletions(-)
>>> +
>>> +diff --git a/tools/pygrub/Makefile b/tools/pygrub/Makefile
>>> +index 37b2146214..ffb9270065 100644
>>> +--- a/tools/pygrub/Makefile
>>> ++++ b/tools/pygrub/Makefile
>>> +@@ -10,7 +10,7 @@ INSTALL_LOG = build/installed_files.txt
>>> + all: build
>>> + .PHONY: build
>>> + build:
>>> +-    CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDSHARED="$(CC)" LDFLAGS="$(PY_LDFLAGS)" $(PYTHON) setup.py build
>>> ++    CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDSHARED="$(CC)" LDFLAGS="$(PY_LDFLAGS)" $(PYTHON) setup.py build $(DISTUTILS_BUILD_ARGS)
>>> +
>>> + .PHONY: install
>>> + install: all
>>> +@@ -18,7 +18,10 @@ install: all
>>> +     CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDSHARED="$(CC)" \
>>> +             LDFLAGS="$(PY_LDFLAGS)" $(PYTHON) setup.py install \
>>> +             --record $(INSTALL_LOG) $(PYTHON_PREFIX_ARG) \
>>> +-             --root="$(DESTDIR)" --install-scripts=$(LIBEXEC_BIN) --force
>>> ++             --root="$(DESTDIR)" --install-scripts=$(LIBEXEC_BIN) --force \
>>> ++             $(DISTUTILS_INSTALL_ARGS)
>>> ++    rm -f $(DESTDIR)/$(LIBEXEC_BIN)/pygrub
>>> ++    $(INSTALL_PYTHON_PROG) src/pygrub $(DESTDIR)/$(LIBEXEC_BIN)/pygrub
>>> +     set -e; if [ $(bindir) != $(LIBEXEC_BIN) -a \
>>> +                  "`readlink -f $(DESTDIR)/$(bindir)`" != \
>>> +                  "`readlink -f $(LIBEXEC_BIN)`" ]; then \
>>> +diff --git a/tools/python/Makefile b/tools/python/Makefile
>>> +index cc76423647..5cb11ae453 100644
>>> +--- a/tools/python/Makefile
>>> ++++ b/tools/python/Makefile
>>> +@@ -12,7 +12,7 @@ setup.py = CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDSHARED="$(CC)" LDFLAGS="$(PY_LDFLA
>>> +            SHLIB_libxenctrl="$(SHLIB_libxenctrl)" \
>>> +            SHLIB_libxenguest="$(SHLIB_libxenguest)" \
>>> +            SHLIB_libxenstore="$(SHLIB_libxenstore)" \
>>> +-           $(PYTHON) setup.py
>>> ++           $(PYTHON) setup.py $(DISTUTILS_BUILD_ARGS)
>>> +
>>> + .PHONY: build
>>> + build:
>>> +--
>>> +2.17.1
>>> +
>>> diff --git a/recipes-extended/xen/files/0001-tools-xenpmd-Fix-gcc10-snprintf-warning.patch b/recipes-extended/xen/files/0001-tools-xenpmd-Fix-gcc10-snprintf-warning.patch
>>> deleted file mode 100644
>>> index 0a136c9..0000000
>>> --- a/recipes-extended/xen/files/0001-tools-xenpmd-Fix-gcc10-snprintf-warning.patch
>>> +++ /dev/null
>>> @@ -1,60 +0,0 @@
>>> -From 0dfddb2116e3757f77a691a3fe335173088d69dc Mon Sep 17 00:00:00 2001
>>> -Message-Id: <0dfddb2116e3757f77a691a3fe335173088d69dc.1604734077.git.bertrand.marquis@arm.com>
>>> -From: Bertrand Marquis <bertrand.marquis@arm.com>
>>> -Date: Thu, 15 Oct 2020 10:16:09 +0100
>>> -Subject: [PATCH] tools/xenpmd: Fix gcc10 snprintf warning
>>> -
>>> -Add a check for snprintf return code and ignore the entry if we get an
>>> -error. This should in fact never happen and is more a trick to make gcc
>>> -happy and prevent compilation errors.
>>> -
>>> -This is solving the following gcc warning when compiling for arm32 host
>>> -platforms with optimization activated:
>>> -xenpmd.c:92:37: error: '%s' directive output may be truncated writing
>>> -between 4 and 2147483645 bytes into a region of size 271
>>> -[-Werror=format-truncation=]
>>> -
>>> -This is also solving the following Debian bug:
>>> -https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=970802
>>> -
>>> -Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
>>> -Acked-by: Wei Liu <wl@xen.org>
>>> ----
>>> -Upstream-status: Backport from 4.15
>>> ----
>>> - tools/xenpmd/xenpmd.c | 9 +++++++--
>>> - 1 file changed, 7 insertions(+), 2 deletions(-)
>>> -
>>> -diff --git a/tools/xenpmd/xenpmd.c b/tools/xenpmd/xenpmd.c
>>> -index 35fd1c931a..12b82cf43e 100644
>>> ---- a/tools/xenpmd/xenpmd.c
>>> -+++ b/tools/xenpmd/xenpmd.c
>>> -@@ -102,6 +102,7 @@ FILE *get_next_battery_file(DIR *battery_dir,
>>> -     FILE *file = 0;
>>> -     struct dirent *dir_entries;
>>> -     char file_name[284];
>>> -+    int ret;
>>> -
>>> -     do
>>> -     {
>>> -@@ -111,11 +112,15 @@ FILE *get_next_battery_file(DIR *battery_dir,
>>> -         if ( strlen(dir_entries->d_name) < 4 )
>>> -             continue;
>>> -         if ( battery_info_type == BIF )
>>> --            snprintf(file_name, sizeof(file_name), BATTERY_INFO_FILE_PATH,
>>> -+            ret = snprintf(file_name, sizeof(file_name), BATTERY_INFO_FILE_PATH,
>>> -                      dir_entries->d_name);
>>> -         else
>>> --            snprintf(file_name, sizeof(file_name), BATTERY_STATE_FILE_PATH,
>>> -+            ret = snprintf(file_name, sizeof(file_name), BATTERY_STATE_FILE_PATH,
>>> -                      dir_entries->d_name);
>>> -+        /* This should not happen but is needed to pass gcc checks */
>>> -+        if (ret < 0)
>>> -+            continue;
>>> -+        file_name[sizeof(file_name) - 1] = '\0';
>>> -         file = fopen(file_name, "r");
>>> -     } while ( !file );
>>> -
>>> ---
>>> -2.17.1
>>> -
>>> diff --git a/recipes-extended/xen/files/0001-xen-build-temporarily-inhibit-Werror-4.14.patch b/recipes-extended/xen/files/0001-xen-build-temporarily-inhibit-Werror-4.14.patch
>>> deleted file mode 100644
>>> index 0e0a3dc..0000000
>>> --- a/recipes-extended/xen/files/0001-xen-build-temporarily-inhibit-Werror-4.14.patch
>>> +++ /dev/null
>>> @@ -1,26 +0,0 @@
>>> -From 9cff3bf8425ccc593825fcde8ca5eaa32a43d04d Mon Sep 17 00:00:00 2001
>>> -From: Bruce Ashfield <bruce.ashfield@gmail.com>
>>> -Date: Thu, 18 Jun 2020 09:05:22 -0400
>>> -Subject: [PATCH] xen/build: temporarily inhibit Werror
>>> -
>>> -Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
>>> -Rebased on Xen 4.14:
>>> -Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
>>> ----
>>> - tools/libxl/Makefile | 2 +-
>>> - xen/Rules.mk         | 2 +-
>>> - 2 files changed, 2 insertions(+), 2 deletions(-)
>>> -
>>> -diff --git a/tools/libxl/Makefile b/tools/libxl/Makefile
>>> -index 6da342ed61..c67560e269 100644
>>> ---- a/tools/libxl/Makefile
>>> -+++ b/tools/libxl/Makefile
>>> -@@ -11,7 +11,7 @@ MINOR = 0
>>> - XLUMAJOR = 4.14
>>> - XLUMINOR = 0
>>> -
>>> --CFLAGS += -Werror -Wno-format-zero-length -Wmissing-declarations \
>>> -+CFLAGS += -Wno-format-zero-length -Wmissing-declarations \
>>> -     -Wno-declaration-after-statement -Wformat-nonliteral
>>> - CFLAGS += -I. -fPIC
>>> -
>>> diff --git a/recipes-extended/xen/xen-tools.inc b/recipes-extended/xen/xen-tools.inc
>>> index 0c69fec..722c503 100644
>>> --- a/recipes-extended/xen/xen-tools.inc
>>> +++ b/recipes-extended/xen/xen-tools.inc
>>> @@ -234,6 +234,8 @@ PACKAGES = " \
>>>    ${PN}-xl-examples \
>>>    ${PN}-xm \
>>>    ${PN}-xm-examples \
>>> +    ${PN}-xen-access \
>>> +    ${PN}-xen-memshare \
>>>    "
>>> 
>>> PROVIDES =+ " \
>>> @@ -633,6 +635,7 @@ FILES_${PN}-xen-watchdog = "\
>>> 
>>> FILES_${PN}-xl = "\
>>>    ${sysconfdir}/bash_completion.d/xl.sh \
>>> +    ${sysconfdir}/bash_completion.d/xl \
>>>    ${sysconfdir}/xen/xl.conf \
>>>    ${libdir}/xen/bin/libxl-save-helper \
>>>    ${sbindir}/xl \
>>> @@ -642,6 +645,7 @@ FILES_${PN}-xl = "\
>>> FILES_${PN}-xl-examples = "\
>>>    ${sysconfdir}/xen/xlexample.hvm \
>>>    ${sysconfdir}/xen/xlexample.pvlinux \
>>> +    ${sysconfdir}/xen/xlexample.pvhlinux \
>>>    "
>>> 
>>> FILES_${PN}-xm-examples = "\
>>> @@ -692,6 +696,16 @@ FILES_${PN}-xendomains += "\
>>>    ${sysconfdir}/sysconfig/xendomains \
>>>    ${systemd_unitdir}/system/xendomains.service \
>>>    "
>>> +FILES_${PN}-xen-access += "\
>>> +    ${sbindir}/xen-access \
>>> +    "
>>> +
>>> +FILES_${PN}-xen-memshare += "\
>>> +    ${sbindir}/xen-memshare \
>>> +    "
>>> +
>>> +# memshare is only built for x86, so allow empty package for other archs
>>> +ALLOW_EMPTY_${PN}-xen-memshare = "1"
>>> 
>>> INSANE_SKIP_${PN} = "already-stripped"
>>> 
>>> diff --git a/recipes-extended/xen/xen-tools_4.14.bb b/recipes-extended/xen/xen-tools_4.14.bb
>>> index 73a52bc..a79b41d 100644
>>> --- a/recipes-extended/xen/xen-tools_4.14.bb
>>> +++ b/recipes-extended/xen/xen-tools_4.14.bb
>>> @@ -1,4 +1,4 @@
>>> -SRCREV ?= "456957aaa1391e0dfa969e2dd97b87c51a79444e"
>>> +SRCREV ?= "ad844aa352559a8b1f36e391a27d9d7dbddbdc36"
>>> 
>>> XEN_REL ?= "4.14"
>>> XEN_BRANCH ?= "stable-${XEN_REL}"
>>> @@ -6,8 +6,6 @@ XEN_BRANCH ?= "stable-${XEN_REL}"
>>> SRC_URI = " \
>>>    git://xenbits.xen.org/xen.git;branch=${XEN_BRANCH} \
>>>    file://0001-python-pygrub-pass-DISTUTILS-xen-4.14.patch \
>>> -    file://0001-xen-build-temporarily-inhibit-Werror-4.14.patch \
>>> -    file://0001-tools-xenpmd-Fix-gcc10-snprintf-warning.patch \
>>>    "
>>> 
>>> LIC_FILES_CHKSUM ?= "file://COPYING;md5=419739e325a50f3d7b4501338e44a4e5"
>>> diff --git a/recipes-extended/xen/xen-tools_git.bb b/recipes-extended/xen/xen-tools_git.bb
>>> index 1f6be1d..71850ee 100644
>>> --- a/recipes-extended/xen/xen-tools_git.bb
>>> +++ b/recipes-extended/xen/xen-tools_git.bb
>>> @@ -1,13 +1,11 @@
>>> -SRCREV ?= "8c4532f19d6925538fb0c938f7de9a97da8c5c3b"
>>> +SRCREV ?= "9dc687f155a57216b83b17f9cde55dd43e06b0cd"
>>> 
>>> XEN_REL ?= "4.15"
>>> XEN_BRANCH ?= "master"
>>> 
>>> SRC_URI = " \
>>>    git://xenbits.xen.org/xen.git;branch=${XEN_BRANCH} \
>>> -    file://0001-python-pygrub-pass-DISTUTILS-xen-4.14.patch \
>>> -    file://0001-xen-build-temporarily-inhibit-Werror-4.14.patch \
>>> -    file://0001-tools-xenpmd-Fix-gcc10-snprintf-warning.patch \
>>> +    file://0001-python-pygrub-pass-DISTUTILS-xen-4.15.patch \
>>>    "
>>> 
>>> LIC_FILES_CHKSUM ?= "file://COPYING;md5=419739e325a50f3d7b4501338e44a4e5"
>>> diff --git a/recipes-extended/xen/xen_4.14.bb b/recipes-extended/xen/xen_4.14.bb
>>> index 91e8988..653e3b6 100644
>>> --- a/recipes-extended/xen/xen_4.14.bb
>>> +++ b/recipes-extended/xen/xen_4.14.bb
>>> @@ -1,4 +1,4 @@
>>> -SRCREV ?= "456957aaa1391e0dfa969e2dd97b87c51a79444e"
>>> +SRCREV ?= "ad844aa352559a8b1f36e391a27d9d7dbddbdc36"
>>> 
>>> XEN_REL ?= "4.14"
>>> XEN_BRANCH ?= "stable-${XEN_REL}"
>>> diff --git a/recipes-extended/xen/xen_git.bb b/recipes-extended/xen/xen_git.bb
>>> index 57791fc..2b62c5c 100644
>>> --- a/recipes-extended/xen/xen_git.bb
>>> +++ b/recipes-extended/xen/xen_git.bb
>>> @@ -1,4 +1,4 @@
>>> -SRCREV ?= "8c4532f19d6925538fb0c938f7de9a97da8c5c3b"
>>> +SRCREV ?= "9dc687f155a57216b83b17f9cde55dd43e06b0cd"
>>> 
>>> XEN_REL ?= "4.15"
>>> XEN_BRANCH ?= "master"
>>> --
>>> 2.17.1
>>> 
>>> 
>>> 
>>> 
>> 
> 
> 
> -- 
> - Thou shalt not follow the NULL pointer, for chaos and madness await
> thee at its end
> - "Use the force Harry" - Gandalf, Star Trek II


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [meta-virtualization] [PATCH] xen: Bump SRCREV to 4.14.1 and current master
  2021-02-18 15:05 Bertrand Marquis
  2021-02-18 15:19 ` [meta-virtualization] " Diego Sueiro
@ 2021-03-05  3:44 ` Bruce Ashfield
  1 sibling, 0 replies; 9+ messages in thread
From: Bruce Ashfield @ 2021-03-05  3:44 UTC (permalink / raw)
  To: Bertrand Marquis; +Cc: meta-virtualization, nd

Merged to master and gatesgarth

Bruce

On Thu, Feb 18, 2021 at 10:05 AM Bertrand Marquis
<bertrand.marquis@arm.com> wrote:
>
> Bump SRCREV version of xen recipes to use the latest 4.14 release
> (4.14.1) and the current status of master.
>
> This allows to remove some patches related to gcc 10 support which have
> now been merged in Xen.
>
> Xen-tools is modified to include the latest tools installed with Xen:
> - a rename of the bash-completion,
> - a new xl example,
> - xen-access,
> - xen-memshare (only available on x86).
>
> A new patch to fix python and pygrub is added as the makefiles have been
> deeply modified in 4.15 which require a new patch (but doing the same).
>
> Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
> ---
>  ...ython-pygrub-pass-DISTUTILS-xen-4.15.patch | 73 +++++++++++++++++++
>  ...ls-xenpmd-Fix-gcc10-snprintf-warning.patch | 60 ---------------
>  ...uild-temporarily-inhibit-Werror-4.14.patch | 26 -------
>  recipes-extended/xen/xen-tools.inc            | 14 ++++
>  recipes-extended/xen/xen-tools_4.14.bb        |  4 +-
>  recipes-extended/xen/xen-tools_git.bb         |  6 +-
>  recipes-extended/xen/xen_4.14.bb              |  2 +-
>  recipes-extended/xen/xen_git.bb               |  2 +-
>  8 files changed, 92 insertions(+), 95 deletions(-)
>  create mode 100644 recipes-extended/xen/files/0001-python-pygrub-pass-DISTUTILS-xen-4.15.patch
>  delete mode 100644 recipes-extended/xen/files/0001-tools-xenpmd-Fix-gcc10-snprintf-warning.patch
>  delete mode 100644 recipes-extended/xen/files/0001-xen-build-temporarily-inhibit-Werror-4.14.patch
>
> diff --git a/recipes-extended/xen/files/0001-python-pygrub-pass-DISTUTILS-xen-4.15.patch b/recipes-extended/xen/files/0001-python-pygrub-pass-DISTUTILS-xen-4.15.patch
> new file mode 100644
> index 0000000..35cd9a8
> --- /dev/null
> +++ b/recipes-extended/xen/files/0001-python-pygrub-pass-DISTUTILS-xen-4.15.patch
> @@ -0,0 +1,73 @@
> +From 6db88791d923167f160afbcadeffad84a4cbdbc5 Mon Sep 17 00:00:00 2001
> +Message-Id: <6db88791d923167f160afbcadeffad84a4cbdbc5.1612262706.git.bertrand.marquis@arm.com>
> +From: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
> +Date: Fri, 19 Oct 2018 11:01:37 +0200
> +Subject: [PATCH] python,pygrub: pass DISTUTILS env vars as setup.py args
> +
> +Upstream-Status: Xen: Inappropriate [oe specific, python install issues]
> +
> +Allow to respect the target install dir (PYTHON_SITEPACKAGES_DIR)
> +as well as other parameters set by the OpenEmbedded build system.
> +This is especially useful when the target libdir is not the default one
> +(/usr/lib), but for example /usr/lib64.
> +
> +Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
> +
> +Forward-ported to Xen 4.12.0
> +Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
> +
> +Modified to support pygrub installation with python 3
> +Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
> +
> +Forward-ported to Xen 4.14.0
> +Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
> +
> +Forward-ported to Xen 4.15.0
> +Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
> +
> +---
> + tools/pygrub/Makefile | 7 +++++--
> + tools/python/Makefile | 2 +-
> + 2 files changed, 6 insertions(+), 3 deletions(-)
> +
> +diff --git a/tools/pygrub/Makefile b/tools/pygrub/Makefile
> +index 37b2146214..ffb9270065 100644
> +--- a/tools/pygrub/Makefile
> ++++ b/tools/pygrub/Makefile
> +@@ -10,7 +10,7 @@ INSTALL_LOG = build/installed_files.txt
> + all: build
> + .PHONY: build
> + build:
> +-      CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDSHARED="$(CC)" LDFLAGS="$(PY_LDFLAGS)" $(PYTHON) setup.py build
> ++      CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDSHARED="$(CC)" LDFLAGS="$(PY_LDFLAGS)" $(PYTHON) setup.py build $(DISTUTILS_BUILD_ARGS)
> +
> + .PHONY: install
> + install: all
> +@@ -18,7 +18,10 @@ install: all
> +       CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDSHARED="$(CC)" \
> +               LDFLAGS="$(PY_LDFLAGS)" $(PYTHON) setup.py install \
> +               --record $(INSTALL_LOG) $(PYTHON_PREFIX_ARG) \
> +-               --root="$(DESTDIR)" --install-scripts=$(LIBEXEC_BIN) --force
> ++               --root="$(DESTDIR)" --install-scripts=$(LIBEXEC_BIN) --force \
> ++               $(DISTUTILS_INSTALL_ARGS)
> ++      rm -f $(DESTDIR)/$(LIBEXEC_BIN)/pygrub
> ++      $(INSTALL_PYTHON_PROG) src/pygrub $(DESTDIR)/$(LIBEXEC_BIN)/pygrub
> +       set -e; if [ $(bindir) != $(LIBEXEC_BIN) -a \
> +                    "`readlink -f $(DESTDIR)/$(bindir)`" != \
> +                    "`readlink -f $(LIBEXEC_BIN)`" ]; then \
> +diff --git a/tools/python/Makefile b/tools/python/Makefile
> +index cc76423647..5cb11ae453 100644
> +--- a/tools/python/Makefile
> ++++ b/tools/python/Makefile
> +@@ -12,7 +12,7 @@ setup.py = CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDSHARED="$(CC)" LDFLAGS="$(PY_LDFLA
> +            SHLIB_libxenctrl="$(SHLIB_libxenctrl)" \
> +            SHLIB_libxenguest="$(SHLIB_libxenguest)" \
> +            SHLIB_libxenstore="$(SHLIB_libxenstore)" \
> +-           $(PYTHON) setup.py
> ++           $(PYTHON) setup.py $(DISTUTILS_BUILD_ARGS)
> +
> + .PHONY: build
> + build:
> +--
> +2.17.1
> +
> diff --git a/recipes-extended/xen/files/0001-tools-xenpmd-Fix-gcc10-snprintf-warning.patch b/recipes-extended/xen/files/0001-tools-xenpmd-Fix-gcc10-snprintf-warning.patch
> deleted file mode 100644
> index 0a136c9..0000000
> --- a/recipes-extended/xen/files/0001-tools-xenpmd-Fix-gcc10-snprintf-warning.patch
> +++ /dev/null
> @@ -1,60 +0,0 @@
> -From 0dfddb2116e3757f77a691a3fe335173088d69dc Mon Sep 17 00:00:00 2001
> -Message-Id: <0dfddb2116e3757f77a691a3fe335173088d69dc.1604734077.git.bertrand.marquis@arm.com>
> -From: Bertrand Marquis <bertrand.marquis@arm.com>
> -Date: Thu, 15 Oct 2020 10:16:09 +0100
> -Subject: [PATCH] tools/xenpmd: Fix gcc10 snprintf warning
> -
> -Add a check for snprintf return code and ignore the entry if we get an
> -error. This should in fact never happen and is more a trick to make gcc
> -happy and prevent compilation errors.
> -
> -This is solving the following gcc warning when compiling for arm32 host
> -platforms with optimization activated:
> -xenpmd.c:92:37: error: '%s' directive output may be truncated writing
> -between 4 and 2147483645 bytes into a region of size 271
> -[-Werror=format-truncation=]
> -
> -This is also solving the following Debian bug:
> -https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=970802
> -
> -Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
> -Acked-by: Wei Liu <wl@xen.org>
> ----
> -Upstream-status: Backport from 4.15
> ----
> - tools/xenpmd/xenpmd.c | 9 +++++++--
> - 1 file changed, 7 insertions(+), 2 deletions(-)
> -
> -diff --git a/tools/xenpmd/xenpmd.c b/tools/xenpmd/xenpmd.c
> -index 35fd1c931a..12b82cf43e 100644
> ---- a/tools/xenpmd/xenpmd.c
> -+++ b/tools/xenpmd/xenpmd.c
> -@@ -102,6 +102,7 @@ FILE *get_next_battery_file(DIR *battery_dir,
> -     FILE *file = 0;
> -     struct dirent *dir_entries;
> -     char file_name[284];
> -+    int ret;
> -
> -     do
> -     {
> -@@ -111,11 +112,15 @@ FILE *get_next_battery_file(DIR *battery_dir,
> -         if ( strlen(dir_entries->d_name) < 4 )
> -             continue;
> -         if ( battery_info_type == BIF )
> --            snprintf(file_name, sizeof(file_name), BATTERY_INFO_FILE_PATH,
> -+            ret = snprintf(file_name, sizeof(file_name), BATTERY_INFO_FILE_PATH,
> -                      dir_entries->d_name);
> -         else
> --            snprintf(file_name, sizeof(file_name), BATTERY_STATE_FILE_PATH,
> -+            ret = snprintf(file_name, sizeof(file_name), BATTERY_STATE_FILE_PATH,
> -                      dir_entries->d_name);
> -+        /* This should not happen but is needed to pass gcc checks */
> -+        if (ret < 0)
> -+            continue;
> -+        file_name[sizeof(file_name) - 1] = '\0';
> -         file = fopen(file_name, "r");
> -     } while ( !file );
> -
> ---
> -2.17.1
> -
> diff --git a/recipes-extended/xen/files/0001-xen-build-temporarily-inhibit-Werror-4.14.patch b/recipes-extended/xen/files/0001-xen-build-temporarily-inhibit-Werror-4.14.patch
> deleted file mode 100644
> index 0e0a3dc..0000000
> --- a/recipes-extended/xen/files/0001-xen-build-temporarily-inhibit-Werror-4.14.patch
> +++ /dev/null
> @@ -1,26 +0,0 @@
> -From 9cff3bf8425ccc593825fcde8ca5eaa32a43d04d Mon Sep 17 00:00:00 2001
> -From: Bruce Ashfield <bruce.ashfield@gmail.com>
> -Date: Thu, 18 Jun 2020 09:05:22 -0400
> -Subject: [PATCH] xen/build: temporarily inhibit Werror
> -
> -Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
> -Rebased on Xen 4.14:
> -Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
> ----
> - tools/libxl/Makefile | 2 +-
> - xen/Rules.mk         | 2 +-
> - 2 files changed, 2 insertions(+), 2 deletions(-)
> -
> -diff --git a/tools/libxl/Makefile b/tools/libxl/Makefile
> -index 6da342ed61..c67560e269 100644
> ---- a/tools/libxl/Makefile
> -+++ b/tools/libxl/Makefile
> -@@ -11,7 +11,7 @@ MINOR = 0
> - XLUMAJOR = 4.14
> - XLUMINOR = 0
> -
> --CFLAGS += -Werror -Wno-format-zero-length -Wmissing-declarations \
> -+CFLAGS += -Wno-format-zero-length -Wmissing-declarations \
> -       -Wno-declaration-after-statement -Wformat-nonliteral
> - CFLAGS += -I. -fPIC
> -
> diff --git a/recipes-extended/xen/xen-tools.inc b/recipes-extended/xen/xen-tools.inc
> index 0c69fec..722c503 100644
> --- a/recipes-extended/xen/xen-tools.inc
> +++ b/recipes-extended/xen/xen-tools.inc
> @@ -234,6 +234,8 @@ PACKAGES = " \
>      ${PN}-xl-examples \
>      ${PN}-xm \
>      ${PN}-xm-examples \
> +    ${PN}-xen-access \
> +    ${PN}-xen-memshare \
>      "
>
>  PROVIDES =+ " \
> @@ -633,6 +635,7 @@ FILES_${PN}-xen-watchdog = "\
>
>  FILES_${PN}-xl = "\
>      ${sysconfdir}/bash_completion.d/xl.sh \
> +    ${sysconfdir}/bash_completion.d/xl \
>      ${sysconfdir}/xen/xl.conf \
>      ${libdir}/xen/bin/libxl-save-helper \
>      ${sbindir}/xl \
> @@ -642,6 +645,7 @@ FILES_${PN}-xl = "\
>  FILES_${PN}-xl-examples = "\
>      ${sysconfdir}/xen/xlexample.hvm \
>      ${sysconfdir}/xen/xlexample.pvlinux \
> +    ${sysconfdir}/xen/xlexample.pvhlinux \
>      "
>
>  FILES_${PN}-xm-examples = "\
> @@ -692,6 +696,16 @@ FILES_${PN}-xendomains += "\
>      ${sysconfdir}/sysconfig/xendomains \
>      ${systemd_unitdir}/system/xendomains.service \
>      "
> +FILES_${PN}-xen-access += "\
> +    ${sbindir}/xen-access \
> +    "
> +
> +FILES_${PN}-xen-memshare += "\
> +    ${sbindir}/xen-memshare \
> +    "
> +
> +# memshare is only built for x86, so allow empty package for other archs
> +ALLOW_EMPTY_${PN}-xen-memshare = "1"
>
>  INSANE_SKIP_${PN} = "already-stripped"
>
> diff --git a/recipes-extended/xen/xen-tools_4.14.bb b/recipes-extended/xen/xen-tools_4.14.bb
> index 73a52bc..a79b41d 100644
> --- a/recipes-extended/xen/xen-tools_4.14.bb
> +++ b/recipes-extended/xen/xen-tools_4.14.bb
> @@ -1,4 +1,4 @@
> -SRCREV ?= "456957aaa1391e0dfa969e2dd97b87c51a79444e"
> +SRCREV ?= "ad844aa352559a8b1f36e391a27d9d7dbddbdc36"
>
>  XEN_REL ?= "4.14"
>  XEN_BRANCH ?= "stable-${XEN_REL}"
> @@ -6,8 +6,6 @@ XEN_BRANCH ?= "stable-${XEN_REL}"
>  SRC_URI = " \
>      git://xenbits.xen.org/xen.git;branch=${XEN_BRANCH} \
>      file://0001-python-pygrub-pass-DISTUTILS-xen-4.14.patch \
> -    file://0001-xen-build-temporarily-inhibit-Werror-4.14.patch \
> -    file://0001-tools-xenpmd-Fix-gcc10-snprintf-warning.patch \
>      "
>
>  LIC_FILES_CHKSUM ?= "file://COPYING;md5=419739e325a50f3d7b4501338e44a4e5"
> diff --git a/recipes-extended/xen/xen-tools_git.bb b/recipes-extended/xen/xen-tools_git.bb
> index 1f6be1d..71850ee 100644
> --- a/recipes-extended/xen/xen-tools_git.bb
> +++ b/recipes-extended/xen/xen-tools_git.bb
> @@ -1,13 +1,11 @@
> -SRCREV ?= "8c4532f19d6925538fb0c938f7de9a97da8c5c3b"
> +SRCREV ?= "9dc687f155a57216b83b17f9cde55dd43e06b0cd"
>
>  XEN_REL ?= "4.15"
>  XEN_BRANCH ?= "master"
>
>  SRC_URI = " \
>      git://xenbits.xen.org/xen.git;branch=${XEN_BRANCH} \
> -    file://0001-python-pygrub-pass-DISTUTILS-xen-4.14.patch \
> -    file://0001-xen-build-temporarily-inhibit-Werror-4.14.patch \
> -    file://0001-tools-xenpmd-Fix-gcc10-snprintf-warning.patch \
> +    file://0001-python-pygrub-pass-DISTUTILS-xen-4.15.patch \
>      "
>
>  LIC_FILES_CHKSUM ?= "file://COPYING;md5=419739e325a50f3d7b4501338e44a4e5"
> diff --git a/recipes-extended/xen/xen_4.14.bb b/recipes-extended/xen/xen_4.14.bb
> index 91e8988..653e3b6 100644
> --- a/recipes-extended/xen/xen_4.14.bb
> +++ b/recipes-extended/xen/xen_4.14.bb
> @@ -1,4 +1,4 @@
> -SRCREV ?= "456957aaa1391e0dfa969e2dd97b87c51a79444e"
> +SRCREV ?= "ad844aa352559a8b1f36e391a27d9d7dbddbdc36"
>
>  XEN_REL ?= "4.14"
>  XEN_BRANCH ?= "stable-${XEN_REL}"
> diff --git a/recipes-extended/xen/xen_git.bb b/recipes-extended/xen/xen_git.bb
> index 57791fc..2b62c5c 100644
> --- a/recipes-extended/xen/xen_git.bb
> +++ b/recipes-extended/xen/xen_git.bb
> @@ -1,4 +1,4 @@
> -SRCREV ?= "8c4532f19d6925538fb0c938f7de9a97da8c5c3b"
> +SRCREV ?= "9dc687f155a57216b83b17f9cde55dd43e06b0cd"
>
>  XEN_REL ?= "4.15"
>  XEN_BRANCH ?= "master"
> --
> 2.17.1
>
>
> 
>


-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [meta-virtualization] [PATCH] xen: Bump SRCREV to 4.14.1 and current master
  2021-03-02 10:27     ` Bertrand Marquis
@ 2021-03-02 19:45       ` Christopher Clark
  0 siblings, 0 replies; 9+ messages in thread
From: Christopher Clark @ 2021-03-02 19:45 UTC (permalink / raw)
  To: Bertrand Marquis; +Cc: Bruce Ashfield, meta-virtualization, Diego Sueiro, nd

On Tue, Mar 2, 2021 at 2:27 AM Bertrand Marquis
<Bertrand.Marquis@arm.com> wrote:
>
> Hi Christopher,
>
> > On 2 Mar 2021, at 08:06, Christopher Clark via lists.yoctoproject.org <christopher.w.clark=gmail.com@lists.yoctoproject.org> wrote:
> >
> > On Thu, Feb 18, 2021 at 7:19 AM Diego Sueiro <diego.sueiro@arm.com> wrote:
> >>
> >>> -----Original Message-----
> >>> From: meta-virtualization@lists.yoctoproject.org <meta-
> >>> virtualization@lists.yoctoproject.org> On Behalf Of Bertrand Marquis via
> >>> lists.yoctoproject.org
> >>> Sent: 18 February 2021 15:05
> >>> To: meta-virtualization@lists.yoctoproject.org
> >>> Cc: nd <nd@arm.com>
> >>> Subject: [meta-virtualization] [PATCH] xen: Bump SRCREV to 4.14.1 and
> >>> current master
> >>>
> >>> Bump SRCREV version of xen recipes to use the latest 4.14 release
> >>> (4.14.1) and the current status of master.
> >>>
> >>> This allows to remove some patches related to gcc 10 support which have now
> >>> been merged in Xen.
> >>>
> >>> Xen-tools is modified to include the latest tools installed with Xen:
> >>> - a rename of the bash-completion,
> >>> - a new xl example,
> >>> - xen-access,
> >>> - xen-memshare (only available on x86).
> >>>
> >>> A new patch to fix python and pygrub is added as the makefiles have been
> >>> deeply modified in 4.15 which require a new patch (but doing the same).
> >>>
> >>> Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
> >>
> >> Reviewed-by: Diego Sueiro <diego.sueiro@arm.com>
> >
> > Reviewed-by: Christopher Clark <christopher.w.clark@gmail.com>
> >
> > Both the 4.14.1 and the git recipe versions build fine and the changes
> > here are good -- thanks. Some very minor style points noted below but
> > this should go in, please, Bruce.
>
> Thanks, i will send an update later this month once 4.15 version of xen is released and i will handle
> your remarks in when doing this.
>
> Could we also consider merging this in gatesgarth branch ?
> This would make sense to bump the minor version of xen there to i think.

Yes, I think so too.

thanks

Christopher


>
> Regards
> Bertrand
>
> >
> > thanks,
> >
> > Christopher
> >
> >>
> >>> ---
> >>> ...ython-pygrub-pass-DISTUTILS-xen-4.15.patch | 73
> >>> +++++++++++++++++++  ...ls-xenpmd-Fix-gcc10-snprintf-warning.patch | 60 ----
> >>> -----------  ...uild-temporarily-inhibit-Werror-4.14.patch | 26 -------
> >>> recipes-extended/xen/xen-tools.inc            | 14 ++++
> >>> recipes-extended/xen/xen-tools_4.14.bb        |  4 +-
> >>> recipes-extended/xen/xen-tools_git.bb         |  6 +-
> >>> recipes-extended/xen/xen_4.14.bb              |  2 +-
> >>> recipes-extended/xen/xen_git.bb               |  2 +-
> >>> 8 files changed, 92 insertions(+), 95 deletions(-)  create mode 100644 recipes-
> >>> extended/xen/files/0001-python-pygrub-pass-DISTUTILS-xen-4.15.patch
> >>> delete mode 100644 recipes-extended/xen/files/0001-tools-xenpmd-Fix-
> >>> gcc10-snprintf-warning.patch
> >>> delete mode 100644 recipes-extended/xen/files/0001-xen-build-temporarily-
> >>> inhibit-Werror-4.14.patch
> >>>
> >>> diff --git a/recipes-extended/xen/files/0001-python-pygrub-pass-DISTUTILS-
> >>> xen-4.15.patch b/recipes-extended/xen/files/0001-python-pygrub-pass-
> >>> DISTUTILS-xen-4.15.patch
> >>> new file mode 100644
> >>> index 0000000..35cd9a8
> >>> --- /dev/null
> >>> +++ b/recipes-extended/xen/files/0001-python-pygrub-pass-DISTUTILS-xen-4
> >>> +++ .15.patch
> >>> @@ -0,0 +1,73 @@
> >>> +From 6db88791d923167f160afbcadeffad84a4cbdbc5 Mon Sep 17 00:00:00
> >>> 2001
> >>> +Message-Id:
> >>> +<6db88791d923167f160afbcadeffad84a4cbdbc5.1612262706.git.bertrand.m
> >>> arqu
> >>> +is@arm.com>
> >>> +From: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
> >>> +Date: Fri, 19 Oct 2018 11:01:37 +0200
> >>> +Subject: [PATCH] python,pygrub: pass DISTUTILS env vars as setup.py
> >>> +args
> >>> +
> >>> +Upstream-Status: Xen: Inappropriate [oe specific, python install
> >>> +issues]
> >>> +
> >>> +Allow to respect the target install dir (PYTHON_SITEPACKAGES_DIR) as
> >>> +well as other parameters set by the OpenEmbedded build system.
> >>> +This is especially useful when the target libdir is not the default one
> >>> +(/usr/lib), but for example /usr/lib64.
> >>> +
> >>> +Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
> >>> +
> >>> +Forward-ported to Xen 4.12.0
> >>> +Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
> >>> +
> >>> +Modified to support pygrub installation with python 3
> >>> +Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
> >>> +
> >>> +Forward-ported to Xen 4.14.0
> >>> +Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
> >>> +
> >>> +Forward-ported to Xen 4.15.0
> >>> +Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
> >>> +
> >>> +---
> >>> + tools/pygrub/Makefile | 7 +++++--
> >>> + tools/python/Makefile | 2 +-
> >>> + 2 files changed, 6 insertions(+), 3 deletions(-)
> >>> +
> >>> +diff --git a/tools/pygrub/Makefile b/tools/pygrub/Makefile index
> >>> +37b2146214..ffb9270065 100644
> >>> +--- a/tools/pygrub/Makefile
> >>> ++++ b/tools/pygrub/Makefile
> >>> +@@ -10,7 +10,7 @@ INSTALL_LOG = build/installed_files.txt
> >>> + all: build
> >>> + .PHONY: build
> >>> + build:
> >>> +-     CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDSHARED="$(CC)"
> >>> LDFLAGS="$(PY_LDFLAGS)" $(PYTHON) setup.py build
> >>> ++     CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDSHARED="$(CC)"
> >>> ++LDFLAGS="$(PY_LDFLAGS)" $(PYTHON) setup.py build
> >>> ++$(DISTUTILS_BUILD_ARGS)
> >>> +
> >>> + .PHONY: install
> >>> + install: all
> >>> +@@ -18,7 +18,10 @@ install: all
> >>> +      CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDSHARED="$(CC)" \
> >>> +              LDFLAGS="$(PY_LDFLAGS)" $(PYTHON) setup.py install \
> >>> +              --record $(INSTALL_LOG) $(PYTHON_PREFIX_ARG) \
> >>> +-              --root="$(DESTDIR)" --install-scripts=$(LIBEXEC_BIN) --force
> >>> ++              --root="$(DESTDIR)" --install-scripts=$(LIBEXEC_BIN) --force \
> >>> ++              $(DISTUTILS_INSTALL_ARGS)
> >>> ++     rm -f $(DESTDIR)/$(LIBEXEC_BIN)/pygrub
> >>> ++     $(INSTALL_PYTHON_PROG) src/pygrub
> >>> $(DESTDIR)/$(LIBEXEC_BIN)/pygrub
> >>> +      set -e; if [ $(bindir) != $(LIBEXEC_BIN) -a \
> >>> +                   "`readlink -f $(DESTDIR)/$(bindir)`" != \
> >>> +                   "`readlink -f $(LIBEXEC_BIN)`" ]; then \ diff --git
> >>> +a/tools/python/Makefile b/tools/python/Makefile index
> >>> +cc76423647..5cb11ae453 100644
> >>> +--- a/tools/python/Makefile
> >>> ++++ b/tools/python/Makefile
> >>> +@@ -12,7 +12,7 @@ setup.py = CC="$(CC)" CFLAGS="$(PY_CFLAGS)"
> >>> LDSHARED="$(CC)" LDFLAGS="$(PY_LDFLA
> >>> +            SHLIB_libxenctrl="$(SHLIB_libxenctrl)" \
> >>> +            SHLIB_libxenguest="$(SHLIB_libxenguest)" \
> >>> +            SHLIB_libxenstore="$(SHLIB_libxenstore)" \
> >>> +-           $(PYTHON) setup.py
> >>> ++           $(PYTHON) setup.py $(DISTUTILS_BUILD_ARGS)
> >>> +
> >>> + .PHONY: build
> >>> + build:
> >>> +--
> >>> +2.17.1
> >>> +
> >>> diff --git a/recipes-extended/xen/files/0001-tools-xenpmd-Fix-gcc10-snprintf-
> >>> warning.patch b/recipes-extended/xen/files/0001-tools-xenpmd-Fix-gcc10-
> >>> snprintf-warning.patch
> >>> deleted file mode 100644
> >>> index 0a136c9..0000000
> >>> --- a/recipes-extended/xen/files/0001-tools-xenpmd-Fix-gcc10-snprintf-
> >>> warning.patch
> >>> +++ /dev/null
> >>> @@ -1,60 +0,0 @@
> >>> -From 0dfddb2116e3757f77a691a3fe335173088d69dc Mon Sep 17 00:00:00
> >>> 2001
> >>> -Message-Id:
> >>> <0dfddb2116e3757f77a691a3fe335173088d69dc.1604734077.git.bertrand.m
> >>> arquis@arm.com>
> >>> -From: Bertrand Marquis <bertrand.marquis@arm.com>
> >>> -Date: Thu, 15 Oct 2020 10:16:09 +0100
> >>> -Subject: [PATCH] tools/xenpmd: Fix gcc10 snprintf warning
> >>> -
> >>> -Add a check for snprintf return code and ignore the entry if we get an -error.
> >>> This should in fact never happen and is more a trick to make gcc -happy and
> >>> prevent compilation errors.
> >>> -
> >>> -This is solving the following gcc warning when compiling for arm32 host -
> >>> platforms with optimization activated:
> >>> -xenpmd.c:92:37: error: '%s' directive output may be truncated writing -
> >>> between 4 and 2147483645 bytes into a region of size 271 -[-Werror=format-
> >>> truncation=]
> >>> -
> >>> -This is also solving the following Debian bug:
> >>> -https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=970802
> >>> -
> >>> -Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
> >>> -Acked-by: Wei Liu <wl@xen.org>
> >>> ----
> >>> -Upstream-status: Backport from 4.15
> >>> ----
> >>> - tools/xenpmd/xenpmd.c | 9 +++++++--
> >>> - 1 file changed, 7 insertions(+), 2 deletions(-)
> >>> -
> >>> -diff --git a/tools/xenpmd/xenpmd.c b/tools/xenpmd/xenpmd.c -index
> >>> 35fd1c931a..12b82cf43e 100644
> >>> ---- a/tools/xenpmd/xenpmd.c
> >>> -+++ b/tools/xenpmd/xenpmd.c
> >>> -@@ -102,6 +102,7 @@ FILE *get_next_battery_file(DIR *battery_dir,
> >>> -     FILE *file = 0;
> >>> -     struct dirent *dir_entries;
> >>> -     char file_name[284];
> >>> -+    int ret;
> >>> -
> >>> -     do
> >>> -     {
> >>> -@@ -111,11 +112,15 @@ FILE *get_next_battery_file(DIR *battery_dir,
> >>> -         if ( strlen(dir_entries->d_name) < 4 )
> >>> -             continue;
> >>> -         if ( battery_info_type == BIF )
> >>> --            snprintf(file_name, sizeof(file_name), BATTERY_INFO_FILE_PATH,
> >>> -+            ret = snprintf(file_name, sizeof(file_name),
> >>> -+ BATTERY_INFO_FILE_PATH,
> >>> -                      dir_entries->d_name);
> >>> -         else
> >>> --            snprintf(file_name, sizeof(file_name), BATTERY_STATE_FILE_PATH,
> >>> -+            ret = snprintf(file_name, sizeof(file_name),
> >>> -+ BATTERY_STATE_FILE_PATH,
> >>> -                      dir_entries->d_name);
> >>> -+        /* This should not happen but is needed to pass gcc checks */
> >>> -+        if (ret < 0)
> >>> -+            continue;
> >>> -+        file_name[sizeof(file_name) - 1] = '\0';
> >>> -         file = fopen(file_name, "r");
> >>> -     } while ( !file );
> >>> -
> >>> ---
> >>> -2.17.1
> >>> -
> >>> diff --git a/recipes-extended/xen/files/0001-xen-build-temporarily-inhibit-
> >>> Werror-4.14.patch b/recipes-extended/xen/files/0001-xen-build-temporarily-
> >>> inhibit-Werror-4.14.patch
> >>> deleted file mode 100644
> >>> index 0e0a3dc..0000000
> >>> --- a/recipes-extended/xen/files/0001-xen-build-temporarily-inhibit-Werror-
> >>> 4.14.patch
> >>> +++ /dev/null
> >>> @@ -1,26 +0,0 @@
> >>> -From 9cff3bf8425ccc593825fcde8ca5eaa32a43d04d Mon Sep 17 00:00:00
> >>> 2001
> >>> -From: Bruce Ashfield <bruce.ashfield@gmail.com>
> >>> -Date: Thu, 18 Jun 2020 09:05:22 -0400
> >>> -Subject: [PATCH] xen/build: temporarily inhibit Werror
> >>> -
> >>> -Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> -Rebased on Xen
> >>> 4.14:
> >>> -Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
> >>> ----
> >>> - tools/libxl/Makefile | 2 +-
> >>> - xen/Rules.mk         | 2 +-
> >>> - 2 files changed, 2 insertions(+), 2 deletions(-)
> >>> -
> >>> -diff --git a/tools/libxl/Makefile b/tools/libxl/Makefile -index
> >>> 6da342ed61..c67560e269 100644
> >>> ---- a/tools/libxl/Makefile
> >>> -+++ b/tools/libxl/Makefile
> >>> -@@ -11,7 +11,7 @@ MINOR = 0
> >>> - XLUMAJOR = 4.14
> >>> - XLUMINOR = 0
> >>> -
> >>> --CFLAGS += -Werror -Wno-format-zero-length -Wmissing-declarations \
> >>> -+CFLAGS += -Wno-format-zero-length -Wmissing-declarations \
> >>> -      -Wno-declaration-after-statement -Wformat-nonliteral
> >>> - CFLAGS += -I. -fPIC
> >>> -
> >>> diff --git a/recipes-extended/xen/xen-tools.inc b/recipes-extended/xen/xen-
> >>> tools.inc
> >>> index 0c69fec..722c503 100644
> >>> --- a/recipes-extended/xen/xen-tools.inc
> >>> +++ b/recipes-extended/xen/xen-tools.inc
> >>> @@ -234,6 +234,8 @@ PACKAGES = " \
> >>>    ${PN}-xl-examples \
> >>>    ${PN}-xm \
> >>>    ${PN}-xm-examples \
> >>> +    ${PN}-xen-access \
> >>> +    ${PN}-xen-memshare \
> >>>    "
> >>>
> >>> PROVIDES =+ " \
> >>> @@ -633,6 +635,7 @@ FILES_${PN}-xen-watchdog = "\
> >>>
> >>> FILES_${PN}-xl = "\
> >>>    ${sysconfdir}/bash_completion.d/xl.sh \
> >>> +    ${sysconfdir}/bash_completion.d/xl \
> >>>    ${sysconfdir}/xen/xl.conf \
> >>>    ${libdir}/xen/bin/libxl-save-helper \
> >>>    ${sbindir}/xl \
> >>> @@ -642,6 +645,7 @@ FILES_${PN}-xl = "\
> >>> FILES_${PN}-xl-examples = "\
> >>>    ${sysconfdir}/xen/xlexample.hvm \
> >>>    ${sysconfdir}/xen/xlexample.pvlinux \
> >>> +    ${sysconfdir}/xen/xlexample.pvhlinux \
> >>>    "
> >>>
> >>> FILES_${PN}-xm-examples = "\
> >>> @@ -692,6 +696,16 @@ FILES_${PN}-xendomains += "\
> >>>    ${sysconfdir}/sysconfig/xendomains \
> >>>    ${systemd_unitdir}/system/xendomains.service \
> >>>    "
> >
> > A newline should go here but it can be added later - no point holding
> > this back for it.
> >
> >>> +FILES_${PN}-xen-access += "\
> >>> +    ${sbindir}/xen-access \
> >>> +    "
> >>> +
> >>> +FILES_${PN}-xen-memshare += "\
> >>> +    ${sbindir}/xen-memshare \
> >>> +    "
> >
> > I would suggest using just '=' instead of '+=' for future additions
> > like these, but since there are already other instances of using '+='
> > in this file, I think it's ok for this to go in as is.
> >
> >>> +
> >>> +# memshare is only built for x86, so allow empty package for other
> >>> +archs ALLOW_EMPTY_${PN}-xen-memshare = "1"
> >>>
> >>> INSANE_SKIP_${PN} = "already-stripped"
> >>>
> >>> diff --git a/recipes-extended/xen/xen-tools_4.14.bb b/recipes-
> >>> extended/xen/xen-tools_4.14.bb
> >>> index 73a52bc..a79b41d 100644
> >>> --- a/recipes-extended/xen/xen-tools_4.14.bb
> >>> +++ b/recipes-extended/xen/xen-tools_4.14.bb
> >>> @@ -1,4 +1,4 @@
> >>> -SRCREV ?= "456957aaa1391e0dfa969e2dd97b87c51a79444e"
> >>> +SRCREV ?= "ad844aa352559a8b1f36e391a27d9d7dbddbdc36"
> >>>
> >>> XEN_REL ?= "4.14"
> >>> XEN_BRANCH ?= "stable-${XEN_REL}"
> >>> @@ -6,8 +6,6 @@ XEN_BRANCH ?= "stable-${XEN_REL}"
> >>> SRC_URI = " \
> >>>    git://xenbits.xen.org/xen.git;branch=${XEN_BRANCH} \
> >>>    file://0001-python-pygrub-pass-DISTUTILS-xen-4.14.patch \
> >>> -    file://0001-xen-build-temporarily-inhibit-Werror-4.14.patch \
> >>> -    file://0001-tools-xenpmd-Fix-gcc10-snprintf-warning.patch \
> >>>    "
> >>>
> >>> LIC_FILES_CHKSUM ?=
> >>> "file://COPYING;md5=419739e325a50f3d7b4501338e44a4e5"
> >>> diff --git a/recipes-extended/xen/xen-tools_git.bb b/recipes-
> >>> extended/xen/xen-tools_git.bb
> >>> index 1f6be1d..71850ee 100644
> >>> --- a/recipes-extended/xen/xen-tools_git.bb
> >>> +++ b/recipes-extended/xen/xen-tools_git.bb
> >>> @@ -1,13 +1,11 @@
> >>> -SRCREV ?= "8c4532f19d6925538fb0c938f7de9a97da8c5c3b"
> >>> +SRCREV ?= "9dc687f155a57216b83b17f9cde55dd43e06b0cd"
> >>>
> >>> XEN_REL ?= "4.15"
> >>> XEN_BRANCH ?= "master"
> >>>
> >>> SRC_URI = " \
> >>>    git://xenbits.xen.org/xen.git;branch=${XEN_BRANCH} \
> >>> -    file://0001-python-pygrub-pass-DISTUTILS-xen-4.14.patch \
> >>> -    file://0001-xen-build-temporarily-inhibit-Werror-4.14.patch \
> >>> -    file://0001-tools-xenpmd-Fix-gcc10-snprintf-warning.patch \
> >>> +    file://0001-python-pygrub-pass-DISTUTILS-xen-4.15.patch \
> >>>    "
> >>>
> >>> LIC_FILES_CHKSUM ?=
> >>> "file://COPYING;md5=419739e325a50f3d7b4501338e44a4e5"
> >>> diff --git a/recipes-extended/xen/xen_4.14.bb b/recipes-
> >>> extended/xen/xen_4.14.bb
> >>> index 91e8988..653e3b6 100644
> >>> --- a/recipes-extended/xen/xen_4.14.bb
> >>> +++ b/recipes-extended/xen/xen_4.14.bb
> >>> @@ -1,4 +1,4 @@
> >>> -SRCREV ?= "456957aaa1391e0dfa969e2dd97b87c51a79444e"
> >>> +SRCREV ?= "ad844aa352559a8b1f36e391a27d9d7dbddbdc36"
> >>>
> >>> XEN_REL ?= "4.14"
> >>> XEN_BRANCH ?= "stable-${XEN_REL}"
> >>> diff --git a/recipes-extended/xen/xen_git.bb b/recipes-
> >>> extended/xen/xen_git.bb index 57791fc..2b62c5c 100644
> >>> --- a/recipes-extended/xen/xen_git.bb
> >>> +++ b/recipes-extended/xen/xen_git.bb
> >>> @@ -1,4 +1,4 @@
> >>> -SRCREV ?= "8c4532f19d6925538fb0c938f7de9a97da8c5c3b"
> >>> +SRCREV ?= "9dc687f155a57216b83b17f9cde55dd43e06b0cd"
> >>>
> >>> XEN_REL ?= "4.15"
> >>> XEN_BRANCH ?= "master"
> >>> --
> >>> 2.17.1
> >>
> >>
> >>
> >>
> >
> > 
>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [meta-virtualization] [PATCH] xen: Bump SRCREV to 4.14.1 and current master
  2021-03-02  8:06   ` Christopher Clark
@ 2021-03-02 10:27     ` Bertrand Marquis
  2021-03-02 19:45       ` Christopher Clark
  0 siblings, 1 reply; 9+ messages in thread
From: Bertrand Marquis @ 2021-03-02 10:27 UTC (permalink / raw)
  To: Christopher Clark; +Cc: Bruce Ashfield, meta-virtualization, Diego Sueiro, nd

Hi Christopher,

> On 2 Mar 2021, at 08:06, Christopher Clark via lists.yoctoproject.org <christopher.w.clark=gmail.com@lists.yoctoproject.org> wrote:
> 
> On Thu, Feb 18, 2021 at 7:19 AM Diego Sueiro <diego.sueiro@arm.com> wrote:
>> 
>>> -----Original Message-----
>>> From: meta-virtualization@lists.yoctoproject.org <meta-
>>> virtualization@lists.yoctoproject.org> On Behalf Of Bertrand Marquis via
>>> lists.yoctoproject.org
>>> Sent: 18 February 2021 15:05
>>> To: meta-virtualization@lists.yoctoproject.org
>>> Cc: nd <nd@arm.com>
>>> Subject: [meta-virtualization] [PATCH] xen: Bump SRCREV to 4.14.1 and
>>> current master
>>> 
>>> Bump SRCREV version of xen recipes to use the latest 4.14 release
>>> (4.14.1) and the current status of master.
>>> 
>>> This allows to remove some patches related to gcc 10 support which have now
>>> been merged in Xen.
>>> 
>>> Xen-tools is modified to include the latest tools installed with Xen:
>>> - a rename of the bash-completion,
>>> - a new xl example,
>>> - xen-access,
>>> - xen-memshare (only available on x86).
>>> 
>>> A new patch to fix python and pygrub is added as the makefiles have been
>>> deeply modified in 4.15 which require a new patch (but doing the same).
>>> 
>>> Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
>> 
>> Reviewed-by: Diego Sueiro <diego.sueiro@arm.com>
> 
> Reviewed-by: Christopher Clark <christopher.w.clark@gmail.com>
> 
> Both the 4.14.1 and the git recipe versions build fine and the changes
> here are good -- thanks. Some very minor style points noted below but
> this should go in, please, Bruce.

Thanks, i will send an update later this month once 4.15 version of xen is released and i will handle
your remarks in when doing this.

Could we also consider merging this in gatesgarth branch ?
This would make sense to bump the minor version of xen there to i think.

Regards
Bertrand

> 
> thanks,
> 
> Christopher
> 
>> 
>>> ---
>>> ...ython-pygrub-pass-DISTUTILS-xen-4.15.patch | 73
>>> +++++++++++++++++++  ...ls-xenpmd-Fix-gcc10-snprintf-warning.patch | 60 ----
>>> -----------  ...uild-temporarily-inhibit-Werror-4.14.patch | 26 -------
>>> recipes-extended/xen/xen-tools.inc            | 14 ++++
>>> recipes-extended/xen/xen-tools_4.14.bb        |  4 +-
>>> recipes-extended/xen/xen-tools_git.bb         |  6 +-
>>> recipes-extended/xen/xen_4.14.bb              |  2 +-
>>> recipes-extended/xen/xen_git.bb               |  2 +-
>>> 8 files changed, 92 insertions(+), 95 deletions(-)  create mode 100644 recipes-
>>> extended/xen/files/0001-python-pygrub-pass-DISTUTILS-xen-4.15.patch
>>> delete mode 100644 recipes-extended/xen/files/0001-tools-xenpmd-Fix-
>>> gcc10-snprintf-warning.patch
>>> delete mode 100644 recipes-extended/xen/files/0001-xen-build-temporarily-
>>> inhibit-Werror-4.14.patch
>>> 
>>> diff --git a/recipes-extended/xen/files/0001-python-pygrub-pass-DISTUTILS-
>>> xen-4.15.patch b/recipes-extended/xen/files/0001-python-pygrub-pass-
>>> DISTUTILS-xen-4.15.patch
>>> new file mode 100644
>>> index 0000000..35cd9a8
>>> --- /dev/null
>>> +++ b/recipes-extended/xen/files/0001-python-pygrub-pass-DISTUTILS-xen-4
>>> +++ .15.patch
>>> @@ -0,0 +1,73 @@
>>> +From 6db88791d923167f160afbcadeffad84a4cbdbc5 Mon Sep 17 00:00:00
>>> 2001
>>> +Message-Id:
>>> +<6db88791d923167f160afbcadeffad84a4cbdbc5.1612262706.git.bertrand.m
>>> arqu
>>> +is@arm.com>
>>> +From: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
>>> +Date: Fri, 19 Oct 2018 11:01:37 +0200
>>> +Subject: [PATCH] python,pygrub: pass DISTUTILS env vars as setup.py
>>> +args
>>> +
>>> +Upstream-Status: Xen: Inappropriate [oe specific, python install
>>> +issues]
>>> +
>>> +Allow to respect the target install dir (PYTHON_SITEPACKAGES_DIR) as
>>> +well as other parameters set by the OpenEmbedded build system.
>>> +This is especially useful when the target libdir is not the default one
>>> +(/usr/lib), but for example /usr/lib64.
>>> +
>>> +Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
>>> +
>>> +Forward-ported to Xen 4.12.0
>>> +Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
>>> +
>>> +Modified to support pygrub installation with python 3
>>> +Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
>>> +
>>> +Forward-ported to Xen 4.14.0
>>> +Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
>>> +
>>> +Forward-ported to Xen 4.15.0
>>> +Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
>>> +
>>> +---
>>> + tools/pygrub/Makefile | 7 +++++--
>>> + tools/python/Makefile | 2 +-
>>> + 2 files changed, 6 insertions(+), 3 deletions(-)
>>> +
>>> +diff --git a/tools/pygrub/Makefile b/tools/pygrub/Makefile index
>>> +37b2146214..ffb9270065 100644
>>> +--- a/tools/pygrub/Makefile
>>> ++++ b/tools/pygrub/Makefile
>>> +@@ -10,7 +10,7 @@ INSTALL_LOG = build/installed_files.txt
>>> + all: build
>>> + .PHONY: build
>>> + build:
>>> +-     CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDSHARED="$(CC)"
>>> LDFLAGS="$(PY_LDFLAGS)" $(PYTHON) setup.py build
>>> ++     CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDSHARED="$(CC)"
>>> ++LDFLAGS="$(PY_LDFLAGS)" $(PYTHON) setup.py build
>>> ++$(DISTUTILS_BUILD_ARGS)
>>> +
>>> + .PHONY: install
>>> + install: all
>>> +@@ -18,7 +18,10 @@ install: all
>>> +      CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDSHARED="$(CC)" \
>>> +              LDFLAGS="$(PY_LDFLAGS)" $(PYTHON) setup.py install \
>>> +              --record $(INSTALL_LOG) $(PYTHON_PREFIX_ARG) \
>>> +-              --root="$(DESTDIR)" --install-scripts=$(LIBEXEC_BIN) --force
>>> ++              --root="$(DESTDIR)" --install-scripts=$(LIBEXEC_BIN) --force \
>>> ++              $(DISTUTILS_INSTALL_ARGS)
>>> ++     rm -f $(DESTDIR)/$(LIBEXEC_BIN)/pygrub
>>> ++     $(INSTALL_PYTHON_PROG) src/pygrub
>>> $(DESTDIR)/$(LIBEXEC_BIN)/pygrub
>>> +      set -e; if [ $(bindir) != $(LIBEXEC_BIN) -a \
>>> +                   "`readlink -f $(DESTDIR)/$(bindir)`" != \
>>> +                   "`readlink -f $(LIBEXEC_BIN)`" ]; then \ diff --git
>>> +a/tools/python/Makefile b/tools/python/Makefile index
>>> +cc76423647..5cb11ae453 100644
>>> +--- a/tools/python/Makefile
>>> ++++ b/tools/python/Makefile
>>> +@@ -12,7 +12,7 @@ setup.py = CC="$(CC)" CFLAGS="$(PY_CFLAGS)"
>>> LDSHARED="$(CC)" LDFLAGS="$(PY_LDFLA
>>> +            SHLIB_libxenctrl="$(SHLIB_libxenctrl)" \
>>> +            SHLIB_libxenguest="$(SHLIB_libxenguest)" \
>>> +            SHLIB_libxenstore="$(SHLIB_libxenstore)" \
>>> +-           $(PYTHON) setup.py
>>> ++           $(PYTHON) setup.py $(DISTUTILS_BUILD_ARGS)
>>> +
>>> + .PHONY: build
>>> + build:
>>> +--
>>> +2.17.1
>>> +
>>> diff --git a/recipes-extended/xen/files/0001-tools-xenpmd-Fix-gcc10-snprintf-
>>> warning.patch b/recipes-extended/xen/files/0001-tools-xenpmd-Fix-gcc10-
>>> snprintf-warning.patch
>>> deleted file mode 100644
>>> index 0a136c9..0000000
>>> --- a/recipes-extended/xen/files/0001-tools-xenpmd-Fix-gcc10-snprintf-
>>> warning.patch
>>> +++ /dev/null
>>> @@ -1,60 +0,0 @@
>>> -From 0dfddb2116e3757f77a691a3fe335173088d69dc Mon Sep 17 00:00:00
>>> 2001
>>> -Message-Id:
>>> <0dfddb2116e3757f77a691a3fe335173088d69dc.1604734077.git.bertrand.m
>>> arquis@arm.com>
>>> -From: Bertrand Marquis <bertrand.marquis@arm.com>
>>> -Date: Thu, 15 Oct 2020 10:16:09 +0100
>>> -Subject: [PATCH] tools/xenpmd: Fix gcc10 snprintf warning
>>> -
>>> -Add a check for snprintf return code and ignore the entry if we get an -error.
>>> This should in fact never happen and is more a trick to make gcc -happy and
>>> prevent compilation errors.
>>> -
>>> -This is solving the following gcc warning when compiling for arm32 host -
>>> platforms with optimization activated:
>>> -xenpmd.c:92:37: error: '%s' directive output may be truncated writing -
>>> between 4 and 2147483645 bytes into a region of size 271 -[-Werror=format-
>>> truncation=]
>>> -
>>> -This is also solving the following Debian bug:
>>> -https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=970802
>>> -
>>> -Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
>>> -Acked-by: Wei Liu <wl@xen.org>
>>> ----
>>> -Upstream-status: Backport from 4.15
>>> ----
>>> - tools/xenpmd/xenpmd.c | 9 +++++++--
>>> - 1 file changed, 7 insertions(+), 2 deletions(-)
>>> -
>>> -diff --git a/tools/xenpmd/xenpmd.c b/tools/xenpmd/xenpmd.c -index
>>> 35fd1c931a..12b82cf43e 100644
>>> ---- a/tools/xenpmd/xenpmd.c
>>> -+++ b/tools/xenpmd/xenpmd.c
>>> -@@ -102,6 +102,7 @@ FILE *get_next_battery_file(DIR *battery_dir,
>>> -     FILE *file = 0;
>>> -     struct dirent *dir_entries;
>>> -     char file_name[284];
>>> -+    int ret;
>>> -
>>> -     do
>>> -     {
>>> -@@ -111,11 +112,15 @@ FILE *get_next_battery_file(DIR *battery_dir,
>>> -         if ( strlen(dir_entries->d_name) < 4 )
>>> -             continue;
>>> -         if ( battery_info_type == BIF )
>>> --            snprintf(file_name, sizeof(file_name), BATTERY_INFO_FILE_PATH,
>>> -+            ret = snprintf(file_name, sizeof(file_name),
>>> -+ BATTERY_INFO_FILE_PATH,
>>> -                      dir_entries->d_name);
>>> -         else
>>> --            snprintf(file_name, sizeof(file_name), BATTERY_STATE_FILE_PATH,
>>> -+            ret = snprintf(file_name, sizeof(file_name),
>>> -+ BATTERY_STATE_FILE_PATH,
>>> -                      dir_entries->d_name);
>>> -+        /* This should not happen but is needed to pass gcc checks */
>>> -+        if (ret < 0)
>>> -+            continue;
>>> -+        file_name[sizeof(file_name) - 1] = '\0';
>>> -         file = fopen(file_name, "r");
>>> -     } while ( !file );
>>> -
>>> ---
>>> -2.17.1
>>> -
>>> diff --git a/recipes-extended/xen/files/0001-xen-build-temporarily-inhibit-
>>> Werror-4.14.patch b/recipes-extended/xen/files/0001-xen-build-temporarily-
>>> inhibit-Werror-4.14.patch
>>> deleted file mode 100644
>>> index 0e0a3dc..0000000
>>> --- a/recipes-extended/xen/files/0001-xen-build-temporarily-inhibit-Werror-
>>> 4.14.patch
>>> +++ /dev/null
>>> @@ -1,26 +0,0 @@
>>> -From 9cff3bf8425ccc593825fcde8ca5eaa32a43d04d Mon Sep 17 00:00:00
>>> 2001
>>> -From: Bruce Ashfield <bruce.ashfield@gmail.com>
>>> -Date: Thu, 18 Jun 2020 09:05:22 -0400
>>> -Subject: [PATCH] xen/build: temporarily inhibit Werror
>>> -
>>> -Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> -Rebased on Xen
>>> 4.14:
>>> -Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
>>> ----
>>> - tools/libxl/Makefile | 2 +-
>>> - xen/Rules.mk         | 2 +-
>>> - 2 files changed, 2 insertions(+), 2 deletions(-)
>>> -
>>> -diff --git a/tools/libxl/Makefile b/tools/libxl/Makefile -index
>>> 6da342ed61..c67560e269 100644
>>> ---- a/tools/libxl/Makefile
>>> -+++ b/tools/libxl/Makefile
>>> -@@ -11,7 +11,7 @@ MINOR = 0
>>> - XLUMAJOR = 4.14
>>> - XLUMINOR = 0
>>> -
>>> --CFLAGS += -Werror -Wno-format-zero-length -Wmissing-declarations \
>>> -+CFLAGS += -Wno-format-zero-length -Wmissing-declarations \
>>> -      -Wno-declaration-after-statement -Wformat-nonliteral
>>> - CFLAGS += -I. -fPIC
>>> -
>>> diff --git a/recipes-extended/xen/xen-tools.inc b/recipes-extended/xen/xen-
>>> tools.inc
>>> index 0c69fec..722c503 100644
>>> --- a/recipes-extended/xen/xen-tools.inc
>>> +++ b/recipes-extended/xen/xen-tools.inc
>>> @@ -234,6 +234,8 @@ PACKAGES = " \
>>>    ${PN}-xl-examples \
>>>    ${PN}-xm \
>>>    ${PN}-xm-examples \
>>> +    ${PN}-xen-access \
>>> +    ${PN}-xen-memshare \
>>>    "
>>> 
>>> PROVIDES =+ " \
>>> @@ -633,6 +635,7 @@ FILES_${PN}-xen-watchdog = "\
>>> 
>>> FILES_${PN}-xl = "\
>>>    ${sysconfdir}/bash_completion.d/xl.sh \
>>> +    ${sysconfdir}/bash_completion.d/xl \
>>>    ${sysconfdir}/xen/xl.conf \
>>>    ${libdir}/xen/bin/libxl-save-helper \
>>>    ${sbindir}/xl \
>>> @@ -642,6 +645,7 @@ FILES_${PN}-xl = "\
>>> FILES_${PN}-xl-examples = "\
>>>    ${sysconfdir}/xen/xlexample.hvm \
>>>    ${sysconfdir}/xen/xlexample.pvlinux \
>>> +    ${sysconfdir}/xen/xlexample.pvhlinux \
>>>    "
>>> 
>>> FILES_${PN}-xm-examples = "\
>>> @@ -692,6 +696,16 @@ FILES_${PN}-xendomains += "\
>>>    ${sysconfdir}/sysconfig/xendomains \
>>>    ${systemd_unitdir}/system/xendomains.service \
>>>    "
> 
> A newline should go here but it can be added later - no point holding
> this back for it.
> 
>>> +FILES_${PN}-xen-access += "\
>>> +    ${sbindir}/xen-access \
>>> +    "
>>> +
>>> +FILES_${PN}-xen-memshare += "\
>>> +    ${sbindir}/xen-memshare \
>>> +    "
> 
> I would suggest using just '=' instead of '+=' for future additions
> like these, but since there are already other instances of using '+='
> in this file, I think it's ok for this to go in as is.
> 
>>> +
>>> +# memshare is only built for x86, so allow empty package for other
>>> +archs ALLOW_EMPTY_${PN}-xen-memshare = "1"
>>> 
>>> INSANE_SKIP_${PN} = "already-stripped"
>>> 
>>> diff --git a/recipes-extended/xen/xen-tools_4.14.bb b/recipes-
>>> extended/xen/xen-tools_4.14.bb
>>> index 73a52bc..a79b41d 100644
>>> --- a/recipes-extended/xen/xen-tools_4.14.bb
>>> +++ b/recipes-extended/xen/xen-tools_4.14.bb
>>> @@ -1,4 +1,4 @@
>>> -SRCREV ?= "456957aaa1391e0dfa969e2dd97b87c51a79444e"
>>> +SRCREV ?= "ad844aa352559a8b1f36e391a27d9d7dbddbdc36"
>>> 
>>> XEN_REL ?= "4.14"
>>> XEN_BRANCH ?= "stable-${XEN_REL}"
>>> @@ -6,8 +6,6 @@ XEN_BRANCH ?= "stable-${XEN_REL}"
>>> SRC_URI = " \
>>>    git://xenbits.xen.org/xen.git;branch=${XEN_BRANCH} \
>>>    file://0001-python-pygrub-pass-DISTUTILS-xen-4.14.patch \
>>> -    file://0001-xen-build-temporarily-inhibit-Werror-4.14.patch \
>>> -    file://0001-tools-xenpmd-Fix-gcc10-snprintf-warning.patch \
>>>    "
>>> 
>>> LIC_FILES_CHKSUM ?=
>>> "file://COPYING;md5=419739e325a50f3d7b4501338e44a4e5"
>>> diff --git a/recipes-extended/xen/xen-tools_git.bb b/recipes-
>>> extended/xen/xen-tools_git.bb
>>> index 1f6be1d..71850ee 100644
>>> --- a/recipes-extended/xen/xen-tools_git.bb
>>> +++ b/recipes-extended/xen/xen-tools_git.bb
>>> @@ -1,13 +1,11 @@
>>> -SRCREV ?= "8c4532f19d6925538fb0c938f7de9a97da8c5c3b"
>>> +SRCREV ?= "9dc687f155a57216b83b17f9cde55dd43e06b0cd"
>>> 
>>> XEN_REL ?= "4.15"
>>> XEN_BRANCH ?= "master"
>>> 
>>> SRC_URI = " \
>>>    git://xenbits.xen.org/xen.git;branch=${XEN_BRANCH} \
>>> -    file://0001-python-pygrub-pass-DISTUTILS-xen-4.14.patch \
>>> -    file://0001-xen-build-temporarily-inhibit-Werror-4.14.patch \
>>> -    file://0001-tools-xenpmd-Fix-gcc10-snprintf-warning.patch \
>>> +    file://0001-python-pygrub-pass-DISTUTILS-xen-4.15.patch \
>>>    "
>>> 
>>> LIC_FILES_CHKSUM ?=
>>> "file://COPYING;md5=419739e325a50f3d7b4501338e44a4e5"
>>> diff --git a/recipes-extended/xen/xen_4.14.bb b/recipes-
>>> extended/xen/xen_4.14.bb
>>> index 91e8988..653e3b6 100644
>>> --- a/recipes-extended/xen/xen_4.14.bb
>>> +++ b/recipes-extended/xen/xen_4.14.bb
>>> @@ -1,4 +1,4 @@
>>> -SRCREV ?= "456957aaa1391e0dfa969e2dd97b87c51a79444e"
>>> +SRCREV ?= "ad844aa352559a8b1f36e391a27d9d7dbddbdc36"
>>> 
>>> XEN_REL ?= "4.14"
>>> XEN_BRANCH ?= "stable-${XEN_REL}"
>>> diff --git a/recipes-extended/xen/xen_git.bb b/recipes-
>>> extended/xen/xen_git.bb index 57791fc..2b62c5c 100644
>>> --- a/recipes-extended/xen/xen_git.bb
>>> +++ b/recipes-extended/xen/xen_git.bb
>>> @@ -1,4 +1,4 @@
>>> -SRCREV ?= "8c4532f19d6925538fb0c938f7de9a97da8c5c3b"
>>> +SRCREV ?= "9dc687f155a57216b83b17f9cde55dd43e06b0cd"
>>> 
>>> XEN_REL ?= "4.15"
>>> XEN_BRANCH ?= "master"
>>> --
>>> 2.17.1
>> 
>> 
>> 
>> 
> 
> 


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [meta-virtualization] [PATCH] xen: Bump SRCREV to 4.14.1 and current master
  2021-02-18 15:19 ` [meta-virtualization] " Diego Sueiro
  2021-02-26 19:46   ` Christopher Clark
@ 2021-03-02  8:06   ` Christopher Clark
  2021-03-02 10:27     ` Bertrand Marquis
  1 sibling, 1 reply; 9+ messages in thread
From: Christopher Clark @ 2021-03-02  8:06 UTC (permalink / raw)
  To: Bruce Ashfield, meta-virtualization; +Cc: Bertrand Marquis, Diego Sueiro, nd

On Thu, Feb 18, 2021 at 7:19 AM Diego Sueiro <diego.sueiro@arm.com> wrote:
>
> >-----Original Message-----
> >From: meta-virtualization@lists.yoctoproject.org <meta-
> >virtualization@lists.yoctoproject.org> On Behalf Of Bertrand Marquis via
> >lists.yoctoproject.org
> >Sent: 18 February 2021 15:05
> >To: meta-virtualization@lists.yoctoproject.org
> >Cc: nd <nd@arm.com>
> >Subject: [meta-virtualization] [PATCH] xen: Bump SRCREV to 4.14.1 and
> >current master
> >
> >Bump SRCREV version of xen recipes to use the latest 4.14 release
> >(4.14.1) and the current status of master.
> >
> >This allows to remove some patches related to gcc 10 support which have now
> >been merged in Xen.
> >
> >Xen-tools is modified to include the latest tools installed with Xen:
> >- a rename of the bash-completion,
> >- a new xl example,
> >- xen-access,
> >- xen-memshare (only available on x86).
> >
> >A new patch to fix python and pygrub is added as the makefiles have been
> >deeply modified in 4.15 which require a new patch (but doing the same).
> >
> >Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
>
> Reviewed-by: Diego Sueiro <diego.sueiro@arm.com>

Reviewed-by: Christopher Clark <christopher.w.clark@gmail.com>

Both the 4.14.1 and the git recipe versions build fine and the changes
here are good -- thanks. Some very minor style points noted below but
this should go in, please, Bruce.

thanks,

Christopher

>
> >---
> > ...ython-pygrub-pass-DISTUTILS-xen-4.15.patch | 73
> >+++++++++++++++++++  ...ls-xenpmd-Fix-gcc10-snprintf-warning.patch | 60 ----
> >-----------  ...uild-temporarily-inhibit-Werror-4.14.patch | 26 -------
> > recipes-extended/xen/xen-tools.inc            | 14 ++++
> > recipes-extended/xen/xen-tools_4.14.bb        |  4 +-
> > recipes-extended/xen/xen-tools_git.bb         |  6 +-
> > recipes-extended/xen/xen_4.14.bb              |  2 +-
> > recipes-extended/xen/xen_git.bb               |  2 +-
> > 8 files changed, 92 insertions(+), 95 deletions(-)  create mode 100644 recipes-
> >extended/xen/files/0001-python-pygrub-pass-DISTUTILS-xen-4.15.patch
> > delete mode 100644 recipes-extended/xen/files/0001-tools-xenpmd-Fix-
> >gcc10-snprintf-warning.patch
> > delete mode 100644 recipes-extended/xen/files/0001-xen-build-temporarily-
> >inhibit-Werror-4.14.patch
> >
> >diff --git a/recipes-extended/xen/files/0001-python-pygrub-pass-DISTUTILS-
> >xen-4.15.patch b/recipes-extended/xen/files/0001-python-pygrub-pass-
> >DISTUTILS-xen-4.15.patch
> >new file mode 100644
> >index 0000000..35cd9a8
> >--- /dev/null
> >+++ b/recipes-extended/xen/files/0001-python-pygrub-pass-DISTUTILS-xen-4
> >+++ .15.patch
> >@@ -0,0 +1,73 @@
> >+From 6db88791d923167f160afbcadeffad84a4cbdbc5 Mon Sep 17 00:00:00
> >2001
> >+Message-Id:
> >+<6db88791d923167f160afbcadeffad84a4cbdbc5.1612262706.git.bertrand.m
> >arqu
> >+is@arm.com>
> >+From: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
> >+Date: Fri, 19 Oct 2018 11:01:37 +0200
> >+Subject: [PATCH] python,pygrub: pass DISTUTILS env vars as setup.py
> >+args
> >+
> >+Upstream-Status: Xen: Inappropriate [oe specific, python install
> >+issues]
> >+
> >+Allow to respect the target install dir (PYTHON_SITEPACKAGES_DIR) as
> >+well as other parameters set by the OpenEmbedded build system.
> >+This is especially useful when the target libdir is not the default one
> >+(/usr/lib), but for example /usr/lib64.
> >+
> >+Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
> >+
> >+Forward-ported to Xen 4.12.0
> >+Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
> >+
> >+Modified to support pygrub installation with python 3
> >+Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
> >+
> >+Forward-ported to Xen 4.14.0
> >+Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
> >+
> >+Forward-ported to Xen 4.15.0
> >+Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
> >+
> >+---
> >+ tools/pygrub/Makefile | 7 +++++--
> >+ tools/python/Makefile | 2 +-
> >+ 2 files changed, 6 insertions(+), 3 deletions(-)
> >+
> >+diff --git a/tools/pygrub/Makefile b/tools/pygrub/Makefile index
> >+37b2146214..ffb9270065 100644
> >+--- a/tools/pygrub/Makefile
> >++++ b/tools/pygrub/Makefile
> >+@@ -10,7 +10,7 @@ INSTALL_LOG = build/installed_files.txt
> >+ all: build
> >+ .PHONY: build
> >+ build:
> >+-     CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDSHARED="$(CC)"
> >LDFLAGS="$(PY_LDFLAGS)" $(PYTHON) setup.py build
> >++     CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDSHARED="$(CC)"
> >++LDFLAGS="$(PY_LDFLAGS)" $(PYTHON) setup.py build
> >++$(DISTUTILS_BUILD_ARGS)
> >+
> >+ .PHONY: install
> >+ install: all
> >+@@ -18,7 +18,10 @@ install: all
> >+      CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDSHARED="$(CC)" \
> >+              LDFLAGS="$(PY_LDFLAGS)" $(PYTHON) setup.py install \
> >+              --record $(INSTALL_LOG) $(PYTHON_PREFIX_ARG) \
> >+-              --root="$(DESTDIR)" --install-scripts=$(LIBEXEC_BIN) --force
> >++              --root="$(DESTDIR)" --install-scripts=$(LIBEXEC_BIN) --force \
> >++              $(DISTUTILS_INSTALL_ARGS)
> >++     rm -f $(DESTDIR)/$(LIBEXEC_BIN)/pygrub
> >++     $(INSTALL_PYTHON_PROG) src/pygrub
> >$(DESTDIR)/$(LIBEXEC_BIN)/pygrub
> >+      set -e; if [ $(bindir) != $(LIBEXEC_BIN) -a \
> >+                   "`readlink -f $(DESTDIR)/$(bindir)`" != \
> >+                   "`readlink -f $(LIBEXEC_BIN)`" ]; then \ diff --git
> >+a/tools/python/Makefile b/tools/python/Makefile index
> >+cc76423647..5cb11ae453 100644
> >+--- a/tools/python/Makefile
> >++++ b/tools/python/Makefile
> >+@@ -12,7 +12,7 @@ setup.py = CC="$(CC)" CFLAGS="$(PY_CFLAGS)"
> >LDSHARED="$(CC)" LDFLAGS="$(PY_LDFLA
> >+            SHLIB_libxenctrl="$(SHLIB_libxenctrl)" \
> >+            SHLIB_libxenguest="$(SHLIB_libxenguest)" \
> >+            SHLIB_libxenstore="$(SHLIB_libxenstore)" \
> >+-           $(PYTHON) setup.py
> >++           $(PYTHON) setup.py $(DISTUTILS_BUILD_ARGS)
> >+
> >+ .PHONY: build
> >+ build:
> >+--
> >+2.17.1
> >+
> >diff --git a/recipes-extended/xen/files/0001-tools-xenpmd-Fix-gcc10-snprintf-
> >warning.patch b/recipes-extended/xen/files/0001-tools-xenpmd-Fix-gcc10-
> >snprintf-warning.patch
> >deleted file mode 100644
> >index 0a136c9..0000000
> >--- a/recipes-extended/xen/files/0001-tools-xenpmd-Fix-gcc10-snprintf-
> >warning.patch
> >+++ /dev/null
> >@@ -1,60 +0,0 @@
> >-From 0dfddb2116e3757f77a691a3fe335173088d69dc Mon Sep 17 00:00:00
> >2001
> >-Message-Id:
> ><0dfddb2116e3757f77a691a3fe335173088d69dc.1604734077.git.bertrand.m
> >arquis@arm.com>
> >-From: Bertrand Marquis <bertrand.marquis@arm.com>
> >-Date: Thu, 15 Oct 2020 10:16:09 +0100
> >-Subject: [PATCH] tools/xenpmd: Fix gcc10 snprintf warning
> >-
> >-Add a check for snprintf return code and ignore the entry if we get an -error.
> >This should in fact never happen and is more a trick to make gcc -happy and
> >prevent compilation errors.
> >-
> >-This is solving the following gcc warning when compiling for arm32 host -
> >platforms with optimization activated:
> >-xenpmd.c:92:37: error: '%s' directive output may be truncated writing -
> >between 4 and 2147483645 bytes into a region of size 271 -[-Werror=format-
> >truncation=]
> >-
> >-This is also solving the following Debian bug:
> >-https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=970802
> >-
> >-Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
> >-Acked-by: Wei Liu <wl@xen.org>
> >----
> >-Upstream-status: Backport from 4.15
> >----
> >- tools/xenpmd/xenpmd.c | 9 +++++++--
> >- 1 file changed, 7 insertions(+), 2 deletions(-)
> >-
> >-diff --git a/tools/xenpmd/xenpmd.c b/tools/xenpmd/xenpmd.c -index
> >35fd1c931a..12b82cf43e 100644
> >---- a/tools/xenpmd/xenpmd.c
> >-+++ b/tools/xenpmd/xenpmd.c
> >-@@ -102,6 +102,7 @@ FILE *get_next_battery_file(DIR *battery_dir,
> >-     FILE *file = 0;
> >-     struct dirent *dir_entries;
> >-     char file_name[284];
> >-+    int ret;
> >-
> >-     do
> >-     {
> >-@@ -111,11 +112,15 @@ FILE *get_next_battery_file(DIR *battery_dir,
> >-         if ( strlen(dir_entries->d_name) < 4 )
> >-             continue;
> >-         if ( battery_info_type == BIF )
> >--            snprintf(file_name, sizeof(file_name), BATTERY_INFO_FILE_PATH,
> >-+            ret = snprintf(file_name, sizeof(file_name),
> >-+ BATTERY_INFO_FILE_PATH,
> >-                      dir_entries->d_name);
> >-         else
> >--            snprintf(file_name, sizeof(file_name), BATTERY_STATE_FILE_PATH,
> >-+            ret = snprintf(file_name, sizeof(file_name),
> >-+ BATTERY_STATE_FILE_PATH,
> >-                      dir_entries->d_name);
> >-+        /* This should not happen but is needed to pass gcc checks */
> >-+        if (ret < 0)
> >-+            continue;
> >-+        file_name[sizeof(file_name) - 1] = '\0';
> >-         file = fopen(file_name, "r");
> >-     } while ( !file );
> >-
> >---
> >-2.17.1
> >-
> >diff --git a/recipes-extended/xen/files/0001-xen-build-temporarily-inhibit-
> >Werror-4.14.patch b/recipes-extended/xen/files/0001-xen-build-temporarily-
> >inhibit-Werror-4.14.patch
> >deleted file mode 100644
> >index 0e0a3dc..0000000
> >--- a/recipes-extended/xen/files/0001-xen-build-temporarily-inhibit-Werror-
> >4.14.patch
> >+++ /dev/null
> >@@ -1,26 +0,0 @@
> >-From 9cff3bf8425ccc593825fcde8ca5eaa32a43d04d Mon Sep 17 00:00:00
> >2001
> >-From: Bruce Ashfield <bruce.ashfield@gmail.com>
> >-Date: Thu, 18 Jun 2020 09:05:22 -0400
> >-Subject: [PATCH] xen/build: temporarily inhibit Werror
> >-
> >-Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> -Rebased on Xen
> >4.14:
> >-Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
> >----
> >- tools/libxl/Makefile | 2 +-
> >- xen/Rules.mk         | 2 +-
> >- 2 files changed, 2 insertions(+), 2 deletions(-)
> >-
> >-diff --git a/tools/libxl/Makefile b/tools/libxl/Makefile -index
> >6da342ed61..c67560e269 100644
> >---- a/tools/libxl/Makefile
> >-+++ b/tools/libxl/Makefile
> >-@@ -11,7 +11,7 @@ MINOR = 0
> >- XLUMAJOR = 4.14
> >- XLUMINOR = 0
> >-
> >--CFLAGS += -Werror -Wno-format-zero-length -Wmissing-declarations \
> >-+CFLAGS += -Wno-format-zero-length -Wmissing-declarations \
> >-      -Wno-declaration-after-statement -Wformat-nonliteral
> >- CFLAGS += -I. -fPIC
> >-
> >diff --git a/recipes-extended/xen/xen-tools.inc b/recipes-extended/xen/xen-
> >tools.inc
> >index 0c69fec..722c503 100644
> >--- a/recipes-extended/xen/xen-tools.inc
> >+++ b/recipes-extended/xen/xen-tools.inc
> >@@ -234,6 +234,8 @@ PACKAGES = " \
> >     ${PN}-xl-examples \
> >     ${PN}-xm \
> >     ${PN}-xm-examples \
> >+    ${PN}-xen-access \
> >+    ${PN}-xen-memshare \
> >     "
> >
> > PROVIDES =+ " \
> >@@ -633,6 +635,7 @@ FILES_${PN}-xen-watchdog = "\
> >
> > FILES_${PN}-xl = "\
> >     ${sysconfdir}/bash_completion.d/xl.sh \
> >+    ${sysconfdir}/bash_completion.d/xl \
> >     ${sysconfdir}/xen/xl.conf \
> >     ${libdir}/xen/bin/libxl-save-helper \
> >     ${sbindir}/xl \
> >@@ -642,6 +645,7 @@ FILES_${PN}-xl = "\
> > FILES_${PN}-xl-examples = "\
> >     ${sysconfdir}/xen/xlexample.hvm \
> >     ${sysconfdir}/xen/xlexample.pvlinux \
> >+    ${sysconfdir}/xen/xlexample.pvhlinux \
> >     "
> >
> > FILES_${PN}-xm-examples = "\
> >@@ -692,6 +696,16 @@ FILES_${PN}-xendomains += "\
> >     ${sysconfdir}/sysconfig/xendomains \
> >     ${systemd_unitdir}/system/xendomains.service \
> >     "

A newline should go here but it can be added later - no point holding
this back for it.

> >+FILES_${PN}-xen-access += "\
> >+    ${sbindir}/xen-access \
> >+    "
> >+
> >+FILES_${PN}-xen-memshare += "\
> >+    ${sbindir}/xen-memshare \
> >+    "

I would suggest using just '=' instead of '+=' for future additions
like these, but since there are already other instances of using '+='
in this file, I think it's ok for this to go in as is.

> >+
> >+# memshare is only built for x86, so allow empty package for other
> >+archs ALLOW_EMPTY_${PN}-xen-memshare = "1"
> >
> > INSANE_SKIP_${PN} = "already-stripped"
> >
> >diff --git a/recipes-extended/xen/xen-tools_4.14.bb b/recipes-
> >extended/xen/xen-tools_4.14.bb
> >index 73a52bc..a79b41d 100644
> >--- a/recipes-extended/xen/xen-tools_4.14.bb
> >+++ b/recipes-extended/xen/xen-tools_4.14.bb
> >@@ -1,4 +1,4 @@
> >-SRCREV ?= "456957aaa1391e0dfa969e2dd97b87c51a79444e"
> >+SRCREV ?= "ad844aa352559a8b1f36e391a27d9d7dbddbdc36"
> >
> > XEN_REL ?= "4.14"
> > XEN_BRANCH ?= "stable-${XEN_REL}"
> >@@ -6,8 +6,6 @@ XEN_BRANCH ?= "stable-${XEN_REL}"
> > SRC_URI = " \
> >     git://xenbits.xen.org/xen.git;branch=${XEN_BRANCH} \
> >     file://0001-python-pygrub-pass-DISTUTILS-xen-4.14.patch \
> >-    file://0001-xen-build-temporarily-inhibit-Werror-4.14.patch \
> >-    file://0001-tools-xenpmd-Fix-gcc10-snprintf-warning.patch \
> >     "
> >
> > LIC_FILES_CHKSUM ?=
> >"file://COPYING;md5=419739e325a50f3d7b4501338e44a4e5"
> >diff --git a/recipes-extended/xen/xen-tools_git.bb b/recipes-
> >extended/xen/xen-tools_git.bb
> >index 1f6be1d..71850ee 100644
> >--- a/recipes-extended/xen/xen-tools_git.bb
> >+++ b/recipes-extended/xen/xen-tools_git.bb
> >@@ -1,13 +1,11 @@
> >-SRCREV ?= "8c4532f19d6925538fb0c938f7de9a97da8c5c3b"
> >+SRCREV ?= "9dc687f155a57216b83b17f9cde55dd43e06b0cd"
> >
> > XEN_REL ?= "4.15"
> > XEN_BRANCH ?= "master"
> >
> > SRC_URI = " \
> >     git://xenbits.xen.org/xen.git;branch=${XEN_BRANCH} \
> >-    file://0001-python-pygrub-pass-DISTUTILS-xen-4.14.patch \
> >-    file://0001-xen-build-temporarily-inhibit-Werror-4.14.patch \
> >-    file://0001-tools-xenpmd-Fix-gcc10-snprintf-warning.patch \
> >+    file://0001-python-pygrub-pass-DISTUTILS-xen-4.15.patch \
> >     "
> >
> > LIC_FILES_CHKSUM ?=
> >"file://COPYING;md5=419739e325a50f3d7b4501338e44a4e5"
> >diff --git a/recipes-extended/xen/xen_4.14.bb b/recipes-
> >extended/xen/xen_4.14.bb
> >index 91e8988..653e3b6 100644
> >--- a/recipes-extended/xen/xen_4.14.bb
> >+++ b/recipes-extended/xen/xen_4.14.bb
> >@@ -1,4 +1,4 @@
> >-SRCREV ?= "456957aaa1391e0dfa969e2dd97b87c51a79444e"
> >+SRCREV ?= "ad844aa352559a8b1f36e391a27d9d7dbddbdc36"
> >
> > XEN_REL ?= "4.14"
> > XEN_BRANCH ?= "stable-${XEN_REL}"
> >diff --git a/recipes-extended/xen/xen_git.bb b/recipes-
> >extended/xen/xen_git.bb index 57791fc..2b62c5c 100644
> >--- a/recipes-extended/xen/xen_git.bb
> >+++ b/recipes-extended/xen/xen_git.bb
> >@@ -1,4 +1,4 @@
> >-SRCREV ?= "8c4532f19d6925538fb0c938f7de9a97da8c5c3b"
> >+SRCREV ?= "9dc687f155a57216b83b17f9cde55dd43e06b0cd"
> >
> > XEN_REL ?= "4.15"
> > XEN_BRANCH ?= "master"
> >--
> >2.17.1
>
>
> 
>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [meta-virtualization] [PATCH] xen: Bump SRCREV to 4.14.1 and current master
  2021-02-18 15:19 ` [meta-virtualization] " Diego Sueiro
@ 2021-02-26 19:46   ` Christopher Clark
  2021-03-02  8:06   ` Christopher Clark
  1 sibling, 0 replies; 9+ messages in thread
From: Christopher Clark @ 2021-02-26 19:46 UTC (permalink / raw)
  To: Diego Sueiro; +Cc: Bertrand Marquis, meta-virtualization, nd

On Thu, Feb 18, 2021 at 7:19 AM Diego Sueiro <diego.sueiro@arm.com> wrote:
>
> >-----Original Message-----
> >From: meta-virtualization@lists.yoctoproject.org <meta-
> >virtualization@lists.yoctoproject.org> On Behalf Of Bertrand Marquis via
> >lists.yoctoproject.org
> >Sent: 18 February 2021 15:05
> >To: meta-virtualization@lists.yoctoproject.org
> >Cc: nd <nd@arm.com>
> >Subject: [meta-virtualization] [PATCH] xen: Bump SRCREV to 4.14.1 and
> >current master
> >
> >Bump SRCREV version of xen recipes to use the latest 4.14 release
> >(4.14.1) and the current status of master.
> >
> >This allows to remove some patches related to gcc 10 support which have now
> >been merged in Xen.
> >
> >Xen-tools is modified to include the latest tools installed with Xen:
> >- a rename of the bash-completion,
> >- a new xl example,
> >- xen-access,
> >- xen-memshare (only available on x86).
> >
> >A new patch to fix python and pygrub is added as the makefiles have been
> >deeply modified in 4.15 which require a new patch (but doing the same).
> >
> >Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
>
> Reviewed-by: Diego Sueiro <diego.sueiro@arm.com>

Apologies for my delay in looking at these - I am making my way to it
and will post an update by end of Monday.

Christopher

>
> >---
> > ...ython-pygrub-pass-DISTUTILS-xen-4.15.patch | 73
> >+++++++++++++++++++  ...ls-xenpmd-Fix-gcc10-snprintf-warning.patch | 60 ----
> >-----------  ...uild-temporarily-inhibit-Werror-4.14.patch | 26 -------
> > recipes-extended/xen/xen-tools.inc            | 14 ++++
> > recipes-extended/xen/xen-tools_4.14.bb        |  4 +-
> > recipes-extended/xen/xen-tools_git.bb         |  6 +-
> > recipes-extended/xen/xen_4.14.bb              |  2 +-
> > recipes-extended/xen/xen_git.bb               |  2 +-
> > 8 files changed, 92 insertions(+), 95 deletions(-)  create mode 100644 recipes-
> >extended/xen/files/0001-python-pygrub-pass-DISTUTILS-xen-4.15.patch
> > delete mode 100644 recipes-extended/xen/files/0001-tools-xenpmd-Fix-
> >gcc10-snprintf-warning.patch
> > delete mode 100644 recipes-extended/xen/files/0001-xen-build-temporarily-
> >inhibit-Werror-4.14.patch
> >
> >diff --git a/recipes-extended/xen/files/0001-python-pygrub-pass-DISTUTILS-
> >xen-4.15.patch b/recipes-extended/xen/files/0001-python-pygrub-pass-
> >DISTUTILS-xen-4.15.patch
> >new file mode 100644
> >index 0000000..35cd9a8
> >--- /dev/null
> >+++ b/recipes-extended/xen/files/0001-python-pygrub-pass-DISTUTILS-xen-4
> >+++ .15.patch
> >@@ -0,0 +1,73 @@
> >+From 6db88791d923167f160afbcadeffad84a4cbdbc5 Mon Sep 17 00:00:00
> >2001
> >+Message-Id:
> >+<6db88791d923167f160afbcadeffad84a4cbdbc5.1612262706.git.bertrand.m
> >arqu
> >+is@arm.com>
> >+From: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
> >+Date: Fri, 19 Oct 2018 11:01:37 +0200
> >+Subject: [PATCH] python,pygrub: pass DISTUTILS env vars as setup.py
> >+args
> >+
> >+Upstream-Status: Xen: Inappropriate [oe specific, python install
> >+issues]
> >+
> >+Allow to respect the target install dir (PYTHON_SITEPACKAGES_DIR) as
> >+well as other parameters set by the OpenEmbedded build system.
> >+This is especially useful when the target libdir is not the default one
> >+(/usr/lib), but for example /usr/lib64.
> >+
> >+Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
> >+
> >+Forward-ported to Xen 4.12.0
> >+Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
> >+
> >+Modified to support pygrub installation with python 3
> >+Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
> >+
> >+Forward-ported to Xen 4.14.0
> >+Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
> >+
> >+Forward-ported to Xen 4.15.0
> >+Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
> >+
> >+---
> >+ tools/pygrub/Makefile | 7 +++++--
> >+ tools/python/Makefile | 2 +-
> >+ 2 files changed, 6 insertions(+), 3 deletions(-)
> >+
> >+diff --git a/tools/pygrub/Makefile b/tools/pygrub/Makefile index
> >+37b2146214..ffb9270065 100644
> >+--- a/tools/pygrub/Makefile
> >++++ b/tools/pygrub/Makefile
> >+@@ -10,7 +10,7 @@ INSTALL_LOG = build/installed_files.txt
> >+ all: build
> >+ .PHONY: build
> >+ build:
> >+-     CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDSHARED="$(CC)"
> >LDFLAGS="$(PY_LDFLAGS)" $(PYTHON) setup.py build
> >++     CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDSHARED="$(CC)"
> >++LDFLAGS="$(PY_LDFLAGS)" $(PYTHON) setup.py build
> >++$(DISTUTILS_BUILD_ARGS)
> >+
> >+ .PHONY: install
> >+ install: all
> >+@@ -18,7 +18,10 @@ install: all
> >+      CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDSHARED="$(CC)" \
> >+              LDFLAGS="$(PY_LDFLAGS)" $(PYTHON) setup.py install \
> >+              --record $(INSTALL_LOG) $(PYTHON_PREFIX_ARG) \
> >+-              --root="$(DESTDIR)" --install-scripts=$(LIBEXEC_BIN) --force
> >++              --root="$(DESTDIR)" --install-scripts=$(LIBEXEC_BIN) --force \
> >++              $(DISTUTILS_INSTALL_ARGS)
> >++     rm -f $(DESTDIR)/$(LIBEXEC_BIN)/pygrub
> >++     $(INSTALL_PYTHON_PROG) src/pygrub
> >$(DESTDIR)/$(LIBEXEC_BIN)/pygrub
> >+      set -e; if [ $(bindir) != $(LIBEXEC_BIN) -a \
> >+                   "`readlink -f $(DESTDIR)/$(bindir)`" != \
> >+                   "`readlink -f $(LIBEXEC_BIN)`" ]; then \ diff --git
> >+a/tools/python/Makefile b/tools/python/Makefile index
> >+cc76423647..5cb11ae453 100644
> >+--- a/tools/python/Makefile
> >++++ b/tools/python/Makefile
> >+@@ -12,7 +12,7 @@ setup.py = CC="$(CC)" CFLAGS="$(PY_CFLAGS)"
> >LDSHARED="$(CC)" LDFLAGS="$(PY_LDFLA
> >+            SHLIB_libxenctrl="$(SHLIB_libxenctrl)" \
> >+            SHLIB_libxenguest="$(SHLIB_libxenguest)" \
> >+            SHLIB_libxenstore="$(SHLIB_libxenstore)" \
> >+-           $(PYTHON) setup.py
> >++           $(PYTHON) setup.py $(DISTUTILS_BUILD_ARGS)
> >+
> >+ .PHONY: build
> >+ build:
> >+--
> >+2.17.1
> >+
> >diff --git a/recipes-extended/xen/files/0001-tools-xenpmd-Fix-gcc10-snprintf-
> >warning.patch b/recipes-extended/xen/files/0001-tools-xenpmd-Fix-gcc10-
> >snprintf-warning.patch
> >deleted file mode 100644
> >index 0a136c9..0000000
> >--- a/recipes-extended/xen/files/0001-tools-xenpmd-Fix-gcc10-snprintf-
> >warning.patch
> >+++ /dev/null
> >@@ -1,60 +0,0 @@
> >-From 0dfddb2116e3757f77a691a3fe335173088d69dc Mon Sep 17 00:00:00
> >2001
> >-Message-Id:
> ><0dfddb2116e3757f77a691a3fe335173088d69dc.1604734077.git.bertrand.m
> >arquis@arm.com>
> >-From: Bertrand Marquis <bertrand.marquis@arm.com>
> >-Date: Thu, 15 Oct 2020 10:16:09 +0100
> >-Subject: [PATCH] tools/xenpmd: Fix gcc10 snprintf warning
> >-
> >-Add a check for snprintf return code and ignore the entry if we get an -error.
> >This should in fact never happen and is more a trick to make gcc -happy and
> >prevent compilation errors.
> >-
> >-This is solving the following gcc warning when compiling for arm32 host -
> >platforms with optimization activated:
> >-xenpmd.c:92:37: error: '%s' directive output may be truncated writing -
> >between 4 and 2147483645 bytes into a region of size 271 -[-Werror=format-
> >truncation=]
> >-
> >-This is also solving the following Debian bug:
> >-https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=970802
> >-
> >-Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
> >-Acked-by: Wei Liu <wl@xen.org>
> >----
> >-Upstream-status: Backport from 4.15
> >----
> >- tools/xenpmd/xenpmd.c | 9 +++++++--
> >- 1 file changed, 7 insertions(+), 2 deletions(-)
> >-
> >-diff --git a/tools/xenpmd/xenpmd.c b/tools/xenpmd/xenpmd.c -index
> >35fd1c931a..12b82cf43e 100644
> >---- a/tools/xenpmd/xenpmd.c
> >-+++ b/tools/xenpmd/xenpmd.c
> >-@@ -102,6 +102,7 @@ FILE *get_next_battery_file(DIR *battery_dir,
> >-     FILE *file = 0;
> >-     struct dirent *dir_entries;
> >-     char file_name[284];
> >-+    int ret;
> >-
> >-     do
> >-     {
> >-@@ -111,11 +112,15 @@ FILE *get_next_battery_file(DIR *battery_dir,
> >-         if ( strlen(dir_entries->d_name) < 4 )
> >-             continue;
> >-         if ( battery_info_type == BIF )
> >--            snprintf(file_name, sizeof(file_name), BATTERY_INFO_FILE_PATH,
> >-+            ret = snprintf(file_name, sizeof(file_name),
> >-+ BATTERY_INFO_FILE_PATH,
> >-                      dir_entries->d_name);
> >-         else
> >--            snprintf(file_name, sizeof(file_name), BATTERY_STATE_FILE_PATH,
> >-+            ret = snprintf(file_name, sizeof(file_name),
> >-+ BATTERY_STATE_FILE_PATH,
> >-                      dir_entries->d_name);
> >-+        /* This should not happen but is needed to pass gcc checks */
> >-+        if (ret < 0)
> >-+            continue;
> >-+        file_name[sizeof(file_name) - 1] = '\0';
> >-         file = fopen(file_name, "r");
> >-     } while ( !file );
> >-
> >---
> >-2.17.1
> >-
> >diff --git a/recipes-extended/xen/files/0001-xen-build-temporarily-inhibit-
> >Werror-4.14.patch b/recipes-extended/xen/files/0001-xen-build-temporarily-
> >inhibit-Werror-4.14.patch
> >deleted file mode 100644
> >index 0e0a3dc..0000000
> >--- a/recipes-extended/xen/files/0001-xen-build-temporarily-inhibit-Werror-
> >4.14.patch
> >+++ /dev/null
> >@@ -1,26 +0,0 @@
> >-From 9cff3bf8425ccc593825fcde8ca5eaa32a43d04d Mon Sep 17 00:00:00
> >2001
> >-From: Bruce Ashfield <bruce.ashfield@gmail.com>
> >-Date: Thu, 18 Jun 2020 09:05:22 -0400
> >-Subject: [PATCH] xen/build: temporarily inhibit Werror
> >-
> >-Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> -Rebased on Xen
> >4.14:
> >-Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
> >----
> >- tools/libxl/Makefile | 2 +-
> >- xen/Rules.mk         | 2 +-
> >- 2 files changed, 2 insertions(+), 2 deletions(-)
> >-
> >-diff --git a/tools/libxl/Makefile b/tools/libxl/Makefile -index
> >6da342ed61..c67560e269 100644
> >---- a/tools/libxl/Makefile
> >-+++ b/tools/libxl/Makefile
> >-@@ -11,7 +11,7 @@ MINOR = 0
> >- XLUMAJOR = 4.14
> >- XLUMINOR = 0
> >-
> >--CFLAGS += -Werror -Wno-format-zero-length -Wmissing-declarations \
> >-+CFLAGS += -Wno-format-zero-length -Wmissing-declarations \
> >-      -Wno-declaration-after-statement -Wformat-nonliteral
> >- CFLAGS += -I. -fPIC
> >-
> >diff --git a/recipes-extended/xen/xen-tools.inc b/recipes-extended/xen/xen-
> >tools.inc
> >index 0c69fec..722c503 100644
> >--- a/recipes-extended/xen/xen-tools.inc
> >+++ b/recipes-extended/xen/xen-tools.inc
> >@@ -234,6 +234,8 @@ PACKAGES = " \
> >     ${PN}-xl-examples \
> >     ${PN}-xm \
> >     ${PN}-xm-examples \
> >+    ${PN}-xen-access \
> >+    ${PN}-xen-memshare \
> >     "
> >
> > PROVIDES =+ " \
> >@@ -633,6 +635,7 @@ FILES_${PN}-xen-watchdog = "\
> >
> > FILES_${PN}-xl = "\
> >     ${sysconfdir}/bash_completion.d/xl.sh \
> >+    ${sysconfdir}/bash_completion.d/xl \
> >     ${sysconfdir}/xen/xl.conf \
> >     ${libdir}/xen/bin/libxl-save-helper \
> >     ${sbindir}/xl \
> >@@ -642,6 +645,7 @@ FILES_${PN}-xl = "\
> > FILES_${PN}-xl-examples = "\
> >     ${sysconfdir}/xen/xlexample.hvm \
> >     ${sysconfdir}/xen/xlexample.pvlinux \
> >+    ${sysconfdir}/xen/xlexample.pvhlinux \
> >     "
> >
> > FILES_${PN}-xm-examples = "\
> >@@ -692,6 +696,16 @@ FILES_${PN}-xendomains += "\
> >     ${sysconfdir}/sysconfig/xendomains \
> >     ${systemd_unitdir}/system/xendomains.service \
> >     "
> >+FILES_${PN}-xen-access += "\
> >+    ${sbindir}/xen-access \
> >+    "
> >+
> >+FILES_${PN}-xen-memshare += "\
> >+    ${sbindir}/xen-memshare \
> >+    "
> >+
> >+# memshare is only built for x86, so allow empty package for other
> >+archs ALLOW_EMPTY_${PN}-xen-memshare = "1"
> >
> > INSANE_SKIP_${PN} = "already-stripped"
> >
> >diff --git a/recipes-extended/xen/xen-tools_4.14.bb b/recipes-
> >extended/xen/xen-tools_4.14.bb
> >index 73a52bc..a79b41d 100644
> >--- a/recipes-extended/xen/xen-tools_4.14.bb
> >+++ b/recipes-extended/xen/xen-tools_4.14.bb
> >@@ -1,4 +1,4 @@
> >-SRCREV ?= "456957aaa1391e0dfa969e2dd97b87c51a79444e"
> >+SRCREV ?= "ad844aa352559a8b1f36e391a27d9d7dbddbdc36"
> >
> > XEN_REL ?= "4.14"
> > XEN_BRANCH ?= "stable-${XEN_REL}"
> >@@ -6,8 +6,6 @@ XEN_BRANCH ?= "stable-${XEN_REL}"
> > SRC_URI = " \
> >     git://xenbits.xen.org/xen.git;branch=${XEN_BRANCH} \
> >     file://0001-python-pygrub-pass-DISTUTILS-xen-4.14.patch \
> >-    file://0001-xen-build-temporarily-inhibit-Werror-4.14.patch \
> >-    file://0001-tools-xenpmd-Fix-gcc10-snprintf-warning.patch \
> >     "
> >
> > LIC_FILES_CHKSUM ?=
> >"file://COPYING;md5=419739e325a50f3d7b4501338e44a4e5"
> >diff --git a/recipes-extended/xen/xen-tools_git.bb b/recipes-
> >extended/xen/xen-tools_git.bb
> >index 1f6be1d..71850ee 100644
> >--- a/recipes-extended/xen/xen-tools_git.bb
> >+++ b/recipes-extended/xen/xen-tools_git.bb
> >@@ -1,13 +1,11 @@
> >-SRCREV ?= "8c4532f19d6925538fb0c938f7de9a97da8c5c3b"
> >+SRCREV ?= "9dc687f155a57216b83b17f9cde55dd43e06b0cd"
> >
> > XEN_REL ?= "4.15"
> > XEN_BRANCH ?= "master"
> >
> > SRC_URI = " \
> >     git://xenbits.xen.org/xen.git;branch=${XEN_BRANCH} \
> >-    file://0001-python-pygrub-pass-DISTUTILS-xen-4.14.patch \
> >-    file://0001-xen-build-temporarily-inhibit-Werror-4.14.patch \
> >-    file://0001-tools-xenpmd-Fix-gcc10-snprintf-warning.patch \
> >+    file://0001-python-pygrub-pass-DISTUTILS-xen-4.15.patch \
> >     "
> >
> > LIC_FILES_CHKSUM ?=
> >"file://COPYING;md5=419739e325a50f3d7b4501338e44a4e5"
> >diff --git a/recipes-extended/xen/xen_4.14.bb b/recipes-
> >extended/xen/xen_4.14.bb
> >index 91e8988..653e3b6 100644
> >--- a/recipes-extended/xen/xen_4.14.bb
> >+++ b/recipes-extended/xen/xen_4.14.bb
> >@@ -1,4 +1,4 @@
> >-SRCREV ?= "456957aaa1391e0dfa969e2dd97b87c51a79444e"
> >+SRCREV ?= "ad844aa352559a8b1f36e391a27d9d7dbddbdc36"
> >
> > XEN_REL ?= "4.14"
> > XEN_BRANCH ?= "stable-${XEN_REL}"
> >diff --git a/recipes-extended/xen/xen_git.bb b/recipes-
> >extended/xen/xen_git.bb index 57791fc..2b62c5c 100644
> >--- a/recipes-extended/xen/xen_git.bb
> >+++ b/recipes-extended/xen/xen_git.bb
> >@@ -1,4 +1,4 @@
> >-SRCREV ?= "8c4532f19d6925538fb0c938f7de9a97da8c5c3b"
> >+SRCREV ?= "9dc687f155a57216b83b17f9cde55dd43e06b0cd"
> >
> > XEN_REL ?= "4.15"
> > XEN_BRANCH ?= "master"
> >--
> >2.17.1
>
>
> 
>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [meta-virtualization] [PATCH] xen: Bump SRCREV to 4.14.1 and current master
  2021-02-18 15:05 Bertrand Marquis
@ 2021-02-18 15:19 ` Diego Sueiro
  2021-02-26 19:46   ` Christopher Clark
  2021-03-02  8:06   ` Christopher Clark
  2021-03-05  3:44 ` Bruce Ashfield
  1 sibling, 2 replies; 9+ messages in thread
From: Diego Sueiro @ 2021-02-18 15:19 UTC (permalink / raw)
  To: Bertrand Marquis, meta-virtualization; +Cc: nd

>-----Original Message-----
>From: meta-virtualization@lists.yoctoproject.org <meta-
>virtualization@lists.yoctoproject.org> On Behalf Of Bertrand Marquis via
>lists.yoctoproject.org
>Sent: 18 February 2021 15:05
>To: meta-virtualization@lists.yoctoproject.org
>Cc: nd <nd@arm.com>
>Subject: [meta-virtualization] [PATCH] xen: Bump SRCREV to 4.14.1 and
>current master
>
>Bump SRCREV version of xen recipes to use the latest 4.14 release
>(4.14.1) and the current status of master.
>
>This allows to remove some patches related to gcc 10 support which have now
>been merged in Xen.
>
>Xen-tools is modified to include the latest tools installed with Xen:
>- a rename of the bash-completion,
>- a new xl example,
>- xen-access,
>- xen-memshare (only available on x86).
>
>A new patch to fix python and pygrub is added as the makefiles have been
>deeply modified in 4.15 which require a new patch (but doing the same).
>
>Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>

Reviewed-by: Diego Sueiro <diego.sueiro@arm.com>

>---
> ...ython-pygrub-pass-DISTUTILS-xen-4.15.patch | 73
>+++++++++++++++++++  ...ls-xenpmd-Fix-gcc10-snprintf-warning.patch | 60 ----
>-----------  ...uild-temporarily-inhibit-Werror-4.14.patch | 26 -------
> recipes-extended/xen/xen-tools.inc            | 14 ++++
> recipes-extended/xen/xen-tools_4.14.bb        |  4 +-
> recipes-extended/xen/xen-tools_git.bb         |  6 +-
> recipes-extended/xen/xen_4.14.bb              |  2 +-
> recipes-extended/xen/xen_git.bb               |  2 +-
> 8 files changed, 92 insertions(+), 95 deletions(-)  create mode 100644 recipes-
>extended/xen/files/0001-python-pygrub-pass-DISTUTILS-xen-4.15.patch
> delete mode 100644 recipes-extended/xen/files/0001-tools-xenpmd-Fix-
>gcc10-snprintf-warning.patch
> delete mode 100644 recipes-extended/xen/files/0001-xen-build-temporarily-
>inhibit-Werror-4.14.patch
>
>diff --git a/recipes-extended/xen/files/0001-python-pygrub-pass-DISTUTILS-
>xen-4.15.patch b/recipes-extended/xen/files/0001-python-pygrub-pass-
>DISTUTILS-xen-4.15.patch
>new file mode 100644
>index 0000000..35cd9a8
>--- /dev/null
>+++ b/recipes-extended/xen/files/0001-python-pygrub-pass-DISTUTILS-xen-4
>+++ .15.patch
>@@ -0,0 +1,73 @@
>+From 6db88791d923167f160afbcadeffad84a4cbdbc5 Mon Sep 17 00:00:00
>2001
>+Message-Id:
>+<6db88791d923167f160afbcadeffad84a4cbdbc5.1612262706.git.bertrand.m
>arqu
>+is@arm.com>
>+From: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
>+Date: Fri, 19 Oct 2018 11:01:37 +0200
>+Subject: [PATCH] python,pygrub: pass DISTUTILS env vars as setup.py
>+args
>+
>+Upstream-Status: Xen: Inappropriate [oe specific, python install
>+issues]
>+
>+Allow to respect the target install dir (PYTHON_SITEPACKAGES_DIR) as
>+well as other parameters set by the OpenEmbedded build system.
>+This is especially useful when the target libdir is not the default one
>+(/usr/lib), but for example /usr/lib64.
>+
>+Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
>+
>+Forward-ported to Xen 4.12.0
>+Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
>+
>+Modified to support pygrub installation with python 3
>+Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
>+
>+Forward-ported to Xen 4.14.0
>+Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
>+
>+Forward-ported to Xen 4.15.0
>+Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
>+
>+---
>+ tools/pygrub/Makefile | 7 +++++--
>+ tools/python/Makefile | 2 +-
>+ 2 files changed, 6 insertions(+), 3 deletions(-)
>+
>+diff --git a/tools/pygrub/Makefile b/tools/pygrub/Makefile index
>+37b2146214..ffb9270065 100644
>+--- a/tools/pygrub/Makefile
>++++ b/tools/pygrub/Makefile
>+@@ -10,7 +10,7 @@ INSTALL_LOG = build/installed_files.txt
>+ all: build
>+ .PHONY: build
>+ build:
>+-	CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDSHARED="$(CC)"
>LDFLAGS="$(PY_LDFLAGS)" $(PYTHON) setup.py build
>++	CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDSHARED="$(CC)"
>++LDFLAGS="$(PY_LDFLAGS)" $(PYTHON) setup.py build
>++$(DISTUTILS_BUILD_ARGS)
>+
>+ .PHONY: install
>+ install: all
>+@@ -18,7 +18,10 @@ install: all
>+ 	CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDSHARED="$(CC)" \
>+ 		LDFLAGS="$(PY_LDFLAGS)" $(PYTHON) setup.py install \
>+ 		--record $(INSTALL_LOG) $(PYTHON_PREFIX_ARG) \
>+-		 --root="$(DESTDIR)" --install-scripts=$(LIBEXEC_BIN) --force
>++		 --root="$(DESTDIR)" --install-scripts=$(LIBEXEC_BIN) --force \
>++		 $(DISTUTILS_INSTALL_ARGS)
>++	rm -f $(DESTDIR)/$(LIBEXEC_BIN)/pygrub
>++	$(INSTALL_PYTHON_PROG) src/pygrub
>$(DESTDIR)/$(LIBEXEC_BIN)/pygrub
>+ 	set -e; if [ $(bindir) != $(LIBEXEC_BIN) -a \
>+ 	             "`readlink -f $(DESTDIR)/$(bindir)`" != \
>+ 	             "`readlink -f $(LIBEXEC_BIN)`" ]; then \ diff --git
>+a/tools/python/Makefile b/tools/python/Makefile index
>+cc76423647..5cb11ae453 100644
>+--- a/tools/python/Makefile
>++++ b/tools/python/Makefile
>+@@ -12,7 +12,7 @@ setup.py = CC="$(CC)" CFLAGS="$(PY_CFLAGS)"
>LDSHARED="$(CC)" LDFLAGS="$(PY_LDFLA
>+            SHLIB_libxenctrl="$(SHLIB_libxenctrl)" \
>+            SHLIB_libxenguest="$(SHLIB_libxenguest)" \
>+            SHLIB_libxenstore="$(SHLIB_libxenstore)" \
>+-           $(PYTHON) setup.py
>++           $(PYTHON) setup.py $(DISTUTILS_BUILD_ARGS)
>+
>+ .PHONY: build
>+ build:
>+--
>+2.17.1
>+
>diff --git a/recipes-extended/xen/files/0001-tools-xenpmd-Fix-gcc10-snprintf-
>warning.patch b/recipes-extended/xen/files/0001-tools-xenpmd-Fix-gcc10-
>snprintf-warning.patch
>deleted file mode 100644
>index 0a136c9..0000000
>--- a/recipes-extended/xen/files/0001-tools-xenpmd-Fix-gcc10-snprintf-
>warning.patch
>+++ /dev/null
>@@ -1,60 +0,0 @@
>-From 0dfddb2116e3757f77a691a3fe335173088d69dc Mon Sep 17 00:00:00
>2001
>-Message-Id:
><0dfddb2116e3757f77a691a3fe335173088d69dc.1604734077.git.bertrand.m
>arquis@arm.com>
>-From: Bertrand Marquis <bertrand.marquis@arm.com>
>-Date: Thu, 15 Oct 2020 10:16:09 +0100
>-Subject: [PATCH] tools/xenpmd: Fix gcc10 snprintf warning
>-
>-Add a check for snprintf return code and ignore the entry if we get an -error.
>This should in fact never happen and is more a trick to make gcc -happy and
>prevent compilation errors.
>-
>-This is solving the following gcc warning when compiling for arm32 host -
>platforms with optimization activated:
>-xenpmd.c:92:37: error: '%s' directive output may be truncated writing -
>between 4 and 2147483645 bytes into a region of size 271 -[-Werror=format-
>truncation=]
>-
>-This is also solving the following Debian bug:
>-https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=970802
>-
>-Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
>-Acked-by: Wei Liu <wl@xen.org>
>----
>-Upstream-status: Backport from 4.15
>----
>- tools/xenpmd/xenpmd.c | 9 +++++++--
>- 1 file changed, 7 insertions(+), 2 deletions(-)
>-
>-diff --git a/tools/xenpmd/xenpmd.c b/tools/xenpmd/xenpmd.c -index
>35fd1c931a..12b82cf43e 100644
>---- a/tools/xenpmd/xenpmd.c
>-+++ b/tools/xenpmd/xenpmd.c
>-@@ -102,6 +102,7 @@ FILE *get_next_battery_file(DIR *battery_dir,
>-     FILE *file = 0;
>-     struct dirent *dir_entries;
>-     char file_name[284];
>-+    int ret;
>-
>-     do
>-     {
>-@@ -111,11 +112,15 @@ FILE *get_next_battery_file(DIR *battery_dir,
>-         if ( strlen(dir_entries->d_name) < 4 )
>-             continue;
>-         if ( battery_info_type == BIF )
>--            snprintf(file_name, sizeof(file_name), BATTERY_INFO_FILE_PATH,
>-+            ret = snprintf(file_name, sizeof(file_name),
>-+ BATTERY_INFO_FILE_PATH,
>-                      dir_entries->d_name);
>-         else
>--            snprintf(file_name, sizeof(file_name), BATTERY_STATE_FILE_PATH,
>-+            ret = snprintf(file_name, sizeof(file_name),
>-+ BATTERY_STATE_FILE_PATH,
>-                      dir_entries->d_name);
>-+        /* This should not happen but is needed to pass gcc checks */
>-+        if (ret < 0)
>-+            continue;
>-+        file_name[sizeof(file_name) - 1] = '\0';
>-         file = fopen(file_name, "r");
>-     } while ( !file );
>-
>---
>-2.17.1
>-
>diff --git a/recipes-extended/xen/files/0001-xen-build-temporarily-inhibit-
>Werror-4.14.patch b/recipes-extended/xen/files/0001-xen-build-temporarily-
>inhibit-Werror-4.14.patch
>deleted file mode 100644
>index 0e0a3dc..0000000
>--- a/recipes-extended/xen/files/0001-xen-build-temporarily-inhibit-Werror-
>4.14.patch
>+++ /dev/null
>@@ -1,26 +0,0 @@
>-From 9cff3bf8425ccc593825fcde8ca5eaa32a43d04d Mon Sep 17 00:00:00
>2001
>-From: Bruce Ashfield <bruce.ashfield@gmail.com>
>-Date: Thu, 18 Jun 2020 09:05:22 -0400
>-Subject: [PATCH] xen/build: temporarily inhibit Werror
>-
>-Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> -Rebased on Xen
>4.14:
>-Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
>----
>- tools/libxl/Makefile | 2 +-
>- xen/Rules.mk         | 2 +-
>- 2 files changed, 2 insertions(+), 2 deletions(-)
>-
>-diff --git a/tools/libxl/Makefile b/tools/libxl/Makefile -index
>6da342ed61..c67560e269 100644
>---- a/tools/libxl/Makefile
>-+++ b/tools/libxl/Makefile
>-@@ -11,7 +11,7 @@ MINOR = 0
>- XLUMAJOR = 4.14
>- XLUMINOR = 0
>-
>--CFLAGS += -Werror -Wno-format-zero-length -Wmissing-declarations \
>-+CFLAGS += -Wno-format-zero-length -Wmissing-declarations \
>- 	-Wno-declaration-after-statement -Wformat-nonliteral
>- CFLAGS += -I. -fPIC
>-
>diff --git a/recipes-extended/xen/xen-tools.inc b/recipes-extended/xen/xen-
>tools.inc
>index 0c69fec..722c503 100644
>--- a/recipes-extended/xen/xen-tools.inc
>+++ b/recipes-extended/xen/xen-tools.inc
>@@ -234,6 +234,8 @@ PACKAGES = " \
>     ${PN}-xl-examples \
>     ${PN}-xm \
>     ${PN}-xm-examples \
>+    ${PN}-xen-access \
>+    ${PN}-xen-memshare \
>     "
>
> PROVIDES =+ " \
>@@ -633,6 +635,7 @@ FILES_${PN}-xen-watchdog = "\
>
> FILES_${PN}-xl = "\
>     ${sysconfdir}/bash_completion.d/xl.sh \
>+    ${sysconfdir}/bash_completion.d/xl \
>     ${sysconfdir}/xen/xl.conf \
>     ${libdir}/xen/bin/libxl-save-helper \
>     ${sbindir}/xl \
>@@ -642,6 +645,7 @@ FILES_${PN}-xl = "\
> FILES_${PN}-xl-examples = "\
>     ${sysconfdir}/xen/xlexample.hvm \
>     ${sysconfdir}/xen/xlexample.pvlinux \
>+    ${sysconfdir}/xen/xlexample.pvhlinux \
>     "
>
> FILES_${PN}-xm-examples = "\
>@@ -692,6 +696,16 @@ FILES_${PN}-xendomains += "\
>     ${sysconfdir}/sysconfig/xendomains \
>     ${systemd_unitdir}/system/xendomains.service \
>     "
>+FILES_${PN}-xen-access += "\
>+    ${sbindir}/xen-access \
>+    "
>+
>+FILES_${PN}-xen-memshare += "\
>+    ${sbindir}/xen-memshare \
>+    "
>+
>+# memshare is only built for x86, so allow empty package for other
>+archs ALLOW_EMPTY_${PN}-xen-memshare = "1"
>
> INSANE_SKIP_${PN} = "already-stripped"
>
>diff --git a/recipes-extended/xen/xen-tools_4.14.bb b/recipes-
>extended/xen/xen-tools_4.14.bb
>index 73a52bc..a79b41d 100644
>--- a/recipes-extended/xen/xen-tools_4.14.bb
>+++ b/recipes-extended/xen/xen-tools_4.14.bb
>@@ -1,4 +1,4 @@
>-SRCREV ?= "456957aaa1391e0dfa969e2dd97b87c51a79444e"
>+SRCREV ?= "ad844aa352559a8b1f36e391a27d9d7dbddbdc36"
>
> XEN_REL ?= "4.14"
> XEN_BRANCH ?= "stable-${XEN_REL}"
>@@ -6,8 +6,6 @@ XEN_BRANCH ?= "stable-${XEN_REL}"
> SRC_URI = " \
>     git://xenbits.xen.org/xen.git;branch=${XEN_BRANCH} \
>     file://0001-python-pygrub-pass-DISTUTILS-xen-4.14.patch \
>-    file://0001-xen-build-temporarily-inhibit-Werror-4.14.patch \
>-    file://0001-tools-xenpmd-Fix-gcc10-snprintf-warning.patch \
>     "
>
> LIC_FILES_CHKSUM ?=
>"file://COPYING;md5=419739e325a50f3d7b4501338e44a4e5"
>diff --git a/recipes-extended/xen/xen-tools_git.bb b/recipes-
>extended/xen/xen-tools_git.bb
>index 1f6be1d..71850ee 100644
>--- a/recipes-extended/xen/xen-tools_git.bb
>+++ b/recipes-extended/xen/xen-tools_git.bb
>@@ -1,13 +1,11 @@
>-SRCREV ?= "8c4532f19d6925538fb0c938f7de9a97da8c5c3b"
>+SRCREV ?= "9dc687f155a57216b83b17f9cde55dd43e06b0cd"
>
> XEN_REL ?= "4.15"
> XEN_BRANCH ?= "master"
>
> SRC_URI = " \
>     git://xenbits.xen.org/xen.git;branch=${XEN_BRANCH} \
>-    file://0001-python-pygrub-pass-DISTUTILS-xen-4.14.patch \
>-    file://0001-xen-build-temporarily-inhibit-Werror-4.14.patch \
>-    file://0001-tools-xenpmd-Fix-gcc10-snprintf-warning.patch \
>+    file://0001-python-pygrub-pass-DISTUTILS-xen-4.15.patch \
>     "
>
> LIC_FILES_CHKSUM ?=
>"file://COPYING;md5=419739e325a50f3d7b4501338e44a4e5"
>diff --git a/recipes-extended/xen/xen_4.14.bb b/recipes-
>extended/xen/xen_4.14.bb
>index 91e8988..653e3b6 100644
>--- a/recipes-extended/xen/xen_4.14.bb
>+++ b/recipes-extended/xen/xen_4.14.bb
>@@ -1,4 +1,4 @@
>-SRCREV ?= "456957aaa1391e0dfa969e2dd97b87c51a79444e"
>+SRCREV ?= "ad844aa352559a8b1f36e391a27d9d7dbddbdc36"
>
> XEN_REL ?= "4.14"
> XEN_BRANCH ?= "stable-${XEN_REL}"
>diff --git a/recipes-extended/xen/xen_git.bb b/recipes-
>extended/xen/xen_git.bb index 57791fc..2b62c5c 100644
>--- a/recipes-extended/xen/xen_git.bb
>+++ b/recipes-extended/xen/xen_git.bb
>@@ -1,4 +1,4 @@
>-SRCREV ?= "8c4532f19d6925538fb0c938f7de9a97da8c5c3b"
>+SRCREV ?= "9dc687f155a57216b83b17f9cde55dd43e06b0cd"
>
> XEN_REL ?= "4.15"
> XEN_BRANCH ?= "master"
>--
>2.17.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-03-05 10:29 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1664DFE1A4BA4F42.31496@lists.yoctoproject.org>
2021-03-04 17:36 ` [meta-virtualization] [PATCH] xen: Bump SRCREV to 4.14.1 and current master Bertrand Marquis
2021-03-04 18:15   ` Bruce Ashfield
2021-03-05 10:29     ` Bertrand Marquis
2021-02-18 15:05 Bertrand Marquis
2021-02-18 15:19 ` [meta-virtualization] " Diego Sueiro
2021-02-26 19:46   ` Christopher Clark
2021-03-02  8:06   ` Christopher Clark
2021-03-02 10:27     ` Bertrand Marquis
2021-03-02 19:45       ` Christopher Clark
2021-03-05  3:44 ` Bruce Ashfield

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.