[OE-core] [PATCH] libpcre: fix occasionally do_package_write_rpm error

2020-08-27 Thread Changqing Li
From: Changqing Li Error info: ERROR: libpcre-8.44-r0 do_package_write_rpm: Failure expanding variable SUMMARY_libpcrecpp, expression was ${SUMMARY} - C++ wrapper functions which triggered exception RecursionError: maximum recursion depth exceeded while calling a Python object this error is hard

Re: [OE-core] [master][PATCH v7 3/3] package.bbclass: hash equivalency and pr service

2020-08-27 Thread Richard Purdie
On Thu, 2020-08-27 at 17:12 -0500, Mark Hatle wrote: > When the PR service is enabled a number of small changes may happen > to variables. In the do_package step a call to package_get_auto_pr > will end up setting PRAUTO and modifying PKGV (if AUTOINC is there). > > PRAUTO is then used by EXTENDP

[OE-core] [PATCH v2] sysstat: fix installed-vs-shipped QA Issue in systemd

2020-08-27 Thread hongxu
While enabling systemd, there is QA issue: ... |ERROR: sysstat-12.4.0-r0 do_package: QA Issue: sysstat: Files/directories were installed but not shipped in any package: | /lib/systemd/system-sleep | /lib/systemd/system-sleep/sysstat.sleep ... https://www.freedesktop.org/software/systemd/man/syst

[OE-core] [master][PATCH v7 3/3] package.bbclass: hash equivalency and pr service

2020-08-27 Thread Mark Hatle
When the PR service is enabled a number of small changes may happen to variables. In the do_package step a call to package_get_auto_pr will end up setting PRAUTO and modifying PKGV (if AUTOINC is there). PRAUTO is then used by EXTENDPRAUTO, which is then used to generate PKGR. Since this behavio

[OE-core] [master][PATCH v7 2/3] kernel.bbclass: Move away from calling package_get_auto_pr

2020-08-27 Thread Mark Hatle
...instead we call read_subpackage_metadata. Calling package_get_auto_pr *should* result in the same PKGV AUTOINC replacement. However, it will also end up changing PKGR differently then do_package as the BB_TASKHASH used will be for the wrong task. Generally this won't cause any real-world issu

[OE-core] [master][PATCH v7 0/3] Allow PR Service and hash equiv together

2020-08-27 Thread Mark Hatle
v7: Update packagedata_translate_pr_autoinc function to handle when there is no pkgdata to process. Exception: bb.process.ExecutionError: Execution of '/mnt/b/yoe/master/build/tmp/work/cortexa7t2hf-neon-vfpv4-yoe-linux-gnueabi/libtool-cross/2.4.6-r0/temp/run.packagedata_translate_pr_autoinc.2499

[OE-core] [master][PATCH v7 1/3] buildhistory.bbclass: Rework to use read_subpackage_metadata

2020-08-27 Thread Mark Hatle
Using this mechanism ensures that we have a single point to implement the loading of the package and subpackage meta data. This also then allows the buildhistory class to use the regular datastore vs it's own custom arrays for processing history items. Signed-off-by: Mark Hatle --- meta/classes

Re: [OE-core] [PATCH 4/6] oeqa/x32lib: rework to use readelf from the host

2020-08-27 Thread Khem Raj
On Thu, Aug 27, 2020 at 2:36 PM Alexander Kanavin wrote: > > On Thu, 27 Aug 2020 at 23:31, Khem Raj wrote: >> >> On Thu, Aug 27, 2020 at 4:00 AM Alexander Kanavin >> wrote: >> > >> > It is difficult and error-prone to ensure binutils gets >> > installed into target images where this test may run

Re: [OE-core] [PATCH 4/6] oeqa/x32lib: rework to use readelf from the host

2020-08-27 Thread Alexander Kanavin
On Thu, 27 Aug 2020 at 23:31, Khem Raj wrote: > On Thu, Aug 27, 2020 at 4:00 AM Alexander Kanavin > wrote: > > > > It is difficult and error-prone to ensure binutils gets > > installed into target images where this test may run; > > on the other hand readelf is always present on the > > host, as

