[OE-core] [PATCH 5/5] glib-networking: upgrade 2.74.0 -> 2.76.0

2023-05-17 Thread Anuj Mittal
Signed-off-by: Anuj Mittal 
---
 .../{glib-networking_2.74.0.bb => glib-networking_2.76.0.bb}| 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-core/glib-networking/{glib-networking_2.74.0.bb => 
glib-networking_2.76.0.bb} (95%)

diff --git a/meta/recipes-core/glib-networking/glib-networking_2.74.0.bb 
b/meta/recipes-core/glib-networking/glib-networking_2.76.0.bb
similarity index 95%
rename from meta/recipes-core/glib-networking/glib-networking_2.74.0.bb
rename to meta/recipes-core/glib-networking/glib-networking_2.76.0.bb
index fe6900b036..75c031e8cd 100644
--- a/meta/recipes-core/glib-networking/glib-networking_2.74.0.bb
+++ b/meta/recipes-core/glib-networking/glib-networking_2.76.0.bb
@@ -14,7 +14,7 @@ LIC_FILES_CHKSUM = 
"file://COPYING;md5=4fbd65380cdd255951079008b364516c \
 SECTION = "libs"
 DEPENDS = "glib-2.0-native glib-2.0"
 
-SRC_URI[archive.sha256sum] = 
"1f185aaef094123f8e25d8fa55661b3fd71020163a0174adb35a37685cda613b"
+SRC_URI[archive.sha256sum] = 
"149a05a179e629a538be25662aa324b499d7c4549c5151db5373e780a1bf1b9a"
 
 PACKAGECONFIG ??= "openssl environment ${@bb.utils.contains('PTEST_ENABLED', 
'1', 'tests', '', d)}"
 
-- 
2.40.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181511): 
https://lists.openembedded.org/g/openembedded-core/message/181511
Mute This Topic: https://lists.openembedded.org/mt/98984209/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 4/5] libsoup: upgrade 3.4.0 -> 3.4.2

2023-05-17 Thread Anuj Mittal
Signed-off-by: Anuj Mittal 
---
 .../libsoup/{libsoup_3.4.0.bb => libsoup_3.4.2.bb}  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-support/libsoup/{libsoup_3.4.0.bb => libsoup_3.4.2.bb} 
(94%)

diff --git a/meta/recipes-support/libsoup/libsoup_3.4.0.bb 
b/meta/recipes-support/libsoup/libsoup_3.4.2.bb
similarity index 94%
rename from meta/recipes-support/libsoup/libsoup_3.4.0.bb
rename to meta/recipes-support/libsoup/libsoup_3.4.2.bb
index d35e4f25c1..37e54abe73 100644
--- a/meta/recipes-support/libsoup/libsoup_3.4.0.bb
+++ b/meta/recipes-support/libsoup/libsoup_3.4.2.bb
@@ -12,7 +12,7 @@ DEPENDS = "glib-2.0 glib-2.0-native libxml2 sqlite3 libpsl 
nghttp2"
 SHRT_VER = "${@d.getVar('PV').split('.')[0]}.${@d.getVar('PV').split('.')[1]}"
 
 SRC_URI = "${GNOME_MIRROR}/libsoup/${SHRT_VER}/libsoup-${PV}.tar.xz"
-SRC_URI[sha256sum] = 
"23efff6ac70f2c1e873507dac52649eec032c1597a4ae951762ce3123789acc9"
+SRC_URI[sha256sum] = 
"78c8fa37cb152d40ec8c4a148d6155e2f6947f3f1602a7cda3a31ad40f5ee2f3"
 
 PROVIDES = "libsoup-3.0"
 CVE_PRODUCT = "libsoup"
-- 
2.40.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181510): 
https://lists.openembedded.org/g/openembedded-core/message/181510
Mute This Topic: https://lists.openembedded.org/mt/98984208/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/5] libevdev: upgrade 1.13.0 -> 1.13.1

2023-05-17 Thread Anuj Mittal
Signed-off-by: Anuj Mittal 
---
 .../libevdev/{libevdev_1.13.0.bb => libevdev_1.13.1.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-support/libevdev/{libevdev_1.13.0.bb => 
libevdev_1.13.1.bb} (87%)

diff --git a/meta/recipes-support/libevdev/libevdev_1.13.0.bb 
b/meta/recipes-support/libevdev/libevdev_1.13.1.bb
similarity index 87%
rename from meta/recipes-support/libevdev/libevdev_1.13.0.bb
rename to meta/recipes-support/libevdev/libevdev_1.13.1.bb
index ddcc4b6129..85cfd78507 100644
--- a/meta/recipes-support/libevdev/libevdev_1.13.0.bb
+++ b/meta/recipes-support/libevdev/libevdev_1.13.1.bb
@@ -10,7 +10,7 @@ LIC_FILES_CHKSUM = 
"file://COPYING;md5=80c550b3197bcb8da7d7557ebcc3fc46 \
 "
 
 SRC_URI = "http://www.freedesktop.org/software/libevdev/${BP}.tar.xz;
-SRC_URI[sha256sum] = 
"9edf2006cc86a5055279647c38ec923d11a821ee4dc2c3033e8d20e8ee237cd9"
+SRC_URI[sha256sum] = 
"06a77bf2ac5c993305882bc1641017f5bec1592d6d1b64787bad492ab34f2f36"
 
 inherit autotools pkgconfig
 
-- 
2.40.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181509): 
https://lists.openembedded.org/g/openembedded-core/message/181509
Mute This Topic: https://lists.openembedded.org/mt/98984207/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/5] gsettings-desktop-schemas: upgrade 43.0 -> 44.0

2023-05-17 Thread Anuj Mittal
Signed-off-by: Anuj Mittal 
---
 ...esktop-schemas_43.0.bb => gsettings-desktop-schemas_44.0.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename 
meta/recipes-gnome/gsettings-desktop-schemas/{gsettings-desktop-schemas_43.0.bb 
=> gsettings-desktop-schemas_44.0.bb} (85%)

diff --git 
a/meta/recipes-gnome/gsettings-desktop-schemas/gsettings-desktop-schemas_43.0.bb
 
b/meta/recipes-gnome/gsettings-desktop-schemas/gsettings-desktop-schemas_44.0.bb
similarity index 85%
rename from 
meta/recipes-gnome/gsettings-desktop-schemas/gsettings-desktop-schemas_43.0.bb
rename to 
meta/recipes-gnome/gsettings-desktop-schemas/gsettings-desktop-schemas_44.0.bb
index 966a67fead..8e30d5e524 100644
--- 
a/meta/recipes-gnome/gsettings-desktop-schemas/gsettings-desktop-schemas_43.0.bb
+++ 
b/meta/recipes-gnome/gsettings-desktop-schemas/gsettings-desktop-schemas_44.0.bb
@@ -13,4 +13,4 @@ GNOMEBASEBUILDCLASS = "meson"
 
 inherit gnomebase gsettings gobject-introspection gettext
 
-SRC_URI[archive.sha256sum] = 
"5d5568282ab38b95759d425401f7476e56f8cbf2629885587439f43bd0b84bbe"
+SRC_URI[archive.sha256sum] = 
"eb2de45cad905994849e642a623adeb75d41b21b0626d40d2a07b8ea281fec0e"
-- 
2.40.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181507): 
https://lists.openembedded.org/g/openembedded-core/message/181507
Mute This Topic: https://lists.openembedded.org/mt/98984204/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/5] harfbuzz: upgrade 7.1.0 -> 7.3.0

2023-05-17 Thread Anuj Mittal
Signed-off-by: Anuj Mittal 
---
 .../harfbuzz/{harfbuzz_7.1.0.bb => harfbuzz_7.3.0.bb}   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-graphics/harfbuzz/{harfbuzz_7.1.0.bb => harfbuzz_7.3.0.bb} 
(95%)

diff --git a/meta/recipes-graphics/harfbuzz/harfbuzz_7.1.0.bb 
b/meta/recipes-graphics/harfbuzz/harfbuzz_7.3.0.bb
similarity index 95%
rename from meta/recipes-graphics/harfbuzz/harfbuzz_7.1.0.bb
rename to meta/recipes-graphics/harfbuzz/harfbuzz_7.3.0.bb
index 71c92c64ef..7ecbb04a6a 100644
--- a/meta/recipes-graphics/harfbuzz/harfbuzz_7.1.0.bb
+++ b/meta/recipes-graphics/harfbuzz/harfbuzz_7.3.0.bb
@@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = 
"file://COPYING;md5=b98429b8e8e3c2a67cfef01e99e4893d \
 "
 
 SRC_URI = "${GITHUB_BASE_URI}/download/${PV}/${BPN}-${PV}.tar.xz"
-SRC_URI[sha256sum] = 
"f135a61cd464c9ed6bc9823764c188f276c3850a8dc904628de2a87966b7077b"
+SRC_URI[sha256sum] = 
"20770789749ac9ba846df33983dbda22db836c70d9f5d050cb9aa5347094a8fb"
 
 DEPENDS += "glib-2.0-native"
 
-- 
2.40.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181508): 
https://lists.openembedded.org/g/openembedded-core/message/181508
Mute This Topic: https://lists.openembedded.org/mt/98984205/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-yocto: fix missing pahole and elfutils when CONFIG_DEBUG_INFO_BTF enabled in devshell

2023-05-17 Thread Xiangyu Chen


On 5/17/23 22:35, Bruce Ashfield wrote:

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know 
the content is safe.

On Wed, May 17, 2023 at 8:32 AM Bruce Ashfield via
lists.openembedded.org
 wrote:

On Wed, May 17, 2023 at 1:24 AM Xiangyu Chen
 wrote:


On 5/17/23 09:35, Xiangyu Chen wrote:

On 5/16/23 20:55, Bruce Ashfield wrote:

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the
sender and know the content is safe.

On Tue, May 16, 2023 at 4:56 AM Xiangyu Chen
 wrote:

Hi Bruce,


On 5/15/23 21:11, Bruce Ashfield wrote:

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the
sender and know the content is safe.

On Mon, May 15, 2023 at 8:34 AM Bruce Ashfield via
lists.openembedded.org
 wrote:

On Mon, May 15, 2023 at 6:04 AM Xiangyu Chen
 wrote:

Hi Bruce,


Sorry for being late..


On 5/13/23 09:16, Bruce Ashfield wrote:

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the
sender and know the content is safe.

On Fri, May 12, 2023 at 10:47 AM Bruce Ashfield via
lists.openembedded.org
 wrote:

On Wed, May 10, 2023 at 10:23 PM Xiangyu Chen
 wrote:

Hi Richard and Bruce,


Thanks for your suggestion,


On 5/11/23 00:25, Bruce Ashfield wrote:

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the
sender and know the content is safe.

On Wed, May 10, 2023 at 12:16 PM Richard Purdie
 wrote:

On Mon, 2023-05-08 at 09:33 +0800, Xiangyu Chen wrote:

From: Xiangyu Chen 

after enable the kernel CONFIG_DEBUG_INFO_BTF in devshell, the
make would report some
errors due to pahole and elfuitls is missing, since this is a
debug option, so conditionally
add an option named "btf" in KERNEL_DEBUG_OPTIONS, if someone
need enable CONFIG_DEBUG_INFO_BTF
option in devshell, they can add KERNEL_DEBUG_OPTIONS += "btf" in
local.conf to solve the pahole
and elfutils dependency.

Is this a defined workflow somewhere? Is KERNEL_DEBUG_OPTIONS
with this
option documented somewhere?

I also think the mention of devshell in the commit message is
misleading, this issue happens regardless of how you enable the
option.
There are also other ways of enabling this than local.conf, you'd
likely not want people doing that at the end of development.

I'm curious on Bruce's opinion but to me this at the very least
needs a
commit message rewrite and I'd question whether the docs elsewhere
would allow someone to discover this workflow anyway.

I missed this entirely, thanks for replying to it, or I never would
have noticed.

This mechanism isn't appropriate for these dependencies. I only
added
it to work around pkgconfig issues (which we can more cleanly
solve in
newer kernels  (see what I've been doing with make-mod-scripts)
.. so
it can eventually be dropped).

We are already enabling elfutils-native conditionally on a
per-architecture basis (currently only x86-64).

If we need it on more arches now, we should enable it in the version
specific recipes, or actually, we have moved far enough into newer
kernel's that it could be in the .inc now.

This commit's background was some kernel debug options needs
elfutils
and pahole native package, since the issue happens on enabling
kernel
debug options and not all people needs it, so I conditionally add
the
dependency in KERNEL_DEBUG_OPTION.

If possible we can enable it in .inc because newer kernel tools
like btf
are support using pkg-config to locate the libelf instead of
finding it
from /usr/ folder, so we can use elfutils-natvie instead of
installing
elfutils package on host PC.

Similarly, we should enable the pahole-native dependency on a
per-arch basis.

As Richard mentioned, what's the reproducer to see the errors ? it
must be more than devshell.

Yes, this happens on devshell and normal world if some kernel debug
options are enabled. We can reproduce this issue with following
steps(I
have found the issue with kernel 5.15):

1. enable kernel option CONFIG_DEBUG_KERNEL CONFIG_DEBUG_INFO and
CONFIG_DEBUG_INFO_BTF

2. build the kernel image, the compiler would report missing
libelf.h
and gelf.h which contains in elfutils-native(this step not
happens on
x86-64 due to it has been enabled).

3. enable elfutils-native by manual, the kernel source code can be
compiled successfully but failed in final step due to missing
pahole.


If you can follow up with the steps to reproduce, I can take on the
refactoring and broader dependency cleanup question, since I can
test
the wider matrix at the same time.

Thanks, my local setup might missing some corner case, this is
another
reason I enable those native packages limit in
KERNEL_DEBUG_OPTION :).

I've been thinking about this, and I've come to the following
suggestion:

I plan 

Re: [OE-core] [PATCH V2] Fix error SRCDIR when using usrmerge DISTRO_FEATURES

2023-05-17 Thread qi...@fujitsu.com
Hi, Ross

> 
> First, please use the commit message convention: the shortlog should start
> with "e2fsprogs:”.
> 

> 
> Also, this broken part of the Makefile is a rule that *we patch in* (see
> ptest.patch), so simply fix that patch instead of working around it in
> with a sed.
> 

Please review "[PATCH V3] e2fsprogs: Fix error SRCDIR when using usrmerge 
DISTRO_FEATURES".
Thanks.

Best regards,
Qiu Tingting

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181505): 
https://lists.openembedded.org/g/openembedded-core/message/181505
Mute This Topic: https://lists.openembedded.org/mt/98532823/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 V1] kbd: Add ptest support

2023-05-17 Thread qi...@fujitsu.com
Hi, Ross

Please review "[PATCH V2] kbd: Add ptest support".
Thanks.

Best regards,
Qiu Tingting

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181504): 
https://lists.openembedded.org/g/openembedded-core/message/181504
Mute This Topic: https://lists.openembedded.org/mt/98898762/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] curl: Update from 8.0.1 to 8.1.0

2023-05-17 Thread Robert Joslyn
This is a feature and bugfix release. Release notes are available at:
https://curl.se/changes.html#8_1_0

Signed-off-by: Robert Joslyn 
---
 meta/recipes-support/curl/{curl_8.0.1.bb => curl_8.1.0.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-support/curl/{curl_8.0.1.bb => curl_8.1.0.bb} (98%)

diff --git a/meta/recipes-support/curl/curl_8.0.1.bb 
b/meta/recipes-support/curl/curl_8.1.0.bb
similarity index 98%
rename from meta/recipes-support/curl/curl_8.0.1.bb
rename to meta/recipes-support/curl/curl_8.1.0.bb
index 5cf044615f..0efd0de5c2 100644
--- a/meta/recipes-support/curl/curl_8.0.1.bb
+++ b/meta/recipes-support/curl/curl_8.1.0.bb
@@ -14,7 +14,7 @@ SRC_URI = " \
 file://run-ptest \
 file://disable-tests \
 "
-SRC_URI[sha256sum] = 
"0a381cd82f4d00a9a334438b8ca239afea5bfefcfa9a1025f2bf118e79e0b5f0"
+SRC_URI[sha256sum] = 
"6bd80ad4f07187015911216ee7185b90d285ac5162aed1bded144f9f93232a3c"
 
 # Curl has used many names over the years...
 CVE_PRODUCT = "haxx:curl haxx:libcurl curl:curl curl:libcurl libcurl:libcurl 
daniel_stenberg:curl"
-- 
2.39.3


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181503): 
https://lists.openembedded.org/g/openembedded-core/message/181503
Mute This Topic: https://lists.openembedded.org/mt/98958530/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] libxi: upgrade to v1.8.1

2023-05-17 Thread Sudip Mukherjee
Changes:
Use xz: upstream has not released bz2.
Update sha256sum for new version.

Signed-off-by: Sudip Mukherjee 
---
 .../xorg-lib/{libxi_1.8.bb => libxi_1.8.1.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-graphics/xorg-lib/{libxi_1.8.bb => libxi_1.8.1.bb} (85%)

diff --git a/meta/recipes-graphics/xorg-lib/libxi_1.8.bb 
b/meta/recipes-graphics/xorg-lib/libxi_1.8.1.bb
similarity index 85%
rename from meta/recipes-graphics/xorg-lib/libxi_1.8.bb
rename to meta/recipes-graphics/xorg-lib/libxi_1.8.1.bb
index a6cf9b3002..00bd46ef13 100644
--- a/meta/recipes-graphics/xorg-lib/libxi_1.8.bb
+++ b/meta/recipes-graphics/xorg-lib/libxi_1.8.1.bb
@@ -16,8 +16,8 @@ DEPENDS += "libxext xorgproto libxfixes"
 PE = "1"
 
 XORG_PN = "libXi"
-XORG_EXT = "tar.bz2"
+XORG_EXT = "tar.xz"
 
-SRC_URI[sha256sum] = 
"2ed181446a61c7337576467870bc5336fc9e222a281122d96c4d39a3298bba00"
+SRC_URI[sha256sum] = 
"89bfc0e814f288f784202e6e5f9b362b788ccecdeb078670145eacd8749656a7"
 
 BBCLASSEXTEND = "native nativesdk"
-- 
2.30.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181502): 
https://lists.openembedded.org/g/openembedded-core/message/181502
Mute This Topic: https://lists.openembedded.org/mt/98956984/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] dhcpcd: upgrade to v10.0.1

2023-05-17 Thread Sudip Mukherjee
Changes:
Update license checksum: change in copyright year.
Rebase patches for upstream changes.
Remove upstream applied patches.

Signed-off-by: Sudip Mukherjee 
---
 .../{dhcpcd_9.4.1.bb => dhcpcd_10.0.1.bb} |  9 ++---
 ...mprove-the-sitation-of-working-with-.patch |  4 +--
 ...low-getrandom-sysctl-for-newer-glibc.patch | 30 
 ...x-SECCOMP_AUDIT_ARCH-missing-ppc64le.patch | 34 ---
 ...sep-Allow-newfstatat-syscall-as-well.patch | 31 -
 5 files changed, 5 insertions(+), 103 deletions(-)
 rename meta/recipes-connectivity/dhcpcd/{dhcpcd_9.4.1.bb => dhcpcd_10.0.1.bb} 
