Re: [OE-core] [PATCH 3/3] python3-cython: update 0.29.36 -> 3.0.7

2024-01-08 Thread Alexander Kanavin
I suspect this might have been a transient network issue. Both tests
fetch stuff from 3rd party servers.

Alex

On Mon, 8 Jan 2024 at 08:39, Alexandre Belloni
 wrote:
>
> On 07/01/2024 20:54:18+0100, Alexandre Belloni via lists.openembedded.org 
> wrote:
> > Hello,
> >
> > I believe this causes those failures on fedora, oe-selftest passed on
> > the other hosts:
> >
> > https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/6287/steps/14/logs/stdio
> > https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/6288/steps/14/logs/stdio
> >
> > Or maybe fedora38-ty-4 is the issue, I've started a build without the
> > patch on this worker now.
> >
>
> Amazingly, I can't reproduce anymore...
>
> >
> > On 05/01/2024 14:35:43+0100, Alexander Kanavin wrote:
> > > pep517 build backends require cython 3.x when
> > > python is at 3.12, so we can't hold this update any
> > > longer. There are only a few things in meta-oe
> > > and meta that break anymore, and fixes for them
> > > are provided at the same time as this patch.
> > >
> > > License-update: http -> https
> > >
> > > Signed-off-by: Alexander Kanavin 
> > > ---
> > >  meta/recipes-devtools/python/python-cython.inc | 7 +--
> > >  .../{python3-cython_0.29.36.bb => python3-cython_3.0.7.bb} | 0
> > >  2 files changed, 5 insertions(+), 2 deletions(-)
> > >  rename meta/recipes-devtools/python/{python3-cython_0.29.36.bb => 
> > > python3-cython_3.0.7.bb} (100%)
> > >
> > > diff --git a/meta/recipes-devtools/python/python-cython.inc 
> > > b/meta/recipes-devtools/python/python-cython.inc
> > > index 6aec6b012f1..bc1953c5045 100644
> > > --- a/meta/recipes-devtools/python/python-cython.inc
> > > +++ b/meta/recipes-devtools/python/python-cython.inc
> > > @@ -5,11 +5,11 @@ It's designed to bridge the gap between the nice, 
> > > high-level, easy-to-use world
> > >  and the messy, low-level world of C."
> > >  SECTION = "devel/python"
> > >  LICENSE = "Apache-2.0"
> > > -LIC_FILES_CHKSUM = 
> > > "file://LICENSE.txt;md5=e23fadd6ceef8c618fc1c65191d846fa"
> > > +LIC_FILES_CHKSUM = 
> > > "file://LICENSE.txt;md5=61c3ee8961575861fa86c7e62bc9f69c"
> > >  PYPI_PACKAGE = "Cython"
> > >  BBCLASSEXTEND = "native nativesdk"
> > >
> > > -SRC_URI[sha256sum] = 
> > > "41c0cfd2d754e383c9eeb95effc9aa4ab847d0c9747077ddd7c0dcb68c3bc01f"
> > > +SRC_URI[sha256sum] = 
> > > "fb299acf3a578573c190c858d49e0cf9d75f4bc49c3f24c5a63804997ef09213"
> > >  UPSTREAM_CHECK_REGEX = "Cython-(?P.*)\.tar"
> > >
> > >  inherit pypi
> > > @@ -39,4 +39,7 @@ do_install:append() {
> > > for PYTHSCRIPT in `grep -rIl '^#!.*python' ${D}`; do
> > > sed -i -e '1s|^#!.*|#!/usr/bin/env ${PYTHON_PN}|' $PYTHSCRIPT
> > > done
> > > +
> > > +# remove build paths from generated sources
> > > +sed -i -e 's|${WORKDIR}||' ${S}/Cython/*.c 
> > > ${S}/Cython/Compiler/*.c ${S}/Cython/Plex/*.c
> > >  }
> > > diff --git a/meta/recipes-devtools/python/python3-cython_0.29.36.bb 
> > > b/meta/recipes-devtools/python/python3-cython_3.0.7.bb
> > > similarity index 100%
> > > rename from meta/recipes-devtools/python/python3-cython_0.29.36.bb
> > > rename to meta/recipes-devtools/python/python3-cython_3.0.7.bb
> > > --
> > > 2.39.2
> > >
> >
> > >
> > >
> > >
> >
> >
> > --
> > Alexandre Belloni, co-owner and COO, Bootlin
> > Embedded Linux and Kernel engineering
> > https://bootlin.com
>
> >
> > 
> >
>
>
> --
> Alexandre Belloni, co-owner and COO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193396): 
https://lists.openembedded.org/g/openembedded-core/message/193396
Mute This Topic: https://lists.openembedded.org/mt/103542146/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH] gptfdisk: Make the version consistent

2024-01-08 Thread Yu, Mingli
From: Mingli Yu 

The previous change [262aa17e0e popt: update 1.18 -> 1.19] backports a
patch [1] for gptfdisk and make the version bump from 1.0.9 to 1.0.9.1
and make the package version inconsistent as below:
root@qemux86-64:~# rpm -qa | grep gptfdisk
gptfdisk-1.0.9-r0.core2_64
root@qemux86-64:~# rpm -ql gptfdisk
/usr
/usr/sbin
/usr/sbin/cgdisk
/usr/sbin/fixparts
/usr/sbin/gdisk
/usr/sbin/sgdisk
root@qemux86-64:~# gdisk --help
GPT fdisk (gdisk) version 1.0.9.1

[snip]

So update the bumped version part to make the package version consistent.

[1] 
https://sourceforge.net/p/gptfdisk/code/ci/5d5e76d369a412bfb3d2cebb5fc0a7509cef878d

Signed-off-by: Mingli Yu 
---
 ...h-of-sgdisk-when-compiled-with-lates.patch | 25 +--
 1 file changed, 6 insertions(+), 19 deletions(-)

diff --git 
a/meta/recipes-devtools/fdisk/gptfdisk/0001-Fix-failure-crash-of-sgdisk-when-compiled-with-lates.patch
 
b/meta/recipes-devtools/fdisk/gptfdisk/0001-Fix-failure-crash-of-sgdisk-when-compiled-with-lates.patch
index 218d9d6713..095d00b1e2 100644
--- 
a/meta/recipes-devtools/fdisk/gptfdisk/0001-Fix-failure-crash-of-sgdisk-when-compiled-with-lates.patch
+++ 
b/meta/recipes-devtools/fdisk/gptfdisk/0001-Fix-failure-crash-of-sgdisk-when-compiled-with-lates.patch
@@ -1,4 +1,4 @@
-From 5d5e76d369a412bfb3d2cebb5fc0a7509cef878d Mon Sep 17 00:00:00 2001
+From e7f9c9909c27d6ceed5aa4ca17023a1bc94b620a Mon Sep 17 00:00:00 2001
 From: Rod Smith 
 Date: Fri, 15 Apr 2022 18:10:14 -0400
 Subject: [PATCH] Fix failure & crash of sgdisk when compiled with latest popt
@@ -6,11 +6,11 @@ Subject: [PATCH] Fix failure & crash of sgdisk when compiled 
with latest popt
 
 Upstream-Status: Backport 
[https://sourceforge.net/p/gptfdisk/code/ci/5d5e76d369a412bfb3d2cebb5fc0a7509cef878d/]
 Signed-off-by: Alexander Kanavin 
+Signed-off-by: Mingli Yu 
 ---
- NEWS  | 8 
- gptcl.cc  | 2 +-
- support.h | 2 +-
- 3 files changed, 10 insertions(+), 2 deletions(-)
+ NEWS | 8 
+ gptcl.cc | 2 +-
+ 2 files changed, 9 insertions(+), 1 deletion(-)
 
 diff --git a/NEWS b/NEWS
 index c7add56..9e153fd 100644
@@ -41,19 +41,6 @@ index 34c9421..0d578eb 100644
 poptResetContext(poptCon);
  
 if (device != NULL) {
-diff --git a/support.h b/support.h
-index 8ba9ad1..f91f1bc 100644
 a/support.h
-+++ b/support.h
-@@ -8,7 +8,7 @@
- #include 
- #include 
- 
--#define GPTFDISK_VERSION "1.0.9"
-+#define GPTFDISK_VERSION "1.0.9.1"
- 
- #if defined (__FreeBSD__) || defined (__FreeBSD_kernel__) || defined 
(__APPLE__)
- // Darwin (Mac OS) & FreeBSD: disk IOCTLs are different, and there is no 
lseek64
 -- 
-2.30.2
+2.35.5
 
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193397): 
https://lists.openembedded.org/g/openembedded-core/message/193397
Mute This Topic: https://lists.openembedded.org/mt/103594168/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH 3/3] icon-naming-utils: take tarball from debian

2024-01-08 Thread Alexander Kanavin
Upstream website has disappeared; the tarball can still be downloaded
but this is probably not for long.

Signed-off-by: Alexander Kanavin 
---
 meta/recipes-sato/sato-icon-theme/icon-naming-utils_0.8.90.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-sato/sato-icon-theme/icon-naming-utils_0.8.90.bb 
b/meta/recipes-sato/sato-icon-theme/icon-naming-utils_0.8.90.bb
index 67cbd031002..5502b66905d 100644
--- a/meta/recipes-sato/sato-icon-theme/icon-naming-utils_0.8.90.bb
+++ b/meta/recipes-sato/sato-icon-theme/icon-naming-utils_0.8.90.bb
@@ -14,7 +14,7 @@ DEPENDS = "libxml-simple-perl-native"
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
 
-SRC_URI = 
"http://tango.freedesktop.org/releases/icon-naming-utils-${PV}.tar.gz";
+SRC_URI = 
"${DEBIAN_MIRROR}/main/i/icon-naming-utils/icon-naming-utils_${PV}.orig.tar.gz"
 SRC_URI[sha256sum] = 
"044ab2199ed8c6a55ce36fd4fcd8b8021a5e21f5bab028c0a7cdcf52a5902e1c"
 
 inherit autotools allarch perlnative
@@ -26,4 +26,4 @@ do_configure:append() {
 
 FILES:${PN} += "${datadir}/dtds"
 
-BBCLASSEXTEND = "native"
\ No newline at end of file
+BBCLASSEXTEND = "native"
-- 
2.39.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193400): 
https://lists.openembedded.org/g/openembedded-core/message/193400
Mute This Topic: https://lists.openembedded.org/mt/103594998/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH 2/3] libpcre2: fix upstream version check

2024-01-08 Thread Alexander Kanavin
Signed-off-by: Alexander Kanavin 
---
 meta/recipes-support/libpcre/libpcre2_10.42.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-support/libpcre/libpcre2_10.42.bb 
b/meta/recipes-support/libpcre/libpcre2_10.42.bb
index cd65493c482..f471b3f90a3 100644
--- a/meta/recipes-support/libpcre/libpcre2_10.42.bb
+++ b/meta/recipes-support/libpcre/libpcre2_10.42.bb
@@ -13,7 +13,7 @@ LIC_FILES_CHKSUM = 
"file://LICENCE;md5=41bfb977e4933c506588724ce69bf5d2"
 SRC_URI = "${GITHUB_BASE_URI}/download/pcre2-${PV}/pcre2-${PV}.tar.bz2"
 
 GITHUB_BASE_URI = "https://github.com/PhilipHazel/pcre2/releases";
-UPSTREAM_CHECK_REGEX = "releases/tag/pcre2-(?P.+)"
+UPSTREAM_CHECK_REGEX = "releases/tag/pcre2-(?P\d+(\.\d+)+)$"
 
 SRC_URI[sha256sum] = 
"8d36cd8cb6ea2a4c2bb358ff6411b0c788633a2a45dabbf1aeb4b701d1b5e840"
 
-- 
2.39.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193399): 
https://lists.openembedded.org/g/openembedded-core/message/193399
Mute This Topic: https://lists.openembedded.org/mt/103594997/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH 1/3] taglib: fix upstream version check

2024-01-08 Thread Alexander Kanavin
Signed-off-by: Alexander Kanavin 
---
 meta/recipes-support/taglib/taglib_1.13.1.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-support/taglib/taglib_1.13.1.bb 
b/meta/recipes-support/taglib/taglib_1.13.1.bb
index 3f0a759f956..b26563ae91d 100644
--- a/meta/recipes-support/taglib/taglib_1.13.1.bb
+++ b/meta/recipes-support/taglib/taglib_1.13.1.bb
@@ -14,6 +14,7 @@ SRC_URI = "http://taglib.github.io/releases/${BP}.tar.gz";
 SRC_URI[sha256sum] = 
"c8da2b10f1bfec2cd7dbfcd33f4a2338db0765d851a50583d410bacf055cfd0b"
 
 UPSTREAM_CHECK_URI = "https://taglib.org/";
+UPSTREAM_CHECK_REGEX = "taglib-(?P\d+(\.\d+)+)\.tar"
 
 BINCONFIG = "${bindir}/taglib-config"
 
-- 
2.39.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193398): 
https://lists.openembedded.org/g/openembedded-core/message/193398
Mute This Topic: https://lists.openembedded.org/mt/103594996/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] Patchtest results for [PATCH 2/3] libpcre2: fix upstream version check

2024-01-08 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-3-libpcre2-fix-upstream-version-check.patch

FAIL: test commit message presence: Please include a commit message on your 
patch explaining the change (test_mbox.TestMbox.test_commit_message_presence)

PASS: pretest src uri left files 
(test_metadata.TestMetadata.pretest_src_uri_left_files)
PASS: test CVE check ignore (test_metadata.TestMetadata.test_cve_check_ignore)
PASS: test Signed-off-by presence 
(test_mbox.TestMbox.test_signed_off_by_presence)
PASS: test author valid (test_mbox.TestMbox.test_author_valid)
PASS: test lic files chksum modified not mentioned 
(test_metadata.TestMetadata.test_lic_files_chksum_modified_not_mentioned)
PASS: test max line length (test_metadata.TestMetadata.test_max_line_length)
PASS: test mbox format (test_mbox.TestMbox.test_mbox_format)
PASS: test non-AUH upgrade (test_mbox.TestMbox.test_non_auh_upgrade)
PASS: test shortlog format (test_mbox.TestMbox.test_shortlog_format)
PASS: test shortlog length (test_mbox.TestMbox.test_shortlog_length)
PASS: test src uri left files 
(test_metadata.TestMetadata.test_src_uri_left_files)

SKIP: pretest pylint: No python related patches, skipping test 
(test_python_pylint.PyLint.pretest_pylint)
SKIP: test CVE tag format: No new CVE patches introduced 
(test_patch.TestPatch.test_cve_tag_format)
SKIP: test Signed-off-by presence: No new CVE patches introduced 
(test_patch.TestPatch.test_signed_off_by_presence)
SKIP: test Upstream-Status presence: No new CVE patches introduced 
(test_patch.TestPatch.test_upstream_status_presence_format)
SKIP: test bugzilla entry format: No bug ID found 
(test_mbox.TestMbox.test_bugzilla_entry_format)
SKIP: test lic files chksum presence: No added recipes, skipping test 
(test_metadata.TestMetadata.test_lic_files_chksum_presence)
SKIP: test license presence: No added recipes, skipping test 
(test_metadata.TestMetadata.test_license_presence)
SKIP: test pylint: No python related patches, skipping test 
(test_python_pylint.PyLint.test_pylint)
SKIP: test series merge on head: Merge test is disabled for now 
(test_mbox.TestMbox.test_series_merge_on_head)
SKIP: test summary presence: No added recipes, skipping test 
(test_metadata.TestMetadata.test_summary_presence)
SKIP: test target mailing list: Series merged, no reason to check other mailing 
lists (test_mbox.TestMbox.test_target_mailing_list)

---

Please address the issues identified and
submit a new revision of the patch, or alternatively, reply to this
email with an explanation of why the patch should be accepted. If you
believe these results are due to an error in patchtest, please submit a
bug at https://bugzilla.yoctoproject.org/ (use the 'Patchtest' category
under 'Yocto Project Subprojects'). For more information on specific
failures, see: https://wiki.yoctoproject.org/wiki/Patchtest. Thank
you!

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193402): 
https://lists.openembedded.org/g/openembedded-core/message/193402
Mute This Topic: https://lists.openembedded.org/mt/103595217/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] Patchtest results for [PATCH 1/3] taglib: fix upstream version check

2024-01-08 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/1-3-taglib-fix-upstream-version-check.patch

FAIL: test commit message presence: Please include a commit message on your 
patch explaining the change (test_mbox.TestMbox.test_commit_message_presence)

PASS: pretest src uri left files 
(test_metadata.TestMetadata.pretest_src_uri_left_files)
PASS: test CVE check ignore (test_metadata.TestMetadata.test_cve_check_ignore)
PASS: test Signed-off-by presence 
(test_mbox.TestMbox.test_signed_off_by_presence)
PASS: test author valid (test_mbox.TestMbox.test_author_valid)
PASS: test lic files chksum modified not mentioned 
(test_metadata.TestMetadata.test_lic_files_chksum_modified_not_mentioned)
PASS: test max line length (test_metadata.TestMetadata.test_max_line_length)
PASS: test mbox format (test_mbox.TestMbox.test_mbox_format)
PASS: test non-AUH upgrade (test_mbox.TestMbox.test_non_auh_upgrade)
PASS: test shortlog format (test_mbox.TestMbox.test_shortlog_format)
PASS: test shortlog length (test_mbox.TestMbox.test_shortlog_length)
PASS: test src uri left files 
(test_metadata.TestMetadata.test_src_uri_left_files)

SKIP: pretest pylint: No python related patches, skipping test 
(test_python_pylint.PyLint.pretest_pylint)
SKIP: test CVE tag format: No new CVE patches introduced 
(test_patch.TestPatch.test_cve_tag_format)
SKIP: test Signed-off-by presence: No new CVE patches introduced 
(test_patch.TestPatch.test_signed_off_by_presence)
SKIP: test Upstream-Status presence: No new CVE patches introduced 
(test_patch.TestPatch.test_upstream_status_presence_format)
SKIP: test bugzilla entry format: No bug ID found 
(test_mbox.TestMbox.test_bugzilla_entry_format)
SKIP: test lic files chksum presence: No added recipes, skipping test 
(test_metadata.TestMetadata.test_lic_files_chksum_presence)
SKIP: test license presence: No added recipes, skipping test 
(test_metadata.TestMetadata.test_license_presence)
SKIP: test pylint: No python related patches, skipping test 
(test_python_pylint.PyLint.test_pylint)
SKIP: test series merge on head: Merge test is disabled for now 
(test_mbox.TestMbox.test_series_merge_on_head)
SKIP: test summary presence: No added recipes, skipping test 
(test_metadata.TestMetadata.test_summary_presence)
SKIP: test target mailing list: Series merged, no reason to check other mailing 
lists (test_mbox.TestMbox.test_target_mailing_list)

---

Please address the issues identified and
submit a new revision of the patch, or alternatively, reply to this
email with an explanation of why the patch should be accepted. If you
believe these results are due to an error in patchtest, please submit a
bug at https://bugzilla.yoctoproject.org/ (use the 'Patchtest' category
under 'Yocto Project Subprojects'). For more information on specific
failures, see: https://wiki.yoctoproject.org/wiki/Patchtest. Thank
you!

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193401): 
https://lists.openembedded.org/g/openembedded-core/message/193401
Mute This Topic: https://lists.openembedded.org/mt/103595216/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-Core][RFC PATCH] sstate-cache-management: Rewrite in python

2024-01-08 Thread Martin Jansa
FWIW: I've compared
openembedded-core/scripts/sstate-cache-management.sh -d
--cache-dir=sstate-cache
with
openembedded-core/scripts/sstate-cache-management.py -d
--cache-dir=sstate-cache
on some older kirkstone and nanbield build dirs and the python version
removes _much_ more than the shell version did and it was indeed
significantly faster.

For kirkstone shell version removed from 145G to 125G and triggering python
version after that left only 19G.
For nanbield shell version removed from 88G to 77G and triggering python
version after that left only 11G.

I didn't check if all those sstate archives should have been removed or
whether the new python script is supposed to be compatible with older
releases, I just needed to free some disk space quickly before triggering
new build, so I gave it a try and found the huge difference interesting to
share.

Details from the 4 runs bellow:

kirkstone $ du -hs sstate-cache/;
openembedded-core/scripts/sstate-cache-management.sh -d
--cache-dir=sstate-cache; du -hs sstate-cache/
145Gsstate-cache/
Figuring out the archs in the layers ...
Done
Figuring out the suffixes in the sstate cache dir ...
Done
The following suffixes have been found in the cache dir:
addto_recipe_sysroot bundle_initramfs clean cleansstate compile
compile_kernelmodules configure configure_manifest configure_security
create_v8_qemu_wrapper deploy deploy_source_date_epoch extra_symlinks fetch
flush_pseudodb gcc_stash_builddir generate_qt_config_file
generate_toolchain_file generate_webos_localization image image_debugfs_tar
image_ext4 image_tar image_wic install kernel_checkout kernel_configcheck
kernel_configme kernel_link_images kernel_metadata
kernel_version_sanity_check locate_enactjs_appinfo make_icudata mkimage
multilib_install package packagedata package_qa package_write_ipk patch
populate_lic populate_sysroot preconfigure prepare_recipe_sysroot recipe_qa
rootfs rootfs_wicenv shared_workdir sizecheck stash_locale strip
symlink_kernsrc transform_kernel unpack validate_branches warn_musl
write_config write_qemuboot_conf
Figuring out the archs in the sstate cache dir ...
Done
The following archs have been found in the cache dir:
allarch hammerhead_halium qemux86_64 tissot x86_64
...
14012 out of 67493 files will be removed!
...
14012 files have been removed!
125Gsstate-cache/
kirkstone $ du -hs sstate-cache/;
../scarthgap/openembedded-core/scripts/sstate-cache-management.py -d
--cache-dir=sstate-cache; du -hs sstate-cache/
125Gsstate-cache/
39927 out of 55994 files will be removed!
Do you want to continue (y/n)?
y
19G sstate-cache/

nanbield $ du -hs sstate-cache/;
openembedded-core/scripts/sstate-cache-management.sh -d
--cache-dir=sstate-cache; du -hs sstate-cache/
88G sstate-cache/
Figuring out the archs in the layers ...
Done
Figuring out the suffixes in the sstate cache dir ...
Done
The following suffixes have been found in the cache dir:
addto_recipe_sysroot bundle_initramfs clean cleansstate compile
compile_kernelmodules configure configure_manifest configure_security
create_v8_qemu_wrapper deploy deploy_source_date_epoch extra_symlinks fetch
flush_pseudodb gcc_stash_builddir generate_native_toolchain_file
generate_qt_config_file generate_toolchain_file generate_webos_localization
hack_recipe_sysroot image image_ext4 image_tar image_wic install
kernel_checkout kernel_configcheck kernel_configme kernel_link_images
kernel_metadata kernel_version_sanity_check locate_enactjs_appinfo
make_icudata mkimage multilib_install package package_qa package_write_ipk
packagedata patch populate_lic populate_sysroot preconfigure
prepare_recipe_sysroot recipe_qa rootfs rootfs_wicenv shared_workdir
sizecheck stash_locale strip symlink_kernsrc transform_kernel unpack
validate_branches warn_musl write_config write_qemuboot_conf
Figuring out the archs in the sstate cache dir ...
Done
The following archs have been found in the cache dir:
allarch qemux86_64 x86_64
...
14339 out of 73198 files will be removed!
...
14339 files have been removed!
77G sstate-cache/
nanbield $ du -hs sstate-cache/;
../scarthgap/openembedded-core/scripts/sstate-cache-management.py -d
--cache-dir=sstate-cache; du -hs sstate-cache/
77G sstate-cache/
43490 out of 60639 files will be removed!
Do you want to continue (y/n)?
y
11G sstate-cache/

On Sat, Dec 23, 2023 at 3:25 PM Alex Kiernan  wrote:

> This (should be) a drop in replacement for sstate-cache-management.sh.
> Signed-off-by: Alex Kiernan 
> ---
> This is hopefully an option compatible drop in for the existing shell
> sstate-cache-management script. It's orders of magnitude faster, for
> example removing duplicates, with a warmed cache across a more or less
> vanilla poky build:
>
> shell: 24.55s
> python: 0.63s
>
> Running on an NFS mount with 1000s of objects the improvement is even
> more marked.
>
> There are differences in the lists of things which are removed, but all
> examples I've found are things where the shell failed to remove things
> i

Re: [OE-Core][RFC PATCH] sstate-cache-management: Rewrite in python

2024-01-08 Thread Alex Kiernan
On Mon, Jan 8, 2024 at 12:12 PM Martin Jansa  wrote:
>
> FWIW: I've compared
> openembedded-core/scripts/sstate-cache-management.sh -d 
> --cache-dir=sstate-cache
> with
> openembedded-core/scripts/sstate-cache-management.py -d 
> --cache-dir=sstate-cache
> on some older kirkstone and nanbield build dirs and the python version 
> removes _much_ more than the shell version did and it was indeed 
> significantly faster.
>
> For kirkstone shell version removed from 145G to 125G and triggering python 
> version after that left only 19G.
> For nanbield shell version removed from 88G to 77G and triggering python 
> version after that left only 11G.
>
> I didn't check if all those sstate archives should have been removed or 
> whether the new python script is supposed to be compatible with older 
> releases, I just needed to free some disk space quickly before triggering new 
> build, so I gave it a try and found the huge difference interesting to share.
>

For reasons (upstream vendor, cough...) I have a very heavily patched
thud branch which other than swapping .tar.zst for .tgz I use it on
regularly, so it _ought_ to be fine at least to there.

My test cycle was mostly, build image, run sstate cache cleanup,
remove tmp, rebuild image, check that we only rebuild the image
through sstate reuse without fetching anything from mirrors.

At some point I just gave up trying to work out why the shell version
didn't delete things which it was clearly allowed to :| That said I'd
not be even slightly surprised if there's behaviours in the shell
version which I've not copied which I should have done, but trying to
work out what it actually did was incredibly painful, not least
there's a bunch of things in it which as far as I could tell were
legacy implementation details of sstate-cache.

> Details from the 4 runs bellow:
>
> kirkstone $ du -hs sstate-cache/; 
> openembedded-core/scripts/sstate-cache-management.sh -d 
> --cache-dir=sstate-cache; du -hs sstate-cache/
> 145Gsstate-cache/
> Figuring out the archs in the layers ...
> Done
> Figuring out the suffixes in the sstate cache dir ...
> Done
> The following suffixes have been found in the cache dir:
> addto_recipe_sysroot bundle_initramfs clean cleansstate compile 
> compile_kernelmodules configure configure_manifest configure_security 
> create_v8_qemu_wrapper deploy deploy_source_date_epoch extra_symlinks fetch 
> flush_pseudodb gcc_stash_builddir generate_qt_config_file 
> generate_toolchain_file generate_webos_localization image image_debugfs_tar 
> image_ext4 image_tar image_wic install kernel_checkout kernel_configcheck 
> kernel_configme kernel_link_images kernel_metadata 
> kernel_version_sanity_check locate_enactjs_appinfo make_icudata mkimage 
> multilib_install package packagedata package_qa package_write_ipk patch 
> populate_lic populate_sysroot preconfigure prepare_recipe_sysroot recipe_qa 
> rootfs rootfs_wicenv shared_workdir sizecheck stash_locale strip 
> symlink_kernsrc transform_kernel unpack validate_branches warn_musl 
> write_config write_qemuboot_conf
> Figuring out the archs in the sstate cache dir ...
> Done
> The following archs have been found in the cache dir:
> allarch hammerhead_halium qemux86_64 tissot x86_64
> ...
> 14012 out of 67493 files will be removed!
> ...
> 14012 files have been removed!
> 125Gsstate-cache/
> kirkstone $ du -hs sstate-cache/; 
> ../scarthgap/openembedded-core/scripts/sstate-cache-management.py -d 
> --cache-dir=sstate-cache; du -hs sstate-cache/
> 125Gsstate-cache/
> 39927 out of 55994 files will be removed!
> Do you want to continue (y/n)?
> y
> 19G sstate-cache/
>
> nanbield $ du -hs sstate-cache/; 
> openembedded-core/scripts/sstate-cache-management.sh -d 
> --cache-dir=sstate-cache; du -hs sstate-cache/
> 88G sstate-cache/
> Figuring out the archs in the layers ...
> Done
> Figuring out the suffixes in the sstate cache dir ...
> Done
> The following suffixes have been found in the cache dir:
> addto_recipe_sysroot bundle_initramfs clean cleansstate compile 
> compile_kernelmodules configure configure_manifest configure_security 
> create_v8_qemu_wrapper deploy deploy_source_date_epoch extra_symlinks fetch 
> flush_pseudodb gcc_stash_builddir generate_native_toolchain_file 
> generate_qt_config_file generate_toolchain_file generate_webos_localization 
> hack_recipe_sysroot image image_ext4 image_tar image_wic install 
> kernel_checkout kernel_configcheck kernel_configme kernel_link_images 
> kernel_metadata kernel_version_sanity_check locate_enactjs_appinfo 
> make_icudata mkimage multilib_install package package_qa package_write_ipk 
> packagedata patch populate_lic populate_sysroot preconfigure 
> prepare_recipe_sysroot recipe_qa rootfs rootfs_wicenv shared_workdir 
> sizecheck stash_locale strip symlink_kernsrc transform_kernel unpack 
> validate_branches warn_musl write_config write_qemuboot_conf
> Figuring out the archs in the sstate cache dir ...
> Done
> The following archs have b

[OE-core] [PATCH] linux-firmware: Fix the linux-firmware-bcm4373 FILES variable

2024-01-08 Thread rodrigo . duarte
From: "Rodrigo M. Duarte" 

This commit includes the 'cyfmac4373-sdio.clm_blob' file in
the list of files for the linux-firmware-bcm4373 package.
Without this file, the linux-firmware package adds all
firmware packages to the image.

Signed-off-by: Rodrigo M. Duarte 
---
 meta/recipes-kernel/linux-firmware/linux-firmware_20231030.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-kernel/linux-firmware/linux-firmware_20231030.bb 
b/meta/recipes-kernel/linux-firmware/linux-firmware_20231030.bb
index 6667f00612..b1f5247975 100644
--- a/meta/recipes-kernel/linux-firmware/linux-firmware_20231030.bb
+++ b/meta/recipes-kernel/linux-firmware/linux-firmware_20231030.bb
@@ -1071,6 +1071,7 @@ FILES:${PN}-bcm4373 = 
"${nonarch_base_libdir}/firmware/brcm/brcmfmac4373-sdio.bi
   ${nonarch_base_libdir}/firmware/brcm/brcmfmac4373.bin \
   ${nonarch_base_libdir}/firmware/cypress/cyfmac4373-sdio.bin \
   ${nonarch_base_libdir}/firmware/brcm/brcmfmac4373-sdio.clm_blob \
+  ${nonarch_base_libdir}/firmware/cypress/cyfmac4373-sdio.clm_blob \
 "
 
 LICENSE:${PN}-bcm-0bb4-0306 = "Firmware-cypress"
-- 
2.30.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193405): 
https://lists.openembedded.org/g/openembedded-core/message/193405
Mute This Topic: https://lists.openembedded.org/mt/103597527/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH] selftest/sstatetests: include fetcher diagnostics into CDN test failure message

2024-01-08 Thread Alexander Kanavin
This will help finding out what kind of error the server actually returned,
as sporadic CDN failures continue to occur.

[YOCTO #15335]

Signed-off-by: Alexander Kanavin 
---
 meta/lib/oeqa/selftest/cases/sstatetests.py | 8 ++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/meta/lib/oeqa/selftest/cases/sstatetests.py 
b/meta/lib/oeqa/selftest/cases/sstatetests.py
index 340f41162f0..6a6c2e5f11a 100644
--- a/meta/lib/oeqa/selftest/cases/sstatetests.py
+++ b/meta/lib/oeqa/selftest/cases/sstatetests.py
@@ -905,6 +905,7 @@ class SStateMirrors(SStateBase):
 self.fail("Did not find 'Sstate summary' line in bitbake output")
 
 failed_urls = []
+failed_urls_extrainfo = []
 for l in output_l:
 if "SState: Unsuccessful fetch test for" in l and check_cdn:
 missing_object = l.split()[6]
@@ -918,8 +919,11 @@ class SStateMirrors(SStateBase):
 else:
 missing_objects -= 1
 
-self.assertEqual(len(failed_urls), missing_objects, "Amount of 
reported missing objects does not match failed URLs: {}\nFailed 
URLs:\n{}".format(missing_objects, "\n".join(failed_urls)))
-self.assertEqual(len(failed_urls), 0, "Missing objects in the 
cache:\n{}".format("\n".join(failed_urls)))
+if "urlopen failed for" in l:
+failed_urls_extrainfo.append(l)
+
+self.assertEqual(len(failed_urls), missing_objects, "Amount of 
reported missing objects does not match failed URLs: {}\nFailed 
URLs:\n{}\nFetcher diagnostics:\n{}".format(missing_objects, 
"\n".join(failed_urls), "\n".join(failed_urls_extrainfo)))
+self.assertEqual(len(failed_urls), 0, "Missing objects in the 
cache:\n{}\nFetcher diagnostics:\n{}".format("\n".join(failed_urls), 
"\n".join(failed_urls_extrainfo)))
 
 def run_test(self, machine, targets, exceptions, check_cdn = True):
 # sstate is checked for existence of these, but they never get written 
out to begin with
-- 
2.39.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193406): 
https://lists.openembedded.org/g/openembedded-core/message/193406
Mute This Topic: https://lists.openembedded.org/mt/103597731/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [RFC v3 0/2] bitbake-layers: Add possibility to update layers setup

2024-01-08 Thread Jermain Horsman
From: Jermain Horsman 

During development it can be useful to use a branch instead of a
revision, e.g. when rebasing often or just for easy upgrading of
the setup.

This iteration has a very minimal implementation, which covers many
use cases, but certainly not all.

As previously discussed the interface is as follows:

bitbake-layers create-layers-setup
  --update 
  --reference 
  

Note: '--update ' can be used multiple times

Based on previous discussions, this implementation does not check
any input and it is left to the user to make sure that provided
references are actually valid for use by git.

Valid references are git hashes, tags and branch names, there are a
few things that should be noted:
- On systems without a default branch, using a branch name that is
  known to multiple remotes will fail.
- Using a branch name without remote will work, however after the
  initial checkout this branch is never changed as no pull is
  performed.
- The layers setup will be created successfully even if the reference
  is not valid.

Another thing to note, currently a reference is required, a possible
extension would be to make this optional and e.g. make this update
only the selected repositories, this could be implemented later.

Changes in v3:
- Moved options from lib/bblayers/makesetup.py to
  lib/bblayers/setupwrites/oe-setup-layers.py.
- Split '--update REPOSITORY' in separate '--update' and '--repository
  REPOSITORY' options. Specifiying '--update' now selects the old setup
  config to be modified, without it an entirely new setup will be created
  and subsequently modified.
- Updated test case for the new options.

Jermain Horsman (2):
  bitbake-layers: Add ability to update the reference of repositories
  bitbake-layers: Add test case layers setup update

 .../bblayers/setupwriters/oe-setup-layers.py  | 71 +--
 meta/lib/oeqa/selftest/cases/bblayers.py  | 26 +++
 2 files changed, 90 insertions(+), 7 deletions(-)

-- 
2.42.0.windows.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193407): 
https://lists.openembedded.org/g/openembedded-core/message/193407
Mute This Topic: https://lists.openembedded.org/mt/103598110/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [RFC v3 1/2] bitbake-layers: Add ability to update the reference of repositories

2024-01-08 Thread Jermain Horsman
From: Jermain Horsman 

This uses an existing setup-layers configuration and modifies one
or more repositories using a reference provided by the user.

This is a very minimal implementation, no validation of this reference
is done and it is left to the user to provide a valid value.

Signed-off-by: Jermain Horsman 
---
 .../bblayers/setupwriters/oe-setup-layers.py  | 71 +--
 1 file changed, 64 insertions(+), 7 deletions(-)

diff --git a/meta/lib/bblayers/setupwriters/oe-setup-layers.py 
b/meta/lib/bblayers/setupwriters/oe-setup-layers.py
index bd71ca1f51..a4bd9c8c3d 100644
--- a/meta/lib/bblayers/setupwriters/oe-setup-layers.py
+++ b/meta/lib/bblayers/setupwriters/oe-setup-layers.py
@@ -31,16 +31,64 @@ class OeSetupLayersWriter():
 with open(output, 'w') as f:
 json.dump(repos, f, sort_keys=True, indent=4)
 
+def _read_repo_config(self, json_path):
+with open(json_path) as f:
+json_config = json.load(f)
+
+supported_versions = ["1.0"]
+if json_config["version"] not in supported_versions:
+raise Exception("File {} has version {}, which is not in supported 
versions: {}".format(json_path, json_config["version"], supported_versions))
+
+return json_config
+
+def _modify_repo_config(self, json_config, args):
+sources = json_config['sources']
+for repo in args.repository:
+if not repo in sources.keys():
+raise Exception("Repository {} does not exist in setup-layers 
config".format(repo))
+
+layer_remote = json_config['sources'][repo]['git-remote']
+layer_remote['rev'] = args.reference
+# Clear describe
+layer_remote['describe'] = ''
+
 def do_write(self, parent, args):
 """ Writes out a python script and a json config that replicate the 
directory structure and revisions of the layers in a current build. """
-if not os.path.exists(args.destdir):
-os.makedirs(args.destdir)
-repos = parent.make_repo_config(args.destdir)
-json = {"version":"1.0","sources":repos}
-if not repos:
-raise Exception("Could not determine layer sources")
 output = args.output_prefix or "setup-layers"
-output = os.path.join(os.path.abspath(args.destdir),output)
+output = os.path.join(os.path.abspath(args.destdir), output)
+
+if args.update:
+# Modify existing layers setup
+if args.repository is None:
+logger.error("No repository specified. Please provide one 
using '--repository REPOSITORY'.")
+raise Exception("No repository specified. Please provide one 
using '--repository REPOSITORY'.")
+if args.reference is None:
+logger.error("No reference specified. Please provide one using 
'--reference REFERENCE'.")
+raise Exception("No reference specified. Please provide one 
using '--reference REFERENCE'.")
+
+json = self._read_repo_config(output + ".json")
+if not 'sources' in json.keys():
+raise Exception("File {}.json does not contain valid layer 
sources.".format(output))
+
+else:
+# Create new layers setup
+if args.repository is not None:
+if args.reference is None:
+logger.error("No reference specified. Please provide one 
using '--reference REFERENCE'.")
+raise Exception("No reference specified. Please provide 
one using '--reference REFERENCE'.")
+elif args.reference is not None:
+logger.warning("Reference specified, but no repository, this 
has no effect.")
+
+if not os.path.exists(args.destdir):
+os.makedirs(args.destdir)
+repos = parent.make_repo_config(args.destdir)
+json = {"version":"1.0","sources":repos}
+if not repos:
+raise Exception("Could not determine layer sources")
+
+if args.repository is not None:
+self._modify_repo_config(json, args)
+
 self._write_json(json, output + ".json")
 logger.info('Created {}.json'.format(output))
 if not args.json_only:
@@ -50,3 +98,12 @@ class OeSetupLayersWriter():
 def register_arguments(self, parser):
 parser.add_argument('--json-only', action='store_true',
 help='When using the oe-setup-layers writer, write only the layer 
configuruation in json format. Otherwise, also a copy of 
scripts/oe-setup-layers (from oe-core or poky) is provided, which is a self 
contained python script that fetches all the needed layers and sets them to 
correct revisions using the data from the json.')
+
+parser.add_argument('--update', '-u',
+action='store_true',
+help='Updates an existing layers setup.')
+parser.add_argument('--repository', '-p',
+action='append',
+

[OE-core] [RFC v3 2/2] bitbake-layers: Add test case layers setup update

2024-01-08 Thread Jermain Horsman
From: Jermain Horsman 

This includes a simple test which creates a layer setup,
modifies it using a test string and checks if the resulting
layer setup is written correctly.

Signed-off-by: Jermain Horsman 
---
 meta/lib/oeqa/selftest/cases/bblayers.py | 26 
 1 file changed, 26 insertions(+)

diff --git a/meta/lib/oeqa/selftest/cases/bblayers.py 
b/meta/lib/oeqa/selftest/cases/bblayers.py
index 8faa060234..f07fbd46fb 100644
--- a/meta/lib/oeqa/selftest/cases/bblayers.py
+++ b/meta/lib/oeqa/selftest/cases/bblayers.py
@@ -167,3 +167,29 @@ class BitbakeLayers(OESelftestTestCase):
 oecoredir = os.listdir(testcheckoutdir)[0]
 testcheckoutfile = os.path.join(testcheckoutdir, oecoredir, 
"oe-init-build-env")
 self.assertTrue(os.path.exists(testcheckoutfile), "File {} not found 
in test layer checkout".format(testcheckoutfile))
+
+def test_bitbakelayers_updatelayer(self):
+result = runCmd('bitbake-layers create-layers-setup 
{}'.format(self.testlayer_path))
+jsonfile = os.path.join(self.testlayer_path, "setup-layers.json")
+self.validate_layersjson(jsonfile)
+
+import json
+with open(jsonfile) as f:
+data = json.load(f)
+test_repo = None
+for s in data['sources']:
+if 'contains_this_file' not in data['sources'][s].keys():
+test_repo = s
+result = runCmd('bitbake-layers create-layers-setup --update 
--repository {} --reference {} {}'.format(test_repo, 'remote/test', 
self.testlayer_path))
+break
+
+self.assertTrue(test_repo, "No test repo found")
+self.validate_layersjson(jsonfile)
+
+with open(jsonfile) as f:
+data = json.load(f)
+curr_rev = data['sources'][test_repo]['git-remote']['rev']
+curr_desc = data['sources'][test_repo]['git-remote']['describe']
+
+self.assertEqual(curr_rev, 'remote/test', "Revision not set correctly: 
'{}'".format(curr_rev))
+self.assertEqual(curr_desc, '', "Describe not cleared: 
'{}'".format(curr_desc))
-- 
2.42.0.windows.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193409): 
https://lists.openembedded.org/g/openembedded-core/message/193409
Mute This Topic: https://lists.openembedded.org/mt/103598120/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] Patchtest results for [PATCH] selftest/sstatetests: include fetcher diagnostics into CDN test failure message

2024-01-08 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/selftest-sstatetests-include-fetcher-diagnostics-into-CDN-test-failure-message.patch

FAIL: test max line length: Patch line too long (current length 254, maximum is 
200) (test_metadata.TestMetadata.test_max_line_length)

PASS: pretest pylint (test_python_pylint.PyLint.pretest_pylint)
PASS: test Signed-off-by presence 
(test_mbox.TestMbox.test_signed_off_by_presence)
PASS: test author valid (test_mbox.TestMbox.test_author_valid)
PASS: test bugzilla entry format (test_mbox.TestMbox.test_bugzilla_entry_format)
PASS: test commit message presence 
(test_mbox.TestMbox.test_commit_message_presence)
PASS: test mbox format (test_mbox.TestMbox.test_mbox_format)
PASS: test non-AUH upgrade (test_mbox.TestMbox.test_non_auh_upgrade)
PASS: test pylint (test_python_pylint.PyLint.test_pylint)
PASS: test shortlog format (test_mbox.TestMbox.test_shortlog_format)
PASS: test shortlog length (test_mbox.TestMbox.test_shortlog_length)

SKIP: pretest src uri left files: No modified recipes, skipping pretest 
(test_metadata.TestMetadata.pretest_src_uri_left_files)
SKIP: test CVE check ignore: No modified recipes, skipping test 
(test_metadata.TestMetadata.test_cve_check_ignore)
SKIP: test CVE tag format: No new CVE patches introduced 
(test_patch.TestPatch.test_cve_tag_format)
SKIP: test Signed-off-by presence: No new CVE patches introduced 
(test_patch.TestPatch.test_signed_off_by_presence)
SKIP: test Upstream-Status presence: No new CVE patches introduced 
(test_patch.TestPatch.test_upstream_status_presence_format)
SKIP: test lic files chksum modified not mentioned: No modified recipes, 
skipping test 
(test_metadata.TestMetadata.test_lic_files_chksum_modified_not_mentioned)
SKIP: test lic files chksum presence: No added recipes, skipping test 
(test_metadata.TestMetadata.test_lic_files_chksum_presence)
SKIP: test license presence: No added recipes, skipping test 
(test_metadata.TestMetadata.test_license_presence)
SKIP: test series merge on head: Merge test is disabled for now 
(test_mbox.TestMbox.test_series_merge_on_head)
SKIP: test src uri left files: No modified recipes, skipping pretest 
(test_metadata.TestMetadata.test_src_uri_left_files)
SKIP: test summary presence: No added recipes, skipping test 
(test_metadata.TestMetadata.test_summary_presence)
SKIP: test target mailing list: Series merged, no reason to check other mailing 
lists (test_mbox.TestMbox.test_target_mailing_list)

---

Please address the issues identified and
submit a new revision of the patch, or alternatively, reply to this
email with an explanation of why the patch should be accepted. If you
believe these results are due to an error in patchtest, please submit a
bug at https://bugzilla.yoctoproject.org/ (use the 'Patchtest' category
under 'Yocto Project Subprojects'). For more information on specific
failures, see: https://wiki.yoctoproject.org/wiki/Patchtest. Thank
you!

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193410): 
https://lists.openembedded.org/g/openembedded-core/message/193410
Mute This Topic: https://lists.openembedded.org/mt/103598323/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [RFC v3 1/2] bitbake-layers: Add ability to update the reference of repositories

2024-01-08 Thread Jermain Horsman
There are a few additional remarks that I'd like some input on.

> +logger.error("No repository specified. Please provide one 
> using '--repository REPOSITORY'.")
> +raise Exception("No repository specified. Please provide one 
> using '--repository REPOSITORY'.")

I've included both an error message and an exception here, the exception is 
what was used elsewhere already.
However, this doesn't provide clear feedback on what exactly is wrong, using an 
error message will provide clear
feedback in my opinion. (It's a very obvious red message after all, and not 
just a traceback that needs to be analysed.)
On the other hand, only  using an error message isn’t quite sufficient either, 
as it will not exit with an error code.

> +parser.add_argument('--repository', '-p',

I've named this option '--repository' as I would like to use '--update' with 
'--repository', without '--reference'
at some point, in which case '--use-custom-reference' does not seem appropriate.

I'm open to suggestions and I'd like to know what people think about this.

Sincerely,

Jermain Horsman

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193411): 
https://lists.openembedded.org/g/openembedded-core/message/193411
Mute This Topic: https://lists.openembedded.org/mt/103598114/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] Patchtest results for [RFC v3 1/2] bitbake-layers: Add ability to update the reference of repositories

2024-01-08 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/RFC-v3-1-2-bitbake-layers-Add-ability-to-update-the-reference-of-repositories.patch

FAIL: test max line length: Patch line too long (current length 207, maximum is 
200) (test_metadata.TestMetadata.test_max_line_length)

PASS: pretest pylint (test_python_pylint.PyLint.pretest_pylint)
PASS: test Signed-off-by presence 
(test_mbox.TestMbox.test_signed_off_by_presence)
PASS: test author valid (test_mbox.TestMbox.test_author_valid)
PASS: test commit message presence 
(test_mbox.TestMbox.test_commit_message_presence)
PASS: test mbox format (test_mbox.TestMbox.test_mbox_format)
PASS: test non-AUH upgrade (test_mbox.TestMbox.test_non_auh_upgrade)
PASS: test pylint (test_python_pylint.PyLint.test_pylint)
PASS: test shortlog format (test_mbox.TestMbox.test_shortlog_format)
PASS: test shortlog length (test_mbox.TestMbox.test_shortlog_length)

SKIP: pretest src uri left files: No modified recipes, skipping pretest 
(test_metadata.TestMetadata.pretest_src_uri_left_files)
SKIP: test CVE check ignore: No modified recipes, skipping test 
(test_metadata.TestMetadata.test_cve_check_ignore)
SKIP: test CVE tag format: No new CVE patches introduced 
(test_patch.TestPatch.test_cve_tag_format)
SKIP: test Signed-off-by presence: No new CVE patches introduced 
(test_patch.TestPatch.test_signed_off_by_presence)
SKIP: test Upstream-Status presence: No new CVE patches introduced 
(test_patch.TestPatch.test_upstream_status_presence_format)
SKIP: test bugzilla entry format: No bug ID found 
(test_mbox.TestMbox.test_bugzilla_entry_format)
SKIP: test lic files chksum modified not mentioned: No modified recipes, 
skipping test 
(test_metadata.TestMetadata.test_lic_files_chksum_modified_not_mentioned)
SKIP: test lic files chksum presence: No added recipes, skipping test 
(test_metadata.TestMetadata.test_lic_files_chksum_presence)
SKIP: test license presence: No added recipes, skipping test 
(test_metadata.TestMetadata.test_license_presence)
SKIP: test series merge on head: Merge test is disabled for now 
(test_mbox.TestMbox.test_series_merge_on_head)
SKIP: test src uri left files: No modified recipes, skipping pretest 
(test_metadata.TestMetadata.test_src_uri_left_files)
SKIP: test summary presence: No added recipes, skipping test 
(test_metadata.TestMetadata.test_summary_presence)
SKIP: test target mailing list: Series merged, no reason to check other mailing 
lists (test_mbox.TestMbox.test_target_mailing_list)

---

Please address the issues identified and
submit a new revision of the patch, or alternatively, reply to this
email with an explanation of why the patch should be accepted. If you
believe these results are due to an error in patchtest, please submit a
bug at https://bugzilla.yoctoproject.org/ (use the 'Patchtest' category
under 'Yocto Project Subprojects'). For more information on specific
failures, see: https://wiki.yoctoproject.org/wiki/Patchtest. Thank
you!

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193412): 
https://lists.openembedded.org/g/openembedded-core/message/193412
Mute This Topic: https://lists.openembedded.org/mt/103598693/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] bitbake-server does not exit after build ends

2024-01-08 Thread Zoltan Boszormenyi

2024. 01. 05. 17:54 keltezéssel, Martin Jansa írta:
On Fri, Jan 5, 2024 at 5:06 PM Martin Jansa via lists.openembedded.org 
  wrote:


FWIW: I see the processes running after bitbake exit only in kirkstone and 
only with
PRSERV_HOST = "localhost:0"
if I drop PRSERV_HOST then all 3 bitbake-server processes exist together 
with
bitbake itself.

luneos-kirkstone $ rm -f bitbake-cookerdaemon.log
luneos-kirkstone $ ps aux | grep luneos-kirkstone
martin   4184043  0.0  0.0   9124  2048 pts/4    S+ 16:47   0:00 grep 
--colour=auto
luneos-kirkstone
luneos-kirkstone $ bitbake -k zlib-native
NOTE: Started PRServer with DBfile: 
/OE/build/luneos-kirkstone/cache/prserv.sqlite3,
Address: 127.0.0.1:35811 , PID: 4184924
Loading cache: 100%

|##|
Time: 0:00:04
Loaded 4570 entries from dependency cache.
...
Sstate summary: Wanted 10 Local 10 Mirrors 0 Missed 0 Current 11 (100% 
match, 100%
complete)
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 92 tasks of which 92 didn't need to be rerun 
and all
succeeded.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 15 seconds
luneos-kirkstone $ ps aux | grep luneos-kirkstone
martin     51324  0.0  0.0   9124  2048 pts/4    S+ 16:54   0:00 grep 
--colour=auto
luneos-kirkstone
martin   4184584  8.9  0.4 668196 536892 ?       Sl 16:47   0:37 
bitbake-server
/OE/build/luneos-kirkstone/bitbake/bin/bitbake-server decafbad 3 5
/OE/build/luneos-kirkstone/bitbake-cookerdaemon.log
/OE/build/luneos-kirkstone/bitbake.lock 
/OE/build/luneos-kirkstone/bitbake.sock 0 None 0
martin   4184924  0.0  0.1 340280 196428 ?       S  16:47   0:00 
bitbake-server
/OE/build/luneos-kirkstone/bitbake/bin/bitbake-server decafbad 3 5
/OE/build/luneos-kirkstone/bitbake-cookerdaemon.log
/OE/build/luneos-kirkstone/bitbake.lock 
/OE/build/luneos-kirkstone/bitbake.sock 0 None 0
martin   4184927  0.0  0.1 340328 194440 ?       S  16:47   0:00 
bitbake-server
/OE/build/luneos-kirkstone/bitbake/bin/bitbake-server decafbad 3 5
/OE/build/luneos-kirkstone/bitbake-cookerdaemon.log
/OE/build/luneos-kirkstone/bitbake.lock 
/OE/build/luneos-kirkstone/bitbake.sock 0
None 0

luneos-kirkstone $ cat bitbake-cookerdaemon.log
4184584 16:47:38.367593 --- Starting bitbake server pid 4184584 at 
2024-01-05
16:47:38.367526 ---
4184584 16:47:38.370315 Started bitbake server pid 4184584
4184584 16:47:38.370831 Entering server connection loop
4184584 16:47:38.372043 Accepting [] ([])
4184584 16:47:38.376431 Processing Client
4184584 16:47:38.376633 Connecting Client
4184584 16:47:38.377632 Running command ['setFeatures', [2, 1]]
4184584 16:47:38.379355 Command Completed
4184584 16:47:38.379868 Running command ['updateConfig', {'halt': False, 
'force':
False, 'invalidate_stamp': None, 'dry_run': False, 'dump_signatures': [],
'extra_assume_provided': [], 'profile': False, 'prefile': [], 'postfile': 
[],
'server_timeout': None, 'nosetscene': False, 'setsceneonly': False, 
'skipsetscene':
False, 'runall': None, 'runonly': None, 'writeeventlog': None,
'build_verbose_shell': False, 'build_verbose_stdout': False, 
'default_loglevel': 20,
'debug_domains': {}}, {'SHELL': '/bin/bash', 'BB_ENV_PASSTHROUGH_ADDITIONS':
'MACHINE DISTRO TCMODE TCLIBC http_proxy ftp_proxy https_proxy all_proxy 
ALL_PROXY
no_proxy SSH_AGENT_PID SSH_AUTH_SOCK BB_SRCREV_POLICY SDKMACHINE 
BB_NUMBER_THREADS
PARALLEL_MAKE GIT_PROXY_COMMAND GIT_PROXY_IGNORE SOCKS5_PASSWD SOCKS5_USER
WEBOS_DISTRO_BUILD_ID PSEUDO_DISABLED PSEUDO_BUILD', 'DISTRO': 'luneos',
'SSH_AUTH_SOCK': '/tmp/ssh-XX2ZxYBo/agent.1893', 'SSH_AGENT_PID': 
'1894', 'PWD':
'/OE/build/luneos-kirkstone', 'LOGNAME': 'martin', 'HOME': 
'/home/martin-gentoo',
'MACHINE': 'qemux86-64', 'USER': 'martin', 'PATH':

'/OE/build/luneos-kirkstone/openembedded-core/scripts:/OE/build/luneos-kirkstone/bitbake/bin:/home/martin-gentoo/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/bin:/usr/lib/llvm/17/bin:/opt/android-sdk-update-manager/tools:/opt/android-sdk-update-manager/platform-tools:/etc/eselect/wine/bin:/usr/lib64/opencascade/bin:/var/lib/snapd/snap/bin',
'LC_ALL': 'en_US.UTF-8', 'SESSION_MANAGER':
'local/jama:@/tmp/.ICE-unix/1838,unix/jama:/tmp/.ICE-unix/1838', 'WINDOWID':
'35651587', 'COLORTERM': 'truecolor', 'CSF_MDTVTexturesDirectory':
'/usr/share/opencascade/resources/Textures', 'MACHINES': 'qemux86-64',
'XDG_CONFIG_DIRS': '/etc/xdg', 'LESS': '-R -M --shift 5', 
'XDG_SESSION_PATH':
'/org/freedesktop/DisplayManager/Session1', 'XDG_MENU_PREFIX': 'xfce-', 
'JDK_HOME':
'/e

[OE-core] [PATCH] u-boot: Upgrade to 2024.01

2024-01-08 Thread Fabio Estevam
From: Fabio Estevam 

Upgrade to U-Boot 2024.01.

Signed-off-by: Fabio Estevam 
---
 meta/recipes-bsp/u-boot/u-boot-common.inc   | 2 +-
 .../u-boot/{u-boot-tools_2023.10.bb => u-boot-tools_2024.01.bb} | 0
 .../recipes-bsp/u-boot/{u-boot_2023.10.bb => u-boot_2024.01.bb} | 0
 3 files changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-bsp/u-boot/{u-boot-tools_2023.10.bb => 
u-boot-tools_2024.01.bb} (100%)
 rename meta/recipes-bsp/u-boot/{u-boot_2023.10.bb => u-boot_2024.01.bb} (100%)

diff --git a/meta/recipes-bsp/u-boot/u-boot-common.inc 
b/meta/recipes-bsp/u-boot/u-boot-common.inc
index c7190d5cd479..a41547cecc39 100644
--- a/meta/recipes-bsp/u-boot/u-boot-common.inc
+++ b/meta/recipes-bsp/u-boot/u-boot-common.inc
@@ -12,7 +12,7 @@ PE = "1"
 
 # We use the revision in order to avoid having to fetch it from the
 # repo during parse
-SRCREV = "4459ed60cb1e0562bc5b40405e2b4b9bbf766d57"
+SRCREV = "866ca972d6c3cabeaf6dbac431e8e08bb30b3c8e"
 
 SRC_URI = "git://source.denx.de/u-boot/u-boot.git;protocol=https;branch=master"
 
diff --git a/meta/recipes-bsp/u-boot/u-boot-tools_2023.10.bb 
b/meta/recipes-bsp/u-boot/u-boot-tools_2024.01.bb
similarity index 100%
rename from meta/recipes-bsp/u-boot/u-boot-tools_2023.10.bb
rename to meta/recipes-bsp/u-boot/u-boot-tools_2024.01.bb
diff --git a/meta/recipes-bsp/u-boot/u-boot_2023.10.bb 
b/meta/recipes-bsp/u-boot/u-boot_2024.01.bb
similarity index 100%
rename from meta/recipes-bsp/u-boot/u-boot_2023.10.bb
rename to meta/recipes-bsp/u-boot/u-boot_2024.01.bb
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193414): 
https://lists.openembedded.org/g/openembedded-core/message/193414
Mute This Topic: https://lists.openembedded.org/mt/103599941/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core][kirkstone 1/6] xserver-xorg: Fix for CVE-2023-6377 and CVE-2023-6478

2024-01-08 Thread Steve Sakoman
From: Vijay Anusuri 

Upstream-Status: Backport
[https://gitlab.freedesktop.org/xorg/xserver/-/commit/0c1a93d319558fe3ab2d94f51d174b4f93810afd
&
https://gitlab.freedesktop.org/xorg/xserver/-/commit/14f480010a93ff962fef66a16412fafff81ad632]

Signed-off-by: Vijay Anusuri 
Signed-off-by: Steve Sakoman 
---
 .../xserver-xorg/CVE-2023-6377.patch  | 79 +++
 .../xserver-xorg/CVE-2023-6478.patch  | 63 +++
 .../xorg-xserver/xserver-xorg_21.1.8.bb   |  2 +
 3 files changed, 144 insertions(+)
 create mode 100644 
meta/recipes-graphics/xorg-xserver/xserver-xorg/CVE-2023-6377.patch
 create mode 100644 
meta/recipes-graphics/xorg-xserver/xserver-xorg/CVE-2023-6478.patch

diff --git 
a/meta/recipes-graphics/xorg-xserver/xserver-xorg/CVE-2023-6377.patch 
b/meta/recipes-graphics/xorg-xserver/xserver-xorg/CVE-2023-6377.patch
new file mode 100644
index 00..0abd5914fa
--- /dev/null
+++ b/meta/recipes-graphics/xorg-xserver/xserver-xorg/CVE-2023-6377.patch
@@ -0,0 +1,79 @@
+From 0c1a93d319558fe3ab2d94f51d174b4f93810afd Mon Sep 17 00:00:00 2001
+From: Peter Hutterer 
+Date: Tue, 28 Nov 2023 15:19:04 +1000
+Subject: [PATCH] Xi: allocate enough XkbActions for our buttons
+
+button->xkb_acts is supposed to be an array sufficiently large for all
+our buttons, not just a single XkbActions struct. Allocating
+insufficient memory here means when we memcpy() later in
+XkbSetDeviceInfo we write into memory that wasn't ours to begin with,
+leading to the usual security ooopsiedaisies.
+
+CVE-2023-6377, ZDI-CAN-22412, ZDI-CAN-22413
+
+This vulnerability was discovered by:
+Jan-Niklas Sohn working with Trend Micro Zero Day Initiative
+
+Upstream-Status: Backport 
[https://gitlab.freedesktop.org/xorg/xserver/-/commit/0c1a93d319558fe3ab2d94f51d174b4f93810afd]
+CVE: CVE-2023-6377
+Signed-off-by: Vijay Anusuri 
+---
+ Xi/exevents.c | 12 ++--
+ dix/devices.c | 10 ++
+ 2 files changed, 16 insertions(+), 6 deletions(-)
+
+diff --git a/Xi/exevents.c b/Xi/exevents.c
+index dcd4efb3bc..54ea11a938 100644
+--- a/Xi/exevents.c
 b/Xi/exevents.c
+@@ -611,13 +611,13 @@ DeepCopyPointerClasses(DeviceIntPtr from, DeviceIntPtr 
to)
+ }
+ 
+ if (from->button->xkb_acts) {
+-if (!to->button->xkb_acts) {
+-to->button->xkb_acts = calloc(1, sizeof(XkbAction));
+-if (!to->button->xkb_acts)
+-FatalError("[Xi] not enough memory for xkb_acts.\n");
+-}
++size_t maxbuttons = max(to->button->numButtons, 
from->button->numButtons);
++to->button->xkb_acts = xnfreallocarray(to->button->xkb_acts,
++   maxbuttons,
++   sizeof(XkbAction));
++memset(to->button->xkb_acts, 0, maxbuttons * sizeof(XkbAction));
+ memcpy(to->button->xkb_acts, from->button->xkb_acts,
+-   sizeof(XkbAction));
++   from->button->numButtons * sizeof(XkbAction));
+ }
+ else {
+ free(to->button->xkb_acts);
+diff --git a/dix/devices.c b/dix/devices.c
+index b063128df0..3f3224d626 100644
+--- a/dix/devices.c
 b/dix/devices.c
+@@ -2539,6 +2539,8 @@ RecalculateMasterButtons(DeviceIntPtr slave)
+ 
+ if (master->button && master->button->numButtons != maxbuttons) {
+ int i;
++int last_num_buttons = master->button->numButtons;
++
+ DeviceChangedEvent event = {
+ .header = ET_Internal,
+ .type = ET_DeviceChanged,
+@@ -2549,6 +2551,14 @@ RecalculateMasterButtons(DeviceIntPtr slave)
+ };
+ 
+ master->button->numButtons = maxbuttons;
++if (last_num_buttons < maxbuttons) {
++master->button->xkb_acts = 
xnfreallocarray(master->button->xkb_acts,
++   maxbuttons,
++   sizeof(XkbAction));
++memset(&master->button->xkb_acts[last_num_buttons],
++   0,
++   (maxbuttons - last_num_buttons) * sizeof(XkbAction));
++}
+ 
+ memcpy(&event.buttons.names, master->button->labels, maxbuttons *
+sizeof(Atom));
+-- 
+GitLab
+
diff --git 
a/meta/recipes-graphics/xorg-xserver/xserver-xorg/CVE-2023-6478.patch 
b/meta/recipes-graphics/xorg-xserver/xserver-xorg/CVE-2023-6478.patch
new file mode 100644
index 00..6392eae3f8
--- /dev/null
+++ b/meta/recipes-graphics/xorg-xserver/xserver-xorg/CVE-2023-6478.patch
@@ -0,0 +1,63 @@
+From 14f480010a93ff962fef66a16412fafff81ad632 Mon Sep 17 00:00:00 2001
+From: Peter Hutterer 
+Date: Mon, 27 Nov 2023 16:27:49 +1000
+Subject: [PATCH] randr: avoid integer truncation in length check of
+ ProcRRChange*Property
+
+Affected are ProcRRChangeProviderProperty and ProcRRChangeOutputProperty.
+See also xserver@8f454b79 where this same bug was fixed for the core
+protocol an

[OE-core][kirkstone 2/6] cve-update-nvd2-native: remove unused variable CVE_SOCKET_TIMEOUT

2024-01-08 Thread Steve Sakoman
From: Peter Marko 

This variable is not referenced in oe-core anymore.

Signed-off-by: Peter Marko 
Signed-off-by: Alexandre Belloni 
Signed-off-by: Richard Purdie 
(cherry picked from commit 905b45a814cb33327503b793741c19b44c8550b3)
Signed-off-by: Steve Sakoman 
---
 meta/recipes-core/meta/cve-update-nvd2-native.bb | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/meta/recipes-core/meta/cve-update-nvd2-native.bb 
b/meta/recipes-core/meta/cve-update-nvd2-native.bb
index 67d76f75dd..64a96a46f0 100644
--- a/meta/recipes-core/meta/cve-update-nvd2-native.bb
+++ b/meta/recipes-core/meta/cve-update-nvd2-native.bb
@@ -26,9 +26,6 @@ NVDCVE_API_KEY ?= ""
 # Use a negative value to skip the update
 CVE_DB_UPDATE_INTERVAL ?= "86400"
 
-# Timeout for blocking socket operations, such as the connection attempt.
-CVE_SOCKET_TIMEOUT ?= "60"
-
 CVE_DB_TEMP_FILE ?= "${CVE_CHECK_DB_DIR}/temp_nvdcve_2.db"
 
 CVE_CHECK_DB_FILE ?= "${CVE_CHECK_DB_DIR}/nvdcve_2.db"
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193417): 
https://lists.openembedded.org/g/openembedded-core/message/193417
Mute This Topic: https://lists.openembedded.org/mt/103600361/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core][kirkstone 0/6] Patch review

2024-01-08 Thread Steve Sakoman
Please review this set of changes for kirkstone and have comments back by
end of day Wednesday, January 10

Passed a-full on autobuilder:

https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/6425

The following changes since commit 227b3d4edad31b0d0045f41133271693265240b0:

  tzdata: Upgrade to 2023d (2024-01-02 03:46:18 -1000)

are available in the Git repository at:

  https://git.openembedded.org/openembedded-core-contrib stable/kirkstone-nut
  
https://git.openembedded.org/openembedded-core-contrib/log/?h=stable/kirkstone-nut

Dhairya Nagodra (2):
  cve-update-nvd2-native: faster requests with API keys
  cve-update-nvd2-native: increase the delay between subsequent request
failures

Dmitry Baryshkov (1):
  linux-firmware: upgrade 20230804 -> 20231030

Peter Marko (2):
  cve-update-nvd2-native: remove unused variable CVE_SOCKET_TIMEOUT
  cve-update-nvd2-native: make number of fetch attemtps configurable

Vijay Anusuri (1):
  xserver-xorg: Fix for CVE-2023-6377 and CVE-2023-6478

 .../meta/cve-update-nvd2-native.bb| 27 +--
 .../xserver-xorg/CVE-2023-6377.patch  | 79 +++
 .../xserver-xorg/CVE-2023-6478.patch  | 63 +++
 .../xorg-xserver/xserver-xorg_21.1.8.bb   |  2 +
 ...20230804.bb => linux-firmware_20231030.bb} |  4 +-
 5 files changed, 165 insertions(+), 10 deletions(-)
 create mode 100644 
meta/recipes-graphics/xorg-xserver/xserver-xorg/CVE-2023-6377.patch
 create mode 100644 
meta/recipes-graphics/xorg-xserver/xserver-xorg/CVE-2023-6478.patch
 rename meta/recipes-kernel/linux-firmware/{linux-firmware_20230804.bb => 
linux-firmware_20231030.bb} (99%)

-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193415): 
https://lists.openembedded.org/g/openembedded-core/message/193415
Mute This Topic: https://lists.openembedded.org/mt/103600356/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core][kirkstone 3/6] cve-update-nvd2-native: make number of fetch attemtps configurable

2024-01-08 Thread Steve Sakoman
From: Peter Marko 

Sometimes NVD servers are unstable and return too many errors.

Last time we increased number of attempts from 3 to 5, but
further increasing is not reasonable as in normal case
too many retries is just abusive.

Keep retries low as default and allow to increase as needed.

Signed-off-by: Peter Marko 
Signed-off-by: Alexandre Belloni 
Signed-off-by: Richard Purdie 
(cherry picked from commit 6b6fd8043d83b9954ab6ad2c745d07c6bcc1)
Signed-off-by: Steve Sakoman 
---
 meta/recipes-core/meta/cve-update-nvd2-native.bb | 10 +++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-core/meta/cve-update-nvd2-native.bb 
b/meta/recipes-core/meta/cve-update-nvd2-native.bb
index 64a96a46f0..dab0b69edc 100644
--- a/meta/recipes-core/meta/cve-update-nvd2-native.bb
+++ b/meta/recipes-core/meta/cve-update-nvd2-native.bb
@@ -26,6 +26,9 @@ NVDCVE_API_KEY ?= ""
 # Use a negative value to skip the update
 CVE_DB_UPDATE_INTERVAL ?= "86400"
 
+# Number of attmepts for each http query to nvd server before giving up
+CVE_DB_UPDATE_ATTEMPTS ?= "5"
+
 CVE_DB_TEMP_FILE ?= "${CVE_CHECK_DB_DIR}/temp_nvdcve_2.db"
 
 CVE_CHECK_DB_FILE ?= "${CVE_CHECK_DB_DIR}/nvdcve_2.db"
@@ -111,7 +114,7 @@ def cleanup_db_download(db_file, db_tmp_file):
 if os.path.exists(db_tmp_file):
 os.remove(db_tmp_file)
 
-def nvd_request_next(url, api_key, args):
+def nvd_request_next(url, attempts, api_key, args):
 """
 Request next part of the NVD dabase
 """
@@ -127,7 +130,7 @@ def nvd_request_next(url, api_key, args):
 request.add_header("apiKey", api_key)
 bb.note("Requesting %s" % request.full_url)
 
-for attempt in range(5):
+for attempt in range(attempts):
 try:
 r = urllib.request.urlopen(request)
 
@@ -183,10 +186,11 @@ def update_db_file(db_tmp_file, d, database_time):
 index = 0
 url = d.getVar("NVDCVE_URL")
 api_key = d.getVar("NVDCVE_API_KEY") or None
+attempts = int(d.getVar("CVE_DB_UPDATE_ATTEMPTS"))
 
 while True:
 req_args['startIndex'] = index
-raw_data = nvd_request_next(url, api_key, req_args)
+raw_data = nvd_request_next(url, attempts, api_key, req_args)
 if raw_data is None:
 # We haven't managed to download data
 return False
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193418): 
https://lists.openembedded.org/g/openembedded-core/message/193418
Mute This Topic: https://lists.openembedded.org/mt/103600362/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core][kirkstone 4/6] cve-update-nvd2-native: faster requests with API keys

2024-01-08 Thread Steve Sakoman
From: Dhairya Nagodra 

As per NVD, the public rate limit is 5 requests in 30s (6s delay).
Using an API key increases the limit to 50 requests in 30s (0.6s delay).
However, NVD still recommends sleeping for several seconds so that the
other legitimate requests are serviced without denial or interruption.
Keeping the default sleep at 6 seconds and 2 seconds with an API key.

For failures, the wait time is unchanged (6 seconds).

Reference: https://nvd.nist.gov/developers/start-here#RateLimits

Signed-off-by: Dhairya Nagodra 
Signed-off-by: Alexandre Belloni 
(cherry picked from commit 5c32e2941d1dc3d04a799a1b7cbd275c1ccc9e79)
Signed-off-by: Steve Sakoman 
---
 meta/recipes-core/meta/cve-update-nvd2-native.bb | 7 ++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-core/meta/cve-update-nvd2-native.bb 
b/meta/recipes-core/meta/cve-update-nvd2-native.bb
index dab0b69edc..0a8b6a8a0a 100644
--- a/meta/recipes-core/meta/cve-update-nvd2-native.bb
+++ b/meta/recipes-core/meta/cve-update-nvd2-native.bb
@@ -188,6 +188,11 @@ def update_db_file(db_tmp_file, d, database_time):
 api_key = d.getVar("NVDCVE_API_KEY") or None
 attempts = int(d.getVar("CVE_DB_UPDATE_ATTEMPTS"))
 
+# Recommended by NVD
+wait_time = 6
+if api_key:
+wait_time = 2
+
 while True:
 req_args['startIndex'] = index
 raw_data = nvd_request_next(url, attempts, api_key, req_args)
@@ -210,7 +215,7 @@ def update_db_file(db_tmp_file, d, database_time):
break
 
 # Recommended by NVD
-time.sleep(6)
+time.sleep(wait_time)
 
 # Update success, set the date to cve_check file.
 cve_f.write('CVE database update : %s\n\n' % datetime.date.today())
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193419): 
https://lists.openembedded.org/g/openembedded-core/message/193419
Mute This Topic: https://lists.openembedded.org/mt/103600363/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core][kirkstone 5/6] cve-update-nvd2-native: increase the delay between subsequent request failures

2024-01-08 Thread Steve Sakoman
From: Dhairya Nagodra 

Sometimes NVD servers are unstable and return too many errors.
There is an option to have higher fetch attempts to increase the chances
of successfully fetching the CVE data.

Additionally, it also makes sense to progressively increase the delay
after a failed request to an already unstable or busy server.
The increase in delay is reset after every successful request and
the maximum delay is limited to 30 seconds.

Also, the logs are improved to give more clarity.

Signed-off-by: Dhairya Nagodra 
Signed-off-by: Alexandre Belloni 
(cherry picked from commit 7101d654635b707e56b0dbae8c2146b312d211ea)
Signed-off-by: Steve Sakoman 
---
 meta/recipes-core/meta/cve-update-nvd2-native.bb | 13 +
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/meta/recipes-core/meta/cve-update-nvd2-native.bb 
b/meta/recipes-core/meta/cve-update-nvd2-native.bb
index 0a8b6a8a0a..69ba20a6cb 100644
--- a/meta/recipes-core/meta/cve-update-nvd2-native.bb
+++ b/meta/recipes-core/meta/cve-update-nvd2-native.bb
@@ -114,7 +114,10 @@ def cleanup_db_download(db_file, db_tmp_file):
 if os.path.exists(db_tmp_file):
 os.remove(db_tmp_file)
 
-def nvd_request_next(url, attempts, api_key, args):
+def nvd_request_wait(attempt, min_wait):
+return min ( ( (2 * attempt) + min_wait ) , 30)
+
+def nvd_request_next(url, attempts, api_key, args, min_wait):
 """
 Request next part of the NVD dabase
 """
@@ -143,8 +146,10 @@ def nvd_request_next(url, attempts, api_key, args):
 r.close()
 
 except Exception as e:
-bb.note("CVE database: received error (%s), retrying" % (e))
-time.sleep(6)
+wait_time = nvd_request_wait(attempt, min_wait)
+bb.note("CVE database: received error (%s)" % (e))
+bb.note("CVE database: retrying download after %d seconds. 
attempted (%d/%d)" % (wait_time, attempt+1, attempts))
+time.sleep(wait_time)
 pass
 else:
 return raw_data
@@ -195,7 +200,7 @@ def update_db_file(db_tmp_file, d, database_time):
 
 while True:
 req_args['startIndex'] = index
-raw_data = nvd_request_next(url, attempts, api_key, req_args)
+raw_data = nvd_request_next(url, attempts, api_key, req_args, 
wait_time)
 if raw_data is None:
 # We haven't managed to download data
 return False
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193420): 
https://lists.openembedded.org/g/openembedded-core/message/193420
Mute This Topic: https://lists.openembedded.org/mt/103600364/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core][kirkstone 6/6] linux-firmware: upgrade 20230804 -> 20231030

2024-01-08 Thread Steve Sakoman
From: Dmitry Baryshkov 

License-Update: additional firmwares

Signed-off-by: Dmitry Baryshkov 
Signed-off-by: Alexandre Belloni 
(cherry picked from commit 7c725d1f2ed9a271d39d899ac2534558c2d103fc)
Signed-off-by: Steve Sakoman 
---
 ...{linux-firmware_20230804.bb => linux-firmware_20231030.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-kernel/linux-firmware/{linux-firmware_20230804.bb => 
linux-firmware_20231030.bb} (99%)

diff --git a/meta/recipes-kernel/linux-firmware/linux-firmware_20230804.bb 
b/meta/recipes-kernel/linux-firmware/linux-firmware_20231030.bb
similarity index 99%
rename from meta/recipes-kernel/linux-firmware/linux-firmware_20230804.bb
rename to meta/recipes-kernel/linux-firmware/linux-firmware_20231030.bb
index 506182c9c1..a42e5ed825 100644
--- a/meta/recipes-kernel/linux-firmware/linux-firmware_20230804.bb
+++ b/meta/recipes-kernel/linux-firmware/linux-firmware_20231030.bb
@@ -147,7 +147,7 @@ LIC_FILES_CHKSUM = 
"file://LICENCE.Abilis;md5=b5ee3f410780e56711ad48eadc22b8bc \
 "
 # WHENCE checksum is defined separately to ease overriding it if
 # class-devupstream is selected.
-WHENCE_CHKSUM  = "41f9a48bf27971b126a36f9344594dcd"
+WHENCE_CHKSUM  = "ceb5248746d24d165b603e71b288cf75"
 
 # These are not common licenses, set NO_GENERIC_LICENSE for them
 # so that the license files will be copied from fetched source
@@ -231,7 +231,7 @@ SRC_URI:class-devupstream = 
"git://git.kernel.org/pub/scm/linux/kernel/git/firmw
 # Pin this to the 20220509 release, override this in local.conf
 SRCREV:class-devupstream ?= "b19cbdca78ab2adfd210c91be15a22568e8b8cae"
 
-SRC_URI[sha256sum] = 
"88d46c543847ee3b03404d4941d91c92974690ee1f6fdcbee9cef3e5f97db688"
+SRC_URI[sha256sum] = 
"c98d200fc4a3120de1a594713ce34e135819dff23e883a4ed387863ba25679c7"
 
 inherit allarch
 
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193421): 
https://lists.openembedded.org/g/openembedded-core/message/193421
Mute This Topic: https://lists.openembedded.org/mt/103600366/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH] kmscube: Upgrade to latest revision

2024-01-08 Thread Martin Jansa
Hi,

can you please set PV to something else than "git"? meson.build
says version : '0.0.1'

The last commit from the new 3 is causing build failure on some setups
without GL/gl.h:

kmscube/git/git $ git log --oneline
ea6c5d1eeefbfb0a1c27ab74a6e4621f1d9adf4c..96d63eb59e34c647cda1cbb489265f8c536ae055
96d63eb kmscube: Add gears mode
d93842d es: Update to prepare for gears mode
b076d85 ci: enable MR pipelines

Until "96d63eb kmscube: Add gears mode" it was using only EGL:

kmscube/git/git $ git grep "gl\.h"
common.h:#include 
cube-gears.c:#include 
esUtil.h:#include 

Regards,

On Tue, Dec 26, 2023 at 1:38 PM Fabio Estevam  wrote:

> From: Fabio Estevam 
>
> Upgrade to the latest kmscube revision.
>
> Signed-off-by: Fabio Estevam 
> ---
>  meta/recipes-graphics/kmscube/kmscube_git.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-graphics/kmscube/kmscube_git.bb
> b/meta/recipes-graphics/kmscube/kmscube_git.bb
> index 4cdc0f06bb8b..aab582281ac3 100644
> --- a/meta/recipes-graphics/kmscube/kmscube_git.bb
> +++ b/meta/recipes-graphics/kmscube/kmscube_git.bb
> @@ -10,7 +10,7 @@ DEPENDS = "virtual/libgles3 virtual/libgles2 virtual/egl
> libdrm virtual/libgbm"
>
>  LIC_FILES_CHKSUM =
> "file://kmscube.c;beginline=1;endline=23;md5=8b309d4ee67b7315ff7381270dd631fb"
>
> -SRCREV = "ea6c5d1eeefbfb0a1c27ab74a6e4621f1d9adf4c"
> +SRCREV = "96d63eb59e34c647cda1cbb489265f8c536ae055"
>  SRC_URI = "git://
> gitlab.freedesktop.org/mesa/kmscube;branch=master;protocol=https"
>
>  UPSTREAM_CHECK_COMMITS = "1"
> --
> 2.34.1
>
>
> 
>
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193422): 
https://lists.openembedded.org/g/openembedded-core/message/193422
Mute This Topic: https://lists.openembedded.org/mt/103368830/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Patchtest results for [OE-core][kirkstone 1/6] xserver-xorg: Fix for CVE-2023-6377 and CVE-2023-6478

2024-01-08 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/kirkstone-1-6-xserver-xorg-Fix-for-CVE-2023-6377-and-CVE-2023-6478.patch

FAIL: test CVE check ignore: CVE_CHECK_IGNORE is deprecated and should be 
replaced by CVE_STATUS (test_metadata.TestMetadata.test_cve_check_ignore)

PASS: pretest src uri left files 
(test_metadata.TestMetadata.pretest_src_uri_left_files)
PASS: test CVE tag format (test_patch.TestPatch.test_cve_tag_format)
PASS: test Signed-off-by presence 
(test_mbox.TestMbox.test_signed_off_by_presence)
PASS: test Signed-off-by presence 
(test_patch.TestPatch.test_signed_off_by_presence)
PASS: test Upstream-Status presence 
(test_patch.TestPatch.test_upstream_status_presence_format)
PASS: test author valid (test_mbox.TestMbox.test_author_valid)
PASS: test commit message presence 
(test_mbox.TestMbox.test_commit_message_presence)
PASS: test lic files chksum modified not mentioned 
(test_metadata.TestMetadata.test_lic_files_chksum_modified_not_mentioned)
PASS: test max line length (test_metadata.TestMetadata.test_max_line_length)
PASS: test mbox format (test_mbox.TestMbox.test_mbox_format)
PASS: test non-AUH upgrade (test_mbox.TestMbox.test_non_auh_upgrade)
PASS: test shortlog format (test_mbox.TestMbox.test_shortlog_format)
PASS: test shortlog length (test_mbox.TestMbox.test_shortlog_length)
PASS: test src uri left files 
(test_metadata.TestMetadata.test_src_uri_left_files)

SKIP: pretest pylint: No python related patches, skipping test 
(test_python_pylint.PyLint.pretest_pylint)
SKIP: test bugzilla entry format: No bug ID found 
(test_mbox.TestMbox.test_bugzilla_entry_format)
SKIP: test lic files chksum presence: No added recipes, skipping test 
(test_metadata.TestMetadata.test_lic_files_chksum_presence)
SKIP: test license presence: No added recipes, skipping test 
(test_metadata.TestMetadata.test_license_presence)
SKIP: test pylint: No python related patches, skipping test 
(test_python_pylint.PyLint.test_pylint)
SKIP: test series merge on head: Merge test is disabled for now 
(test_mbox.TestMbox.test_series_merge_on_head)
SKIP: test summary presence: No added recipes, skipping test 
(test_metadata.TestMetadata.test_summary_presence)
SKIP: test target mailing list: Series merged, no reason to check other mailing 
lists (test_mbox.TestMbox.test_target_mailing_list)

---

Please address the issues identified and
submit a new revision of the patch, or alternatively, reply to this
email with an explanation of why the patch should be accepted. If you
believe these results are due to an error in patchtest, please submit a
bug at https://bugzilla.yoctoproject.org/ (use the 'Patchtest' category
under 'Yocto Project Subprojects'). For more information on specific
failures, see: https://wiki.yoctoproject.org/wiki/Patchtest. Thank
you!

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193423): 
https://lists.openembedded.org/g/openembedded-core/message/193423
Mute This Topic: https://lists.openembedded.org/mt/103600996/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Patchtest results for [OE-core][kirkstone 5/6] cve-update-nvd2-native: increase the delay between subsequent request failures

2024-01-08 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/kirkstone-5-6-cve-update-nvd2-native-increase-the-delay-between-subsequent-request-failures.patch

FAIL: test shortlog length: Edit shortlog so that it is 90 characters or less 
(currently 94 characters) (test_mbox.TestMbox.test_shortlog_length)

PASS: test Signed-off-by presence 
(test_mbox.TestMbox.test_signed_off_by_presence)
PASS: test author valid (test_mbox.TestMbox.test_author_valid)
PASS: test commit message presence 
(test_mbox.TestMbox.test_commit_message_presence)
PASS: test max line length (test_metadata.TestMetadata.test_max_line_length)
PASS: test mbox format (test_mbox.TestMbox.test_mbox_format)
PASS: test non-AUH upgrade (test_mbox.TestMbox.test_non_auh_upgrade)
PASS: test shortlog format (test_mbox.TestMbox.test_shortlog_format)
PASS: test target mailing list (test_mbox.TestMbox.test_target_mailing_list)

SKIP: pretest pylint: No python related patches, skipping test 
(test_python_pylint.PyLint.pretest_pylint)
SKIP: pretest src uri left files: Patch cannot be merged 
(test_metadata.TestMetadata.pretest_src_uri_left_files)
SKIP: test CVE check ignore: No modified recipes, skipping test 
(test_metadata.TestMetadata.test_cve_check_ignore)
SKIP: test CVE tag format: No new CVE patches introduced 
(test_patch.TestPatch.test_cve_tag_format)
SKIP: test Signed-off-by presence: No new CVE patches introduced 
(test_patch.TestPatch.test_signed_off_by_presence)
SKIP: test Upstream-Status presence: No new CVE patches introduced 
(test_patch.TestPatch.test_upstream_status_presence_format)
SKIP: test bugzilla entry format: No bug ID found 
(test_mbox.TestMbox.test_bugzilla_entry_format)
SKIP: test lic files chksum modified not mentioned: No modified recipes, 
skipping test 
(test_metadata.TestMetadata.test_lic_files_chksum_modified_not_mentioned)
SKIP: test lic files chksum presence: No added recipes, skipping test 
(test_metadata.TestMetadata.test_lic_files_chksum_presence)
SKIP: test license presence: No added recipes, skipping test 
(test_metadata.TestMetadata.test_license_presence)
SKIP: test pylint: No python related patches, skipping test 
(test_python_pylint.PyLint.test_pylint)
SKIP: test series merge on head: Merge test is disabled for now 
(test_mbox.TestMbox.test_series_merge_on_head)
SKIP: test src uri left files: Patch cannot be merged 
(test_metadata.TestMetadata.test_src_uri_left_files)
SKIP: test summary presence: No added recipes, skipping test 
(test_metadata.TestMetadata.test_summary_presence)

---

Please address the issues identified and
submit a new revision of the patch, or alternatively, reply to this
email with an explanation of why the patch should be accepted. If you
believe these results are due to an error in patchtest, please submit a
bug at https://bugzilla.yoctoproject.org/ (use the 'Patchtest' category
under 'Yocto Project Subprojects'). For more information on specific
failures, see: https://wiki.yoctoproject.org/wiki/Patchtest. Thank
you!

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193424): 
https://lists.openembedded.org/g/openembedded-core/message/193424
Mute This Topic: https://lists.openembedded.org/mt/103601001/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH] systemd: add udev-bash-completion package

2024-01-08 Thread Corentin Guillevic
Move the 'udevadm' autocompletion script into a dedicated package.
Indeed, bash (and therefore, the bash-completion package) is not
always installed. But the 'udevadm' autocompletion script remains
in ${datadir}/bash-completion.

Creating a dedicated package allows better split, and avoids
installing it if the bash-completion package is missing.

Signed-off-by: Corentin Guillevic 
---
 meta/recipes-core/systemd/systemd_254.4.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git meta/recipes-core/systemd/systemd_254.4.bb 
meta/recipes-core/systemd/systemd_254.4.bb
index 0c12926bef..05cfc734bf 100644
--- meta/recipes-core/systemd/systemd_254.4.bb
+++ meta/recipes-core/systemd/systemd_254.4.bb
@@ -408,6 +408,7 @@ PACKAGE_BEFORE_PN = "\
 ${PN}-zsh-completion \
 libsystemd-shared \
 udev \
+udev-bash-completion \
 udev-hwdb \
 "
 
@@ -721,6 +722,7 @@ FILES:libsystemd-shared = 
"${rootlibdir}/systemd/libsystemd-shared*.so"
 
 RPROVIDES:udev = "hotplug"
 
+RDEPENDS:udev-bash-completion += "bash-completion"
 RDEPENDS:udev-hwdb += "udev"
 
 FILES:udev += "${base_sbindir}/udevd \
@@ -782,10 +784,10 @@ FILES:udev += "${base_sbindir}/udevd \
${base_bindir}/systemd-hwdb \
${base_bindir}/udevadm \
${base_sbindir}/udevadm \
-   ${datadir}/bash-completion/completions/udevadm \
${systemd_system_unitdir}/systemd-hwdb-update.service \
   "
 
+FILES:udev-bash-completion = "${datadir}/bash-completion/completions/udevadm"
 FILES:udev-hwdb = "${rootlibexecdir}/udev/hwdb.d \
"
 
-- 
2.39.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193425): 
https://lists.openembedded.org/g/openembedded-core/message/193425
Mute This Topic: https://lists.openembedded.org/mt/103601324/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH] kmscube: Upgrade to latest revision

2024-01-08 Thread Fabio Estevam
Hi Martin,

On Mon, Jan 8, 2024 at 1:21 PM Martin Jansa  wrote:
>
> Hi,
>
> can you please set PV to something else than "git"? meson.build says version 
> : '0.0.1'

Yes, I can do that.

> The last commit from the new 3 is causing build failure on some setups 
> without GL/gl.h:
>
> kmscube/git/git $ git log --oneline 
> ea6c5d1eeefbfb0a1c27ab74a6e4621f1d9adf4c..96d63eb59e34c647cda1cbb489265f8c536ae055
> 96d63eb kmscube: Add gears mode
> d93842d es: Update to prepare for gears mode
> b076d85 ci: enable MR pipelines
>
> Until "96d63eb kmscube: Add gears mode" it was using only EGL:
>
> kmscube/git/git $ git grep "gl\.h"
> common.h:#include 
> cube-gears.c:#include 
> esUtil.h:#include 

Does the change below fix (add virtual/libgl to DEPENDS) the problem?

--- a/meta/recipes-graphics/kmscube/kmscube_git.bb
+++ b/meta/recipes-graphics/kmscube/kmscube_git.bb
@@ -6,7 +6,7 @@ OpenGL or OpenGL ES."
 HOMEPAGE = "https://cgit.freedesktop.org/mesa/kmscube/";
 LICENSE = "MIT"
 SECTION = "graphics"
-DEPENDS = "virtual/libgles3 virtual/libgles2 virtual/egl libdrm virtual/libgbm"
+DEPENDS = "virtual/libgles3 virtual/libgles2 virtual/egl libdrm
virtual/libgbm virtual/libgl"

 LIC_FILES_CHKSUM =
"file://kmscube.c;beginline=1;endline=23;md5=8b309d4ee67b7315ff7381270dd631fb"

Thanks

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193426): 
https://lists.openembedded.org/g/openembedded-core/message/193426
Mute This Topic: https://lists.openembedded.org/mt/103368830/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH 4/4] classes/recipes: Switch to use inherit_defer

2024-01-08 Thread Ross Burton
On 3 Jan 2024, at 14:59, Richard Purdie via lists.openembedded.org 
 wrote:
> --- a/meta/classes-recipe/gnomebase.bbclass
> +++ b/meta/classes-recipe/gnomebase.bbclass
> @@ -28,7 +28,7 @@ FILES:${PN} += "${datadir}/application-registry  \
> FILES:${PN}-doc += "${datadir}/devhelp"
> 
> GNOMEBASEBUILDCLASS ??= "meson"
> -inherit ${GNOMEBASEBUILDCLASS} pkgconfig
> +inherit_defer ${GNOMEBASEBUILDCLASS} pkgconfig

Feels like this should be split into inherit pkgconfig and inher_defer 
${GNOMEBASEBUILDCLASS}.

> +inherit populate_sdk_base
> +IMGCLASSES += "${@['', 'populate_sdk_ext']['linux' in d.getVar("SDK_OS")]}"

Whilst you’re here change this to foo if bar else flob, this boolean subsetting 
idiom drives me insane.

> --- a/meta/recipes-graphics/xorg-driver/xorg-driver-common.inc
> +++ b/meta/recipes-graphics/xorg-driver/xorg-driver-common.inc
> @@ -14,7 +14,7 @@ SRC_URI = 
> "${XORG_MIRROR}/individual/driver/${BPN}-${PV}${XORG_DRIVER_COMPRESSOR
> FILES:${PN} += " ${libdir}/xorg/modules/drivers/*.so"
> 
> XORGBUILDCLASS ??= "autotools"
> -inherit ${XORGBUILDCLASS} pkgconfig features_check
> +inherit_defer ${XORGBUILDCLASS} pkgconfig features_check

As above.

> -inherit autotools texinfo binconfig-disabled pkgconfig ${PYTHON_INHERIT} 
> python3native multilib_header
> +inherit autotools texinfo binconfig-disabled pkgconfig multilib_header
> +inherit_defer ${PYTHON_INHERIT} python3native

Why is python3native defered?

Ross
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193427): 
https://lists.openembedded.org/g/openembedded-core/message/193427
Mute This Topic: https://lists.openembedded.org/mt/103502916/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH] kmscube: Upgrade to latest revision

2024-01-08 Thread Martin Jansa
On Mon, Jan 8, 2024 at 6:02 PM Fabio Estevam  wrote:

> Hi Martin,
>
> On Mon, Jan 8, 2024 at 1:21 PM Martin Jansa 
> wrote:
> >
> > Hi,
> >
> > can you please set PV to something else than "git"? meson.build says
> version : '0.0.1'
>
> Yes, I can do that.
>
> > The last commit from the new 3 is causing build failure on some setups
> without GL/gl.h:
> >
> > kmscube/git/git $ git log --oneline
> ea6c5d1eeefbfb0a1c27ab74a6e4621f1d9adf4c..96d63eb59e34c647cda1cbb489265f8c536ae055
> > 96d63eb kmscube: Add gears mode
> > d93842d es: Update to prepare for gears mode
> > b076d85 ci: enable MR pipelines
> >
> > Until "96d63eb kmscube: Add gears mode" it was using only EGL:
> >
> > kmscube/git/git $ git grep "gl\.h"
> > common.h:#include 
> > cube-gears.c:#include 
> > esUtil.h:#include 
>
> Does the change below fix (add virtual/libgl to DEPENDS) the problem?
>
> --- a/meta/recipes-graphics/kmscube/kmscube_git.bb
> +++ b/meta/recipes-graphics/kmscube/kmscube_git.bb
> @@ -6,7 +6,7 @@ OpenGL or OpenGL ES."
>  HOMEPAGE = "https://cgit.freedesktop.org/mesa/kmscube/";
>  LICENSE = "MIT"
>  SECTION = "graphics"
> -DEPENDS = "virtual/libgles3 virtual/libgles2 virtual/egl libdrm
> virtual/libgbm"
> +DEPENDS = "virtual/libgles3 virtual/libgles2 virtual/egl libdrm
> virtual/libgbm virtual/libgl"
>
>  LIC_FILES_CHKSUM =
>
> "file://kmscube.c;beginline=1;endline=23;md5=8b309d4ee67b7315ff7381270dd631fb"
>

On this platform it doesn't as GL/gl.h is not available, but it builds fine
after replacing GL/gl.h with GLES3/gl3.h (for GL_DEPTH24_STENCIL8).

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193428): 
https://lists.openembedded.org/g/openembedded-core/message/193428
Mute This Topic: https://lists.openembedded.org/mt/103368830/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH] kmscube: Upgrade to latest revision

2024-01-08 Thread Fabio Estevam
On Mon, Jan 8, 2024 at 2:26 PM Martin Jansa  wrote:

> On this platform it doesn't as GL/gl.h is not available, but it builds fine 
> after replacing GL/gl.h with GLES3/gl3.h (for GL_DEPTH24_STENCIL8).

Thanks for the suggestion. I will send a fix upstream.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193429): 
https://lists.openembedded.org/g/openembedded-core/message/193429
Mute This Topic: https://lists.openembedded.org/mt/103368830/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core][PATCH] syslinux: Allow mtools to be optional

2024-01-08 Thread Joshua Watt
Adds a PACKAGECONFIG to syslinux to determine if the mtools version of
the utilities is installed or not. The difference between the two
versions is that the mtools version can be used by any user with write
permission, while the non-mtools can only be used by root.

The syslinux-nomtools package is removed, as it was empty and doesn't
appear to be used anyway

Signed-off-by: Joshua Watt 
---
 .../syslinux/syslinux_6.04-pre2.bb  | 17 -
 1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/meta/recipes-devtools/syslinux/syslinux_6.04-pre2.bb 
b/meta/recipes-devtools/syslinux/syslinux_6.04-pre2.bb
index 1931bfb3c05..332655bdf98 100644
--- a/meta/recipes-devtools/syslinux/syslinux_6.04-pre2.bb
+++ b/meta/recipes-devtools/syslinux/syslinux_6.04-pre2.bb
@@ -63,6 +63,10 @@ EXTRA_OEMAKE = " \
RANLIB="${RANLIB}" \
 "
 
+# mtools allows non-root users to install syslinux
+PACKAGECONFIG ??= "mtools"
+PACKAGECONFIG[mtools] = ",,,"
+
 #
 # Tasks for native/nativesdk which just build the installer.
 #
@@ -77,10 +81,15 @@ do_compile() {
 do_install() {
install -d ${D}${bindir}
install \
-   ${B}/bios/mtools/syslinux \
${B}/bios/extlinux/extlinux \
${B}/bios/utils/isohybrid \
${D}${bindir}
+
+   if ${@bb.utils.contains("PACKAGECONFIG", "mtools", "true", "false", 
d)}; then
+   install ${B}/bios/mtools/syslinux ${D}${bindir}
+   else
+   install ${B}/bios/linux/syslinux ${D}${bindir}
+   fi
 }
 
 #
@@ -104,14 +113,12 @@ do_install:class-target() {
install -m 644 ${S}/bios/core/ldlinux.bss ${D}${datadir}/syslinux/
 }
 
-PACKAGES += "${PN}-nomtools ${PN}-extlinux ${PN}-mbr ${PN}-chain 
${PN}-pxelinux ${PN}-isolinux ${PN}-misc"
+PACKAGES += "${PN}-extlinux ${PN}-mbr ${PN}-chain ${PN}-pxelinux 
${PN}-isolinux ${PN}-misc"
 
-RDEPENDS:${PN} += "mtools"
-RDEPENDS:${PN}-nomtools += "libext2fs"
+RDEPENDS:${PN} += "${@bb.utils.contains("PACKAGECONFIG", "mtools", "mtools", 
"", d)}"
 RDEPENDS:${PN}-misc += "perl"
 
 FILES:${PN} = "${bindir}/syslinux"
-FILES:${PN}-nomtools = "${bindir}/syslinux-nomtools"
 FILES:${PN}-extlinux = "${sbindir}/extlinux"
 FILES:${PN}-mbr = "${datadir}/${BPN}/mbr.bin"
 FILES:${PN}-chain = "${datadir}/${BPN}/chain.c32"
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193430): 
https://lists.openembedded.org/g/openembedded-core/message/193430
Mute This Topic: https://lists.openembedded.org/mt/103606392/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH 0/1] rng-tools: remove unneeded build time dependency

2024-01-08 Thread david zuhn via lists.openembedded.org
rng-tools used to depend on libsysfs, but has since been changed
to read directly from the /sys filesystem.  The build time
dependency on sysfsutils is no longer needed.

david d zuhn (1):
  rng-tools: remove obsolete build time dependency on sysfsutils

 meta/recipes-support/rng-tools/rng-tools_6.16.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.26.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193431): 
https://lists.openembedded.org/g/openembedded-core/message/193431
Mute This Topic: https://lists.openembedded.org/mt/103608803/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH 1/1] rng-tools: remove obsolete build time dependency on sysfsutils

2024-01-08 Thread david zuhn via lists.openembedded.org
Signed-off-by: david d zuhn 
---
 meta/recipes-support/rng-tools/rng-tools_6.16.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-support/rng-tools/rng-tools_6.16.bb 
b/meta/recipes-support/rng-tools/rng-tools_6.16.bb
index d23d6be34e..f0aa3ff93f 100644
--- a/meta/recipes-support/rng-tools/rng-tools_6.16.bb
+++ b/meta/recipes-support/rng-tools/rng-tools_6.16.bb
@@ -4,7 +4,7 @@ HOMEPAGE = "https://github.com/nhorman/rng-tools";
 BUGTRACKER = "https://github.com/nhorman/rng-tools/issues";
 LICENSE = "GPL-2.0-only"
 LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
-DEPENDS = "sysfsutils openssl libcap"
+DEPENDS = "openssl libcap"
 
 SRC_URI = "git://github.com/nhorman/rng-tools.git;branch=master;protocol=https 
\
file://init \
-- 
2.26.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193432): 
https://lists.openembedded.org/g/openembedded-core/message/193432
Mute This Topic: https://lists.openembedded.org/mt/103608804/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] Patchtest results for [PATCH 1/1] rng-tools: remove obsolete build time dependency on sysfsutils

2024-01-08 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/1-1-rng-tools-remove-obsolete-build-time-dependency-on-sysfsutils.patch

FAIL: test commit message presence: Please include a commit message on your 
patch explaining the change (test_mbox.TestMbox.test_commit_message_presence)

PASS: pretest src uri left files 
(test_metadata.TestMetadata.pretest_src_uri_left_files)
PASS: test CVE check ignore (test_metadata.TestMetadata.test_cve_check_ignore)
PASS: test Signed-off-by presence 
(test_mbox.TestMbox.test_signed_off_by_presence)
PASS: test author valid (test_mbox.TestMbox.test_author_valid)
PASS: test lic files chksum modified not mentioned 
(test_metadata.TestMetadata.test_lic_files_chksum_modified_not_mentioned)
PASS: test max line length (test_metadata.TestMetadata.test_max_line_length)
PASS: test mbox format (test_mbox.TestMbox.test_mbox_format)
PASS: test non-AUH upgrade (test_mbox.TestMbox.test_non_auh_upgrade)
PASS: test shortlog format (test_mbox.TestMbox.test_shortlog_format)
PASS: test shortlog length (test_mbox.TestMbox.test_shortlog_length)
PASS: test src uri left files 
(test_metadata.TestMetadata.test_src_uri_left_files)

SKIP: pretest pylint: No python related patches, skipping test 
(test_python_pylint.PyLint.pretest_pylint)
SKIP: test CVE tag format: No new CVE patches introduced 
(test_patch.TestPatch.test_cve_tag_format)
SKIP: test Signed-off-by presence: No new CVE patches introduced 
(test_patch.TestPatch.test_signed_off_by_presence)
SKIP: test Upstream-Status presence: No new CVE patches introduced 
(test_patch.TestPatch.test_upstream_status_presence_format)
SKIP: test bugzilla entry format: No bug ID found 
(test_mbox.TestMbox.test_bugzilla_entry_format)
SKIP: test lic files chksum presence: No added recipes, skipping test 
(test_metadata.TestMetadata.test_lic_files_chksum_presence)
SKIP: test license presence: No added recipes, skipping test 
(test_metadata.TestMetadata.test_license_presence)
SKIP: test pylint: No python related patches, skipping test 
(test_python_pylint.PyLint.test_pylint)
SKIP: test series merge on head: Merge test is disabled for now 
(test_mbox.TestMbox.test_series_merge_on_head)
SKIP: test summary presence: No added recipes, skipping test 
(test_metadata.TestMetadata.test_summary_presence)
SKIP: test target mailing list: Series merged, no reason to check other mailing 
lists (test_mbox.TestMbox.test_target_mailing_list)

---

Please address the issues identified and
submit a new revision of the patch, or alternatively, reply to this
email with an explanation of why the patch should be accepted. If you
believe these results are due to an error in patchtest, please submit a
bug at https://bugzilla.yoctoproject.org/ (use the 'Patchtest' category
under 'Yocto Project Subprojects'). For more information on specific
failures, see: https://wiki.yoctoproject.org/wiki/Patchtest. Thank
you!

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193433): 
https://lists.openembedded.org/g/openembedded-core/message/193433
Mute This Topic: https://lists.openembedded.org/mt/103609098/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH 4/4] classes/recipes: Switch to use inherit_defer

2024-01-08 Thread Richard Purdie
On Mon, 2024-01-08 at 17:14 +, Ross Burton wrote:
> On 3 Jan 2024, at 14:59, Richard Purdie via lists.openembedded.org 
>  wrote:
> > --- a/meta/classes-recipe/gnomebase.bbclass
> > +++ b/meta/classes-recipe/gnomebase.bbclass
> > @@ -28,7 +28,7 @@ FILES:${PN} += "${datadir}/application-registry  \
> > FILES:${PN}-doc += "${datadir}/devhelp"
> > 
> > GNOMEBASEBUILDCLASS ??= "meson"
> > -inherit ${GNOMEBASEBUILDCLASS} pkgconfig
> > +inherit_defer ${GNOMEBASEBUILDCLASS} pkgconfig
> 
> Feels like this should be split into inherit pkgconfig and inher_defer 
> ${GNOMEBASEBUILDCLASS}.

I guess did it this way for ease in the patch, it won't really make
much difference either way, particularly for pkgconfig given how simple
that class is.

> 
> > +inherit populate_sdk_base
> > +IMGCLASSES += "${@['', 'populate_sdk_ext']['linux' in d.getVar("SDK_OS")]}"
> 
> Whilst you’re here change this to foo if bar else flob, this boolean 
> subsetting idiom drives me insane.

I don't really mixing up changes as it just makes review harder so
whilst I don't mind changing that, I think it should be done
separately.

> > --- a/meta/recipes-graphics/xorg-driver/xorg-driver-common.inc
> > +++ b/meta/recipes-graphics/xorg-driver/xorg-driver-common.inc
> > @@ -14,7 +14,7 @@ SRC_URI = 
> > "${XORG_MIRROR}/individual/driver/${BPN}-${PV}${XORG_DRIVER_COMPRESSOR
> > FILES:${PN} += " ${libdir}/xorg/modules/drivers/*.so"
> > 
> > XORGBUILDCLASS ??= "autotools"
> > -inherit ${XORGBUILDCLASS} pkgconfig features_check
> > +inherit_defer ${XORGBUILDCLASS} pkgconfig features_check
> 
> As above.
> 
> > -inherit autotools texinfo binconfig-disabled pkgconfig ${PYTHON_INHERIT} 
> > python3native multilib_header
> > +inherit autotools texinfo binconfig-disabled pkgconfig multilib_header
> > +inherit_defer ${PYTHON_INHERIT} python3native
> 
> Why is python3native defered?

In the past there were some ordering issues around the python classes
so I was just being careful not to cause more problems in the patchset
than I was already trying to debug. It probably isn't necessary but at
the time I wasn't 100% sure and there were bigger issues.

I can make the above tweaks if they really bother you...

Cheers,

Richard





-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193434): 
https://lists.openembedded.org/g/openembedded-core/message/193434
Mute This Topic: https://lists.openembedded.org/mt/103502916/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH 0/1] rng-tools: remove unneeded build time dependency

2024-01-08 Thread david zuhn via lists.openembedded.org
rng-tools used to depend on libsysfs, but has since been changed
to read directly from the /sys filesystem.  The build time
dependency on sysfsutils is no longer needed.

david d zuhn (1):
  rng-tools: remove obsolete build time dependency on sysfsutils

 meta/recipes-support/rng-tools/rng-tools_6.16.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.26.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193435): 
https://lists.openembedded.org/g/openembedded-core/message/193435
Mute This Topic: https://lists.openembedded.org/mt/103608803/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH 1/1] rng-tools: remove obsolete build time dependency on sysfsutils

2024-01-08 Thread david zuhn via lists.openembedded.org
This package used to use libsysfs, but has been modified to read
the /sys file system directly.  This build dependency is no longer
needed.

Signed-off-by: david d zuhn 
---
 meta/recipes-support/rng-tools/rng-tools_6.16.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-support/rng-tools/rng-tools_6.16.bb 
b/meta/recipes-support/rng-tools/rng-tools_6.16.bb
index d23d6be34e..f0aa3ff93f 100644
--- a/meta/recipes-support/rng-tools/rng-tools_6.16.bb
+++ b/meta/recipes-support/rng-tools/rng-tools_6.16.bb
@@ -4,7 +4,7 @@ HOMEPAGE = "https://github.com/nhorman/rng-tools";
 BUGTRACKER = "https://github.com/nhorman/rng-tools/issues";
 LICENSE = "GPL-2.0-only"
 LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
-DEPENDS = "sysfsutils openssl libcap"
+DEPENDS = "openssl libcap"
 
 SRC_URI = "git://github.com/nhorman/rng-tools.git;branch=master;protocol=https 
\
file://init \
-- 
2.26.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193436): 
https://lists.openembedded.org/g/openembedded-core/message/193436
Mute This Topic: https://lists.openembedded.org/mt/103609641/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH] linux-firmware: Fix the linux-firmware-bcm4373 FILES variable

2024-01-08 Thread Otavio Salvador
Em seg., 8 de jan. de 2024 às 11:17, 
escreveu:

> From: "Rodrigo M. Duarte" 
>
> This commit includes the 'cyfmac4373-sdio.clm_blob' file in
> the list of files for the linux-firmware-bcm4373 package.
> Without this file, the linux-firmware package adds all
> firmware packages to the image.
>
> Signed-off-by: Rodrigo M. Duarte 
>

Signed-off-by: Otavio Salvador >

-- 
Otavio Salvador O.S. Systems
http://www.ossystems.com.brhttp://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854  Mobile: +1 (347) 903-9750

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193437): 
https://lists.openembedded.org/g/openembedded-core/message/193437
Mute This Topic: https://lists.openembedded.org/mt/103597527/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH 1/2] kmscube: Change header file to

2024-01-08 Thread Fabio Estevam
From: Fabio Estevam 

Since kmscube commit 96d63eb59e34 ("kmscube: Add gears mode"), kmscube
fails to build on platforms without .

Fix it by changing the header file to .

Reported-by: Martin Jansa 
Signed-off-by: Fabio Estevam 
---
 ...rs-Change-header-file-to-GLES3-gl3.h.patch | 33 +++
 meta/recipes-graphics/kmscube/kmscube_git.bb  |  4 ++-
 2 files changed, 36 insertions(+), 1 deletion(-)
 create mode 100644 
meta/recipes-graphics/kmscube/kmscube/0001-cube-gears-Change-header-file-to-GLES3-gl3.h.patch

diff --git 
a/meta/recipes-graphics/kmscube/kmscube/0001-cube-gears-Change-header-file-to-GLES3-gl3.h.patch
 
b/meta/recipes-graphics/kmscube/kmscube/0001-cube-gears-Change-header-file-to-GLES3-gl3.h.patch
new file mode 100644
index 00..6843a662f4
--- /dev/null
+++ 
b/meta/recipes-graphics/kmscube/kmscube/0001-cube-gears-Change-header-file-to-GLES3-gl3.h.patch
@@ -0,0 +1,33 @@
+From 0651c4edc9909832ff2acbbf170268f34e36616d Mon Sep 17 00:00:00 2001
+From: Fabio Estevam 
+Date: Mon, 8 Jan 2024 15:00:01 -0300
+Subject: [PATCH] cube-gears: Change header file to 
+
+Since commit 96d63eb59e34 ("kmscube: Add gears mode"), kmscube fails
+to build on platforms without .
+
+Fix it by changing the header file to .
+
+Reported-by: Martin Jansa 
+Suggested-by: Martin Jansa 
+Signed-off-by: Fabio Estevam 
+Upstream-Status: Submitted 
[https://gitlab.freedesktop.org/mesa/kmscube/-/merge_requests/51]
+---
+ cube-gears.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/cube-gears.c b/cube-gears.c
+index d5b7a5f9cbef..cb538ecc4aee 100644
+--- a/cube-gears.c
 b/cube-gears.c
+@@ -31,7 +31,7 @@
+ #include 
+ #include 
+
+-#include 
++#include 
+
+ #include "common.h"
+ #include "esUtil.h"
+--
+2.34.1
diff --git a/meta/recipes-graphics/kmscube/kmscube_git.bb 
b/meta/recipes-graphics/kmscube/kmscube_git.bb
index aab582281a..63f29fd169 100644
--- a/meta/recipes-graphics/kmscube/kmscube_git.bb
+++ b/meta/recipes-graphics/kmscube/kmscube_git.bb
@@ -11,7 +11,9 @@ DEPENDS = "virtual/libgles3 virtual/libgles2 virtual/egl 
libdrm virtual/libgbm"
 LIC_FILES_CHKSUM = 
"file://kmscube.c;beginline=1;endline=23;md5=8b309d4ee67b7315ff7381270dd631fb"
 
 SRCREV = "96d63eb59e34c647cda1cbb489265f8c536ae055"
-SRC_URI = 
"git://gitlab.freedesktop.org/mesa/kmscube;branch=master;protocol=https"
+SRC_URI = 
"git://gitlab.freedesktop.org/mesa/kmscube;branch=master;protocol=https \
+   file://0001-cube-gears-Change-header-file-to-GLES3-gl3.h.patch \
+   "
 
 UPSTREAM_CHECK_COMMITS = "1"
 
-- 
2.37.3


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193438): 
https://lists.openembedded.org/g/openembedded-core/message/193438
Mute This Topic: https://lists.openembedded.org/mt/103612124/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH 2/2] kmscube: Add package version

2024-01-08 Thread Fabio Estevam
From: Fabio Estevam 

kmscube meson.build passes version : '0.0.1', so add a package
version entry to match.

Suggested-by: Martin Jansa 
Signed-off-by: Fabio Estevam 
---
 meta/recipes-graphics/kmscube/kmscube_git.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/recipes-graphics/kmscube/kmscube_git.bb 
b/meta/recipes-graphics/kmscube/kmscube_git.bb
index 63f29fd169..505acb024b 100644
--- a/meta/recipes-graphics/kmscube/kmscube_git.bb
+++ b/meta/recipes-graphics/kmscube/kmscube_git.bb
@@ -19,6 +19,9 @@ UPSTREAM_CHECK_COMMITS = "1"
 
 S = "${WORKDIR}/git"
 
+BASEPV = "0.0.1"
+PV = "${BASEPV}+git"
+
 inherit meson pkgconfig features_check
 
 REQUIRED_DISTRO_FEATURES = "opengl"
-- 
2.37.3


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193439): 
https://lists.openembedded.org/g/openembedded-core/message/193439
Mute This Topic: https://lists.openembedded.org/mt/103612125/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH 4/4] classes/recipes: Switch to use inherit_defer

2024-01-08 Thread Khem Raj
On Mon, Jan 8, 2024 at 2:39 PM Richard Purdie
 wrote:
>
> On Mon, 2024-01-08 at 17:14 +, Ross Burton wrote:
> > On 3 Jan 2024, at 14:59, Richard Purdie via lists.openembedded.org 
> >  wrote:
> > > --- a/meta/classes-recipe/gnomebase.bbclass
> > > +++ b/meta/classes-recipe/gnomebase.bbclass
> > > @@ -28,7 +28,7 @@ FILES:${PN} += "${datadir}/application-registry  \
> > > FILES:${PN}-doc += "${datadir}/devhelp"
> > >
> > > GNOMEBASEBUILDCLASS ??= "meson"
> > > -inherit ${GNOMEBASEBUILDCLASS} pkgconfig
> > > +inherit_defer ${GNOMEBASEBUILDCLASS} pkgconfig
> >
> > Feels like this should be split into inherit pkgconfig and inher_defer 
> > ${GNOMEBASEBUILDCLASS}.
>
> I guess did it this way for ease in the patch, it won't really make
> much difference either way, particularly for pkgconfig given how simple
> that class is.
>
> >
> > > +inherit populate_sdk_base
> > > +IMGCLASSES += "${@['', 'populate_sdk_ext']['linux' in 
> > > d.getVar("SDK_OS")]}"
> >
> > Whilst you’re here change this to foo if bar else flob, this boolean 
> > subsetting idiom drives me insane.
>
> I don't really mixing up changes as it just makes review harder so
> whilst I don't mind changing that, I think it should be done
> separately.
>
> > > --- a/meta/recipes-graphics/xorg-driver/xorg-driver-common.inc
> > > +++ b/meta/recipes-graphics/xorg-driver/xorg-driver-common.inc
> > > @@ -14,7 +14,7 @@ SRC_URI = 
> > > "${XORG_MIRROR}/individual/driver/${BPN}-${PV}${XORG_DRIVER_COMPRESSOR
> > > FILES:${PN} += " ${libdir}/xorg/modules/drivers/*.so"
> > >
> > > XORGBUILDCLASS ??= "autotools"
> > > -inherit ${XORGBUILDCLASS} pkgconfig features_check
> > > +inherit_defer ${XORGBUILDCLASS} pkgconfig features_check
> >
> > As above.
> >
> > > -inherit autotools texinfo binconfig-disabled pkgconfig ${PYTHON_INHERIT} 
> > > python3native multilib_header
> > > +inherit autotools texinfo binconfig-disabled pkgconfig multilib_header
> > > +inherit_defer ${PYTHON_INHERIT} python3native
> >
> > Why is python3native defered?
>
> In the past there were some ordering issues around the python classes
> so I was just being careful not to cause more problems in the patchset
> than I was already trying to debug. It probably isn't necessary but at
> the time I wasn't 100% sure and there were bigger issues.
>
> I can make the above tweaks if they really bother you...
>

Look into evolution-data-server-native.bb from meta-gnome
it inherits native and provides own default do_compile/do_install functions

it now needs to use
inherit_defer native

which parses but then the functions provided by the recipe are overridden
by ones from autotools class perhaps because it is deferred too ?

> Cheers,
>
> Richard
>
>
>
>
>
> 
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193440): 
https://lists.openembedded.org/g/openembedded-core/message/193440
Mute This Topic: https://lists.openembedded.org/mt/103502916/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH 4/4] classes/recipes: Switch to use inherit_defer

2024-01-08 Thread Khem Raj
On Mon, Jan 8, 2024 at 7:49 PM Khem Raj  wrote:
>
> On Mon, Jan 8, 2024 at 2:39 PM Richard Purdie
>  wrote:
> >
> > On Mon, 2024-01-08 at 17:14 +, Ross Burton wrote:
> > > On 3 Jan 2024, at 14:59, Richard Purdie via lists.openembedded.org 
> > >  wrote:
> > > > --- a/meta/classes-recipe/gnomebase.bbclass
> > > > +++ b/meta/classes-recipe/gnomebase.bbclass
> > > > @@ -28,7 +28,7 @@ FILES:${PN} += "${datadir}/application-registry  \
> > > > FILES:${PN}-doc += "${datadir}/devhelp"
> > > >
> > > > GNOMEBASEBUILDCLASS ??= "meson"
> > > > -inherit ${GNOMEBASEBUILDCLASS} pkgconfig
> > > > +inherit_defer ${GNOMEBASEBUILDCLASS} pkgconfig
> > >
> > > Feels like this should be split into inherit pkgconfig and inher_defer 
> > > ${GNOMEBASEBUILDCLASS}.
> >
> > I guess did it this way for ease in the patch, it won't really make
> > much difference either way, particularly for pkgconfig given how simple
> > that class is.
> >
> > >
> > > > +inherit populate_sdk_base
> > > > +IMGCLASSES += "${@['', 'populate_sdk_ext']['linux' in 
> > > > d.getVar("SDK_OS")]}"
> > >
> > > Whilst you’re here change this to foo if bar else flob, this boolean 
> > > subsetting idiom drives me insane.
> >
> > I don't really mixing up changes as it just makes review harder so
> > whilst I don't mind changing that, I think it should be done
> > separately.
> >
> > > > --- a/meta/recipes-graphics/xorg-driver/xorg-driver-common.inc
> > > > +++ b/meta/recipes-graphics/xorg-driver/xorg-driver-common.inc
> > > > @@ -14,7 +14,7 @@ SRC_URI = 
> > > > "${XORG_MIRROR}/individual/driver/${BPN}-${PV}${XORG_DRIVER_COMPRESSOR
> > > > FILES:${PN} += " ${libdir}/xorg/modules/drivers/*.so"
> > > >
> > > > XORGBUILDCLASS ??= "autotools"
> > > > -inherit ${XORGBUILDCLASS} pkgconfig features_check
> > > > +inherit_defer ${XORGBUILDCLASS} pkgconfig features_check
> > >
> > > As above.
> > >
> > > > -inherit autotools texinfo binconfig-disabled pkgconfig 
> > > > ${PYTHON_INHERIT} python3native multilib_header
> > > > +inherit autotools texinfo binconfig-disabled pkgconfig multilib_header
> > > > +inherit_defer ${PYTHON_INHERIT} python3native
> > >
> > > Why is python3native defered?
> >
> > In the past there were some ordering issues around the python classes
> > so I was just being careful not to cause more problems in the patchset
> > than I was already trying to debug. It probably isn't necessary but at
> > the time I wasn't 100% sure and there were bigger issues.
> >
> > I can make the above tweaks if they really bother you...
> >
>
> Look into evolution-data-server-native.bb from meta-gnome
> it inherits native and provides own default do_compile/do_install functions
>
> it now needs to use
> inherit_defer native
>
> which parses but then the functions provided by the recipe are overridden
> by ones from autotools class perhaps because it is deferred too ?
>

To add a bit more
diff --git 
a/meta-gnome/recipes-gnome/evolution-data-server/evolution-data-server-native.bb
b/meta-gnome/recipes-gnome/evolution-data-server/evolution-data-server-native.bb
index 8f5c9ffb67..e163576c02 100644
--- 
a/meta-gnome/recipes-gnome/evolution-data-server/evolution-data-server-native.bb
+++ 
b/meta-gnome/recipes-gnome/evolution-data-server/evolution-data-server-native.bb
@@ -5,7 +5,7 @@ inherit_defer native
 DEPENDS = "glib-2.0-native"

 # build native helpers
-do_compile() {
+do_compile:class-native() {
 cd ${S}/src/camel
 sed -i 's:#include "evolution-data-server-config.h"::g' camel-gen-tables.c
 ${CC} -o ${B}/camel-gen-tables camel-gen-tables.c ${CFLAGS} ${LDFLAGS}
@@ -17,7 +17,7 @@ do_compile() {
 ${CC} -o ${B}/gen-western-table gen-western-table.c ${CFLAGS}
${CFLAGS_glib} ${LDFLAGS} ${LDFLAGS_glib}
 }

-do_install() {
+do_install:class-native() {
 install -d ${D}${bindir}
 install -m 755 ${B}/* ${D}${bindir}
 }

works, but it seems wrong to do it like this

> > Cheers,
> >
> > Richard
> >
> >
> >
> >
> >
> > 
> >

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193441): 
https://lists.openembedded.org/g/openembedded-core/message/193441
Mute This Topic: https://lists.openembedded.org/mt/103502916/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH] python3-lxml: upgrade 4.9.4 -> 45.0.0

2024-01-08 Thread Khem Raj
subject line should say 5.0.0 instead of 45.0.0

Secondly, be aware that this upgrade will need to disable
incompatible-function-pointer-types warning as error
when using clang. I have added a relevant fix to nonclangable conf
file in meta-clang.

On Wed, Jan 3, 2024 at 12:44 AM wangmy  wrote:
>
> From: Wang Mingyu 
>
> Changelog:
> ==
> -LP#1976304: The "Element.addnext()" method previously inserted the new 
> element
>  before existing tail text.  The tail text of both sibling elements now stays 
> on
>  the respective elements.
> -LP#1980767, GH#379: "TreeBuilder.close()" could fail with a "TypeError" after
>  parsing incorrect input.
> -"Element.itertext(with_tail=False)" returned the tail text of comments and
>  processing instructions, despite the explicit option.
> -GH#370: A crash with recent libxml2 2.11.x versions was resolved.
> -A compile problem with recent libxml2 2.12.x versions was resolved.
> -The internal exception handling in C callbacks was improved for Cython 3.0.
> -The exception declarations of "xmlInputReadCallback", 
> "xmlInputCloseCallback",
> -"xmlOutputWriteCallback" and "xmlOutputCloseCallback" in "tree.pxd" were
>  corrected to prevent running Python code or calling into the C-API with a 
> live
>  exception set.
> -GH#385: The long deprecated "unittest.makeSuite()" function is no longer 
> used.
> -LP#1522052: A file-system specific test is now optional and should no longer 
> fail
>  on systems that don't support it.
> -GH#392: Some tests were adapted for libxml2 2.13.
> -Contains all fixes from lxml 4.9.4.
>
> Signed-off-by: Wang Mingyu 
> ---
>  .../python/{python3-lxml_4.9.4.bb => python3-lxml_5.0.0.bb}| 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>  rename meta/recipes-devtools/python/{python3-lxml_4.9.4.bb => 
> python3-lxml_5.0.0.bb} (94%)
>
> diff --git a/meta/recipes-devtools/python/python3-lxml_4.9.4.bb 
> b/meta/recipes-devtools/python/python3-lxml_5.0.0.bb
> similarity index 94%
> rename from meta/recipes-devtools/python/python3-lxml_4.9.4.bb
> rename to meta/recipes-devtools/python/python3-lxml_5.0.0.bb
> index ed8bce0735..e27405fd23 100644
> --- a/meta/recipes-devtools/python/python3-lxml_4.9.4.bb
> +++ b/meta/recipes-devtools/python/python3-lxml_5.0.0.bb
> @@ -18,10 +18,11 @@ LIC_FILES_CHKSUM = 
> "file://LICENSES.txt;md5=e4c045ebad958ead4b48008f70838403 \
>
>  DEPENDS += "libxml2 libxslt"
>
> -SRC_URI[sha256sum] = 
> "b1541e50b78e15fa06a2670157a1962ef06591d4c998b998047fff5e3236880e"
> +SRC_URI[sha256sum] = 
> "2219cbf790e701acf9a21a31ead75f983e73daf0eceb9da6990212e4d20ebefe"
>
>  SRC_URI += "${PYPI_SRC_URI}"
>  inherit pkgconfig pypi setuptools3
> +PYPI_PACKAGE_EXT = "zip"
>
>  # {standard input}: Assembler messages:
>  # {standard input}:1488805: Error: branch out of range
> --
> 2.34.1
>
>
> 
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193442): 
https://lists.openembedded.org/g/openembedded-core/message/193442
Mute This Topic: https://lists.openembedded.org/mt/103498685/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH 0/1] rng-tools: remove unneeded build time dependency

2024-01-08 Thread Mikko Rapeli
Hi,

On Mon, Jan 08, 2024 at 04:09:02PM -0600, david zuhn via lists.openembedded.org 
wrote:
> rng-tools used to depend on libsysfs, but has since been changed
> to read directly from the /sys filesystem.  The build time
> dependency on sysfsutils is no longer needed.

This is a good change log entry but should be in the git commit directly
to be recorded in git history. No need for extra cover letter if change itself
documents everything.

Cheers,

-Mikko

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193443): 
https://lists.openembedded.org/g/openembedded-core/message/193443
Mute This Topic: https://lists.openembedded.org/mt/103608803/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core][PATCH] package_rpm: proposal to use internal dependency generator

2024-01-08 Thread Xiangyu Chen
From: Xiangyu Chen 

Currently we are using external dependency generator, the rpm upstream already
marked it as "Old Style Dependency Generators"[1], they also added a warning 
message
in rpm source code to inform that the external dependency generator is 
deprecated[2].

Since it is only kept for backwards compatibility and may get removed in a 
future
release of rpm, so here is a proposal to use internal dependency generator by 
default.

[1] 
https://rpm-software-management.github.io/rpm/manual/dependency_generators.html
[2] https://github.com/rpm-software-management/rpm/commit/cfcdd942

Signed-off-by: Xiangyu Chen 
---
 meta/classes-global/package_rpm.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes-global/package_rpm.bbclass 
b/meta/classes-global/package_rpm.bbclass
index 2fc18fe98c..05cecee7d7 100644
--- a/meta/classes-global/package_rpm.bbclass
+++ b/meta/classes-global/package_rpm.bbclass
@@ -681,7 +681,7 @@ python do_package_rpm () {
 cmd = cmd + " --define '_topdir " + workdir + "' --define '_rpmdir " + 
pkgwritedir + "'"
 cmd = cmd + " --define '_builddir " + d.getVar('B') + "'"
 cmd = cmd + " --define '_build_name_fmt 
%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm'"
-cmd = cmd + " --define '_use_internal_dependency_generator 0'"
+cmd = cmd + " --define '_use_internal_dependency_generator 1'"
 cmd = cmd + " --define '_binaries_in_noarch_packages_terminate_build 0'"
 cmd = cmd + " --define '_build_id_links none'"
 cmd = cmd + " --define '_source_payload %s'" % rpmbuild_compmode
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193444): 
https://lists.openembedded.org/g/openembedded-core/message/193444
Mute This Topic: https://lists.openembedded.org/mt/103616137/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core][PATCH 1/3] systemd: upgrade to 255.1

2024-01-08 Thread Alexandre Belloni via lists.openembedded.org
I got this today:

https://autobuilder.yoctoproject.org/typhoon/#/builders/72/builds/8420/steps/25/logs/stdio

WARNING: systemd-1_255.1-r0 do_install: Using /home/root as root user's home 
directory is not fully supported by systemd

On 07/01/2024 14:05:35+, Chen Qi via lists.openembedded.org wrote:
> Another patch in this series fixes the warning:
> rootfs-postcommands.bbclass: ignore comment mismatch in systemd_user_check
> 
> Is that patch also staged?
> 
> Regards,
> Qi
> 
> -Original Message-
> From: Alexandre Belloni  
> Sent: Saturday, January 6, 2024 12:02 AM
> To: Chen, Qi 
> Cc: openembedded-core@lists.openembedded.org
> Subject: Re: [OE-core][PATCH 1/3] systemd: upgrade to 255.1
> 
> Hello,
> 
> This fails with:
> 
> https://autobuilder.yoctoproject.org/typhoon/#/builders/106/builds/7361/steps/12/logs/warnings
> 
> WARNING: core-image-full-cmdline-1.0-r0 do_rootfs: User root has been defined 
> as (root, 0, 0, root, /root, /bin/sh) but sysusers.d expects it as (root, 0, 
> 0, Super User, /root, -)
> WARNING: core-image-full-cmdline-1.0-r0 do_rootfs: User nobody has been 
> defined as (nobody, 65534, 65534, nobody, /nonexistent, /usr/sbin/nologin) 
> but sysusers.d expects it as (nobody, 65534, 65534, Kernel Overflow User, -, 
> -)
> WARNING: core-image-sato-1.0-r0 do_rootfs: User root has been defined as 
> (root, 0, 0, root, /root, /bin/sh) but sysusers.d expects it as (root, 0, 0, 
> Super User, /root, -)
> WARNING: core-image-sato-1.0-r0 do_rootfs: User nobody has been defined as 
> (nobody, 65534, 65534, nobody, /nonexistent, /usr/sbin/nologin) but 
> sysusers.d expects it as (nobody, 65534, 65534, Kernel Overflow User, -, -)
> WARNING: core-image-sato-sdk-1.0-r0 do_rootfs: User root has been defined as 
> (root, 0, 0, root, /root, /bin/sh) but sysusers.d expects it as (root, 0, 0, 
> Super User, /root, -)
> WARNING: core-image-sato-sdk-1.0-r0 do_rootfs: User nobody has been defined 
> as (nobody, 65534, 65534, nobody, /nonexistent, /usr/sbin/nologin) but 
> sysusers.d expects it as (nobody, 65534, 65534, Kernel Overflow User, -, -)
> 
> On 27/12/2023 12:20:34+0800, Chen Qi via lists.openembedded.org wrote:
> > From: Chen Qi 
> > 
> > 1. Patch changes:
> > 
> > 0004-Move-sysusers.d-sysctl.d-binfmt.d-modules-load.d-to-.patch
> > is removed because it has no real effect now. The /lib is now /usr/lib 
> > because 'usrmerge' is a required distro feature for systemd.
> > 
> > 0002-binfmt-Don-t-install-dependency-links-at-install-tim.patch is 
> > refreshed for the new version to avoid patch-fuzz issue.
> > 
> > 2. root user's home directory now defaults to "/root":
> > 
> > The sysuers.d/basic.conf is still modified to respect the ROOT_HOME 
> > value, so if users set ROOT_HOME to "/home/root", the behavior is the 
> > same as before. However, this is only for backward compatibility. With 
> > this patch, The ROOT_HOME value is set to "/root" in 
> > init-manager-systemd.inc.
> > This is because systemd's source codes are hardcoding "/root", and 
> > other values are not officially supported. See the list below.
> > $ grep -rl '"/root"' src/ | grep -v 'src/test'
> > src/core/namespace.c
> > src/basic/user-util.c
> > src/nss-systemd/nss-systemd.c
> > src/nspawn/nspawn.c
> > src/firstboot/firstboot.c
> > src/shared/userdb.c
> > src/shared/user-record.c
> > $ grep -rl /root network/ factory/ sysctl.d/ sysusers.d/ rules.d/ 
> > tmpfiles.d/ units/ xorg/ tools/ sysusers.d/basic.conf.in 
> > tmpfiles.d/provision.conf units/emergency.service.in 
> > units/rescue.service.in tools/list-discoverable-partitions.py
> > Previously, the recipe was just substituting sysusers.d/basic.conf.in, 
> > which is not enough to be treated as 'fully support'. I deliberately 
> > put a warning message in do_install to warn users about non "/root" 
> > ROOT_HOME value. Don't remove it until all above places are handled.
> > 
> > 3. cgroupv2 is now the default.
> > cgroupv2 is the default for systemd for many years and it's the 
> > default for distros such as ubuntu and fedora. Let's also use it as the 
> > default.
> > 
> > Signed-off-by: Chen Qi 
> > ---
> >  .../distro/include/init-manager-systemd.inc   |  2 +
> >  meta/recipes-core/systemd/systemd.inc |  4 +-
> >  ...tall-dependency-links-at-install-tim.patch | 22 +++---  
> > ...sysctl.d-binfmt.d-modules-load.d-to-.patch | 73 ---
> >  .../systemd/systemd/basic.conf.in | 40 --
> >  .../{systemd_254.4.bb => systemd_255.1.bb}| 16 ++--
> >  6 files changed, 25 insertions(+), 132 deletions(-)  delete mode 
> > 100644 
> > meta/recipes-core/systemd/systemd/0004-Move-sysusers.d-sysctl.d-binfmt
> > .d-modules-load.d-to-.patch  delete mode 100644 
> > meta/recipes-core/systemd/systemd/basic.conf.in
> >  rename meta/recipes-core/systemd/{systemd_254.4.bb => 
> > systemd_255.1.bb} (98%)
> > 
> > diff --git a/meta/conf/distro/include/init-manager-systemd.inc 
> > b/meta/conf/distro/include/init-manager-systemd.inc
> > ind