Re: [OE-core] [PATCH 4/6] oeqa/x32lib: rework to use readelf from the host

2020-08-27 Thread Khem Raj
On Thu, Aug 27, 2020 at 4:00 AM Alexander Kanavin wrote: > > It is difficult and error-prone to ensure binutils gets > installed into target images where this test may run; > on the other hand readelf is always present on the > host, as it is a part of HOSTTOOLS. > this would mean that we are rel

[OE-core] [PATCH v2] kernel-yocto: checksum all modifications to available kernel fragments directories

2020-08-27 Thread Bruce Ashfield
From: Bruce Ashfield This is based on the patch from Zhaolong Zhang [kernel-yocto: checksum indirect cfg and scc files] While the recommended manner to share/reuse feature fragments is to maintain them in a kernel-meta repository and track the changes via the standard SRCREV fetcher mechanism,

Re: [OE-core] [PATCH v2] wic/bootimg-efi: IMAGE_EFI_BOOT_FILES added to separate bootimg-efi and bootimg-partition

2020-08-27 Thread Randy Witt
On 8/26/20 1:13 AM, Jamaluddin, Khairul Rohaizzat wrote: From: Khairul Rohaizzat Jamaluddin Due to recent changes in bootimg-efi to include IMAGE_BOOT_FILES, when both bootimg-partition and bootimg-efi occur in a single .wks and IMAGE_BOOT_FILES are defined, files listed in IMAGE_BOOT_FILES wil

[OE-core] [master][PATCH v6 0/3] Allow PR Service and hash equiv together

2020-08-27 Thread Mark Hatle
v6: Refactor do_packagedata to use existing copy routine, and then sed "inline" to translate EXTENDPRAUTO and AUTOINC parts. v5 (not sent to mailing list): Refactor do_packagedata and create a custom copy routine. The routine also uses sed to translate EXTENDPRAUTO and AUTOINC. This also intro

[OE-core] [master][PATCH v6 2/3] kernel.bbclass: Move away from calling package_get_auto_pr

2020-08-27 Thread Mark Hatle
...instead we call read_subpackage_metadata. Calling package_get_auto_pr *should* result in the same PKGV AUTOINC replacement. However, it will also end up changing PKGR differently then do_package as the BB_TASKHASH used will be for the wrong task. Generally this won't cause any real-world issu

[OE-core] [master][PATCH v6 3/3] package.bbclass: hash equivalency and pr service

2020-08-27 Thread Mark Hatle
When the PR service is enabled a number of small changes may happen to variables. In the do_package step a call to package_get_auto_pr will end up setting PRAUTO and modifying PKGV (if AUTOINC is there). PRAUTO is then used by EXTENDPRAUTO, which is then used to generate PKGR. Since this behavio

[OE-core] [master][PATCH v6 1/3] buildhistory.bbclass: Rework to use read_subpackage_metadata

2020-08-27 Thread Mark Hatle
Using this mechanism ensures that we have a single point to implement the loading of the package and subpackage meta data. This also then allows the buildhistory class to use the regular datastore vs it's own custom arrays for processing history items. Signed-off-by: Mark Hatle --- meta/classes

[OE-core] [PATCH 1/5] linux-yocto/5.4: update to v5.4.61

2020-08-27 Thread Bruce Ashfield
From: Bruce Ashfield Updating linux-yocto/5.4 to the latest korg -stable release that comprises the following commits: 6576d69aac94 Linux 5.4.61 d316d52742c4 KVM: arm64: Only reschedule if MMU_NOTIFIER_RANGE_BLOCKABLE is not set e1818ffcca0e KVM: Pass MMU notifier range flags to kvm

[OE-core] [PATCH 0/5] kernel-yocto: consolidated pull request

2020-08-27 Thread Bruce Ashfield
From: Bruce Ashfield Richard, Here's the latest set of queued kernel changes. Two are routine -stable updates, the other meta data change is the cherry pick of a 5.4 change we had, that I somehow missed when creating the 5.8 config branch. This will get rid of he intermittent reproducibility fa

[OE-core] [PATCH 3/5] linux-yocto/5.8: disable IKHEADERS in default builds