(83%)
 delete mode 100644 
meta/recipes-connectivity/dhcpcd/files/0001-privsep-Allow-getrandom-sysctl-for-newer-glibc.patch
 delete mode 100644 
meta/recipes-connectivity/dhcpcd/files/0001-privsep-linux-fix-SECCOMP_AUDIT_ARCH-missing-ppc64le.patch
 delete mode 100644 
meta/recipes-connectivity/dhcpcd/files/0002-privsep-Allow-newfstatat-syscall-as-well.patch

diff --git a/meta/recipes-connectivity/dhcpcd/dhcpcd_9.4.1.bb 
b/meta/recipes-connectivity/dhcpcd/dhcpcd_10.0.1.bb
similarity index 83%
rename from meta/recipes-connectivity/dhcpcd/dhcpcd_9.4.1.bb
rename to meta/recipes-connectivity/dhcpcd/dhcpcd_10.0.1.bb
index 21b2eebbd8..de007a6e6c 100644
--- a/meta/recipes-connectivity/dhcpcd/dhcpcd_9.4.1.bb
+++ b/meta/recipes-connectivity/dhcpcd/dhcpcd_10.0.1.bb
@@ -7,20 +7,17 @@ DESCRIPTION = "dhcpcd runs on your machine and silently 
configures your \
 HOMEPAGE = "http://roy.marples.name/projects/dhcpcd/;
 
 LICENSE = "BSD-2-Clause"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=d148485768fe85b9f1072b186a7e9b4d"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=ba9c7e534853aaf3de76c905b2410ffd"
 
-SRC_URI = 
"git://github.com/NetworkConfiguration/dhcpcd;protocol=https;branch=dhcpcd-9 \
+SRC_URI = 
"git://github.com/NetworkConfiguration/dhcpcd;protocol=https;branch=master \
file://0001-remove-INCLUDEDIR-to-prevent-build-issues.patch \

file://0001-20-resolv.conf-improve-the-sitation-of-working-with-.patch \
-   file://0001-privsep-Allow-getrandom-sysctl-for-newer-glibc.patch \
-   file://0002-privsep-Allow-newfstatat-syscall-as-well.patch \
-   
file://0001-privsep-linux-fix-SECCOMP_AUDIT_ARCH-missing-ppc64le.patch \
file://dhcpcd.service \
file://dhcpcd@.service \
file://0001-dhcpcd.8-Fix-conflict-error-when-enable-multilib.patch \
"
 
-SRCREV = "3c458fc7fa4146029a1e4f9e98cd7e7adf03081a"
+SRCREV = "5d9bf80c26b4b7dc9d8aa175d96d5a24e75b4d48"
 S = "${WORKDIR}/git"
 
 inherit pkgconfig autotools-brokensep systemd useradd
diff --git 
a/meta/recipes-connectivity/dhcpcd/files/0001-20-resolv.conf-improve-the-sitation-of-working-with-.patch
 
b/meta/recipes-connectivity/dhcpcd/files/0001-20-resolv.conf-improve-the-sitation-of-working-with-.patch
index 6f90c88249..8d1ed6671a 100644
--- 
a/meta/recipes-connectivity/dhcpcd/files/0001-20-resolv.conf-improve-the-sitation-of-working-with-.patch
+++ 
b/meta/recipes-connectivity/dhcpcd/files/0001-20-resolv.conf-improve-the-sitation-of-working-with-.patch
@@ -27,7 +27,7 @@ Signed-off-by: Chen Qi 
  1 file changed, 13 insertions(+), 4 deletions(-)
 
 diff --git a/hooks/20-resolv.conf b/hooks/20-resolv.conf
-index 504a6c53..eb6e5845 100644
+index 7c29e276..becc019f 100644
 --- a/hooks/20-resolv.conf
 +++ b/hooks/20-resolv.conf
 @@ -11,8 +11,12 @@ nocarrier_roaming_dir="$state_dir/roaming"
@@ -35,7 +35,7 @@ index 504a6c53..eb6e5845 100644
  "
  : ${resolvconf:=resolvconf}
 +resolvconf_from_systemd=false
- if type "$resolvconf" >/dev/null 2>&1; then
+ if command -v "$resolvconf" >/dev/null 2>&1; then
have_resolvconf=true
 +  if [ $(basename $(readlink -f $(which $resolvconf))) = resolvectl ]; 
then
 +  resolvconf_from_systemd=true
diff --git 
a/meta/recipes-connectivity/dhcpcd/files/0001-privsep-Allow-getrandom-sysctl-for-newer-glibc.patch
 
b/meta/recipes-connectivity/dhcpcd/files/0001-privsep-Allow-getrandom-sysctl-for-newer-glibc.patch
deleted file mode 100644
index 68ab93416a..00
--- 
a/meta/recipes-connectivity/dhcpcd/files/0001-privsep-Allow-getrandom-sysctl-for-newer-glibc.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-From c6cdf0aee71ab4126d36b045f02428ee3c6ec50b Mon Sep 17 00:00:00 2001
-From: Roy Marples 
-Date: Fri, 26 Aug 2022 09:08:36 +0100
-Subject: [PATCH 1/2] privsep: Allow getrandom sysctl for newer glibc
-
-Fixes #120
-
-Upstream-Status: Backport [c6cdf0aee71ab4126d36b045f02428ee3c6ec50b]
-Signed-off-by: Chen Qi 

- src/privsep-linux.c | 3 +++
- 1 file changed, 3 insertions(+)
-
-diff --git a/src/privsep-linux.c b/src/privsep-linux.c
-index b238644b..479a1d82 100644
 a/src/privsep-linux.c
-+++ b/src/privsep-linux.c
-@@ -300,6 +300,9 @@ static struct sock_filter ps_seccomp_filter[] = {
- #ifdef __NR_getpid
-   SECCOMP_ALLOW(__NR_getpid),
- #endif
-+#ifdef __NR_getrandom
-+  SECCOMP_ALLOW(__NR_getrandom),
-+#endif
- #ifdef __NR_getsockopt

Re: [OE-core] [kirkstone][PATCH] gcc-runtime: Use static dummy libstdc++

2023-05-17 Thread Steve Sakoman
On Wed, May 17, 2023 at 8:06 AM Niko Mauno  wrote:
>
> Hi Steve, I must admit this is surprising to me as I am unable to
> reproduce the failure You describe by issuing
>
>$ git checkout poky/kirkstone
>Note: switching to 'poky/kirkstone'.

Sigh, your patch is fine!  I'm the one who messed up :-)

Sometimes it takes more than one cup of coffee to get going in the morning!

Steve

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181500): 
https://lists.openembedded.org/g/openembedded-core/message/181500
Mute This Topic: https://lists.openembedded.org/mt/98944818/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 01/20] python3-async: add missing run-time dependencies

2023-05-17 Thread Bartosz Golaszewski
On Wed, May 17, 2023 at 6:15 PM Trevor Gamblin  wrote:
>
>
> On 2023-05-17 04:06, Bartosz Golaszewski wrote:
> > From: Bartosz Golaszewski 
> >
> > Add missing RDEPENDS for this package.
> >
> > Signed-off-by: Bartosz Golaszewski 
> > ---
> >   meta/recipes-devtools/python/python-async.inc | 5 -
> >   1 file changed, 4 insertions(+), 1 deletion(-)
> >
> > diff --git a/meta/recipes-devtools/python/python-async.inc 
> > b/meta/recipes-devtools/python/python-async.inc
> > index fde864601c..53f8d79361 100644
> > --- a/meta/recipes-devtools/python/python-async.inc
> > +++ b/meta/recipes-devtools/python/python-async.inc
> > @@ -9,6 +9,9 @@ inherit pypi
> >   SRC_URI[md5sum] = "9b06b5997de2154f3bc0273f80bcef6b"
> >   SRC_URI[sha256sum] = 
> > "ac6894d876e45878faae493b0cf61d0e28ec417334448ac0a6ea2229d8343051"
> >
> > -RDEPENDS:${PN} += "${PYTHON_PN}-threading"
> > +RDEPENDS:${PN} += " \
> > +python3-logging \
> > +python3-threading \
> > +"
> >
> >   BBCLASSEXTEND = "native nativesdk"
>
> This is an OK change, but the recipe should arguably be removed from
> oe-core instead, given that it 1) hasn't been updated in 9 years and has
> been abandoned in favor of alternatives by the maintainer, and 2)
> doesn't appear to be a dependency for anything else in oe-core or
> meta-openembedded.
>
> - Trevor
>

I admit I didn't really pay attention to how well maintained the
packages are, just fixed their run-time dependencies. I have nothing
against removing this. This is precisely why I split the series into
individual patches - some may be skipped while others go upstream.

Bart

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181499): 
https://lists.openembedded.org/g/openembedded-core/message/181499
Mute This Topic: https://lists.openembedded.org/mt/98943997/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] [kirkstone][PATCH] gcc-runtime: Use static dummy libstdc++

2023-05-17 Thread Niko Mauno via lists.openembedded.org
Hi Steve, I must admit this is surprising to me as I am unable to 
reproduce the failure You describe by issuing


  $ git checkout poky/kirkstone
  Note: switching to 'poky/kirkstone'.

  HEAD is now at f53ab3a2ff build-appliance-image: Update to kirkstone 
head revision


  $ git cherry-pick 591f14c698f43ca4ae6431c8cd96225d1ed5dbf5
  Auto-merging meta/recipes-devtools/gcc/gcc-runtime.inc
  [detached HEAD 935862b25f] gcc-runtime: Use static dummy libstdc++
  Author: Khem Raj 
  Date: Sun Jul 24 08:10:21 2022 -0700
  1 file changed, 2 insertions(+), 1 deletion(-)

Could you provide any further pointers/hints regarding what could be 
wrong..?


-Niko

On 5/17/23 18:21, Steve Sakoman wrote:

This patch does not apply to current kirkstone HEAD:

Applying: gcc-runtime: Use static dummy libstdc++
Using index info to reconstruct a base tree...
M meta/recipes-devtools/gcc/gcc-runtime.inc
Falling back to patching base and 3-way merge...
Auto-merging meta/recipes-devtools/gcc/gcc-runtime.inc
CONFLICT (content): Merge conflict in meta/recipes-devtools/gcc/gcc-runtime.inc
error: Failed to merge in the changes.
Patch failed at 0001 gcc-runtime: Use static dummy libstdc++

Steve

On Wed, May 17, 2023 at 12:06 AM Niko Mauno via lists.openembedded.org
 wrote:


From: Khem Raj 

some standalone targets e.g. riscv64-elf disable shared linking for
baremetal ELF ABI in ld, therefore lets make it a static library

(From OE-Core rev: 3c6219dfcbcbde314648ba8cc54a90b32ea1c952)

Signed-off-by: Khem Raj 
Signed-off-by: Richard Purdie 
---
  meta/recipes-devtools/gcc/gcc-runtime.inc | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/gcc/gcc-runtime.inc 
b/meta/recipes-devtools/gcc/gcc-runtime.inc
index 8074bf1025..d019b0790b 100644
--- a/meta/recipes-devtools/gcc/gcc-runtime.inc
+++ b/meta/recipes-devtools/gcc/gcc-runtime.inc
@@ -68,7 +68,8 @@ do_configure () {
 # libstdc++ isn't built yet so CXX would error not able to find it 
which breaks stdc++'s configure
 # tests. Create a dummy empty lib for the purposes of configure.
 mkdir -p ${WORKDIR}/dummylib
-   ${CC} -x c /dev/null -nostartfiles -shared -o 
${WORKDIR}/dummylib/libstdc++.so
+   ${CC} -x c /dev/null -c -o ${WORKDIR}/dummylib/dummylib.o
+   ${AR} rcs ${WORKDIR}/dummylib/libstdc++.a ${WORKDIR}/dummylib/dummylib.o
 for d in libgcc ${RUNTIMETARGET}; do
 echo "Configuring $d"
 rm -rf ${B}/${TARGET_SYS}/$d/
--
2.39.2





-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181498): 
https://lists.openembedded.org/g/openembedded-core/message/181498
Mute This Topic: https://lists.openembedded.org/mt/98944818/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 06/20] python3-libfdt: new package

2023-05-17 Thread Bruce Ashfield
I'm not sure if you saw the old threads on this, but we went through this
binding in detail in february:

See the series from TrevorW:

[PATCH v3 1/4] dtc: version bump and add python wrapper

The pypi releases of libfdt bindings are not kept in sync with the dtc
releases and rarely update. Not that they change a lot, but that is
still the case.

The suggestion for the bindings is the same, they'd be better of built
from dtc, versus using pypi.

There may be some issues remaining with the build, as Trevor hasn't
updated his series in a while now.

Bruce


On Wed, May 17, 2023 at 4:06 AM Bartosz Golaszewski  wrote:
>
> From: Bartosz Golaszewski 
>
> Add a recipe for python bindings for libfdt (spun out of upstream dtc)
> fetched from pypi.
>
> Signed-off-by: Bartosz Golaszewski 
> ---
>  .../python/python3-libfdt_1.7.0.post1.bb  | 20 +++
>  1 file changed, 20 insertions(+)
>  create mode 100644 meta/recipes-devtools/python/python3-libfdt_1.7.0.post1.bb
>
> diff --git a/meta/recipes-devtools/python/python3-libfdt_1.7.0.post1.bb 
> b/meta/recipes-devtools/python/python3-libfdt_1.7.0.post1.bb
> new file mode 100644
> index 00..1ff3decbb9
> --- /dev/null
> +++ b/meta/recipes-devtools/python/python3-libfdt_1.7.0.post1.bb
> @@ -0,0 +1,20 @@
> +SUMMARY = "Python bindings for libfdt."
> +LICENSE = "GPL-2.0-only | BSD-2-Clause"
> +LIC_FILES_CHKSUM = " \
> +file://BSD-2-Clause;md5=5d6306d1b08f8df623178dfd81880927 \
> +file://GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
> +"
> +
> +inherit pypi setuptools3
> +
> +PYPI_PACKAGE = "pylibfdt"
> +
> +SRC_URI[sha256sum] = 
> "2d048f9f8ce9a0527d497f423dea1f1135f9811c05b009cc5d5753771c1f9ba1"
> +
> +BBCLASSEXTEND = "native nativesdk"
> +
> +DEPENDS += " \
> +python3-pip-native \
> +python3-setuptools-scm-native \
> +swig-native \
> +"
> --
> 2.39.2
>


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

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181497): 
https://lists.openembedded.org/g/openembedded-core/message/181497
Mute This Topic: https://lists.openembedded.org/mt/98944002/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] rootfs-postcommands: Set vardeps for write_image_test_data

2023-05-17 Thread Peter Hoyes
From: Peter Hoyes 

The testdata.json file generated as part of the rootfs postprocess
commands contains almost all Bitbake variables and is used by OEQA test
cases to inspect the build environment. However it is only regenerated
when the rootfs task is otherwise retriggered, complicating the process
of developing OEQA test cases.

Use the vardeps mechanism to add a dependency on all the generated
datastore keys. Split out exportkeys from export2json to support this.

Add a demonstrative OE selftest to rootfspostcommandstests.

Signed-off-by: Peter Hoyes 
---
 .../rootfs-postcommands.bbclass   |  3 ++-
 meta/lib/oe/data.py   |  9 +++--
 .../selftest/cases/rootfspostcommandstests.py | 19 +++
 3 files changed, 28 insertions(+), 3 deletions(-)

diff --git a/meta/classes-recipe/rootfs-postcommands.bbclass 
b/meta/classes-recipe/rootfs-postcommands.bbclass
index 690fa976aa..b91498c32e 100644
--- a/meta/classes-recipe/rootfs-postcommands.bbclass
+++ b/meta/classes-recipe/rootfs-postcommands.bbclass
@@ -386,7 +386,8 @@ python write_image_test_data() {
 os.remove(testdata_link)
 os.symlink(os.path.basename(testdata_name), testdata_link)
 }
-write_image_test_data[vardepsexclude] += "TOPDIR"
+write_image_test_data[vardeps] += "${@' '.join(oe.data.exportkeys(d))}"
+write_image_test_data[vardepsexclude] += "TOPDIR DATETIME BUILDNAME 
${BB_HASHCONFIG_IGNORE_VARS}"
 
 # Check for unsatisfied recommendations (RRECOMMENDS)
 python rootfs_log_check_recommends() {
diff --git a/meta/lib/oe/data.py b/meta/lib/oe/data.py
index 37121cfad2..9989230638 100644
--- a/meta/lib/oe/data.py
+++ b/meta/lib/oe/data.py
@@ -23,8 +23,7 @@ def typed_value(key, d):
 except (TypeError, ValueError) as exc:
 bb.msg.fatal("Data", "%s: %s" % (key, str(exc)))
 
-def export2json(d, json_file, expand=True, searchString="",replaceString=""):
-data2export = {}
+def exportkeys(d):
 keys2export = []
 
 for key in d.keys():
@@ -41,6 +40,12 @@ def export2json(d, json_file, expand=True, 
searchString="",replaceString=""):
 
 keys2export.append(key)
 
+return keys2export
+
+def export2json(d, json_file, expand=True, searchString="",replaceString=""):
+data2export = {}
+keys2export = exportkeys(d)
+
 for key in keys2export:
 try:
 data2export[key] = d.getVar(key, 
expand).replace(searchString,replaceString)
diff --git a/meta/lib/oeqa/selftest/cases/rootfspostcommandstests.py 
b/meta/lib/oeqa/selftest/cases/rootfspostcommandstests.py
index 44e2c09a6f..5de4ea378a 100644
--- a/meta/lib/oeqa/selftest/cases/rootfspostcommandstests.py
+++ b/meta/lib/oeqa/selftest/cases/rootfspostcommandstests.py
@@ -2,6 +2,7 @@
 #
 # SPDX-License-Identifier: MIT
 
+import json
 import os
 import oe
 import unittest
@@ -95,3 +96,21 @@ class ShadowUtilsTidyFiles(OESelftestTestCase):
 unsorted.append(file)
 if (unsorted):
 raise Exception("The following files were not sorted by ID as 
expected: %s" % unsorted)
+
+
+class TestDataTests(OESelftestTestCase):
+def test_vardeps(self):
+"""
+Test that variables changes are reflected in testdata.json
+"""
+test_image = "core-image-minimal"
+self.write_config('TEST_VARIABLE = "VALUE1"')
+bitbake(test_image)
+self.write_config('TEST_VARIABLE = "VALUE2"')
+bitbake(test_image)
+
+vars = get_bb_vars(('DEPLOY_DIR_IMAGE', 'IMAGE_LINK_NAME'), test_image)
+testdata_json = "%s/%s.testdata.json" % (vars['DEPLOY_DIR_IMAGE'], 
vars['IMAGE_LINK_NAME'])
+with open(testdata_json, 'r') as tf:
+testdata_vars = json.load(tf)
+self.assertEqual(testdata_vars['TEST_VARIABLE'], 'VALUE2')
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181496): 
https://lists.openembedded.org/g/openembedded-core/message/181496
Mute This Topic: https://lists.openembedded.org/mt/98951993/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 06/20] python3-libfdt: new package

2023-05-17 Thread Trevor Gamblin


On 2023-05-17 04:06, Bartosz Golaszewski wrote:

From: Bartosz Golaszewski 

Add a recipe for python bindings for libfdt (spun out of upstream dtc)
fetched from pypi.

Signed-off-by: Bartosz Golaszewski 
---
  .../python/python3-libfdt_1.7.0.post1.bb  | 20 +++
  1 file changed, 20 insertions(+)
  create mode 100644 meta/recipes-devtools/python/python3-libfdt_1.7.0.post1.bb

diff --git a/meta/recipes-devtools/python/python3-libfdt_1.7.0.post1.bb 
b/meta/recipes-devtools/python/python3-libfdt_1.7.0.post1.bb
new file mode 100644
index 00..1ff3decbb9
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-libfdt_1.7.0.post1.bb
@@ -0,0 +1,20 @@
+SUMMARY = "Python bindings for libfdt."
+LICENSE = "GPL-2.0-only | BSD-2-Clause"
+LIC_FILES_CHKSUM = " \
+file://BSD-2-Clause;md5=5d6306d1b08f8df623178dfd81880927 \
+file://GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
+"
+
+inherit pypi setuptools3
+
+PYPI_PACKAGE = "pylibfdt"
+
+SRC_URI[sha256sum] = 
"2d048f9f8ce9a0527d497f423dea1f1135f9811c05b009cc5d5753771c1f9ba1"
+
+BBCLASSEXTEND = "native nativesdk"
+
+DEPENDS += " \
+python3-pip-native \
+python3-setuptools-scm-native \
+swig-native \
+"
Can you also add this recipe to the 
meta/conf/distro/include/maintainers.inc file?





-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181495): 
https://lists.openembedded.org/g/openembedded-core/message/181495
Mute This Topic: https://lists.openembedded.org/mt/98944002/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 01/20] python3-async: add missing run-time dependencies

