[OE-core] [scarthgap][PATCH] openssh: add backported header file include

2024-08-28 Thread Jon Mason
Backport upstream patch to add a missing header. The patch says it is for systemd, but I am seeing build issues when building openssh with clang and musl. The issue being seen is: #warning usage of non-standard #include is deprecated And similar deprecated warnings. This patch resolves the iss

Re: [PATCH] [OE-core] [PATCH] systemd: use update-alternatives to solve conflicts with polkit

2024-08-28 Thread Chen Qi via lists.openembedded.org
Hi Khem, the owner/permission change is from the following commit in meta-oe: commit 6da0fd21c900e32a0693a6b27d38182f19c8c76c Author: Luca Boccassi bl...@debian.org Date: Mon Aug 12 12:15:40 2024 +0100 polkit: stop overriding DAC on /usr/share/polkit-1/rules.d

Re: [PATCH] [OE-core] [PATCH] systemd: use update-alternatives to solve conflicts with polkit

2024-08-28 Thread Khem Raj
On Wed, Aug 28, 2024 at 6:22 PM wangmy via lists.openembedded.org wrote: > | Are you using package_rpm and dnf to compose the image? > Yes. > > I checked the permission of rules.d, they are different: > > systemd: %attr(700,polkitd,root) %dir "/usr/share/polkit-1/rules.d" > polkit: %attr(755,roo

Re: [PATCH] [OE-core] [PATCH] systemd: use update-alternatives to solve conflicts with polkit

2024-08-28 Thread wangmy via lists.openembedded.org
| Are you using package_rpm and dnf to compose the image? Yes. I checked the permission of rules.d, they are different: systemd: %attr(700,polkitd,root) %dir "/usr/share/polkit-1/rules.d" polkit: %attr(755,root,root) %dir "/usr/share/polkit-1/rules.d" If the permission need to be unified, whi

[OE-core] [kirkstone][PATCH] grub: fs/fat: Don't error when mtime is 0

2024-08-28 Thread Chaitanya Vadrevu
From: Ming Liu A issue was found when I run "runqemu genericx86-64 ovmf", grub failed to boot, it's a known issue has been fixed in grub upstream, backport the fix. Signed-off-by: Ming Liu Signed-off-by: Richard Purdie (cherry picked from commit 51eab4bb0cae46c9c32d28986eb97badf47594b7) Signed

[OE-core] Patchtest results for [PATCH 2/2] insane: Allow ERROR_QA to use 'contains' hash optimisations for do_package_qa

2024-08-28 Thread Patchtest
Thank you for your submission. Patchtest identified one or more issues with the patch. Please see the log below for more information: --- Testing patch /home/patchtest/share/mboxes/2-2-insane-Allow-ERROR_QA-to-use-contains-hash-optimisations-for-do_package_qa.patch FAIL: test max line length: Pa

[OE-core] [PATCH 2/2] insane: Allow ERROR_QA to use 'contains' hash optimisations for do_package_qa

2024-08-28 Thread Richard Purdie
We want ERROR_QA to operate using the "contains" optimizations which means accessing the variable only using the contains function. To do this, remove usage of ALL_QA, open coding the few references to check both WARN_QA and ERROR_QA. Move the function table generation to a separate function wher

[OE-core] [PATCH 1/2] insane: Further simplify code

2024-08-28 Thread Richard Purdie
Now handle_error is used, we can further simplify the QA test execution as we don't need seperate function lists for warnings and errors. Signed-off-by: Richard Purdie --- meta/classes-global/insane.bbclass | 41 ++ 1 file changed, 14 insertions(+), 27 deletions(-) d

Re: [OE-core] [PATCH 19/24] python3-setuptools: upgrade 72.1.0 -> 72.2.0

2024-08-28 Thread Alexander Kanavin
If numpy 2.x update was prevented by lack of recent piglit, that has now landed in master. Alex On Wed, 28 Aug 2024 at 22:31, Trevor Gamblin wrote: > > > On 2024-08-28 4:19 p.m., Alexander Kanavin wrote: > > On Wed, 28 Aug 2024 at 22:05, Trevor Gamblin via > > lists.openembedded.org > > wrote:

Re: [OE-core] [PATCH 19/24] python3-setuptools: upgrade 72.1.0 -> 72.2.0

2024-08-28 Thread Trevor Gamblin
On 2024-08-28 4:19 p.m., Alexander Kanavin wrote: On Wed, 28 Aug 2024 at 22:05, Trevor Gamblin via lists.openembedded.org wrote: Even with that workaround, I see a more serious issue: |DEBUG: Executing shell function do_compile |/home/tgamblin/workspace/yocto/poky/build/tmp/work/core2-64-poky

Re: [OE-core] [PATCH 19/24] python3-setuptools: upgrade 72.1.0 -> 72.2.0

2024-08-28 Thread Alexander Kanavin
On Wed, 28 Aug 2024 at 22:05, Trevor Gamblin via lists.openembedded.org wrote: > Even with that workaround, I see a more serious issue: > > |DEBUG: Executing shell function do_compile > |/home/tgamblin/workspace/yocto/poky/build/tmp/work/core2-64-poky-linux/python3-numpy/1.26.4/numpy-1.26.4/setup.

Re: [OE-core] [PATCH 19/24] python3-setuptools: upgrade 72.1.0 -> 72.2.0

2024-08-28 Thread Trevor Gamblin
On 2024-08-22 2:26 p.m., Martin Jansa via lists.openembedded.org wrote: It seems to fail only when ccache is enabled, I'll send patch to add CCACHE_DISABLE to numpy recipe to work around this issue for now. Even with that workaround, I see a more serious issue: |DEBUG: Executing shell functio

[OE-core] [PATCH] gdb: Fix build with latest clang

2024-08-28 Thread Khem Raj
This patch is already proposed upstream and perhaps landing soon in gdb master. Signed-off-by: Khem Raj --- meta/recipes-devtools/gdb/gdb.inc | 1 + ...constexpr-conversion-in-enum-flags.h.patch | 313 ++ 2 files changed, 314 insertions(+) create mode 100644 meta/

Re: [OE-core] [PATCH 07/34] fmt: update 10.2.1 -> 11.0.2

2024-08-28 Thread Khem Raj
breaks mariadb-native - https://errors.yoctoproject.org/Errors/Details/800105/ gerbera - https://errors.yoctoproject.org/Errors/Details/800106/ On Mon, Aug 26, 2024 at 10:24 PM Alexander Kanavin via lists.openembedded.org wrote: > > From: Alexander Kanavin > > Signed-off-by: Alexander Kanavin >

[OE-core] [PATCH v2 1/2] lib/oe: Use new visitorcode functionality for qa.handle_error()

2024-08-28 Thread Richard Purdie
Early functions like do_recipe_qa (which do_fetch depends upon) reference oe.qa.handle_error() which in turn adds dependencies on ERROR_QA and WARN_QA. This means that ERROR_QA:append = " nothing" will cause literally everything to rebuild and break sstate reuse. Take advantage of new bitbake func

[OE-core] [PATCH v2 2/2] insane: Optimise ERROR_QA/WARN_QA references in do_populate_sysroot

2024-08-28 Thread Richard Purdie
The new contains code can't inspect variable references in handle_error() calls. Expand what is effectively a hardcoded reference anyway so the code can optimise it. Signed-off-by: Richard Purdie --- meta/classes-global/insane.bbclass | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) d

[yocto] OpenEmbedded Happy Hour August 28 9pm/2100 UTC

2024-08-28 Thread Denys Dmytriyenko
All, Just a quick reminder about our monthly OpenEmbedded Happy Hour that is scheduled for today, August 28 at 2100/9pm UTC (5pm ET/2pm PT) https://www.openembedded.org/wiki/Calendar https://www.openembedded.org/wiki/Happy_Hours https://www.timeanddate.com/worldclock/fixedtime.html?msg=OpenEmbed

[OE-core] Patchtest results for [PATCH] insane: Drop oe.qa.add_message usage

2024-08-28 Thread Patchtest
Thank you for your submission. Patchtest identified one or more issues with the patch. Please see the log below for more information: --- Testing patch /home/patchtest/share/mboxes/insane-Drop-oe.qa.add_message-usage.patch FAIL: test max line length: Patch line too long (current length 236, maxi

[OE-core] [PATCH] insane: Drop oe.qa.add_message usage

2024-08-28 Thread Richard Purdie
Drop the oe.qa.add_message() usage in favour of oe.qa.handle_error() which has code allowing it to be optimised with contains usage. The patch also drops unused return values which we stopped using a while ago and drops the now unneeded function parameters, generally leading to cleaner code. The

Re: [OE-core] [PATCH 2/2] rust: Upgrade 1.78.0->1.79.0

2024-08-28 Thread Alexander Kanavin
On Tue, 27 Aug 2024 at 23:02, Khem Raj wrote: > OE/Poky compiler is built with --enable-default-pie and that will pass > -pie option implicitly whenever it is invoked. Perhaps > default system compiler on alma9 is not. > zlib crate seems to perhaps ignore the option or maybe its missing a > place

[OE-core] [PATCH 2/2] insane: Optimise ERROR_QA/WARN_QA references in do_populate_sysroot

2024-08-28 Thread Richard Purdie
The new contains code can't inspect variable references in handle_error() calls. Expand what is effectively a hardcoded reference anyway so the code can optimise it. Signed-off-by: Richard Purdie --- meta/classes-global/insane.bbclass | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) d

[OE-core] [PATCH 1/2] lib/oe: Use new visitorcode functionality for qa.handle_error()

2024-08-28 Thread Richard Purdie
Early functions like do_recipe_qa (which do_fetch depends upon) reference oe.qa.handle_error() which in turn adds dependencies on ERROR_QA and WARN_QA. This means that ERROR_QA:append = " nothing" will cause literally everything to rebuild and break sstate reuse. Take advantage of new bitbake func

Re: [OE-core] Unexpected behavior with class-native and class-target in combination with inherit(_defer)

2024-08-28 Thread Richard Purdie
On Wed, 2024-08-28 at 09:40 +, Jasper Orschulko via lists.openembedded.org wrote: > we are on the latest scarthgap and trying to use class-target to do > target specific overrides, as described in > https://docs.yoctoproject.org/4.0.20/singleindex.html#native. > > We tried removing python fro

[OE-core] Unexpected behavior with class-native and class-target in combination with inherit(_defer)

2024-08-28 Thread Jasper Orschulko via lists.openembedded.org
Hi, we are on the latest scarthgap and trying to use class-target to do target specific overrides, as described in https://docs.yoctoproject.org/4.0.20/singleindex.html#native. We tried removing python from PACKAGECONFIG:class-target. However, this breaks the native build of libxml2. This is due

[OE-core] [PATCH v2] resulttool: Add support to create test report in JUnit XML format

2024-08-28 Thread Clara Kowalsky via lists.openembedded.org
This adds the functionality to convert the results of the testresults.json file to a unit test report in JUnit XML format. The unit test report can be used in the CI/CD pipeline to display the test results. To use the resulttool scripts, first source oe environment, then run the entry point script

Re: [PATCH] [OE-core] [PATCH] systemd: use update-alternatives to solve conflicts with polkit

2024-08-28 Thread Alexander Kanavin
On Wed, 28 Aug 2024 at 11:04, Mingyu Wang (Fujitsu) wrote: > > The name of /usr/share/polkit-1/rules.d are the same, but the files contained > in the path are different. > What methods can be chosen to solve this problem in this situation? Are you using package_rpm and dnf to compose the image?

Re: [OE-core] [PATCH] util-linux: use update-alternatives to solve conflicts with lastlog2

2024-08-28 Thread Alexander Kanavin
On Wed, 28 Aug 2024 at 11:04, Mingyu Wang (Fujitsu) wrote: > I found that the lastlog2 have been merged into util-linux: > https://github.com/thkukuk/lastlog2/commit/60bea9dcee0fa18ea3dce0372a14f5e4f177ada6 > > There are two solutions: > 1. delete lastlog2 > 2. Add RCONFLICTS option for control >

Re: [PATCH] [OE-core] [PATCH] systemd: use update-alternatives to solve conflicts with polkit

2024-08-28 Thread wangmy via lists.openembedded.org
The name of /usr/share/polkit-1/rules.d are the same, but the files contained in the path are different. What methods can be chosen to solve this problem in this situation? -- Best Regards --- Wang Mingyu FUJITSU NANJING SOFTWARE TECHNOLOGY CO.,

Re: [OE-core] [PATCH] util-linux: use update-alternatives to solve conflicts with lastlog2

2024-08-28 Thread wangmy via lists.openembedded.org
I found that the lastlog2 have been merged into util-linux: https://github.com/thkukuk/lastlog2/commit/60bea9dcee0fa18ea3dce0372a14f5e4f177ada6 There are two solutions: 1. delete lastlog2 2. Add RCONFLICTS option for control Which option is better to choose? Or if there are any other better sugge

Re: [PATCH] [OE-core] [PATCH] systemd: use update-alternatives to solve conflicts with polkit

2024-08-28 Thread Alexander Kanavin
This is really not the right way to resolve the issue: both recipes install files into this directory and expect those files to be present where they put them. Is the real solution installing systemd or polkit but not both maybe? Or if you need both, then you should look into why package manager t

Re: [OE-core] [PATCH] util-linux: use update-alternatives to solve conflicts with lastlog2

2024-08-28 Thread Alexander Kanavin
I don't think this is the right way to resolve the problem. You should be installing one or the other, but not both. Alex On Wed, 28 Aug 2024 at 10:27, wangmy via lists.openembedded.org wrote: > > From: Wang Mingyu > > Error: Transaction test error: > file /usr/bin/lastlog2 conflicts between

[OE-core] [PATCH] util-linux: use update-alternatives to solve conflicts with lastlog2

2024-08-28 Thread wangmy via lists.openembedded.org
From: Wang Mingyu Error: Transaction test error: file /usr/bin/lastlog2 conflicts between attempted installs of lastlog2-1.2.0-r0.core2_64 and util-linux-lastlog2-2.40.1-r0.core2_64 file /usr/lib/security/pam_lastlog2.so conflicts between attempted installs of lastlog2-1.2.0-r0.core2_64 and

[PATCH] [OE-core] [PATCH] systemd: use update-alternatives to solve conflicts with polkit

2024-08-28 Thread wangmy via lists.openembedded.org
From: Wang Mingyu Error: Transaction test error: file /usr/share/polkit-1/rules.d conflicts between attempted installs of polkit-125-r0.core2_64 and systemd-1:256.5-r0.core2_64 polkit also uses the doc '/usr/share/polkit-1/rules.d'. polkit has a priority of 100. Signed-off-by: Wang Mingyu -