2020-08-27 Thread Bruce Ashfield
From: Bruce Ashfield A patch from 5.4 wasn't propagated to 5.8, and IKHEADERS was renabled in our default builds. This cases reproducibility issues when kernel modules are built. We haven't tracked down the root cause yet, but for now, we still don't want reproducibility failing on builds. The

[OE-core] [PATCH 5/5] kernel-yocto: allow promotion of configuration warnings to errors

2020-08-27 Thread Bruce Ashfield
From: Bruce Ashfield It was requested to add the ability to upgrade configuration warnings to errors, so that they can't be missed in a build. Add a flag KMETA_AUDIT_WERROR, that when set, triggers a bb.fatal at the end of configuration checking if any warnings are found. This is off by default

[OE-core] [PATCH 2/5] linux-yocto/5.8: update to v5.8.4

2020-08-27 Thread Bruce Ashfield
From: Bruce Ashfield Updating linux-yocto/5.8 to the latest korg -stable release that comprises the following commits: 47dcb7fcad1d Linux 5.8.4 920ebff48be3 Revert "drm/amd/display: Improve DisplayPort monitor interop" d0a3a0136337 KVM: arm64: Only reschedule if MMU_NOTIFIER_RANGE_BL

[OE-core] [PATCH 4/5] kernel-yocto: checksum all modifications to available kernel fragments directories

2020-08-27 Thread Bruce Ashfield
From: Bruce Ashfield This is based on the patch from Zhaolong Zhang [kernel-yocto: checksum indirect cfg and scc files] While the recommended manner to share/reuse feature fragments is to maintain them in a kernel-meta repository and track the changes via the standard SRCREV fetcher mechanism,

Re: [OE-core] [PATCH] devtool: unset _PYTHON_SYSCONFIGDATA_NAME

2020-08-27 Thread gr embeter
Hi Alex On Thu, Aug 27, 2020 at 4:59 PM Alexander Kanavin wrote: > > I am able to execute that exact same command without any errors. How can this be reproduced? Did you run it on Ubuntu 20.04 with Python 3.8? » python3 --version Python 3.8.2 » apt-cache policy python3.8 python3.8: Install

[OE-core] [PATCH v2] package.bbclass: explode the RPROVIDES so we don't think the versions are provides

2020-08-27 Thread Ross Burton
From: Ross Burton emit_pkgdata() creates symlinks for each of the RPROVIDES in pkgdata/MACHINE/runtime-rprovides. However this string can contain versions which results in directories called (=2.32), so pass the RPROVIDES string through bb.utils.explode_deps() to strip the versions out. Helps m

Re: [OE-core] [PATCH] sysstat: fix installed-vs-shipped QA Issue in systemd

2020-08-27 Thread Ross Burton
On Thu, 27 Aug 2020 at 03:12, hongxu wrote: > > While enabling systemd, there is QA issue: > ... > |ERROR: sysstat-12.4.0-r0 do_package: QA Issue: sysstat: Files/directories > were installed but not shipped in any package: > | /lib/systemd/system-sleep > | /lib/systemd/system-sleep/sysstat.sleep

Re: [OE-core] [PATCH] devtool: unset _PYTHON_SYSCONFIGDATA_NAME

2020-08-27 Thread Alexander Kanavin
I am able to execute that exact same command without any errors. How can this be reproduced? Note that we already had the same patch proposed earlier and it was rejected, as the problem pops up in various different places and needs to be understood and solved properly. Alex On Thu, 27 Aug 2020 a

[OE-core] [PATCH] devtool: unset _PYTHON_SYSCONFIGDATA_NAME

2020-08-27 Thread gr embeter
On Ubuntu 20.04.1 LTS with Python 3.8.2 "devtool modify" fails with Exception: ModuleNotFoundError: No module named '_sysconfigdata' e.g.: devtool modify --no-same-dir --branch fit u-boot ~/ws/w/dtool/u-boot-fit ERROR: Error executing a python function in exec_python_func() autogenerated: The st

[OE-core] [PATCH] package.bbclass: explode the RPROVIDES so we don't think the versions are provides