2023-05-17 Thread Trevor Gamblin


On 2023-05-17 04:06, Bartosz Golaszewski wrote:

From: Bartosz Golaszewski 

Add missing RDEPENDS for this package.

Signed-off-by: Bartosz Golaszewski 
---
  meta/recipes-devtools/python/python-async.inc | 5 -
  1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/python/python-async.inc 
b/meta/recipes-devtools/python/python-async.inc
index fde864601c..53f8d79361 100644
--- a/meta/recipes-devtools/python/python-async.inc
+++ b/meta/recipes-devtools/python/python-async.inc
@@ -9,6 +9,9 @@ inherit pypi
  SRC_URI[md5sum] = "9b06b5997de2154f3bc0273f80bcef6b"
  SRC_URI[sha256sum] = 
"ac6894d876e45878faae493b0cf61d0e28ec417334448ac0a6ea2229d8343051"
  
-RDEPENDS:${PN} += "${PYTHON_PN}-threading"

+RDEPENDS:${PN} += " \
+python3-logging \
+python3-threading \
+"
  
  BBCLASSEXTEND = "native nativesdk"


This is an OK change, but the recipe should arguably be removed from 
oe-core instead, given that it 1) hasn't been updated in 9 years and has 
been abandoned in favor of alternatives by the maintainer, and 2) 
doesn't appear to be a dependency for anything else in oe-core or 
meta-openembedded.


- Trevor






-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181494): 
https://lists.openembedded.org/g/openembedded-core/message/181494
Mute This Topic: https://lists.openembedded.org/mt/98943997/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] [kirkstone][PATCH] gcc-runtime: Use static dummy libstdc++

2023-05-17 Thread Steve Sakoman
This patch does not apply to current kirkstone HEAD:

Applying: gcc-runtime: Use static dummy libstdc++
Using index info to reconstruct a base tree...
M meta/recipes-devtools/gcc/gcc-runtime.inc
Falling back to patching base and 3-way merge...
Auto-merging meta/recipes-devtools/gcc/gcc-runtime.inc
CONFLICT (content): Merge conflict in meta/recipes-devtools/gcc/gcc-runtime.inc
error: Failed to merge in the changes.
Patch failed at 0001 gcc-runtime: Use static dummy libstdc++

Steve

On Wed, May 17, 2023 at 12:06 AM Niko Mauno via lists.openembedded.org
 wrote:
>
> From: Khem Raj 
>
> some standalone targets e.g. riscv64-elf disable shared linking for
> baremetal ELF ABI in ld, therefore lets make it a static library
>
> (From OE-Core rev: 3c6219dfcbcbde314648ba8cc54a90b32ea1c952)
>
> Signed-off-by: Khem Raj 
> Signed-off-by: Richard Purdie 
> ---
>  meta/recipes-devtools/gcc/gcc-runtime.inc | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/meta/recipes-devtools/gcc/gcc-runtime.inc 
> b/meta/recipes-devtools/gcc/gcc-runtime.inc
> index 8074bf1025..d019b0790b 100644
> --- a/meta/recipes-devtools/gcc/gcc-runtime.inc
> +++ b/meta/recipes-devtools/gcc/gcc-runtime.inc
> @@ -68,7 +68,8 @@ do_configure () {
> # libstdc++ isn't built yet so CXX would error not able to find it 
> which breaks stdc++'s configure
> # tests. Create a dummy empty lib for the purposes of configure.
> mkdir -p ${WORKDIR}/dummylib
> -   ${CC} -x c /dev/null -nostartfiles -shared -o 
> ${WORKDIR}/dummylib/libstdc++.so
> +   ${CC} -x c /dev/null -c -o ${WORKDIR}/dummylib/dummylib.o
> +   ${AR} rcs ${WORKDIR}/dummylib/libstdc++.a 
> ${WORKDIR}/dummylib/dummylib.o
> for d in libgcc ${RUNTIMETARGET}; do
> echo "Configuring $d"
> rm -rf ${B}/${TARGET_SYS}/$d/
> --
> 2.39.2
>
>
> 
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181493): 
https://lists.openembedded.org/g/openembedded-core/message/181493
Mute This Topic: https://lists.openembedded.org/mt/98944818/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] python3-trove-classifiers: upgrade 2023.4.29 -> 2023.5.2

2023-05-17 Thread Trevor Gamblin
Signed-off-by: Trevor Gamblin 
---
 ...fiers_2023.4.29.bb => python3-trove-classifiers_2023.5.2.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-devtools/python/{python3-trove-classifiers_2023.4.29.bb => 
python3-trove-classifiers_2023.5.2.bb} (87%)

diff --git 
a/meta/recipes-devtools/python/python3-trove-classifiers_2023.4.29.bb 
b/meta/recipes-devtools/python/python3-trove-classifiers_2023.5.2.bb
similarity index 87%
rename from meta/recipes-devtools/python/python3-trove-classifiers_2023.4.29.bb
rename to meta/recipes-devtools/python/python3-trove-classifiers_2023.5.2.bb
index 4bbcea5489..78057feb52 100644
--- a/meta/recipes-devtools/python/python3-trove-classifiers_2023.4.29.bb
+++ b/meta/recipes-devtools/python/python3-trove-classifiers_2023.5.2.bb
@@ -3,7 +3,7 @@ HOMEPAGE = "https://github.com/pypa/trove-classifiers;
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
 
-SRC_URI[sha256sum] = 
"8adcc06f1eb7c495f0bdceb698bd9c044b3e57b0d5767d99ec4b6b17c9bbe957"
+SRC_URI[sha256sum] = 
"c46d6e40a9581599b16c712e0164fec3764872a4085c673c07559787caedb867"
 
 inherit pypi python_setuptools_build_meta ptest
 
-- 
2.40.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181492): 
https://lists.openembedded.org/g/openembedded-core/message/181492
Mute This Topic: https://lists.openembedded.org/mt/98949568/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 v2] testimage/oeqa: remove testimage_dump_host function

2023-05-17 Thread Thomas Roos via lists.openembedded.org
From: Thomas Roos 

This function is not necessary.

[YOCTO #13872]

Signed-off-by: Thomas Roos 
---
 meta/classes-recipe/testexport.bbclass |  6 +-
 meta/classes-recipe/testimage.bbclass  | 20 +---
 meta/lib/oeqa/core/target/qemu.py  |  5 ++---
 meta/lib/oeqa/runtime/context.py   | 11 +--
 meta/lib/oeqa/targetcontrol.py |  2 --
 meta/lib/oeqa/utils/dump.py| 20 +---
 meta/lib/oeqa/utils/qemurunner.py  | 18 ++
 7 files changed, 8 insertions(+), 74 deletions(-)

diff --git a/meta/classes-recipe/testexport.bbclass 
b/meta/classes-recipe/testexport.bbclass
index 0f0c56107f..572f5d9e76 100644
--- a/meta/classes-recipe/testexport.bbclass
+++ b/meta/classes-recipe/testexport.bbclass
@@ -61,16 +61,12 @@ def testexport_main(d):
 d.getVar("TEST_TARGET"), None, d.getVar("TEST_TARGET_IP"),
 d.getVar("TEST_SERVER_IP"))
 
-host_dumper = OERuntimeTestContextExecutor.getHostDumper(
-d.getVar("testimage_dump_host"), d.getVar("TESTIMAGE_DUMP_DIR"))
-
 image_manifest = "%s.manifest" % image_name
 image_packages = 
OERuntimeTestContextExecutor.readPackagesManifest(image_manifest)
 
 extract_dir = d.getVar("TEST_EXTRACTED_DIR")
 
-tc = OERuntimeTestContext(td, logger, target, host_dumper,
-  image_packages, extract_dir)
+tc = OERuntimeTestContext(td, logger, target, image_packages, extract_dir)
 
 copy_needed_files(d, tc)
 
diff --git a/meta/classes-recipe/testimage.bbclass 
b/meta/classes-recipe/testimage.bbclass
index b48cd96575..cc3650ad42 100644
--- a/meta/classes-recipe/testimage.bbclass
+++ b/meta/classes-recipe/testimage.bbclass
@@ -115,18 +115,6 @@ testimage_dump_target () {
 find /var/log/ -type f 2>/dev/null -exec echo "" \; 
-exec echo {} \; -exec echo "" \; -exec cat {} \; -exec 
echo "" \;
 }
 
-testimage_dump_host () {
-top -bn1
-iostat -x -z -N -d -p ALL 20 2
-ps -ef
-free
-df
-memstat
-dmesg
-ip -s link
-netstat -an
-}
-
 testimage_dump_monitor () {
 query-status
 query-block
@@ -339,19 +327,13 @@ def testimage_main(d):
 # runtime use network for download projects for build
 export_proxies(d)
 
-# we need the host dumper in test context
-host_dumper = OERuntimeTestContextExecutor.getHostDumper(
-d.getVar("testimage_dump_host"),
-d.getVar("TESTIMAGE_DUMP_DIR"))
-
 # the robot dance
 target = OERuntimeTestContextExecutor.getTarget(
 d.getVar("TEST_TARGET"), logger, d.getVar("TEST_TARGET_IP"),
 d.getVar("TEST_SERVER_IP"), **target_kwargs)
 
 # test context
-tc = OERuntimeTestContext(td, logger, target, host_dumper,
-  image_packages, extract_dir)
+tc = OERuntimeTestContext(td, logger, target, image_packages, extract_dir)
 
 # Load tests before starting the target
 test_paths = get_runtime_paths(d)
diff --git a/meta/lib/oeqa/core/target/qemu.py 
b/meta/lib/oeqa/core/target/qemu.py
index 79fd724f7d..6893d10226 100644
--- a/meta/lib/oeqa/core/target/qemu.py
+++ b/meta/lib/oeqa/core/target/qemu.py
@@ -22,7 +22,7 @@ supported_fstypes = ['ext3', 'ext4', 'cpio.gz', 'wic']
 class OEQemuTarget(OESSHTarget):
 def __init__(self, logger, server_ip, timeout=300, user='root',
 port=None, machine='', rootfs='', kernel='', kvm=False, 
slirp=False,
-dump_dir='', dump_host_cmds='', display='', bootlog='',
+dump_dir='', display='', bootlog='',
 tmpdir='', dir_image='', boottime=60, serial_ports=2,
 boot_patterns = defaultdict(str), ovmf=False, tmpfsdir=None, 
**kwargs):
 
@@ -44,8 +44,7 @@ class OEQemuTarget(OESSHTarget):
 self.runner = QemuRunner(machine=machine, rootfs=rootfs, tmpdir=tmpdir,
  deploy_dir_image=dir_image, display=display,
  logfile=bootlog, boottime=boottime,
- use_kvm=kvm, use_slirp=slirp, 
dump_dir=dump_dir,
- dump_host_cmds=dump_host_cmds, logger=logger,
+ use_kvm=kvm, use_slirp=slirp, 
dump_dir=dump_dir, logger=logger,
  serial_ports=serial_ports, boot_patterns = 
boot_patterns, 
  use_ovmf=ovmf, tmpfsdir=tmpfsdir)
 dump_monitor_cmds = kwargs.get("testimage_dump_monitor")
diff --git a/meta/lib/oeqa/runtime/context.py b/meta/lib/oeqa/runtime/context.py
index 0c5d1869ab..cb7227a8df 100644
--- a/meta/lib/oeqa/runtime/context.py
+++ b/meta/lib/oeqa/runtime/context.py
@@ -10,7 +10,6 @@ import sys
 from oeqa.core.context import OETestContext, OETestContextExecutor
 from oeqa.core.target.ssh import OESSHTarget
 from oeqa.core.target.qemu import OEQemuTarget
-from oeqa.utils.dump import HostDumper
 
 from oeqa.runtime.loader import OERuntimeTestLoader
 
@@ -20,12 

Re: [OE-core][PATCH] linux-yocto: fix missing pahole and elfutils when CONFIG_DEBUG_INFO_BTF enabled in devshell

2023-05-17 Thread Bruce Ashfield
On Wed, May 17, 2023 at 8:32 AM Bruce Ashfield via
lists.openembedded.org
 wrote:
>
> On Wed, May 17, 2023 at 1:24 AM Xiangyu Chen
>  wrote:
> >
> >
> > On 5/17/23 09:35, Xiangyu Chen wrote:
> > >
> > > On 5/16/23 20:55, Bruce Ashfield wrote:
> > >> CAUTION: This email comes from a non Wind River email account!
> > >> Do not click links or open attachments unless you recognize the
> > >> sender and know the content is safe.
> > >>
> > >> On Tue, May 16, 2023 at 4:56 AM Xiangyu Chen
> > >>  wrote:
> > >>> Hi Bruce,
> > >>>
> > >>>
> > >>> On 5/15/23 21:11, Bruce Ashfield wrote:
> >  CAUTION: This email comes from a non Wind River email account!
> >  Do not click links or open attachments unless you recognize the
> >  sender and know the content is safe.
> > 
> >  On Mon, May 15, 2023 at 8:34 AM Bruce Ashfield via
> >  lists.openembedded.org
> >   wrote:
> > > On Mon, May 15, 2023 at 6:04 AM Xiangyu Chen
> > >  wrote:
> > >> Hi Bruce,
> > >>
> > >>
> > >> Sorry for being late..
> > >>
> > >>
> > >> On 5/13/23 09:16, Bruce Ashfield wrote:
> > >>
> > >> CAUTION: This email comes from a non Wind River email account!
> > >> Do not click links or open attachments unless you recognize the
> > >> sender and know the content is safe.
> > >>
> > >> On Fri, May 12, 2023 at 10:47 AM Bruce Ashfield via
> > >> lists.openembedded.org
> > >>  wrote:
> > >>
> > >> On Wed, May 10, 2023 at 10:23 PM Xiangyu Chen
> > >>  wrote:
> > >>
> > >> Hi Richard and Bruce,
> > >>
> > >>
> > >> Thanks for your suggestion,
> > >>
> > >>
> > >> On 5/11/23 00:25, Bruce Ashfield wrote:
> > >>
> > >> CAUTION: This email comes from a non Wind River email account!
> > >> Do not click links or open attachments unless you recognize the
> > >> sender and know the content is safe.
> > >>
> > >> On Wed, May 10, 2023 at 12:16 PM Richard Purdie
> > >>  wrote:
> > >>
> > >> On Mon, 2023-05-08 at 09:33 +0800, Xiangyu Chen wrote:
> > >>
> > >> From: Xiangyu Chen 
> > >>
> > >> after enable the kernel CONFIG_DEBUG_INFO_BTF in devshell, the
> > >> make would report some
> > >> errors due to pahole and elfuitls is missing, since this is a
> > >> debug option, so conditionally
> > >> add an option named "btf" in KERNEL_DEBUG_OPTIONS, if someone
> > >> need enable CONFIG_DEBUG_INFO_BTF
> > >> option in devshell, they can add KERNEL_DEBUG_OPTIONS += "btf" in
> > >> local.conf to solve the pahole
> > >> and elfutils dependency.
> > >>
> > >> Is this a defined workflow somewhere? Is KERNEL_DEBUG_OPTIONS
> > >> with this
> > >> option documented somewhere?
> > >>
> > >> I also think the mention of devshell in the commit message is
> > >> misleading, this issue happens regardless of how you enable the
> > >> option.
> > >> There are also other ways of enabling this than local.conf, you'd
> > >> likely not want people doing that at the end of development.
> > >>
> > >> I'm curious on Bruce's opinion but to me this at the very least
> > >> needs a
> > >> commit message rewrite and I'd question whether the docs elsewhere
> > >> would allow someone to discover this workflow anyway.
> > >>
> > >> I missed this entirely, thanks for replying to it, or I never would
> > >> have noticed.
> > >>
> > >> This mechanism isn't appropriate for these dependencies. I only
> > >> added
> > >> it to work around pkgconfig issues (which we can more cleanly
> > >> solve in
> > >> newer kernels  (see what I've been doing with make-mod-scripts)
> > >> .. so
> > >> it can eventually be dropped).
> > >>
> > >> We are already enabling elfutils-native conditionally on a
> > >> per-architecture basis (currently only x86-64).
> > >>
> > >> If we need it on more arches now, we should enable it in the version
> > >> specific recipes, or actually, we have moved far enough into newer
> > >> kernel's that it could be in the .inc now.
> > >>
> > >> This commit's background was some kernel debug options needs
> > >> elfutils
> > >> and pahole native package, since the issue happens on enabling
> > >> kernel
> > >> debug options and not all people needs it, so I conditionally add
> > >> the
> > >> dependency in KERNEL_DEBUG_OPTION.
> > >>
> > >> If possible we can enable it in .inc because newer kernel tools
> > >> like btf
> > >> are support using pkg-config to locate the libelf instead of
> > >> finding it
> > >> from /usr/ folder, so we can use elfutils-natvie instead of
> > >> installing
> > >> elfutils package on host PC.
> > >>
> > >> Similarly, we should enable the pahole-native dependency on a
> > >> per-arch basis.
> > >>
> > >> As Richard mentioned, what's the 

Re: [OE-core][mickledore 05/15] glib-networking: Correct glib error handling in test patch

2023-05-17 Thread Steve Sakoman
On Tue, May 16, 2023 at 10:11 PM Richard Purdie
 wrote:
>
> On Sun, 2023-05-14 at 11:54 -1000, Steve Sakoman wrote:
> > On Sun, May 14, 2023 at 11:49 AM Richard Purdie
> >  wrote:
> > >
> > > On Sun, 2023-05-14 at 06:31 -1000, Steve Sakoman wrote:
> > > > From: Richard Purdie 
> > > >
> > > > Signed-off-by: Richard Purdie 
> > > > (cherry picked from commit 4ba74f61f38827d82586cf9c993a4b27065f5c6f)
> > > > Signed-off-by: Steve Sakoman 
> > > > ---
> > > >  meta/recipes-core/glib-networking/glib-networking/eagain.patch | 2 +-
> > > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > > >
> > > > diff --git 
> > > > a/meta/recipes-core/glib-networking/glib-networking/eagain.patch 
> > > > b/meta/recipes-core/glib-networking/glib-networking/eagain.patch
> > > > index 6dfbb2736c..ac6592ffef 100644
> > > > --- a/meta/recipes-core/glib-networking/glib-networking/eagain.patch
> > > > +++ b/meta/recipes-core/glib-networking/glib-networking/eagain.patch
> > > > @@ -21,7 +21,7 @@ Index: glib-networking-2.74.0/tls/tests/connection.c
> > > >  MIN (TEST_DATA_LENGTH / 2, 
> > > > TEST_DATA_LENGTH - test->nread),
> > > >  NULL, );
> > > >  +
> > > > -+  if (error == G_IO_STATUS_AGAIN)
> > > > ++  if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_BUSY))
> > > >  +  continue;
> > > >  +
> > > > g_assert_no_error (error);
> > >
> > > I'm not sure this is working yet, I suspect we've seen the error in
> > > builds with the patch applied :(
> >
> > FWIW, I used to get the error often without the patch.  I haven't had
> > the error since taking this patch.  Certainly not proof it is working
> > 100% of the time, but certainly much improved.
>
> Failure on master:
>
> https://autobuilder.yoctoproject.org/typhoon/#/builders/85/builds/2134
>
> https://autobuilder.yocto.io/pub/non-release/20230517-2/testresults/qemuarm64-ptest-fast/glib-networking.log
>
> so not fixed :(

Sigh, I had one on mickledore yesterday too :-(

Steve

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181489): 
https://lists.openembedded.org/g/openembedded-core/message/181489
Mute This Topic: https://lists.openembedded.org/mt/98887184/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] python3-hatchling: upgrade 1.14.1 -> 1.17.0

2023-05-17 Thread Trevor Gamblin
Signed-off-by: Trevor Gamblin 
---
 ...{python3-hatchling_1.14.1.bb => python3-hatchling_1.17.0.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-devtools/python/{python3-hatchling_1.14.1.bb => 
python3-hatchling_1.17.0.bb} (85%)

diff --git a/meta/recipes-devtools/python/python3-hatchling_1.14.1.bb 
b/meta/recipes-devtools/python/python3-hatchling_1.17.0.bb
similarity index 85%
rename from meta/recipes-devtools/python/python3-hatchling_1.14.1.bb
rename to meta/recipes-devtools/python/python3-hatchling_1.17.0.bb
index a3d2b741b1..05a86f0efb 100644
--- a/meta/recipes-devtools/python/python3-hatchling_1.14.1.bb
+++ b/meta/recipes-devtools/python/python3-hatchling_1.17.0.bb
@@ -8,7 +8,7 @@ inherit pypi python_hatchling
 DEPENDS += "python3-pluggy-native python3-pathspec-native 
python3-packaging-native python3-editables-native 
python3-trove-classifiers-native"
 DEPENDS:remove:class-native = "python3-hatchling-native"
 
-SRC_URI[sha256sum] = 
"55fbc88cbd0d96c09c3e9392b51db513fd4cb4caf47615d65f935a5ef1756133"
+SRC_URI[sha256sum] = 
"b1244db3f45b4ef5a00106a46612da107cdfaf85f1580b8e1c059fefc98b0930"
 
 do_compile:prepend() {
 export PYTHONPATH=src
-- 
2.40.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181488): 
https://lists.openembedded.org/g/openembedded-core/message/181488
Mute This Topic: https://lists.openembedded.org/mt/98947870/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-yocto: fix missing pahole and elfutils when CONFIG_DEBUG_INFO_BTF enabled in devshell

2023-05-17 Thread Bruce Ashfield
On Wed, May 17, 2023 at 1:24 AM Xiangyu Chen
 wrote:
>
>
> On 5/17/23 09:35, Xiangyu Chen wrote:
> >
> > On 5/16/23 20:55, Bruce Ashfield wrote:
> >> CAUTION: This email comes from a non Wind River email account!
> >> Do not click links or open attachments unless you recognize the
> >> sender and know the content is safe.
> >>
> >> On Tue, May 16, 2023 at 4:56 AM Xiangyu Chen
> >>  wrote:
> >>> Hi Bruce,
> >>>
> >>>
> >>> On 5/15/23 21:11, Bruce Ashfield wrote:
>  CAUTION: This email comes from a non Wind River email account!
>  Do not click links or open attachments unless you recognize the
>  sender and know the content is safe.
> 
>  On Mon, May 15, 2023 at 8:34 AM Bruce Ashfield via
>  lists.openembedded.org
>   wrote:
> > On Mon, May 15, 2023 at 6:04 AM Xiangyu Chen
> >  wrote:
> >> Hi Bruce,
> >>
> >>
> >> Sorry for being late..
> >>
> >>
> >> On 5/13/23 09:16, Bruce Ashfield wrote:
> >>
> >> CAUTION: This email comes from a non Wind River email account!
> >> Do not click links or open attachments unless you recognize the
> >> sender and know the content is safe.
> >>
> >> On Fri, May 12, 2023 at 10:47 AM Bruce Ashfield via
> >> lists.openembedded.org
> >>  wrote:
> >>
> >> On Wed, May 10, 2023 at 10:23 PM Xiangyu Chen
> >>  wrote:
> >>
> >> Hi Richard and Bruce,
> >>
> >>
> >> Thanks for your suggestion,
> >>
> >>
> >> On 5/11/23 00:25, Bruce Ashfield wrote:
> >>
> >> CAUTION: This email comes from a non Wind River email account!
> >> Do not click links or open attachments unless you recognize the
> >> sender and know the content is safe.
> >>
> >> On Wed, May 10, 2023 at 12:16 PM Richard Purdie
> >>  wrote:
> >>
> >> On Mon, 2023-05-08 at 09:33 +0800, Xiangyu Chen wrote:
> >>
> >> From: Xiangyu Chen 
> >>
> >> after enable the kernel CONFIG_DEBUG_INFO_BTF in devshell, the
> >> make would report some
> >> errors due to pahole and elfuitls is missing, since this is a
> >> debug option, so conditionally
> >> add an option named "btf" in KERNEL_DEBUG_OPTIONS, if someone
> >> need enable CONFIG_DEBUG_INFO_BTF
> >> option in devshell, they can add KERNEL_DEBUG_OPTIONS += "btf" in
> >> local.conf to solve the pahole
> >> and elfutils dependency.
> >>
> >> Is this a defined workflow somewhere? Is KERNEL_DEBUG_OPTIONS
> >> with this
> >> option documented somewhere?
> >>
> >> I also think the mention of devshell in the commit message is
> >> misleading, this issue happens regardless of how you enable the
> >> option.
> >> There are also other ways of enabling this than local.conf, you'd
> >> likely not want people doing that at the end of development.
> >>
> >> I'm curious on Bruce's opinion but to me this at the very least
> >> needs a
> >> commit message rewrite and I'd question whether the docs elsewhere
> >> would allow someone to discover this workflow anyway.
> >>
> >> I missed this entirely, thanks for replying to it, or I never would
> >> have noticed.
> >>
> >> This mechanism isn't appropriate for these dependencies. I only
> >> added
> >> it to work around pkgconfig issues (which we can more cleanly
> >> solve in
> >> newer kernels  (see what I've been doing with make-mod-scripts)
> >> .. so
> >> it can eventually be dropped).
> >>
> >> We are already enabling elfutils-native conditionally on a
> >> per-architecture basis (currently only x86-64).
> >>
> >> If we need it on more arches now, we should enable it in the version
> >> specific recipes, or actually, we have moved far enough into newer
> >> kernel's that it could be in the .inc now.
> >>
> >> This commit's background was some kernel debug options needs
> >> elfutils
> >> and pahole native package, since the issue happens on enabling
> >> kernel
> >> debug options and not all people needs it, so I conditionally add
> >> the
> >> dependency in KERNEL_DEBUG_OPTION.
> >>
> >> If possible we can enable it in .inc because newer kernel tools
> >> like btf
> >> are support using pkg-config to locate the libelf instead of
> >> finding it
> >> from /usr/ folder, so we can use elfutils-natvie instead of
> >> installing
> >> elfutils package on host PC.
> >>
> >> Similarly, we should enable the pahole-native dependency on a
> >> per-arch basis.
> >>
> >> As Richard mentioned, what's the reproducer to see the errors ? it
> >> must be more than devshell.
> >>
> >> Yes, this happens on devshell and normal world if some kernel debug
> >> options are enabled. We can reproduce this issue with following
> >> steps(I
> >> have found the issue with kernel 5.15):
> >>
> >> 1. enable kernel option 

[OE-core] [PATCH v2] oeqa: adding selftest-hello and use it to speed up tests

2023-05-17 Thread Thomas Roos via lists.openembedded.org
From: Thomas Roos 

Adding a selftest version of hello world to run it in tests where no download 
is necessary.
Also using this in several tests to speed them up.
Using the -native version wherever possible will also speed up tests a lot.

[YOCTO #11142]

Signed-off-by: Thomas Roos 
---
 .../selftest-hello/files/helloworld.c |  8 
 .../selftest-hello/selftest-hello_1.0.bb  | 19 +++
 meta/lib/oeqa/selftest/cases/bbtests.py   | 18 +-
 3 files changed, 36 insertions(+), 9 deletions(-)
 create mode 100644 meta-selftest/recipes-test/selftest-hello/files/helloworld.c
 create mode 100644 
meta-selftest/recipes-test/selftest-hello/selftest-hello_1.0.bb

diff --git a/meta-selftest/recipes-test/selftest-hello/files/helloworld.c 
b/meta-selftest/recipes-test/selftest-hello/files/helloworld.c
new file mode 100644
index 00..fc7169b7b8
--- /dev/null
+++ b/meta-selftest/recipes-test/selftest-hello/files/helloworld.c
@@ -0,0 +1,8 @@
+#include 
+
+int main(void)
+{
+   printf("Hello world!\n");
+
+   return 0;
+}
diff --git a/meta-selftest/recipes-test/selftest-hello/selftest-hello_1.0.bb 
b/meta-selftest/recipes-test/selftest-hello/selftest-hello_1.0.bb
new file mode 100644
index 00..547587bef4
--- /dev/null
+++ b/meta-selftest/recipes-test/selftest-hello/selftest-hello_1.0.bb
@@ -0,0 +1,19 @@
+DESCRIPTION = "Simple helloworld application -- selftest variant"
+SECTION = "examples"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = 
"file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
+
+SRC_URI = "file://helloworld.c"
+
+S = "${WORKDIR}"
+
+do_compile() {
+   ${CC} ${CFLAGS} ${LDFLAGS} helloworld.c -o helloworld
+}
+
+do_install() {
+   install -d ${D}${bindir}
+   install -m 0755 helloworld ${D}${bindir}
+}
+
+BBCLASSEXTEND = "native nativesdk"
\ No newline at end of file
diff --git a/meta/lib/oeqa/selftest/cases/bbtests.py 
b/meta/lib/oeqa/selftest/cases/bbtests.py
index d97bda13c2..1dd2839c8d 100644
--- a/meta/lib/oeqa/selftest/cases/bbtests.py
+++ b/meta/lib/oeqa/selftest/cases/bbtests.py
@@ -41,7 +41,7 @@ class BitbakeTests(OESelftestTestCase):
 
 def test_event_handler(self):
 self.write_config("INHERIT += \"test_events\"")
-result = bitbake('m4-native')
+result = bitbake('selftest-hello-native')
 find_build_started = re.search(r"NOTE: Test for 
bb\.event\.BuildStarted(\n.*)*NOTE: Executing.*Tasks", result.output)
 find_build_completed = re.search(r"Tasks Summary:.*(\n.*)*NOTE: Test 
for bb\.event\.BuildCompleted", result.output)
 self.assertTrue(find_build_started, msg = "Match failed in:\n%s"  % 
result.output)
@@ -49,11 +49,11 @@ class BitbakeTests(OESelftestTestCase):
 self.assertNotIn('Test for bb.event.InvalidEvent', result.output)
 
 def test_local_sstate(self):
-bitbake('m4-native')
-bitbake('m4-native -cclean')
-result = bitbake('m4-native')
-find_setscene = re.search("m4-native.*do_.*_setscene", result.output)
-self.assertTrue(find_setscene, msg = "No \"m4-native.*do_.*_setscene\" 
message found during bitbake m4-native. bitbake output: %s" % result.output )
+bitbake('selftest-hello-native')
+bitbake('selftest-hello-native -cclean')
+result = bitbake('selftest-hello-native')
+find_setscene = re.search("selftest-hello-native.*do_.*_setscene", 
result.output)
+self.assertTrue(find_setscene, msg = "No 
\"selftest-hello-native.*do_.*_setscene\" message found during bitbake 
selftest-hello-native. bitbake output: %s" % result.output )
 
 def test_bitbake_invalid_recipe(self):
 result = bitbake('-b asdf', ignore_status=True)
@@ -175,7 +175,7 @@ SSTATE_DIR = \"${TOPDIR}/download-selftest\"
 self.assertIn('localconf', result.output)
 
 def test_dry_run(self):
-result = runCmd('bitbake -n m4-native')
+result = runCmd('bitbake -n selftest-hello-native')
 self.assertEqual(0, result.status, "bitbake dry run didn't run as 
expected. %s" % result.output)
 
 def test_just_parse(self):
@@ -233,7 +233,7 @@ INHERIT:remove = \"report-error\"
 
 def test_setscene_only(self):
 """ Bitbake option to restore from sstate only within a build (i.e. 
execute no real tasks, only setscene)"""
-test_recipe = 'ed'
+test_recipe = 'selftest-hello-native'
 
 bitbake(test_recipe)
 bitbake('-c clean %s' % test_recipe)
@@ -246,7 +246,7 @@ INHERIT:remove = \"report-error\"
  'Executed tasks were: %s' % 
(task, str(tasks)))
 
 def test_skip_setscene(self):
-test_recipe = 'ed'
+test_recipe = 'selftest-hello-native'
 
 bitbake(test_recipe)
 bitbake('-c clean %s' % test_recipe)
-- 
2.34.1




Amazon Web Services EMEA SARL
38 avenue John F. Kennedy, L-1855 Luxembourg
Sitz der Gesellschaft: L-1855 Luxemburg
eingetragen im Luxemburgischen 

Re: [OE-core][PATCH v2] cve-check: add option to add additional patched CVEs

2023-05-17 Thread Mikko Rapeli
Hi,

On Wed, May 17, 2023 at 07:41:38AM +0200, Andrej Valek via 
lists.openembedded.org wrote:
> - Replace CVE_CHECK_IGNORE with CVE_STATUS + [CVE_STATUS_REASONING] to be
> more flexible. CVE_STATUS should contains flag for each CVE with accepted
> values "Ignored" or "Not applicable". It allows to add a status for CVEs
> which could be fixed externally.
> - Optional CVE_STATUS_REASONING flag variable could contains a reason
> why the CVE status was used. It will be added in csv/json report like
> a new "reason" entry.
> - All listed CVEs in CVE_CHECK_IGNORE are copied to CVE_STATUS with
> value "Ignored" like a fallback.
> 
> Example of usage:
> CVE_STATUS[CVE-1234-0001] = "Not applicable" or "Ignored"
> CVE_STATUS[CVE-1234-0002] = "Not applicable"
> CVE_STATUS_REASONING[CVE-1234-0002] = "Issue only applies on windows"

Looks good to me but would you add testing into
meta/lib/oeqa/selftest/cases/cve_check.py ?

And once merged update documentation in
documentation/dev-manual/vulnerabilities.rst,
documentation/ref-manual/classes.rst and
documentation/ref-manual/variables.rst ;)

Thanks,

-Mikko

> Signed-off-by: Andrej Valek 
> ---
>  meta/classes/cve-check.bbclass | 30 +-
>  meta/lib/oe/cve_check.py   |  6 ++
>  2 files changed, 31 insertions(+), 5 deletions(-)
> 
> diff --git a/meta/classes/cve-check.bbclass b/meta/classes/cve-check.bbclass
> index bd9e7e7445c..e081095037c 100644
> --- a/meta/classes/cve-check.bbclass
> +++ b/meta/classes/cve-check.bbclass
> @@ -70,13 +70,17 @@ CVE_CHECK_COVERAGE ??= "1"
>  # Skip CVE Check for packages (PN)
>  CVE_CHECK_SKIP_RECIPE ?= ""
>  
> -# Ingore the check for a given list of CVEs. If a CVE is found,
> -# then it is considered patched. The value is a string containing
> -# space separated CVE values:
> +# Ignore the check for a given CVE. Each of CVE has to be mentioned
> +# separately with optional reason, why it has to ignored.
>  #
> -# CVE_CHECK_IGNORE = 'CVE-2014-2524 CVE-2018-1234'
> +# CVE_STATUS[CVE-1234-0001] = "Not applicable" or "Ignored"
> +# CVE_STATUS[CVE-1234-0002] = "Ignored"
> +# CVE_STATUS_REASONING[CVE-1234-0002] = "Issue only applies on windows"
>  #
> +# CVE_CHECK_IGNORE is depracated and CVE_STATUS has to be used instead.
> +# Keep CVE_CHECK_IGNORE like a fallback.
>  CVE_CHECK_IGNORE ?= ""
> +CVE_STATUS ?= ""
>  
>  # Layers to be excluded
>  CVE_CHECK_LAYER_EXCLUDELIST ??= ""
> @@ -88,6 +92,12 @@ CVE_CHECK_LAYER_INCLUDELIST ??= ""
>  # set to "alphabetical" for version using single alphabetical character as 
> increment release
>  CVE_VERSION_SUFFIX ??= ""
>  
> +python () {
> +# Fallback all CVEs from CVE_CHECK_IGNORE to CVE_STATUS
> +for cve in d.getVar("CVE_CHECK_IGNORE").split():
> +d.setVarFlags("CVE_STATUS", {cve: "Ignored"})
> +}
> +
>  def generate_json_report(d, out_path, link_path):
>  if os.path.exists(d.getVar("CVE_CHECK_SUMMARY_INDEX_PATH")):
>  import json
> @@ -282,7 +292,11 @@ def check_cves(d, patched_cves):
>  bb.note("Recipe has been skipped by cve-check")
>  return ([], [], [], [])
>  
> -cve_ignore = d.getVar("CVE_CHECK_IGNORE").split()
> +# Convert CVE_STATUS into ignored CVEs
> +cve_ignore = []
> +for cve, status in (d.getVarFlags("CVE_STATUS") or {}).items():
> +if status in ["Not applicable", "Ignored"]:
> +cve_ignore.append(cve)
>  
>  import sqlite3
>  db_file = d.expand("file:${CVE_CHECK_DB_FILE}?mode=ro")
> @@ -455,6 +469,9 @@ def cve_write_data_text(d, patched, unpatched, ignored, 
> cve_data):
>  else:
>  unpatched_cves.append(cve)
>  write_string += "CVE STATUS: Unpatched\n"
> +has_reason = d.getVarFlag("CVE_STATUS_REASONING", cve)
> +if has_reason:
> +write_string += "CVE REASON: %s\n" % has_reason
>  write_string += "CVE SUMMARY: %s\n" % cve_data[cve]["summary"]
>  write_string += "CVSS v2 BASE SCORE: %s\n" % cve_data[cve]["scorev2"]
>  write_string += "CVSS v3 BASE SCORE: %s\n" % cve_data[cve]["scorev3"]
> @@ -576,6 +593,9 @@ def cve_write_data_json(d, patched, unpatched, ignored, 
> cve_data, cve_status):
>  "status" : status,
>  "link": issue_link
>  }
> +has_reason = d.getVarFlag("CVE_STATUS_REASONING", cve)
> +if has_reason:
> +cve_item["reason"] = has_reason
>  cve_list.append(cve_item)
>  
>  package_data["issue"] = cve_list
> diff --git a/meta/lib/oe/cve_check.py b/meta/lib/oe/cve_check.py
> index dbaa0b373a3..f47dd9920ef 100644
> --- a/meta/lib/oe/cve_check.py
> +++ b/meta/lib/oe/cve_check.py
> @@ -130,6 +130,12 @@ def get_patched_cves(d):
>  if not fname_match and not text_match:
>  bb.debug(2, "Patch %s doesn't solve CVEs" % patch_file)
>  
> +# Search for additional patched CVEs
> +for cve, status in (d.getVarFlags("CVE_STATUS") or {}).items():
> +if status == "Patched":
> +  

[OE-core] [kirkstone][PATCH] gcc-runtime: Use static dummy libstdc++

2023-05-17 Thread Niko Mauno via lists.openembedded.org
From: Khem Raj 

some standalone targets e.g. riscv64-elf disable shared linking for
baremetal ELF ABI in ld, therefore lets make it a static library

(From OE-Core rev: 3c6219dfcbcbde314648ba8cc54a90b32ea1c952)

Signed-off-by: Khem Raj 
Signed-off-by: Richard Purdie 
---
 meta/recipes-devtools/gcc/gcc-runtime.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/gcc/gcc-runtime.inc 
b/meta/recipes-devtools/gcc/gcc-runtime.inc
index 8074bf1025..d019b0790b 100644
--- a/meta/recipes-devtools/gcc/gcc-runtime.inc
+++ b/meta/recipes-devtools/gcc/gcc-runtime.inc
@@ -68,7 +68,8 @@ do_configure () {
# libstdc++ isn't built yet so CXX would error not able to find it 
which breaks stdc++'s configure
# tests. Create a dummy empty lib for the purposes of configure.
mkdir -p ${WORKDIR}/dummylib
-   ${CC} -x c /dev/null -nostartfiles -shared -o 
${WORKDIR}/dummylib/libstdc++.so
+   ${CC} -x c /dev/null -c -o ${WORKDIR}/dummylib/dummylib.o
+   ${AR} rcs ${WORKDIR}/dummylib/libstdc++.a ${WORKDIR}/dummylib/dummylib.o
for d in libgcc ${RUNTIMETARGET}; do
echo "Configuring $d"
rm -rf ${B}/${TARGET_SYS}/$d/
-- 
2.39.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181484): 
https://lists.openembedded.org/g/openembedded-core/message/181484
Mute This Topic: https://lists.openembedded.org/mt/98944818/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] ncurses: Update 6.4 -> 6.4+20230514

2023-05-17 Thread Alexander Kanavin
Right, but if you can backport the CVE instead, that would be appreciated.

Alex

On Wed, 17 May 2023 at 10:56, Florin Diaconescu
 wrote:
>
> Thanks for explaining this. In this case, the other patch that I made to 
> ncurses ("ncurses: change GitHub mirror") is not necessary (at least until 
> they release ncurses 6.5). I made that commit so that an updated developer 
> snapshot can be applied on top (this patch).
>
> Florin
> 
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181483): 
https://lists.openembedded.org/g/openembedded-core/message/181483
Mute This Topic: https://lists.openembedded.org/mt/98944133/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] ncurses: Update 6.4 -> 6.4+20230514

2023-05-17 Thread Florin Diaconescu
Thanks for explaining this. In this case, the other patch that I made to 
ncurses ("ncurses: change GitHub mirror") is not necessary (at least until they 
release ncurses 6.5). I made that commit so that an updated developer snapshot 
can be applied on top (this patch).

Florin

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181482): 
https://lists.openembedded.org/g/openembedded-core/message/181482
Mute This Topic: https://lists.openembedded.org/mt/98944133/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] ncurses: Update 6.4 -> 6.4+20230514

2023-05-17 Thread Alexander Kanavin
This was back when it wasn't clear to us what ncurses snapshots are.
Somehow we thought they are bugfixes on top of a stable version. Now
it is clear that is not the case.

Alex

On Wed, 17 May 2023 at 10:46, Florin Diaconescu
 wrote:
>
> What about this, then? Looks like it is commited by you:
> http://cgit.openembedded.org/openembedded-core/commit/meta/recipes-core/ncurses?h=kirkstone=325fe5f68bc698f78f5c1a14407c0bbb4cba45f7
> Indeed, you were updating from a development snapshot to another development 
> snapshot, but judging by the history of this recipe I thought that this was 
> always the case.
> http://cgit.openembedded.org/openembedded-core/commit/meta/recipes-core/ncurses?h=kirkstone=fdb2a95d5e0265de1172940b6dc71fc7d602e8d1
>
> If the standard policy is that, maybe the CVE_VERSION line should also be 
> removed.
> 
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181481): 
https://lists.openembedded.org/g/openembedded-core/message/181481
Mute This Topic: https://lists.openembedded.org/mt/98944133/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] ncurses: Update 6.4 -> 6.4+20230514

2023-05-17 Thread Florin Diaconescu
What about this, then? Looks like it is commited by you:
http://cgit.openembedded.org/openembedded-core/commit/meta/recipes-core/ncurses?h=kirkstone=325fe5f68bc698f78f5c1a14407c0bbb4cba45f7
Indeed, you were updating from a development snapshot to another development 
snapshot, but judging by the history of this recipe I thought that this was 
always the case.
http://cgit.openembedded.org/openembedded-core/commit/meta/recipes-core/ncurses?h=kirkstone=fdb2a95d5e0265de1172940b6dc71fc7d602e8d1

If the standard policy is that, maybe the CVE_VERSION line should also be 
removed.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181480): 
https://lists.openembedded.org/g/openembedded-core/message/181480
Mute This Topic: https://lists.openembedded.org/mt/98944133/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 00/20] python3: fix run-time dependencies

2023-05-17 Thread Alexander Kanavin
Thanks for this work. Perhaps we could catch this easier if there are
runtime tests for those items, maybe in the shape of ptest.

Sometimes recipes have no longer needed dependencies too, and trimming
those down is harder, but also appreciated.

Alex

On Wed, 17 May 2023 at 10:06, Bartosz Golaszewski  wrote:
>
> From: Bartosz Golaszewski 
>
> I noticed that every now and then I import some python package into an
> image only to find out the recipe didn't pull in all required run-time
> dependencies. I would fix it whenever I noticed it but figured that I
> could right a script that would go over all python packages, build a
> minimal image and see that all its modules can be imported.
>
> The patches in this series are the result of that. Most simply add
> missing RDEPENDS, some are additional tweaks to recipes and the last
> three add new standard library packages to the manifest. These are the
> ones for which simply adding python3-misc would still be insufficient in
> terms of run-time dependencies.
>
> I plan to do the same for meta-python but this will take more time and I
> need to think of some automated way of updating the recipes first.
>
> Bartosz Golaszewski (20):
>   python3-async: add missing run-time dependencies
>   python3-attrs: unify RDEPENDS
>   python3-attrs: don't use PYTHON_PN
>   python3-attrs: add missing run-time dependencies
>   python3-certifi: add missing run-time dependencies
>   python3-libfdt: new package
>   python3-dtschema: add missing run-time dependencies
>   python3-hypothesis: fix run-time dependencies
>   python3-tomli: add missing run-time dependencies
>   python3-pathspec: add missing run-time dependencies
>   python3-installer: add missing run-time dependencies
>   python3-sphinx-rtd-theme: add missing run-time dependencies
>   python3-setuptools-rust: fix RDEPENDS and allow target build
>   python3-pyproject-hooks: add missing run-time dependencies
>   python3-pycryptodome: don't use PYTHON_PN
>   python3-pycryptodome: add missing run-time dependencies
>   python3-pygobject: add missing run-time dependencies
>   python3-manifest: cgitb: new package
>   python3-manifest: zipapp: new package
>   python3-manifest: turtle: new package
>
>  meta/recipes-devtools/python/python-async.inc |  5 ++-
>  .../python/python-pycryptodome.inc|  8 ++--
>  .../python/python3-attrs_23.1.0.bb| 15 +++
>  .../python/python3-certifi_2022.12.7.bb   |  2 +
>  .../python/python3-dtschema_2023.4.bb |  7 +++-
>  .../python/python3-hypothesis_6.71.0.bb   |  2 +-
>  .../python/python3-installer_0.7.0.bb |  6 +++
>  .../python/python3-libfdt_1.7.0.post1.bb  | 20 +
>  .../python/python3-pathspec_0.11.1.bb |  2 +
>  .../python/python3-pygobject_3.44.1.bb|  5 ++-
>  .../python/python3-pyproject-hooks_1.0.0.bb   |  5 ++-
>  .../python/python3-setuptools-rust_1.5.2.bb   | 17 
>  .../python/python3-sphinx-rtd-theme_1.2.0.bb  |  5 ++-
>  .../python/python3-tomli_2.0.1.bb |  5 +++
>  .../python/python3/python3-manifest.json  | 42 +++
>  15 files changed, 121 insertions(+), 25 deletions(-)
>  create mode 100644 meta/recipes-devtools/python/python3-libfdt_1.7.0.post1.bb
>
> --
> 2.39.2
>
>
> 
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181479): 
https://lists.openembedded.org/g/openembedded-core/message/181479
Mute This Topic: https://lists.openembedded.org/mt/98943996/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] ncurses: Update 6.4 -> 6.4+20230514

2023-05-17 Thread Alexander Kanavin
The reasoning is that I didn't see that patch so I could react. It
merged but it shouldn't have.

The standard policy is that we're not taking random snapshots in the
middle of a development cycle, and there shouldn't be an exception for
ncurses.

Alex

On Wed, 17 May 2023 at 10:33, Florin Diaconescu
 wrote:
>
> What's the reasoning behind updating ncurses from 6.3 to 6.3+20220423 in 
> Kirkstone, then?
> https://git.yoctoproject.org/poky/commit/meta/recipes-core/ncurses?h=kirkstone=e13ce12e4ad79100bd45c751203040ce2a6f1920
>
> Looks like they updated for fixing a CVE as well, and they did not backport 
> the patch on top of 6.3.
> "CVE: CVE-2022-29458"
>
> Florin
> 
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181478): 
https://lists.openembedded.org/g/openembedded-core/message/181478
Mute This Topic: https://lists.openembedded.org/mt/98944133/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] ncurses: change GitHub mirror

2023-05-17 Thread Alexander Kanavin
Thanks, this should go into the commit message. You also need to find
out why the license checksum doesn't match and explain that too.

Alex

On Wed, 17 May 2023 at 10:32, Florin Diaconescu
 wrote:
>
> This was done in a similar way to this commit, when the change was made from 
> Debian packaging to GitHub's mirror:
>
> https://git.yoctoproject.org/poky/commit/meta/recipes-core/ncurses?id=dfaabf971b02e33870f9f927e9b1356e05e74a17
> If I only change the SRC_URI, then it won't find the original 
> 79b9071f2be20a24c7be031655a5638f6032f29f revision.
>
> 1003914e200fd622a27237abca155ce6bf2e6030 is the commit hash of the 6.4 
> release tag:
> https://github.com/ThomasDickey/ncurses-snapshots/releases/tag/v6_4
>
> Florin
>
> 
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181477): 
https://lists.openembedded.org/g/openembedded-core/message/181477
Mute This Topic: https://lists.openembedded.org/mt/98944084/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] ncurses: Update 6.4 -> 6.4+20230514