2020-08-27 Thread Ross Burton
From: Ross Burton emit_pkgdata() creates symlinks for each of the RPROVIDES in pkgdata/MACHINE/runtime-rprovides. However this string can contain versions which results in directories called (=2.32), so pass the RPROVIDES string through bb.utils.explode_deps() to strip the versions out. Also us

Re: [OE-core] [meta-gplv2][PATCH 1/1] util-linux: remove GPLv3 and pylibmount

2020-08-27 Thread Richard Purdie
On Thu, 2020-08-27 at 13:28 +0200, Adrian Freihofer wrote: > python bindings are GPLv3+. > > Signed-off-by: Adrian Freihofer > --- > recipes-core/util-linux/util-linux_%.bbappend | 10 ++ > 1 file changed, 10 insertions(+) > create mode 100644 recipes-core/util-linux/util-linux_%.bbappe

Re: [OE-core] [PATCH 6/6] oeqa/multilib: un-skip the connman test

2020-08-27 Thread Richard Purdie
On Thu, 2020-08-27 at 13:25 +0200, Alexander Kanavin wrote: > On Thu, 27 Aug 2020 at 13:06, Richard Purdie > wrote: > > Hmm. I think this test is only meant to trigger in a lib32-core-image- > > sato where lib32-connman would be present and connman would not? > > > > The test name could certainl

[OE-core] [meta-gplv2][PATCH 0/1] util-linux without python

2020-08-27 Thread Adrian Freihofer
It's not completely tested because we do not use meta-gplv2 layer. But I guess it will solve the Problem of this build pipeline: https://autobuilder.yoctoproject.org/typhoon/#/builders/75/builds/2371 Adrian Freihofer (1): util-linux: remove GPLv3 and pylibmount recipes-core/util-linux/util-lin

[OE-core] [meta-gplv2][PATCH 1/1] util-linux: remove GPLv3 and pylibmount

2020-08-27 Thread Adrian Freihofer
python bindings are GPLv3+. Signed-off-by: Adrian Freihofer --- recipes-core/util-linux/util-linux_%.bbappend | 10 ++ 1 file changed, 10 insertions(+) create mode 100644 recipes-core/util-linux/util-linux_%.bbappend diff --git a/recipes-core/util-linux/util-linux_%.bbappend b/recipes

Re: [OE-core] [PATCH 6/6] oeqa/multilib: un-skip the connman test

2020-08-27 Thread Alexander Kanavin
On Thu, 27 Aug 2020 at 13:06, Richard Purdie < richard.pur...@linuxfoundation.org> wrote: > Hmm. I think this test is only meant to trigger in a lib32-core-image- > sato where lib32-connman would be present and connman would not? > > The test name could certainly be clearer as its not a generic co

Re: [OE-core] [meta-oe][PATCH] util-linux: Set license for pylibmount sub package

2020-08-27 Thread Richard Purdie
On Wed, 2020-08-26 at 22:54 +0100, Richard Purdie via lists.openembedded.org wrote: > On Wed, 2020-08-26 at 18:13 +0200, Adrian Freihofer wrote: > > Signed-off-by: Adrian Freihofer > > --- > > meta/recipes-core/util-linux/util-linux_2.36.bb | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletio

Re: [OE-core] [PATCH 6/6] oeqa/multilib: un-skip the connman test

2020-08-27 Thread Richard Purdie
On Thu, 2020-08-27 at 12:59 +0200, Alexander Kanavin wrote: > It was previously skipped as it was expecting plain connman > to not be in the image, and for core-image-sato connman is always > there. > > Signed-off-by: Alexander Kanavin > --- > meta/lib/oeqa/runtime/cases/multilib.py | 2 +- > 1

[OE-core] [PATCH 4/6] oeqa/x32lib: rework to use readelf from the host

2020-08-27 Thread Alexander Kanavin
It is difficult and error-prone to ensure binutils gets installed into target images where this test may run; on the other hand readelf is always present on the host, as it is a part of HOSTTOOLS. Signed-off-by: Alexander Kanavin --- meta/lib/oeqa/runtime/cases/x32lib.py | 17 +++--

[OE-core] [PATCH 2/6] json-glib: inherit upstream-version-is-even