2023-05-17 Thread Florin Diaconescu
What's the reasoning behind updating ncurses from 6.3 to 6.3+20220423 in 
Kirkstone, then?
https://git.yoctoproject.org/poky/commit/meta/recipes-core/ncurses?h=kirkstone=e13ce12e4ad79100bd45c751203040ce2a6f1920

Looks like they updated for fixing a CVE as well, and they did not backport the 
patch on top of 6.3.
"CVE: CVE-2022-29458"

Florin

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181476): 
https://lists.openembedded.org/g/openembedded-core/message/181476
Mute This Topic: https://lists.openembedded.org/mt/98944133/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] ncurses: change GitHub mirror

2023-05-17 Thread Florin Diaconescu
This was done in a similar way to this commit, when the change was made from 
Debian packaging to GitHub's mirror:

https://git.yoctoproject.org/p oky/commit/meta/recipes-core/n 
curses?id=dfaabf971b02e33870f9 f927e9b1356e05e74a17 ( 
https://git.yoctoproject.org/poky/commit/meta/recipes-core/ncurses?id=dfaabf971b02e33870f9f927e9b1356e05e74a17
 )
If I only change the SRC_URI, then it won't find the original 
79b9071f2be20a24c7be031655a5638f6032f29f revision.

1003914e200fd622a27237abca155ce6bf2e6030 is the commit hash of the 6.4 release 
tag:
https://github.com/ThomasDicke y/ncurses-snapshots/releases/ tag/v6_4 ( 
https://github.com/ThomasDickey/ncurses-snapshots/releases/tag/v6_4 )

Florin

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181475): 
https://lists.openembedded.org/g/openembedded-core/message/181475
Mute This Topic: https://lists.openembedded.org/mt/98944084/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] ncurses: Update 6.4 -> 6.4+20230514

2023-05-17 Thread Alexander Kanavin
Snapshots are not releases, but rather in-progress development work
towards the next release. If the goal is to fix a CVE, then you should
backport the patch.

As explained here:
https://invisible-island.net/ncurses/ncurses.faq.html#latest_version

Alex

On Wed, 17 May 2023 at 10:22, Florin Diaconescu
 wrote:
>
> Latest patch in ncurses GitHub mirror
> Includes the fix for CVE-2023-29491, done in 6.4+20230408
>
> Signed-off-by: Florin Diaconescu 
> ---
>  .../ncurses/{ncurses_6.4.bb => ncurses_6.4+20230514.bb}   | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>  rename meta/recipes-core/ncurses/{ncurses_6.4.bb => ncurses_6.4+20230514.bb} 
> (78%)
>
> diff --git a/meta/recipes-core/ncurses/ncurses_6.4.bb 
> b/meta/recipes-core/ncurses/ncurses_6.4+20230514.bb
> similarity index 78%
> rename from meta/recipes-core/ncurses/ncurses_6.4.bb
> rename to meta/recipes-core/ncurses/ncurses_6.4+20230514.bb
> index 166e30713c..44aaac3613 100644
> --- a/meta/recipes-core/ncurses/ncurses_6.4.bb
> +++ b/meta/recipes-core/ncurses/ncurses_6.4+20230514.bb
> @@ -6,10 +6,10 @@ SRC_URI += "file://0001-tic-hang.patch \
> file://exit_prototype.patch \
> "
>  # commit id corresponds to the revision in package version
> -SRCREV = "1003914e200fd622a27237abca155ce6bf2e6030"
> +SRCREV = "b9f9d6304f6abd71a5fdbfd500a645e521edf8b6"
>  S = "${WORKDIR}/git"
>  EXTRA_OECONF += "--with-abi-version=5"
>  UPSTREAM_CHECK_GITTAGREGEX = "(?P\d+(\.\d+)+)$"
>
>  # This is needed when using patchlevel versions like 6.1+20181013
> -#CVE_VERSION = 
> "${@d.getVar("PV").split('+')[0]}.${@d.getVar("PV").split('+')[1]}"
> +CVE_VERSION = 
> "${@d.getVar("PV").split('+')[0]}.${@d.getVar("PV").split('+')[1]}"
> --
> 2.25.1
>
>
> 
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181474): 
https://lists.openembedded.org/g/openembedded-core/message/181474
Mute This Topic: https://lists.openembedded.org/mt/98944133/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] ncurses: Update 6.4 -> 6.4+20230514

2023-05-17 Thread Florin Diaconescu
Latest patch in ncurses GitHub mirror
Includes the fix for CVE-2023-29491, done in 6.4+20230408

Signed-off-by: Florin Diaconescu 
---
 .../ncurses/{ncurses_6.4.bb => ncurses_6.4+20230514.bb}   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-core/ncurses/{ncurses_6.4.bb => ncurses_6.4+20230514.bb} 
(78%)

diff --git a/meta/recipes-core/ncurses/ncurses_6.4.bb 
b/meta/recipes-core/ncurses/ncurses_6.4+20230514.bb
similarity index 78%
rename from meta/recipes-core/ncurses/ncurses_6.4.bb
rename to meta/recipes-core/ncurses/ncurses_6.4+20230514.bb
index 166e30713c..44aaac3613 100644
--- a/meta/recipes-core/ncurses/ncurses_6.4.bb
+++ b/meta/recipes-core/ncurses/ncurses_6.4+20230514.bb
@@ -6,10 +6,10 @@ SRC_URI += "file://0001-tic-hang.patch \
file://exit_prototype.patch \
"
 # commit id corresponds to the revision in package version