2020-08-27 Thread Alexander Kanavin
As specified in https://wiki.gnome.org/Projects/JsonGlib Signed-off-by: Alexander Kanavin --- meta/recipes-gnome/json-glib/json-glib_1.4.4.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-gnome/json-glib/json-glib_1.4.4.bb b/meta/recipes-gnome/json-glib/json-g

[OE-core] [PATCH 5/6] oeqa/multilib: rework to use readelf from the host

2020-08-27 Thread Alexander Kanavin
It is difficult and error-prone to ensure binutils gets installed into target images where this test may run; on the other hand readelf is always present on the host, as it is a part of HOSTTOOLS. Signed-off-by: Alexander Kanavin --- meta/lib/oeqa/runtime/cases/multilib.py | 9 ++--- 1 file

[OE-core] [PATCH 3/6] packagegroup-core-device-devel: remove

2020-08-27 Thread Alexander Kanavin
The purpose and content of the group is not clear; the only consumer (poky distro) is no longer using it. Signed-off-by: Alexander Kanavin --- .../packagegroup-core-device-devel.bb| 16 1 file changed, 16 deletions(-) delete mode 100644 meta/recipes-devtools/packag

[OE-core] [PATCH 1/6] systemd-boot: bump version to 246.2

2020-08-27 Thread Alexander Kanavin
The recipe includes systemd.inc and so shares SRCREV with the main systemd. Signed-off-by: Alexander Kanavin --- .../systemd/{systemd-boot_246.1.bb => systemd-boot_246.2.bb} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename meta/recipes-core/systemd/{systemd-boot_246.1.bb => sys

[OE-core] [PATCH 6/6] oeqa/multilib: un-skip the connman test

2020-08-27 Thread Alexander Kanavin
It was previously skipped as it was expecting plain connman to not be in the image, and for core-image-sato connman is always there. Signed-off-by: Alexander Kanavin --- meta/lib/oeqa/runtime/cases/multilib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/lib/oeqa/runt

Re: [OE-core][PATCH V2] connman-conf: make connman-conf only available for qemuall

2020-08-27 Thread Ross Burton
On Thu, 27 Aug 2020 at 09:48, zhou li wrote: > I have a question here: > building for a real machine (say, intel-corei7-64): MACHINE ?= > intel-corei7-64 > > While in connman-conf.bb: > SRC_URI_append_qemuall = " file://wired.config \ > file://wired-setup \ >

[OE-core] [PATCH] lttng: Move platform logic to dedicated inc file

2020-08-27 Thread Richard Purdie
Some platforms support kernel tracing, some support userspace tracing. This change: * Moves the knowledge/config to one place in an inc file * Allows lttng-tools to build without lttng-modules * Hence enables tools+ust for riscv64 * Has the packagegroup just depend on lttng-tools which will pull i

Re: [OE-core][PATCH V2] connman-conf: make connman-conf only available for qemuall

2020-08-27 Thread Li Zhou
On 8/26/20 9:06 PM, Ross Burton wrote: On Fri, 21 Aug 2020 at 09:07, Martin Jansa wrote: We're using connman-conf to configure networking on various target machines - not only on qemu*. If this is merged I'll just undo this in our layer - and that's fine, but if there are more people using c

Re: [OE-core] [PATCH] lttng-tools: Do not build for riscv64

2020-08-27 Thread Richard Purdie
On Thu, 2020-08-27 at 09:21 +0100, Ross Burton wrote: > On Thu, 27 Aug 2020 at 03:17, Khem Raj wrote: > > > LTTng does not have a hard requirement on lttng-modules (on > > > paper), when kernel modules > > > (tracer) is not present kernel tracing is disabled and only > > > userspace tracing is > >

Re: [OE-core] [PATCH] lttng-tools: Do not build for riscv64

2020-08-27 Thread Ross Burton
On Thu, 27 Aug 2020 at 03:17, Khem Raj wrote: > > LTTng does not have a hard requirement on lttng-modules (on paper), when > > kernel modules > > (tracer) is not present kernel tracing is disabled and only userspace > > tracing is > > available. > > > > Was there any report that lttng-ust (users