-SRCREV = "1003914e200fd622a27237abca155ce6bf2e6030"
+SRCREV = "b9f9d6304f6abd71a5fdbfd500a645e521edf8b6"
 S = "${WORKDIR}/git"
 EXTRA_OECONF += "--with-abi-version=5"
 UPSTREAM_CHECK_GITTAGREGEX = "(?P\d+(\.\d+)+)$"
 
 # This is needed when using patchlevel versions like 6.1+20181013
-#CVE_VERSION = 
"${@d.getVar("PV").split('+')[0]}.${@d.getVar("PV").split('+')[1]}"
+CVE_VERSION = 
"${@d.getVar("PV").split('+')[0]}.${@d.getVar("PV").split('+')[1]}"
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181473): 
https://lists.openembedded.org/g/openembedded-core/message/181473
Mute This Topic: https://lists.openembedded.org/mt/98944133/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] ncurses: change GitHub mirror

2023-05-17 Thread Alexander Kanavin
On Wed, 17 May 2023 at 10:16, Florin Diaconescu
 wrote:
>
> Change from github.com/mirror/ncurses to
> github.com/ThomasDickey/ncurses-snapshots (which is linked in the
> ncurses FAQ http://invisible-island.net/ncurses/ncurses.faq.html)

...

>  # commit id corresponds to the revision in package version
> -SRCREV = "79b9071f2be20a24c7be031655a5638f6032f29f"
> +SRCREV = "1003914e200fd622a27237abca155ce6bf2e6030"

This cannot be bundled together with the SRC_URI change without
explanation. Please split out into a separate patch, if it is even
necessary.

Alex

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181472): 
https://lists.openembedded.org/g/openembedded-core/message/181472
Mute This Topic: https://lists.openembedded.org/mt/98944084/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] ncurses: change GitHub mirror

2023-05-17 Thread Florin Diaconescu
Change from github.com/mirror/ncurses to
github.com/ThomasDickey/ncurses-snapshots (which is linked in the
ncurses FAQ http://invisible-island.net/ncurses/ncurses.faq.html)

This is updated at least weekly, compared to mirror/ncurses, which was
last updated on March 12th.

Signed-off-by: Florin Diaconescu 
---
 meta/recipes-core/ncurses/ncurses.inc| 4 ++--
 meta/recipes-core/ncurses/ncurses_6.4.bb | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-core/ncurses/ncurses.inc 
b/meta/recipes-core/ncurses/ncurses.inc
index 367f3b19f4..eeb110687c 100644
--- a/meta/recipes-core/ncurses/ncurses.inc
+++ b/meta/recipes-core/ncurses/ncurses.inc
@@ -2,7 +2,7 @@ SUMMARY = "The New Curses library"
 DESCRIPTION = "SVr4 and XSI-Curses compatible curses library and terminfo 
tools including tic, infocmp, captoinfo. Supports color, multiple highlights, 
forms-drawing characters, and automatic recognition of keypad and function-key 
sequences. Extensions include resizable windows and mouse support on both xterm 
and Linux console using the gpm library."
 HOMEPAGE = "http://www.gnu.org/software/ncurses/ncurses.html;
 LICENSE = "MIT"
-LIC_FILES_CHKSUM = 
"file://COPYING;md5=c5a4600fdef86384c41ca33ecc70a4b8;endline=27"
+LIC_FILES_CHKSUM = 
"file://COPYING;md5=8f2e5b99d5b6c0e6ee7cb39b992733b6;endline=27"
 SECTION = "libs"
 DEPENDS = "ncurses-native"
 DEPENDS:class-native = ""
@@ -13,7 +13,7 @@ BINCONFIG = "${bindir}/ncurses5-config 
${bindir}/ncursesw5-config \
 inherit autotools binconfig-disabled multilib_header pkgconfig
 
 # Upstream has useful patches at times at ftp://invisible-island.net/ncurses/
-SRC_URI = "git://github.com/mirror/ncurses.git;protocol=https;branch=master"
+SRC_URI = 
"git://github.com/ThomasDickey/ncurses-snapshots.git;protocol=https;branch=master"
 
 EXTRA_AUTORECONF = "-I m4"
 
diff --git a/meta/recipes-core/ncurses/ncurses_6.4.bb 
b/meta/recipes-core/ncurses/ncurses_6.4.bb
index 1eb15673d1..166e30713c 100644
--- a/meta/recipes-core/ncurses/ncurses_6.4.bb
+++ b/meta/recipes-core/ncurses/ncurses_6.4.bb
@@ -6,7 +6,7 @@ SRC_URI += "file://0001-tic-hang.patch \
file://exit_prototype.patch \
"
 # commit id corresponds to the revision in package version
-SRCREV = "79b9071f2be20a24c7be031655a5638f6032f29f"
+SRCREV = "1003914e200fd622a27237abca155ce6bf2e6030"
 S = "${WORKDIR}/git"
 EXTRA_OECONF += "--with-abi-version=5"
 UPSTREAM_CHECK_GITTAGREGEX = "(?P\d+(\.\d+)+)$"
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181471): 
https://lists.openembedded.org/g/openembedded-core/message/181471
Mute This Topic: https://lists.openembedded.org/mt/98944084/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][mickledore 05/15] glib-networking: Correct glib error handling in test patch

2023-05-17 Thread Richard Purdie
On Sun, 2023-05-14 at 11:54 -1000, Steve Sakoman wrote:
> On Sun, May 14, 2023 at 11:49 AM Richard Purdie
>  wrote:
> > 
> > On Sun, 2023-05-14 at 06:31 -1000, Steve Sakoman wrote:
> > > From: Richard Purdie 
> > > 
> > > Signed-off-by: Richard Purdie 
> > > (cherry picked from commit 4ba74f61f38827d82586cf9c993a4b27065f5c6f)
> > > Signed-off-by: Steve Sakoman 
> > > ---
> > >  meta/recipes-core/glib-networking/glib-networking/eagain.patch | 2 +-
> > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > > 
> > > diff --git 
> > > a/meta/recipes-core/glib-networking/glib-networking/eagain.patch 
> > > b/meta/recipes-core/glib-networking/glib-networking/eagain.patch
> > > index 6dfbb2736c..ac6592ffef 100644
> > > --- a/meta/recipes-core/glib-networking/glib-networking/eagain.patch
> > > +++ b/meta/recipes-core/glib-networking/glib-networking/eagain.patch
> > > @@ -21,7 +21,7 @@ Index: glib-networking-2.74.0/tls/tests/connection.c
> > >  MIN (TEST_DATA_LENGTH / 2, 
> > > TEST_DATA_LENGTH - test->nread),
> > >  NULL, );
> > >  +
> > > -+  if (error == G_IO_STATUS_AGAIN)
> > > ++  if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_BUSY))
> > >  +  continue;
> > >  +
> > > g_assert_no_error (error);
> > 
> > I'm not sure this is working yet, I suspect we've seen the error in
> > builds with the patch applied :(
> 
> FWIW, I used to get the error often without the patch.  I haven't had
> the error since taking this patch.  Certainly not proof it is working
> 100% of the time, but certainly much improved.

Failure on master:

https://autobuilder.yoctoproject.org/typhoon/#/builders/85/builds/2134

https://autobuilder.yocto.io/pub/non-release/20230517-2/testresults/qemuarm64-ptest-fast/glib-networking.log

so not fixed :(

Cheers,

Richard


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181470): 
https://lists.openembedded.org/g/openembedded-core/message/181470
Mute This Topic: https://lists.openembedded.org/mt/98887184/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 20/20] python3-manifest: turtle: new package

2023-05-17 Thread Bartosz Golaszewski
From: Bartosz Golaszewski 

Extend the manifest with definitions for the turtle package from the
Python standard library. Currently this package cannot be imported at
run-time because python3-misc doesn't pull the required dependencies.

Signed-off-by: Bartosz Golaszewski 
---
 .../python/python3/python3-manifest.json | 12 
 1 file changed, 12 insertions(+)

diff --git a/meta/recipes-devtools/python/python3/python3-manifest.json 
b/meta/recipes-devtools/python/python3/python3-manifest.json
index d368b162bd..766f083ae4 100644
--- a/meta/recipes-devtools/python/python3/python3-manifest.json
+++ b/meta/recipes-devtools/python/python3/python3-manifest.json
@@ -1236,6 +1236,18 @@
 "${libdir}/python${PYTHON_MAJMIN}/tomllib/_parser.*.pyc"
 ]
 },
+"turtle": {
+"summary": "Turtle graphics is a popular way for introducing 
programming to kids.",
+"rdepends": [
+"tkinter"
+],
+"files": [
+"${libdir}/python${PYTHON_MAJMIN}/turtle.py"
+],
+"cached": [
+"${libdir}/python${PYTHON_MAJMIN}/__pycache__/turtle.*.pyc"
+]
+ },
 "unittest": {
 "summary": "Python unit testing framework",
 "rdepends": [
-- 
2.39.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181469): 
https://lists.openembedded.org/g/openembedded-core/message/181469
Mute This Topic: https://lists.openembedded.org/mt/98944018/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 19/20] python3-manifest: zipapp: new package

2023-05-17 Thread Bartosz Golaszewski
From: Bartosz Golaszewski 

Extend the manifest with definitions for the zipapp package from the
Python standard library. Currently this package cannot be imported at
run-time because python3-misc doesn't pull the required dependencies.

Signed-off-by: Bartosz Golaszewski 
---
 .../python/python3/python3-manifest.json| 13 +
 1 file changed, 13 insertions(+)

diff --git a/meta/recipes-devtools/python/python3/python3-manifest.json 
b/meta/recipes-devtools/python/python3/python3-manifest.json
index f60c83d76b..d368b162bd 100644
--- a/meta/recipes-devtools/python/python3/python3-manifest.json
+++ b/meta/recipes-devtools/python/python3/python3-manifest.json
@@ -1321,6 +1321,19 @@
 ],
 "cached": []
 },
+"zipapp": {
+"summary": "Tools to manage the creation of zip files containing 
Python code",
+"rdepends": [
+"compression",
+"core"
+],
+"files": [
+"${libdir}/python${PYTHON_MAJMIN}/zipapp.py"
+],
+"cached": [
+"${libdir}/python${PYTHON_MAJMIN}/__pycache__/zipapp.*.pyc"
+]
+},
 "zoneinfo": {
 "summary": "IANA time zone support",
 "rdepends": [
-- 
2.39.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181468): 
https://lists.openembedded.org/g/openembedded-core/message/181468
Mute This Topic: https://lists.openembedded.org/mt/98944017/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 17/20] python3-pygobject: add missing run-time dependencies

2023-05-17 Thread Bartosz Golaszewski
From: Bartosz Golaszewski 

Add missing RDEPENDS for this package.

Signed-off-by: Bartosz Golaszewski 
---
 meta/recipes-devtools/python/python3-pygobject_3.44.1.bb | 5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/python/python3-pygobject_3.44.1.bb 
b/meta/recipes-devtools/python/python3-pygobject_3.44.1.bb
index 8bfff43560..a5eecd33aa 100644
--- a/meta/recipes-devtools/python/python3-pygobject_3.44.1.bb
+++ b/meta/recipes-devtools/python/python3-pygobject_3.44.1.bb
@@ -24,7 +24,10 @@ S = "${WORKDIR}/${SRCNAME}-${PV}"
 
 PACKAGECONFIG ??= "${@bb.utils.contains_any('DISTRO_FEATURES', [ 'directfb', 
'wayland', 'x11' ], 'cairo', '', d)}"
 
-RDEPENDS:${PN} += "python3-pkgutil"
+RDEPENDS:${PN} += " \
+python3-io \
+python3-pkgutil \
+"
 
 # python3-pycairo is checked on configuration -> DEPENDS
 # we don't link against python3-pycairo -> RDEPENDS
-- 
2.39.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181466): 
https://lists.openembedded.org/g/openembedded-core/message/181466
Mute This Topic: https://lists.openembedded.org/mt/98944015/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 18/20] python3-manifest: cgitb: new package

2023-05-17 Thread Bartosz Golaszewski
From: Bartosz Golaszewski 

Extend the manifest with definitions for the cgitb package from the
Python standard library. Currently this package cannot be imported at
run-time because python3-misc doesn't pull the required dependencies.

Signed-off-by: Bartosz Golaszewski 
---
 .../python/python3/python3-manifest.json| 17 +
 1 file changed, 17 insertions(+)

diff --git a/meta/recipes-devtools/python/python3/python3-manifest.json 
b/meta/recipes-devtools/python/python3/python3-manifest.json
index f278b18775..f60c83d76b 100644
--- a/meta/recipes-devtools/python/python3/python3-manifest.json
+++ b/meta/recipes-devtools/python/python3/python3-manifest.json
@@ -152,6 +152,23 @@
 "${libdir}/python${PYTHON_MAJMIN}/__pycache__/wave.*.pyc"
 ]
 },
+"cgitb": {
+"summary": "Special exception handler for Python scripts",
+"rdepends": [
+"core",
+"crypt",
+"html",
+"io",
+"math",
+"pydoc"
+],
+"files": [
+"${libdir}/python${PYTHON_MAJMIN}/cgitb.py"
+],
+"cached": [
+"${libdir}/python${PYTHON_MAJMIN}/__pycache__/cgitb.*.pyc"
+]
+},
 "codecs": {
 "summary": "Python codec",
 "rdepends": [
-- 
2.39.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181467): 
https://lists.openembedded.org/g/openembedded-core/message/181467
Mute This Topic: https://lists.openembedded.org/mt/98944016/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 16/20] python3-pycryptodome: add missing run-time dependencies

2023-05-17 Thread Bartosz Golaszewski
From: Bartosz Golaszewski 

Add missing RDEPENDS for this package.

Signed-off-by: Bartosz Golaszewski 
---
 meta/recipes-devtools/python/python-pycryptodome.inc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-devtools/python/python-pycryptodome.inc 
b/meta/recipes-devtools/python/python-pycryptodome.inc
index 86d7f261af..8d9b6d911e 100644
--- a/meta/recipes-devtools/python/python-pycryptodome.inc
+++ b/meta/recipes-devtools/python/python-pycryptodome.inc
@@ -10,6 +10,8 @@ inherit pypi
 PYPI_PACKAGE_EXT = "tar.gz"
 
 RDEPENDS:${PN} += " \
+python3-cffi \
+python3-ctypes \
 python3-io \
 python3-math \
 "
-- 
2.39.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181465): 
https://lists.openembedded.org/g/openembedded-core/message/181465
Mute This Topic: https://lists.openembedded.org/mt/98944013/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 14/20] python3-pyproject-hooks: add missing run-time dependencies

2023-05-17 Thread Bartosz Golaszewski
From: Bartosz Golaszewski 

Add missing RDEPENDS for this package.

Signed-off-by: Bartosz Golaszewski 
---
 .../recipes-devtools/python/python3-pyproject-hooks_1.0.0.bb | 5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/python/python3-pyproject-hooks_1.0.0.bb 
b/meta/recipes-devtools/python/python3-pyproject-hooks_1.0.0.bb
index e3893d51cb..c3f1fb75ed 100644
--- a/meta/recipes-devtools/python/python3-pyproject-hooks_1.0.0.bb
+++ b/meta/recipes-devtools/python/python3-pyproject-hooks_1.0.0.bb
@@ -14,7 +14,10 @@ BBCLASSEXTEND = "native nativesdk"
 # Bootstrap the native build
 DEPENDS:remove:class-native = "python3-build-native"
 
-RDEPENDS:${PN} += "python3-json"
+RDEPENDS:${PN} += " \
+python3-io \
+python3-json \
+"
 
 do_compile:class-native () {
 python_flit_core_do_manual_build
-- 
2.39.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181464): 
https://lists.openembedded.org/g/openembedded-core/message/181464
Mute This Topic: https://lists.openembedded.org/mt/98944012/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 15/20] python3-pycryptodome: don't use PYTHON_PN

2023-05-17 Thread Bartosz Golaszewski
From: Bartosz Golaszewski 

We no longer support python2. Drop PYTHON_PN and use python3 explicitly.

Signed-off-by: Bartosz Golaszewski 
---
 meta/recipes-devtools/python/python-pycryptodome.inc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-devtools/python/python-pycryptodome.inc 
b/meta/recipes-devtools/python/python-pycryptodome.inc
index 29fe80d224..86d7f261af 100644
--- a/meta/recipes-devtools/python/python-pycryptodome.inc
+++ b/meta/recipes-devtools/python/python-pycryptodome.inc
@@ -10,12 +10,12 @@ inherit pypi
 PYPI_PACKAGE_EXT = "tar.gz"
 
 RDEPENDS:${PN} += " \
-${PYTHON_PN}-io \
-${PYTHON_PN}-math \
+python3-io \
+python3-math \
 "
 
 RDEPENDS:${PN}-tests += " \
-${PYTHON_PN}-unittest \
+python3-unittest \
 "
 
 PACKAGES =+ "${PN}-tests"
-- 
2.39.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181463): 
https://lists.openembedded.org/g/openembedded-core/message/181463
Mute This Topic: https://lists.openembedded.org/mt/98944011/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 13/20] python3-setuptools-rust: fix RDEPENDS and allow target build

2023-05-17 Thread Bartosz Golaszewski
From: Bartosz Golaszewski 

Cargo and rustc can now be built for the target architecture. There's no
reason to limit the setuptools rust extensions to native build only so
make the RDEPENDS global. Also: add the missing ones.

Signed-off-by: Bartosz Golaszewski 
---
 .../python/python3-setuptools-rust_1.5.2.bb | 17 ++---
 1 file changed, 10 insertions(+), 7 deletions(-)

diff --git a/meta/recipes-devtools/python/python3-setuptools-rust_1.5.2.bb 
b/meta/recipes-devtools/python/python3-setuptools-rust_1.5.2.bb
index 502967fd20..01e29cc6d8 100644
--- a/meta/recipes-devtools/python/python3-setuptools-rust_1.5.2.bb
+++ b/meta/recipes-devtools/python/python3-setuptools-rust_1.5.2.bb
@@ -18,13 +18,16 @@ inherit cargo pypi python_setuptools_build_meta
 
 DEPENDS += "python3-setuptools-scm-native python3-wheel-native"
 
-RDEPENDS:${PN}:class-native += " \
-python3-semantic-version-native \
-python3-setuptools-native \
-python3-setuptools-scm-native \
-python3-toml-native \
-python3-typing-extensions-native \
-python3-wheel-native \
+RDEPENDS:${PN} += " \
+python3-distutils \
+python3-json \
+python3-semantic-version \
+python3-setuptools \
+python3-setuptools-scm \
+python3-shell \
+python3-toml \
+python3-typing-extensions \
+python3-wheel \
 "
 
 BBCLASSEXTEND = "native"
-- 
2.39.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181462): 
https://lists.openembedded.org/g/openembedded-core/message/181462
Mute This Topic: https://lists.openembedded.org/mt/98944010/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 12/20] python3-sphinx-rtd-theme: add missing run-time dependencies

2023-05-17 Thread Bartosz Golaszewski
From: Bartosz Golaszewski 

Add missing RDEPENDS for this package.

Remove DEPENDS as this package doesn't really have any.

Signed-off-by: Bartosz Golaszewski 
---
 .../python/python3-sphinx-rtd-theme_1.2.0.bb | 5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/python/python3-sphinx-rtd-theme_1.2.0.bb 
b/meta/recipes-devtools/python/python3-sphinx-rtd-theme_1.2.0.bb
index e8a422b2e7..d9cd18e0ed 100644
--- a/meta/recipes-devtools/python/python3-sphinx-rtd-theme_1.2.0.bb
+++ b/meta/recipes-devtools/python/python3-sphinx-rtd-theme_1.2.0.bb
@@ -6,7 +6,10 @@ LIC_FILES_CHKSUM = 
"file://LICENSE;md5=a1db7d4ef426c2935227264e1d4ae8f9 \
 
file://OFL-License.txt;md5=4534c22e0147eadb6828bd9fe86d4868 \
 
file://Apache-License-2.0.txt;md5=8a75796f0ef19c3f601d69857f5a9a5b"
 
-DEPENDS = "python3-sphinx"
+RDEPENDS:${PN} += " \
+python3-compile \
+python3-sphinx \
+"
 
 PYPI_PACKAGE = "sphinx_rtd_theme"
 
-- 
2.39.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181461): 
https://lists.openembedded.org/g/openembedded-core/message/181461
Mute This Topic: https://lists.openembedded.org/mt/98944009/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 11/20] python3-installer: add missing run-time dependencies

2023-05-17 Thread Bartosz Golaszewski
From: Bartosz Golaszewski 

Add missing RDEPENDS for this package.

Signed-off-by: Bartosz Golaszewski 
---
 meta/recipes-devtools/python/python3-installer_0.7.0.bb | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/meta/recipes-devtools/python/python3-installer_0.7.0.bb 
b/meta/recipes-devtools/python/python3-installer_0.7.0.bb
index d7f1e79a5c..9429705b1f 100644
--- a/meta/recipes-devtools/python/python3-installer_0.7.0.bb
+++ b/meta/recipes-devtools/python/python3-installer_0.7.0.bb
@@ -15,6 +15,12 @@ inherit pypi python_flit_core
 # Bootstrap the native build
 DEPENDS:remove:class-native = "python3-build-native python3-installer-native"
 
+RDEPENDS:${PN} += " \
+python3-compile \
+python3-compression \
+python3-netclient \
+"
+
 INSTALL_WHEEL_COMPILE_BYTECODE:class-native = "--no-compile-bytecode"
 
 do_compile:class-native () {
-- 
2.39.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181460): 
https://lists.openembedded.org/g/openembedded-core/message/181460
Mute This Topic: https://lists.openembedded.org/mt/98944008/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 10/20] python3-pathspec: add missing run-time dependencies

2023-05-17 Thread Bartosz Golaszewski
From: Bartosz Golaszewski 

Add missing RDEPENDS for this package.

Signed-off-by: Bartosz Golaszewski 
---
 meta/recipes-devtools/python/python3-pathspec_0.11.1.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-devtools/python/python3-pathspec_0.11.1.bb 
b/meta/recipes-devtools/python/python3-pathspec_0.11.1.bb
index f49bf080e9..79f03da984 100644
--- a/meta/recipes-devtools/python/python3-pathspec_0.11.1.bb
+++ b/meta/recipes-devtools/python/python3-pathspec_0.11.1.bb
@@ -9,3 +9,5 @@ SRC_URI[sha256sum] = 
"2798de800fa92780e33acca925945e9a19a133b715067cf165b8866c15
 inherit pypi setuptools3
 
 BBCLASSEXTEND = "native nativesdk"
+
+RDEPENDS:${PN} += "python3-profile"
-- 
2.39.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181459): 
https://lists.openembedded.org/g/openembedded-core/message/181459
Mute This Topic: https://lists.openembedded.org/mt/98944007/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 09/20] python3-tomli: add missing run-time dependencies

2023-05-17 Thread Bartosz Golaszewski
From: Bartosz Golaszewski 

Add missing RDEPENDS for this package.

Signed-off-by: Bartosz Golaszewski 
---
 meta/recipes-devtools/python/python3-tomli_2.0.1.bb | 5 +
 1 file changed, 5 insertions(+)

diff --git a/meta/recipes-devtools/python/python3-tomli_2.0.1.bb 
b/meta/recipes-devtools/python/python3-tomli_2.0.1.bb
index 6118a6a9c3..9401ed897f 100644
--- a/meta/recipes-devtools/python/python3-tomli_2.0.1.bb
+++ b/meta/recipes-devtools/python/python3-tomli_2.0.1.bb
@@ -11,3 +11,8 @@ inherit pypi python_flit_core
 SRC_URI[sha256sum] = 
"de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"
 
 BBCLASSEXTEND = "native nativesdk"
+
+RDEPENDS:${PN} += " \
+python3-datetime \
+python3-stringold \
+"
-- 
2.39.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181458): 
https://lists.openembedded.org/g/openembedded-core/message/181458
Mute This Topic: https://lists.openembedded.org/mt/98944005/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 08/20] python3-hypothesis: fix run-time dependencies

2023-05-17 Thread Bartosz Golaszewski
From: Bartosz Golaszewski 

The main hypothesis module depends on pytest already so move it to
global RDEPENDS from ptest-specific ones.

Signed-off-by: Bartosz Golaszewski 
---
 meta/recipes-devtools/python/python3-hypothesis_6.71.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/python/python3-hypothesis_6.71.0.bb 
b/meta/recipes-devtools/python/python3-hypothesis_6.71.0.bb
index 8ec885fabf..15f4090c6d 100644
--- a/meta/recipes-devtools/python/python3-hypothesis_6.71.0.bb
+++ b/meta/recipes-devtools/python/python3-hypothesis_6.71.0.bb
@@ -20,13 +20,13 @@ RDEPENDS:${PN} += " \
 python3-compression \
 python3-core \
 python3-json \
+python3-pytest \
 python3-sortedcontainers \
 python3-statistics \
 python3-unittest \
 "
 
 RDEPENDS:${PN}-ptest += " \
-${PYTHON_PN}-pytest \
 ${PYTHON_PN}-unittest-automake-output \
 "
 
-- 
2.39.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181457): 
https://lists.openembedded.org/g/openembedded-core/message/181457
Mute This Topic: https://lists.openembedded.org/mt/98944004/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 07/20] python3-dtschema: add missing run-time dependencies

2023-05-17 Thread Bartosz Golaszewski
From: Bartosz Golaszewski 

Add missing RDEPENDS for this package.

Signed-off-by: Bartosz Golaszewski 
---
 meta/recipes-devtools/python/python3-dtschema_2023.4.bb | 7 ++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/python/python3-dtschema_2023.4.bb 
b/meta/recipes-devtools/python/python3-dtschema_2023.4.bb
index f87563facd..e5a18b0649 100644
--- a/meta/recipes-devtools/python/python3-dtschema_2023.4.bb
+++ b/meta/recipes-devtools/python/python3-dtschema_2023.4.bb
@@ -10,6 +10,11 @@ PYPI_PACKAGE = "dtschema"
 SRC_URI[sha256sum] = 
"6daefb8f54403b4d82961b3346571200571747ab01950fd36c1f69950fa7a8cf"
 
 DEPENDS += "python3-setuptools-scm-native"
-RDEPENDS:${PN} += "python3-ruamel-yaml python3-jsonschema python3-rfc3987"
+RDEPENDS:${PN} += " \
+python3-jsonschema \
+python3-libfdt \
+python3-rfc3987 \
+python3-ruamel-yaml \
+"
 
 BBCLASSEXTEND = "native nativesdk"
-- 
2.39.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181456): 
https://lists.openembedded.org/g/openembedded-core/message/181456
Mute This Topic: https://lists.openembedded.org/mt/98944003/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 06/20] python3-libfdt: new package

2023-05-17 Thread Bartosz Golaszewski
From: Bartosz Golaszewski 

Add a recipe for python bindings for libfdt (spun out of upstream dtc)
fetched from pypi.

Signed-off-by: Bartosz Golaszewski 
---
 .../python/python3-libfdt_1.7.0.post1.bb  | 20 +++
 1 file changed, 20 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-libfdt_1.7.0.post1.bb

diff --git a/meta/recipes-devtools/python/python3-libfdt_1.7.0.post1.bb 
b/meta/recipes-devtools/python/python3-libfdt_1.7.0.post1.bb
new file mode 100644
index 00..1ff3decbb9
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-libfdt_1.7.0.post1.bb
@@ -0,0 +1,20 @@
+SUMMARY = "Python bindings for libfdt."
+LICENSE = "GPL-2.0-only | BSD-2-Clause"
+LIC_FILES_CHKSUM = " \
+file://BSD-2-Clause;md5=5d6306d1b08f8df623178dfd81880927 \
+file://GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
+"
+
+inherit pypi setuptools3
+
+PYPI_PACKAGE = "pylibfdt"
+
+SRC_URI[sha256sum] = 
"2d048f9f8ce9a0527d497f423dea1f1135f9811c05b009cc5d5753771c1f9ba1"
+
+BBCLASSEXTEND = "native nativesdk"
+
+DEPENDS += " \
+python3-pip-native \
+python3-setuptools-scm-native \
+swig-native \
+"
-- 
2.39.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181455): 
https://lists.openembedded.org/g/openembedded-core/message/181455
Mute This Topic: https://lists.openembedded.org/mt/98944002/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 05/20] python3-certifi: add missing run-time dependencies

2023-05-17 Thread Bartosz Golaszewski
From: Bartosz Golaszewski 

Add missing RDEPENDS for this package.

Signed-off-by: Bartosz Golaszewski 
---
 meta/recipes-devtools/python/python3-certifi_2022.12.7.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-devtools/python/python3-certifi_2022.12.7.bb 
b/meta/recipes-devtools/python/python3-certifi_2022.12.7.bb
index dca3d26811..b2e3ec125a 100644
--- a/meta/recipes-devtools/python/python3-certifi_2022.12.7.bb
+++ b/meta/recipes-devtools/python/python3-certifi_2022.12.7.bb
@@ -12,3 +12,5 @@ SRC_URI[sha256sum] = 
"35824b4c3a97115964b408844d64aa14db1cc518f6562e8d7261699d13
 inherit pypi setuptools3
 
 BBCLASSEXTEND = "native nativesdk"
+
+RDEPENDS:${PN} += "python3-io"
-- 
2.39.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181454): 
https://lists.openembedded.org/g/openembedded-core/message/181454
Mute This Topic: https://lists.openembedded.org/mt/98944001/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 04/20] python3-attrs: add missing run-time dependencies

2023-05-17 Thread Bartosz Golaszewski
From: Bartosz Golaszewski 

Add missing RDEPENDS for this package.

Signed-off-by: Bartosz Golaszewski 
---
 meta/recipes-devtools/python/python3-attrs_23.1.0.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-devtools/python/python3-attrs_23.1.0.bb 
b/meta/recipes-devtools/python/python3-attrs_23.1.0.bb
index ab3a08073d..314053de08 100644
--- a/meta/recipes-devtools/python/python3-attrs_23.1.0.bb
+++ b/meta/recipes-devtools/python/python3-attrs_23.1.0.bb
@@ -13,6 +13,7 @@ DEPENDS += " \
 "
 
 RDEPENDS:${PN}+= " \
+python3-compression \
 python3-ctypes \
 python3-crypt \
 "
-- 
2.39.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181453): 
https://lists.openembedded.org/g/openembedded-core/message/181453
Mute This Topic: https://lists.openembedded.org/mt/98944000/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 03/20] python3-attrs: don't use PYTHON_PN

2023-05-17 Thread Bartosz Golaszewski
From: Bartosz Golaszewski 

We no longer support python2. Drop PYTHON_PN and use python3 explicitly.

Signed-off-by: Bartosz Golaszewski 
---
 meta/recipes-devtools/python/python3-attrs_23.1.0.bb | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/meta/recipes-devtools/python/python3-attrs_23.1.0.bb 
b/meta/recipes-devtools/python/python3-attrs_23.1.0.bb
index 207636d62e..ab3a08073d 100644
--- a/meta/recipes-devtools/python/python3-attrs_23.1.0.bb
+++ b/meta/recipes-devtools/python/python3-attrs_23.1.0.bb
@@ -8,13 +8,13 @@ SRC_URI[sha256sum] = 
"6279836d581513a26f1bf235f9acd333bc9115683f14f7e8fae46c98fc
 inherit pypi python_hatchling
 
 DEPENDS += " \
-${PYTHON_PN}-hatch-vcs-native \
-${PYTHON_PN}-hatch-fancy-pypi-readme-native \
+python3-hatch-vcs-native \
+python3-hatch-fancy-pypi-readme-native \
 "
 
 RDEPENDS:${PN}+= " \
-${PYTHON_PN}-ctypes \
-${PYTHON_PN}-crypt \
+python3-ctypes \
+python3-crypt \
 "
 
 BBCLASSEXTEND = "native nativesdk"
-- 
2.39.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181452): 
https://lists.openembedded.org/g/openembedded-core/message/181452
Mute This Topic: https://lists.openembedded.org/mt/98943999/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 00/20] python3: fix run-time dependencies

2023-05-17 Thread Bartosz Golaszewski
From: Bartosz Golaszewski 

I noticed that every now and then I import some python package into an
image only to find out the recipe didn't pull in all required run-time
dependencies. I would fix it whenever I noticed it but figured that I
could right a script that would go over all python packages, build a
minimal image and see that all its modules can be imported.

The patches in this series are the result of that. Most simply add
missing RDEPENDS, some are additional tweaks to recipes and the last
three add new standard library packages to the manifest. These are the
ones for which simply adding python3-misc would still be insufficient in
terms of run-time dependencies.

I plan to do the same for meta-python but this will take more time and I
need to think of some automated way of updating the recipes first.

Bartosz Golaszewski (20):
  python3-async: add missing run-time dependencies
  python3-attrs: unify RDEPENDS
  python3-attrs: don't use PYTHON_PN
  python3-attrs: add missing run-time dependencies
  python3-certifi: add missing run-time dependencies
  python3-libfdt: new package
  python3-dtschema: add missing run-time dependencies
  python3-hypothesis: fix run-time dependencies
  python3-tomli: add missing run-time dependencies
  python3-pathspec: add missing run-time dependencies
  python3-installer: add missing run-time dependencies
  python3-sphinx-rtd-theme: add missing run-time dependencies
  python3-setuptools-rust: fix RDEPENDS and allow target build
  python3-pyproject-hooks: add missing run-time dependencies
  python3-pycryptodome: don't use PYTHON_PN
  python3-pycryptodome: add missing run-time dependencies
  python3-pygobject: add missing run-time dependencies
  python3-manifest: cgitb: new package
  python3-manifest: zipapp: new package
  python3-manifest: turtle: new package

 meta/recipes-devtools/python/python-async.inc |  5 ++-
 .../python/python-pycryptodome.inc|  8 ++--
 .../python/python3-attrs_23.1.0.bb| 15 +++
 .../python/python3-certifi_2022.12.7.bb   |  2 +
 .../python/python3-dtschema_2023.4.bb |  7 +++-
 .../python/python3-hypothesis_6.71.0.bb   |  2 +-
 .../python/python3-installer_0.7.0.bb |  6 +++
 .../python/python3-libfdt_1.7.0.post1.bb  | 20 +
 .../python/python3-pathspec_0.11.1.bb |  2 +
 .../python/python3-pygobject_3.44.1.bb|  5 ++-
 .../python/python3-pyproject-hooks_1.0.0.bb   |  5 ++-
 .../python/python3-setuptools-rust_1.5.2.bb   | 17 
 .../python/python3-sphinx-rtd-theme_1.2.0.bb  |  5 ++-
 .../python/python3-tomli_2.0.1.bb |  5 +++
 .../python/python3/python3-manifest.json  | 42 +++
 15 files changed, 121 insertions(+), 25 deletions(-)
 create mode 100644 meta/recipes-devtools/python/python3-libfdt_1.7.0.post1.bb

-- 
2.39.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181449): 
https://lists.openembedded.org/g/openembedded-core/message/181449
Mute This Topic: https://lists.openembedded.org/mt/98943996/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 02/20] python3-attrs: unify RDEPENDS

2023-05-17 Thread Bartosz Golaszewski
From: Bartosz Golaszewski 

The nativesdk and target RDEPENDS are the same and there's nothing that
prohibits this package from build built for the native sysroot either.
Use the global RDEPENDS instead of per-class assignments.

While at it: order the dependencies alphabetically.

Signed-off-by: Bartosz Golaszewski 
---
 meta/recipes-devtools/python/python3-attrs_23.1.0.bb | 6 +-
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/meta/recipes-devtools/python/python3-attrs_23.1.0.bb 
b/meta/recipes-devtools/python/python3-attrs_23.1.0.bb
index c8e2e514a4..207636d62e 100644
--- a/meta/recipes-devtools/python/python3-attrs_23.1.0.bb
+++ b/meta/recipes-devtools/python/python3-attrs_23.1.0.bb
@@ -12,13 +12,9 @@ DEPENDS += " \
 ${PYTHON_PN}-hatch-fancy-pypi-readme-native \
 "
 
-RDEPENDS:${PN}:class-target += " \
-${PYTHON_PN}-crypt \
+RDEPENDS:${PN}+= " \
 ${PYTHON_PN}-ctypes \
-"
-RDEPENDS:${PN}:class-nativesdk += " \
 ${PYTHON_PN}-crypt \
-${PYTHON_PN}-ctypes \
 "
 
 BBCLASSEXTEND = "native nativesdk"
-- 
2.39.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181451): 
https://lists.openembedded.org/g/openembedded-core/message/181451
Mute This Topic: https://lists.openembedded.org/mt/98943998/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 01/20] python3-async: add missing run-time dependencies

2023-05-17 Thread Bartosz Golaszewski
From: Bartosz Golaszewski 

Add missing RDEPENDS for this package.

Signed-off-by: Bartosz Golaszewski 
---
 meta/recipes-devtools/python/python-async.inc | 5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/python/python-async.inc 
b/meta/recipes-devtools/python/python-async.inc
index fde864601c..53f8d79361 100644
--- a/meta/recipes-devtools/python/python-async.inc
+++ b/meta/recipes-devtools/python/python-async.inc
@@ -9,6 +9,9 @@ inherit pypi
 SRC_URI[md5sum] = "9b06b5997de2154f3bc0273f80bcef6b"
 SRC_URI[sha256sum] = 
"ac6894d876e45878faae493b0cf61d0e28ec417334448ac0a6ea2229d8343051"
 
-RDEPENDS:${PN} += "${PYTHON_PN}-threading"
+RDEPENDS:${PN} += " \
+python3-logging \
+python3-threading \
+"
 
 BBCLASSEXTEND = "native nativesdk"
-- 
2.39.2


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



[OE-core] [dunfell][PATCHv2] git: fix CVE-2023-25652

2023-05-17 Thread Hitendra Prajapati
Git is a revision control system. Prior to versions 2.30.9, 2.31.8, 2.32.7,
2.33.8, 2.34.8, 2.35.8, 2.36.6, 2.37.7, 2.38.5, 2.39.3, and 2.40.1, by feeding
specially crafted input to `git apply --reject`, a path outside the working
tree can be overwritten with partially controlled contents (corresponding to
the rejected hunk(s) from the given patch). A fix is available in versions
2.30.9, 2.31.8, 2.32.7, 2.33.8, 2.34.8, 2.35.8, 2.36.6, 2.37.7, 2.38.5, 2.39.3,
and 2.40.1. As a workaround, avoid using `git apply` with `--reject` when 
applying
patches from an untrusted source. Use `git apply --stat` to inspect a patch 
before
applying; avoid applying one that create a conflict where a link corresponding 
to
the `*.rej` file exists.

References:
https://nvd.nist.gov/vuln/detail/CVE-2023-25652

Upstream-Status: Backport from 
https://github.com/git/git/commit/9db05711c98efc14f414d4c87135a34c13586e0b

Signed-off-by: Hitendra Prajapati 
---
 .../git/files/CVE-2023-25652.patch| 94 +++
 meta/recipes-devtools/git/git.inc |  1 +
 2 files changed, 95 insertions(+)
 create mode 100644 meta/recipes-devtools/git/files/CVE-2023-25652.patch

diff --git a/meta/recipes-devtools/git/files/CVE-2023-25652.patch 
b/meta/recipes-devtools/git/files/CVE-2023-25652.patch
new file mode 100644
index 00..d6b17a2b8a
--- /dev/null
+++ b/meta/recipes-devtools/git/files/CVE-2023-25652.patch
@@ -0,0 +1,94 @@
+From 9db05711c98efc14f414d4c87135a34c13586e0b Mon Sep 17 00:00:00 2001
+From: Johannes Schindelin 
+Date: Thu, 9 Mar 2023 16:02:54 +0100
+Subject: [PATCH] apply --reject: overwrite existing `.rej` symlink if it
+ exists
+
+The `git apply --reject` is expected to write out `.rej` files in case
+one or more hunks fail to apply cleanly. Historically, the command
+overwrites any existing `.rej` files. The idea being that
+apply/reject/edit cycles are relatively common, and the generated `.rej`
+files are not considered precious.
+
+But the command does not overwrite existing `.rej` symbolic links, and
+instead follows them. This is unsafe because the same patch could
+potentially create such a symbolic link and point at arbitrary paths
+outside the current worktree, and `git apply` would write the contents
+of the `.rej` file into that location.
+
+Therefore, let's make sure that any existing `.rej` file or symbolic
+link is removed before writing it.
+
+Reported-by: RyotaK 
+Helped-by: Taylor Blau 
+Helped-by: Junio C Hamano 
+Helped-by: Linus Torvalds 
+Signed-off-by: Johannes Schindelin 
+
+Upstream-Status: Backport 
[https://github.com/git/git/commit/9db05711c98efc14f414d4c87135a34c13586e0b]
+CVE: CVE-2023-25652
+Signed-off-by: Hitendra Prajapati 
+---
+ apply.c  | 14 --
+ t/t4115-apply-symlink.sh | 15 +++
+ 2 files changed, 27 insertions(+), 2 deletions(-)
+
+diff --git a/apply.c b/apply.c
+index 4f303bf..aa7111d 100644
+--- a/apply.c
 b/apply.c
+@@ -4531,7 +4531,7 @@ static int write_out_one_reject(struct apply_state 
*state, struct patch *patch)
+   FILE *rej;
+   char namebuf[PATH_MAX];
+   struct fragment *frag;
+-  int cnt = 0;
++  int fd, cnt = 0;
+   struct strbuf sb = STRBUF_INIT;
+ 
+   for (cnt = 0, frag = patch->fragments; frag; frag = frag->next) {
+@@ -4571,7 +4571,17 @@ static int write_out_one_reject(struct apply_state 
*state, struct patch *patch)
+   memcpy(namebuf, patch->new_name, cnt);
+   memcpy(namebuf + cnt, ".rej", 5);
+ 
+-  rej = fopen(namebuf, "w");
++  fd = open(namebuf, O_CREAT | O_EXCL | O_WRONLY, 0666);
++  if (fd < 0) {
++  if (errno != EEXIST)
++  return error_errno(_("cannot open %s"), namebuf);
++  if (unlink(namebuf))
++  return error_errno(_("cannot unlink '%s'"), namebuf);
++  fd = open(namebuf, O_CREAT | O_EXCL | O_WRONLY, 0666);
++  if (fd < 0)
++  return error_errno(_("cannot open %s"), namebuf);
++  }
++  rej = fdopen(fd, "w");
+   if (!rej)
+   return error_errno(_("cannot open %s"), namebuf);
+ 
+diff --git a/t/t4115-apply-symlink.sh b/t/t4115-apply-symlink.sh
+index 1acb7b2..2b034ff 100755
+--- a/t/t4115-apply-symlink.sh
 b/t/t4115-apply-symlink.sh
+@@ -125,4 +125,19 @@ test_expect_success SYMLINKS 'symlink escape when 
deleting file' '
+   test_path_is_file .git/delete-me
+ '
+ 
++test_expect_success SYMLINKS '--reject removes .rej symlink if it exists' '
++  test_when_finished "git reset --hard && git clean -dfx" &&
++
++  test_commit file &&
++  echo modified >file.t &&
++  git diff -- file.t >patch &&
++  echo modified-again >file.t &&
++
++  ln -s foo file.t.rej &&
++  test_must_fail git apply patch --reject 2>err &&
++  test_i18ngrep "Rejected hunk" err &&
++  test_path_is_missing foo &&
++  test_path_is_file file.t.rej
++'
++
+ test_done
+-- 
+2.25.1
+
diff --git 

[OE-core] [PATCH] iso-codes: upgrade 4.13.0 -> 4.15.0

2023-05-17 Thread wangmy
From: Wang Mingyu 

Changelog:
==
- Translation updates for ISO 3166-1
- Translation updates for ISO 3166-3
- Translation updates for ISO 639-2
- Translation updates for ISO 3166-1
- Translation updates for ISO 3166-2
- Translation updates for ISO 3166-3
- Translation updates for ISO 639-2
- Translation updates for ISO 639-3
- Translation updates for ISO 639-5
- Translation updates for ISO 4217
- Translation updates for ISO 15924
* ISO 3166-2: Fix wrong Spanish translation

Signed-off-by: Wang Mingyu 
---
 .../iso-codes/{iso-codes_4.13.0.bb => iso-codes_4.15.0.bb}  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-support/iso-codes/{iso-codes_4.13.0.bb => 
iso-codes_4.15.0.bb} (94%)

diff --git a/meta/recipes-support/iso-codes/iso-codes_4.13.0.bb 
b/meta/recipes-support/iso-codes/iso-codes_4.15.0.bb
similarity index 94%
rename from meta/recipes-support/iso-codes/iso-codes_4.13.0.bb
rename to meta/recipes-support/iso-codes/iso-codes_4.15.0.bb
index 1950583f59..6ae6fdf8cb 100644
--- a/meta/recipes-support/iso-codes/iso-codes_4.13.0.bb
+++ b/meta/recipes-support/iso-codes/iso-codes_4.15.0.bb
@@ -9,7 +9,7 @@ LICENSE = "LGPL-2.1-only"
 LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
 
 SRC_URI = 
"git://salsa.debian.org/iso-codes-team/iso-codes.git;protocol=https;branch=main;"
-SRCREV = "ab6b01d5b56af7da9f0d2d1619a3cf84e43ed76a"
+SRCREV = "69ba16daef3c5c5e3c18f2d919e25296a4b946be"
 
 # inherit gettext cannot be used, because it adds gettext-native to 
BASEDEPENDS which
 # are inhibited by allarch
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181447): 
https://lists.openembedded.org/g/openembedded-core/message/181447
Mute This Topic: https://lists.openembedded.org/mt/98943362/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] [dunfell][PATCH] curl: CVE-2023-27534 SFTP path ~ resolving discrepancy

2023-05-17 Thread Hitendra Prajapati

Hi Team,

As my Team member Siddharth Doshi  already send the revised patch for that.

Commit : 
*https://git.openembedded.org/openembedded-core-contrib/commit/?h=stable/dunfell-nut=3e4520554cf8bd441f021f46f2e68eace5ca42e6 


*

Please look into that patch once and for any issue revert me or Siddharth.

Thank you Siddharth.

Regards,

Hitendra  Prajapati//

On 17/05/23 00:08, Abdurrahman Hussain (fib) wrote:


Hi Hitendra,

Any update on this? This should be reverted since the dynbuf APIs are 
not available in curl 7.69.


Regards,

Abdurrahman

*From:* openembedded-core@lists.openembedded.org 
 *On Behalf Of *Hitendra 
Prajapati

*Sent:* Friday, May 12, 2023 4:26 AM
*To:* Steve Sakoman 
*Cc:* openembedded-core@lists.openembedded.org
*Subject:* Re: [OE-core] [dunfell][PATCH] curl: CVE-2023-27534 SFTP 
path ~ resolving discrepancy


Hi Steve,

I'll look into this issue by enabling the package at my end and send 
the possible solution if any.


Regards,

Hitendra

On 11/05/23 20:15, Steve Sakoman wrote:

Hi Hitendra,

There's been a bug filed against this patch (build failure when when

curl is configured with `libssh2` i.e. PACKAGECONFIG_append = "

libssh2"):

https://bugzilla.yoctoproject.org/show_bug.cgi?id=15114

Could you investigate and advise whether there is an easy fix or

whether we should revert?

Thanks,

Steve

On Fri, Apr 14, 2023 at 12:55 AM Hitendra Prajapati

    wrote:

Upstream-Status: Backport 
fromhttps://github.com/curl/curl/commit/4e2b52b5f7a3bf50a0f1494155717b02cc1df6d6

Signed-off-by: Hitendra Prajapati  


---

  .../curl/curl/CVE-2023-27534.patch    | 123 ++

  meta/recipes-support/curl/curl_7.69.1.bb  |   1 +

  2 files changed, 124 insertions(+)

  create mode 100644 meta/recipes-support/curl/curl/CVE-2023-27534.patch

diff --git a/meta/recipes-support/curl/curl/CVE-2023-27534.patch 
b/meta/recipes-support/curl/curl/CVE-2023-27534.patch

new file mode 100644

index 00..aeeffd5fea

--- /dev/null

+++ b/meta/recipes-support/curl/curl/CVE-2023-27534.patch

@@ -0,0 +1,123 @@

+From 4e2b52b5f7a3bf50a0f1494155717b02cc1df6d6 Mon Sep 17 00:00:00 2001

+From: Daniel Stenberg  

+Date: Thu, 9 Mar 2023 16:22:11 +0100

+Subject: [PATCH] curl_path: create the new path with dynbuf

+

+CVE: CVE-2023-27534

+Upstream-Status: Backport 
[https://github.com/curl/curl/commit/4e2b52b5f7a3bf50a0f1494155717b02cc1df6d6]

+

+Signed-off-by: Hitendra Prajapati  


+---

+ lib/curl_path.c | 71 -

+ 1 file changed, 35 insertions(+), 36 deletions(-)

+

+diff --git a/lib/curl_path.c b/lib/curl_path.c

+index f429634..e17db4b 100644

+--- a/lib/curl_path.c

 b/lib/curl_path.c

+@@ -30,6 +30,8 @@

+ #include "escape.h"

+ #include "memdebug.h"

+

++#define MAX_SSHPATH_LEN 10 /* arbitrary */

++

+ /* figure out the path to work with in this particular request */

+ CURLcode Curl_getworkingpath(struct connectdata *conn,

+  char *homedir,  /* when SFTP is used */

+@@ -37,60 +39,57 @@ CURLcode Curl_getworkingpath(struct connectdata 
*conn,

+  real path to work with */

+ {

+   struct Curl_easy *data = conn->data;

+-  char *real_path = NULL;

+   char *working_path;

+   size_t working_path_len;

++  struct dynbuf npath;

+   CURLcode result =

+ Curl_urldecode(data, data->state.up.path, 0, _path,

+    _path_len, FALSE);

+   if(result)

+ return result;

+

++  /* new path to switch to in case we need to */

++  Curl_dyn_init(, MAX_SSHPATH_LEN);

++

+   /* Check for /~/, indicating relative to the user's home directory 
*/

+-  if(conn->handler->protocol & CURLPROTO_SCP) {

+-    real_path = malloc(working_path_len + 1);

+-    if(real_path == NULL) {

++  if((data->conn->handler->protocol & CURLPROTO_SCP) &&

++ (working_path_len > 3) && (!memcmp(working_path, "/~/", 3))) {

++    /* It is referenced to the home directory, so strip the leading 
'/~/' */

++    if(Curl_dyn_addn(, _path[3], working_path_len - 3)) 
{

+   free(working_path);

+   return CURLE_OUT_OF_MEMORY;

+ }

+-    if((working_path_len > 3) && (!memcmp(working_path, "/~/", 3)))

+-  /* It is referenced to the home directory, so strip 

Re: [OE-core] [dunfell][PATCH] curl: CVE-2023-27534 SFTP path ~ resolving discrepancy

2023-05-17 Thread Hitendra Prajapati

Hi Team,

Please revert the changes of curl: CVE-2023-27534 SFTP path ~ resolving 
discrepancy as of now.


My apologies for the delay in reply.

Regards,

Hitendra

On 17/05/23 00:08, Abdurrahman Hussain (fib) wrote:


Hi Hitendra,

Any update on this? This should be reverted since the dynbuf APIs are 
not available in curl 7.69.


Regards,

Abdurrahman

*From:* openembedded-core@lists.openembedded.org 
 *On Behalf Of *Hitendra 
Prajapati

*Sent:* Friday, May 12, 2023 4:26 AM
*To:* Steve Sakoman 
*Cc:* openembedded-core@lists.openembedded.org
*Subject:* Re: [OE-core] [dunfell][PATCH] curl: CVE-2023-27534 SFTP 
path ~ resolving discrepancy


Hi Steve,

I'll look into this issue by enabling the package at my end and send 
the possible solution if any.


Regards,

Hitendra

On 11/05/23 20:15, Steve Sakoman wrote:

Hi Hitendra,

There's been a bug filed against this patch (build failure when when

curl is configured with `libssh2` i.e. PACKAGECONFIG_append = "

libssh2"):

https://bugzilla.yoctoproject.org/show_bug.cgi?id=15114

Could you investigate and advise whether there is an easy fix or

whether we should revert?

Thanks,

Steve

On Fri, Apr 14, 2023 at 12:55 AM Hitendra Prajapati

    wrote:

Upstream-Status: Backport 
fromhttps://github.com/curl/curl/commit/4e2b52b5f7a3bf50a0f1494155717b02cc1df6d6

Signed-off-by: Hitendra Prajapati  


---

  .../curl/curl/CVE-2023-27534.patch    | 123 ++

  meta/recipes-support/curl/curl_7.69.1.bb  |   1 +

  2 files changed, 124 insertions(+)

  create mode 100644 meta/recipes-support/curl/curl/CVE-2023-27534.patch

diff --git a/meta/recipes-support/curl/curl/CVE-2023-27534.patch 
b/meta/recipes-support/curl/curl/CVE-2023-27534.patch

new file mode 100644

index 00..aeeffd5fea

--- /dev/null

+++ b/meta/recipes-support/curl/curl/CVE-2023-27534.patch

@@ -0,0 +1,123 @@

+From 4e2b52b5f7a3bf50a0f1494155717b02cc1df6d6 Mon Sep 17 00:00:00 2001

+From: Daniel Stenberg  

+Date: Thu, 9 Mar 2023 16:22:11 +0100

+Subject: [PATCH] curl_path: create the new path with dynbuf

+

+CVE: CVE-2023-27534

+Upstream-Status: Backport 
[https://github.com/curl/curl/commit/4e2b52b5f7a3bf50a0f1494155717b02cc1df6d6]

+

+Signed-off-by: Hitendra Prajapati  


+---

+ lib/curl_path.c | 71 -

+ 1 file changed, 35 insertions(+), 36 deletions(-)

+

+diff --git a/lib/curl_path.c b/lib/curl_path.c

+index f429634..e17db4b 100644

+--- a/lib/curl_path.c

 b/lib/curl_path.c

+@@ -30,6 +30,8 @@

+ #include "escape.h"

+ #include "memdebug.h"

+

++#define MAX_SSHPATH_LEN 10 /* arbitrary */

++

+ /* figure out the path to work with in this particular request */

+ CURLcode Curl_getworkingpath(struct connectdata *conn,

+  char *homedir,  /* when SFTP is used */

+@@ -37,60 +39,57 @@ CURLcode Curl_getworkingpath(struct connectdata 
*conn,

+  real path to work with */

+ {

+   struct Curl_easy *data = conn->data;

+-  char *real_path = NULL;

+   char *working_path;

+   size_t working_path_len;

++  struct dynbuf npath;

+   CURLcode result =

+ Curl_urldecode(data, data->state.up.path, 0, _path,

+    _path_len, FALSE);

+   if(result)

+ return result;

+

++  /* new path to switch to in case we need to */

++  Curl_dyn_init(, MAX_SSHPATH_LEN);

++

+   /* Check for /~/, indicating relative to the user's home directory 
*/

+-  if(conn->handler->protocol & CURLPROTO_SCP) {

+-    real_path = malloc(working_path_len + 1);

+-    if(real_path == NULL) {

++  if((data->conn->handler->protocol & CURLPROTO_SCP) &&

++ (working_path_len > 3) && (!memcmp(working_path, "/~/", 3))) {

++    /* It is referenced to the home directory, so strip the leading 
'/~/' */

++    if(Curl_dyn_addn(, _path[3], working_path_len - 3)) 
{

+   free(working_path);

+   return CURLE_OUT_OF_MEMORY;

+ }

+-    if((working_path_len > 3) && (!memcmp(working_path, "/~/", 3)))

+-  /* It is referenced to the home directory, so strip the leading 
'/~/' */

+-  memcpy(real_path, working_path + 3, working_path_len - 2);

+-    else

+-  memcpy(real_path, working_path, 1 + working_path_len);