[OE-core] [PATCH] strace: Use locale-base-en-us for locale

2024-05-08 Thread Khem Raj
locale-base-en-us is available on musl as well therefore, not need
to make it glibc specific anymore.

Signed-off-by: Khem Raj 
---
 meta/recipes-devtools/strace/strace_6.8.bb | 6 +-
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/meta/recipes-devtools/strace/strace_6.8.bb 
b/meta/recipes-devtools/strace/strace_6.8.bb
index b22c57b45d0..e1cc65e053e 100644
--- a/meta/recipes-devtools/strace/strace_6.8.bb
+++ b/meta/recipes-devtools/strace/strace_6.8.bb
@@ -47,10 +47,6 @@ do_install_ptest() {
 sed -i -e '/^src/s/strace.*[0-9]/ptest/' 
${D}/${PTEST_PATH}/${TESTDIR}/Makefile
 }
 
-RDEPENDS:${PN}-ptest += "make coreutils grep gawk sed"
-
-RDEPENDS:${PN}-ptest:append:libc-glibc = "\
- locale-base-en-us.iso-8859-1 \
-"
+RDEPENDS:${PN}-ptest += "make coreutils grep gawk sed locale-base-en-us"
 
 BBCLASSEXTEND = "native"
-- 
2.45.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#199141): 
https://lists.openembedded.org/g/openembedded-core/message/199141
Mute This Topic: https://lists.openembedded.org/mt/105996508/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] strace: Use locale-base-en-us for locale

2024-05-08 Thread Khem Raj
locale-base-en-us is available on musl as well therefore, not need
to make it glibc specific anymore.

Signed-off-by: Khem Raj 
---
 meta/recipes-devtools/strace/strace_6.8.bb | 6 +-
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/meta/recipes-devtools/strace/strace_6.8.bb 
b/meta/recipes-devtools/strace/strace_6.8.bb
index b22c57b45d0..e1cc65e053e 100644
--- a/meta/recipes-devtools/strace/strace_6.8.bb
+++ b/meta/recipes-devtools/strace/strace_6.8.bb
@@ -47,10 +47,6 @@ do_install_ptest() {
 sed -i -e '/^src/s/strace.*[0-9]/ptest/' 
${D}/${PTEST_PATH}/${TESTDIR}/Makefile
 }
 
-RDEPENDS:${PN}-ptest += "make coreutils grep gawk sed"
-
-RDEPENDS:${PN}-ptest:append:libc-glibc = "\
- locale-base-en-us.iso-8859-1 \
-"
+RDEPENDS:${PN}-ptest += "make coreutils grep gawk sed locale-base-en-us"
 
 BBCLASSEXTEND = "native"
-- 
2.45.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#199140): 
https://lists.openembedded.org/g/openembedded-core/message/199140
Mute This Topic: https://lists.openembedded.org/mt/105996508/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] enchant2: Disable incompatible-pointer-types warning as error

2024-05-08 Thread Khem Raj
This fixes build with GCC-14

Signed-off-by: Khem Raj 
---
 meta/recipes-support/enchant/enchant2_2.7.2.bb | 4 
 1 file changed, 4 insertions(+)

diff --git a/meta/recipes-support/enchant/enchant2_2.7.2.bb 
b/meta/recipes-support/enchant/enchant2_2.7.2.bb
index 08998dd48fe..7e175852556 100644
--- a/meta/recipes-support/enchant/enchant2_2.7.2.bb
+++ b/meta/recipes-support/enchant/enchant2_2.7.2.bb
@@ -27,3 +27,7 @@ FILES:${PN} += " \
 ${libdir}/enchant-2 \
 "
 FILES:${PN}-staticdev += "${libdir}/enchant-2/*.a"
+
+#api.vala:43:18: error: assignment to 'gchar **' {aka 'char **'} from 
incompatible pointer type 'const gchar * const*' {aka 'const char * const*'} 
[-Wincompatible-pointer-types] 
+
+CFLAGS += "-Wno-error=incompatible-pointer-types"
-- 
2.45.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#199139): 
https://lists.openembedded.org/g/openembedded-core/message/199139
Mute This Topic: https://lists.openembedded.org/mt/105995735/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: Enable team net driver

2024-05-08 Thread Khem Raj
On Wed, May 8, 2024 at 8:16 PM Bruce Ashfield  wrote:
>
> On Wed, May 8, 2024 at 9:22 PM Khem Raj  wrote:
> >
> > Signed-off-by: Khem Raj 
> > Cc: Bruce Ashfield 
> > ---
> >  meta/recipes-kernel/linux/linux-yocto_6.6.bb | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/meta/recipes-kernel/linux/linux-yocto_6.6.bb 
> > b/meta/recipes-kernel/linux/linux-yocto_6.6.bb
> > index 71bfbf9e032..4503ec94ae9 100644
> > --- a/meta/recipes-kernel/linux/linux-yocto_6.6.bb
> > +++ b/meta/recipes-kernel/linux/linux-yocto_6.6.bb
> > @@ -66,6 +66,7 @@ KERNEL_FEATURES:append:qemux86-64=" cfg/sound.scc 
> > cfg/paravirt_kvm.scc"
> >  KERNEL_FEATURES:append = " ${@bb.utils.contains("TUNE_FEATURES", "mx32", " 
> > cfg/x32.scc", "", d)}"
> >  KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", 
> > "ptest", " features/scsi/scsi-debug.scc features/nf_tables/nft_test.scc", 
> > "", d)}"
> >  KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", 
> > "ptest", " features/gpio/mockup.scc features/gpio/sim.scc", "", d)}"
>
> We are getting quite a few of these now and that isn't a problem. But
> I think we should
> probably start putting comments above the enable lines so casual users
> will know why
> the various fragments are being enabled.
>
> For example, I don't really know what the team driver is, and why
> ptest needs it!

when we expand ptests for more than core layer, then certain packages
e.g. libteam in meta-oe [1] this config option is needed to be
enabled.

[1] 
https://git.openembedded.org/meta-openembedded/commit/?id=df35bef3ae6411900efdfc3ea5ade23820e9af2f

>
> Bruce
>
> > +KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", 
> > "ptest", " features/net/team/team.scc", "", d)}"
> >  KERNEL_FEATURES:append:powerpc =" arch/powerpc/powerpc-debug.scc"
> >  KERNEL_FEATURES:append:powerpc64 =" arch/powerpc/powerpc-debug.scc"
> >  KERNEL_FEATURES:append:powerpc64le =" arch/powerpc/powerpc-debug.scc"
> > --
> > 2.45.0
> >
>
>
> --
> - 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 (#199138): 
https://lists.openembedded.org/g/openembedded-core/message/199138
Mute This Topic: https://lists.openembedded.org/mt/105993917/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: Enable team net driver

2024-05-08 Thread Bruce Ashfield
On Wed, May 8, 2024 at 9:22 PM Khem Raj  wrote:
>
> Signed-off-by: Khem Raj 
> Cc: Bruce Ashfield 
> ---
>  meta/recipes-kernel/linux/linux-yocto_6.6.bb | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/meta/recipes-kernel/linux/linux-yocto_6.6.bb 
> b/meta/recipes-kernel/linux/linux-yocto_6.6.bb
> index 71bfbf9e032..4503ec94ae9 100644
> --- a/meta/recipes-kernel/linux/linux-yocto_6.6.bb
> +++ b/meta/recipes-kernel/linux/linux-yocto_6.6.bb
> @@ -66,6 +66,7 @@ KERNEL_FEATURES:append:qemux86-64=" cfg/sound.scc 
> cfg/paravirt_kvm.scc"
>  KERNEL_FEATURES:append = " ${@bb.utils.contains("TUNE_FEATURES", "mx32", " 
> cfg/x32.scc", "", d)}"
>  KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", 
> " features/scsi/scsi-debug.scc features/nf_tables/nft_test.scc", "", d)}"
>  KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", 
> " features/gpio/mockup.scc features/gpio/sim.scc", "", d)}"

We are getting quite a few of these now and that isn't a problem. But
I think we should
probably start putting comments above the enable lines so casual users
will know why
the various fragments are being enabled.

For example, I don't really know what the team driver is, and why
ptest needs it!

Bruce

> +KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", 
> " features/net/team/team.scc", "", d)}"
>  KERNEL_FEATURES:append:powerpc =" arch/powerpc/powerpc-debug.scc"
>  KERNEL_FEATURES:append:powerpc64 =" arch/powerpc/powerpc-debug.scc"
>  KERNEL_FEATURES:append:powerpc64le =" arch/powerpc/powerpc-debug.scc"
> --
> 2.45.0
>


-- 
- 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 (#199137): 
https://lists.openembedded.org/g/openembedded-core/message/199137
Mute This Topic: https://lists.openembedded.org/mt/105993917/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] zip: Fix build with gcc-14

2024-05-08 Thread Khem Raj
zip's configure fails to link this piece of test code:

  int main() { return closedir(opendir(".")); }

with GCC-14 because it now treats implicit declaration of function
as error, unline older GCC version where it was just a warning
and this test would build fine.

Remove 0002-unix.c-Do-not-redefine-DIR-as-FILE.patch which
is now unnecessary.

Signed-off-by: Zoltán Böszörményi 
Signed-off-by: Khem Raj 
---
v2: Redo the patches differently

 ...e-dirent.h-for-closedir-opendir-APIs.patch | 45 +++
 ...2-unix.c-Do-not-redefine-DIR-as-FILE.patch | 35 ---
 meta/recipes-extended/zip/zip_3.0.bb  |  2 +-
 3 files changed, 46 insertions(+), 36 deletions(-)
 create mode 100644 
meta/recipes-extended/zip/zip-3.0/0001-configure-Include-dirent.h-for-closedir-opendir-APIs.patch
 delete mode 100644 
meta/recipes-extended/zip/zip-3.0/0002-unix.c-Do-not-redefine-DIR-as-FILE.patch

diff --git 
a/meta/recipes-extended/zip/zip-3.0/0001-configure-Include-dirent.h-for-closedir-opendir-APIs.patch
 
b/meta/recipes-extended/zip/zip-3.0/0001-configure-Include-dirent.h-for-closedir-opendir-APIs.patch
new file mode 100644
index 000..0d3af37ded2
--- /dev/null
+++ 
b/meta/recipes-extended/zip/zip-3.0/0001-configure-Include-dirent.h-for-closedir-opendir-APIs.patch
@@ -0,0 +1,45 @@
+From 9db2f8cdbbc0dfb359d3b4e5dfe48c18652ce531 Mon Sep 17 00:00:00 2001
+From: Khem Raj 
+Date: Wed, 8 May 2024 19:02:46 -0700
+Subject: [PATCH] configure: Include dirent.h for closedir/opendir APIs
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+GCC-14 is strict about function prototypes and since the
+testcase tries to compile/link opendir/closedir functions
+without including signatures, it fails to build the test
+due to missing signatures which come from dirent.h
+
+Therefore include the needed system header and make it more
+robust.
+
+Fixes
+a.c:2:21: error: implicit declaration of function ‘closedir’ 
[-Wimplicit-function-declaration]
+2 | int main() { return closedir(opendir(".")); }
+  | ^~~~
+a.c:2:30: error: implicit declaration of function ‘opendir’ 
[-Wimplicit-function-declaration]
+2 | int main() { return closedir(opendir(".")); }
+  |  ^~~
+
+Upstream-Status: Inactive-Upstream
+Signed-off-by: Khem Raj 
+---
+ unix/configure | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/unix/configure b/unix/configure
+index f917086..1dd98c6 100644
+--- a/unix/configure
 b/unix/configure
+@@ -591,6 +591,7 @@ $CC $CFLAGS -c conftest.c >/dev/null 2>/dev/null
+ 
+ echo Check for directory libraries
+ cat > conftest.c << _EOF_
++#include 
+ int main() { return closedir(opendir(".")); }
+ _EOF_
+ 
+-- 
+2.45.0
+
diff --git 
a/meta/recipes-extended/zip/zip-3.0/0002-unix.c-Do-not-redefine-DIR-as-FILE.patch
 
b/meta/recipes-extended/zip/zip-3.0/0002-unix.c-Do-not-redefine-DIR-as-FILE.patch
deleted file mode 100644
index a86e03e6203..000
--- 
a/meta/recipes-extended/zip/zip-3.0/0002-unix.c-Do-not-redefine-DIR-as-FILE.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-From 76f5bf3546d826dcbc03acbefcf0b10b972bf136 Mon Sep 17 00:00:00 2001
-From: Khem Raj 
-Date: Wed, 10 Aug 2022 17:19:38 -0700
-Subject: [PATCH 2/2] unix.c: Do not redefine DIR as FILE
-
-DIR is already provided on Linux via
-/usr/include/dirent.h system header
-
-Upstream-Status: Inactive-Upstream
-Signed-off-by: Khem Raj 

- unix/unix.c | 2 --
- 1 file changed, 2 deletions(-)
-
-diff --git a/unix/unix.c b/unix/unix.c
-index ba87614..6e6f4d2 100644
 a/unix/unix.c
-+++ b/unix/unix.c
-@@ -61,13 +61,11 @@ local time_t label_utim = 0;
- /* Local functions */
- local char *readd OF((DIR *));
- 
--
- #ifdef NO_DIR/* for AT 3B1 */
- #include 
- #ifndef dirent
- #  define dirent direct
- #endif
--typedef FILE DIR;
- /*
- **  Apparently originally by Rich Salz.
- **  Cleaned up and modified by James W. Birdsall.
--- 
-2.37.1
-
diff --git a/meta/recipes-extended/zip/zip_3.0.bb 
b/meta/recipes-extended/zip/zip_3.0.bb
index 70df5ab8728..ec542063357 100644
--- a/meta/recipes-extended/zip/zip_3.0.bb
+++ b/meta/recipes-extended/zip/zip_3.0.bb
@@ -17,8 +17,8 @@ SRC_URI = 
"${SOURCEFORGE_MIRROR}/infozip/Zip%203.x%20%28latest%29/3.0/zip30.tar.
file://0002-configure-support-PIC-code-build.patch \

file://0001-configure-Use-CFLAGS-and-LDFLAGS-when-doing-link-tes.patch \

file://0001-configure-Specify-correct-function-signatures-and-de.patch \
-   file://0002-unix.c-Do-not-redefine-DIR-as-FILE.patch \

file://0001-unix-configure-use-_Static_assert-to-do-correct-dete.patch \
+   
file://0001-configure-Include-dirent.h-for-closedir-opendir-APIs.patch \
"
 UPSTREAM_VERSION_UNKNOWN = "1"
 
-- 
2.45.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#199136): 

[OE-core] [PATCH V2 3/4] ltp: Fix build with GCC-14

2024-05-08 Thread Khem Raj
Signed-off-by: Khem Raj 
---
v2: Change the patch status to Backport

 ...-Use-time_t-instead-of-long-for-type.patch | 54 +++
 meta/recipes-extended/ltp/ltp_20240129.bb |  1 +
 2 files changed, 55 insertions(+)
 create mode 100644 
meta/recipes-extended/ltp/ltp/0001-sched_stress-Use-time_t-instead-of-long-for-type.patch

diff --git 
a/meta/recipes-extended/ltp/ltp/0001-sched_stress-Use-time_t-instead-of-long-for-type.patch
 
b/meta/recipes-extended/ltp/ltp/0001-sched_stress-Use-time_t-instead-of-long-for-type.patch
new file mode 100644
index 000..ae8dc8706e3
--- /dev/null
+++ 
b/meta/recipes-extended/ltp/ltp/0001-sched_stress-Use-time_t-instead-of-long-for-type.patch
@@ -0,0 +1,54 @@
+From 74074f9a71c876d6e95c2d72702888dd2fabc761 Mon Sep 17 00:00:00 2001
+From: Khem Raj 
+Date: Mon, 6 May 2024 11:43:20 -0700
+Subject: [PATCH] sched_stress: Use time_t instead of long for type
+
+This ensures it works across different architectures
+Fixes
+
+| sched_driver.c:744:43: error: passing argument 1 of 'ctime' from 
incompatible pointer type [-Wincompatible-pointer-types]
+|   744 | printf("\nend time = %s\n", ctime(_time));
+|   |   ^
+
+With gcc-14
+
+Upstream-Status: Backport 
[https://github.com/linux-test-project/ltp/commit/0a682f1af42d8d261202821be580fe26d17ee9b7]
+Signed-off-by: Khem Raj 
+---
+ testcases/kernel/sched/sched_stress/sched_driver.c | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/testcases/kernel/sched/sched_stress/sched_driver.c 
b/testcases/kernel/sched/sched_stress/sched_driver.c
+index 61573d788..5b8c187fe 100644
+--- a/testcases/kernel/sched/sched_stress/sched_driver.c
 b/testcases/kernel/sched/sched_stress/sched_driver.c
+@@ -136,7 +136,7 @@ int debug = 0;
+ /*
+  * Function prototypes
+  */
+-void startup(long);
++void startup(time_t);
+ int start_testcase(char *, char *, char *, char *, char *, char *);
+ int process_slots_in_use();
+ int available_user_process_slots();
+@@ -251,7 +251,7 @@ int main(int argc, char **argv)
+  * information to the screen and .  It also initializes the*
+  * process id list and other global variables.
 *
+  *---*/
+-void startup(long start_time)
++void startup(time_t start_time)
+ {
+   char tempbuffer[50];/* temporary buffer to hold names */
+ 
+@@ -734,7 +734,7 @@ void kill_short_term_testcases()
+ void finishup(start_time)
+ long start_time;  /* starting time to calculate elapsed time */
+ {
+-  long end_time;  /* time when program finished */
++  time_t end_time;/* time when program finished */
+ 
+   /*
+* Get the end time and calculate elapsed time; write all this out
+-- 
+2.45.0
+
diff --git a/meta/recipes-extended/ltp/ltp_20240129.bb 
b/meta/recipes-extended/ltp/ltp_20240129.bb
index e88e931a687..f8e6d3987ee 100644
--- a/meta/recipes-extended/ltp/ltp_20240129.bb
+++ b/meta/recipes-extended/ltp/ltp_20240129.bb
@@ -29,6 +29,7 @@ SRCREV = "68737d20556d37364c95776044b1119c0912a36a"
 SRC_URI = 
"git://github.com/linux-test-project/ltp.git;branch=master;protocol=https \
file://0001-Remove-OOM-tests-from-runtest-mm.patch \
file://0001-scenario_groups-default-remove-connectors.patch \
+   file://0001-sched_stress-Use-time_t-instead-of-long-for-type.patch \
"
 
 S = "${WORKDIR}/git"
-- 
2.45.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#199134): 
https://lists.openembedded.org/g/openembedded-core/message/199134
Mute This Topic: https://lists.openembedded.org/mt/105994031/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 4/4] iproute2: Fix build with GCC-14

2024-05-08 Thread Khem Raj
Signed-off-by: Khem Raj 
---
V2: Rebased

 meta/recipes-connectivity/iproute2/iproute2_6.8.0.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-connectivity/iproute2/iproute2_6.8.0.bb 
b/meta/recipes-connectivity/iproute2/iproute2_6.8.0.bb
index 68f7611943f..24539e3d998 100644
--- a/meta/recipes-connectivity/iproute2/iproute2_6.8.0.bb
+++ b/meta/recipes-connectivity/iproute2/iproute2_6.8.0.bb
@@ -26,6 +26,8 @@ PACKAGECONFIG[selinux] = ",,libselinux"
 
 IPROUTE2_MAKE_SUBDIRS = "lib tc ip bridge misc genl 
${@bb.utils.filter('PACKAGECONFIG', 'devlink tipc rdma', d)}"
 
+# This is needed with GCC-14 and musl
+CFLAGS += "-Wno-error=incompatible-pointer-types"
 # CFLAGS are computed in Makefile and reference CCOPTS
 #
 EXTRA_OEMAKE = "\
-- 
2.45.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#199135): 
https://lists.openembedded.org/g/openembedded-core/message/199135
Mute This Topic: https://lists.openembedded.org/mt/105994032/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 1/4] python3: Treat UID/GID overflow as failure

2024-05-08 Thread Khem Raj
This fixes ptest failures on 32bit architectures

AssertionError:
Failed ptests:
{'python3': ['test_extractall_none_gid',
 'test_extractall_none_gname',
 'test_extractall_none_mode',
 'test_extractall_none_mtime',
 'test_extractall_none_uid',
 'test_extractall_none_uname',
 'setUpClass',
 'python3']}

Signed-off-by: Khem Raj 
---
v2: Fix typo in subject

 ...e-treat-overflow-in-UID-GID-as-failu.patch | 40 +++
 .../recipes-devtools/python/python3_3.12.3.bb |  1 +
 2 files changed, 41 insertions(+)
 create mode 100644 
meta/recipes-devtools/python/python3/0001-gh-107811-tarfile-treat-overflow-in-UID-GID-as-failu.patch

diff --git 
a/meta/recipes-devtools/python/python3/0001-gh-107811-tarfile-treat-overflow-in-UID-GID-as-failu.patch
 
b/meta/recipes-devtools/python/python3/0001-gh-107811-tarfile-treat-overflow-in-UID-GID-as-failu.patch
new file mode 100644
index 000..88b84c60243
--- /dev/null
+++ 
b/meta/recipes-devtools/python/python3/0001-gh-107811-tarfile-treat-overflow-in-UID-GID-as-failu.patch
@@ -0,0 +1,40 @@
+From 999d4e74d34afa233ad8ad0c70b989d77a21957f Mon Sep 17 00:00:00 2001
+From: Petr Viktorin 
+Date: Wed, 23 Aug 2023 20:00:07 +0200
+Subject: [PATCH] gh-107811: tarfile: treat overflow in UID/GID as failure to
+ set it (#108369)
+
+Upstream-Status: Backport [https://github.com/python/cpython/pull/108369]
+Signed-off-by: Khem Raj 
+---
+ Lib/tarfile.py | 3 ++-
+ .../Library/2023-08-23-17-34-39.gh-issue-107811.3Fng72.rst | 3 +++
+ 2 files changed, 5 insertions(+), 1 deletion(-)
+ create mode 100644 
Misc/NEWS.d/next/Library/2023-08-23-17-34-39.gh-issue-107811.3Fng72.rst
+
+diff --git a/Lib/tarfile.py b/Lib/tarfile.py
+index 3bbbcaa..473167d 100755
+--- a/Lib/tarfile.py
 b/Lib/tarfile.py
+@@ -2557,7 +2557,8 @@ class TarFile(object):
+ os.lchown(targetpath, u, g)
+ else:
+ os.chown(targetpath, u, g)
+-except OSError as e:
++except (OSError, OverflowError) as e:
++# OverflowError can be raised if an ID doesn't fit in `id_t`
+ raise ExtractError("could not change owner") from e
+ 
+ def chmod(self, tarinfo, targetpath):
+diff --git 
a/Misc/NEWS.d/next/Library/2023-08-23-17-34-39.gh-issue-107811.3Fng72.rst 
b/Misc/NEWS.d/next/Library/2023-08-23-17-34-39.gh-issue-107811.3Fng72.rst
+new file mode 100644
+index 000..ffca413
+--- /dev/null
 b/Misc/NEWS.d/next/Library/2023-08-23-17-34-39.gh-issue-107811.3Fng72.rst
+@@ -0,0 +1,3 @@
++:mod:`tarfile`: extraction of members with overly large UID or GID (e.g. on
++an OS with 32-bit :c:type:`!id_t`) now fails in the same way as failing to
++set the ID.
+-- 
+2.45.0
+
diff --git a/meta/recipes-devtools/python/python3_3.12.3.bb 
b/meta/recipes-devtools/python/python3_3.12.3.bb
index 93709b207ce..37afa442fa3 100644
--- a/meta/recipes-devtools/python/python3_3.12.3.bb
+++ b/meta/recipes-devtools/python/python3_3.12.3.bb
@@ -31,6 +31,7 @@ SRC_URI = 
"http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.xz \
file://0001-test_storlines-skip-due-to-load-variability.patch \

file://0001-gh-114492-Initialize-struct-termios-before-calling-t.patch \
file://0001-test_shutdown-skip-problematic-test.patch \
+   
file://0001-gh-107811-tarfile-treat-overflow-in-UID-GID-as-failu.patch \
"
 
 SRC_URI:append:class-native = " \
-- 
2.45.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#199132): 
https://lists.openembedded.org/g/openembedded-core/message/199132
Mute This Topic: https://lists.openembedded.org/mt/105994028/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 V3 2/4] lrzsz connman-gnome libfm: ignore various issues fatal with gcc-14

2024-05-08 Thread Khem Raj
From: Martin Jansa 

work arounds for:
oe-core/meta/recipes-bsp/lrzsz/lrzsz_0.12.20.bb:do_compile
oe-core/meta/recipes-connectivity/connman/connman-gnome_0.7.bb:do_compile
oe-core/meta/recipes-support/libfm/libfm_1.3.2.bb:do_compile

http://errors.yoctoproject.org/Errors/Build/183127/

More fixes on ML (especially for -native with gcc-14 on host)
cdrtools: https://lists.openembedded.org/g/openembedded-core/message/198899
syslinux: https://lists.openembedded.org/g/openembedded-core/message/198901

Signed-off-by: Martin Jansa 
Signed-off-by: Khem Raj 
---
v3: Drop zip as it has another fix in ml

 meta/recipes-bsp/lrzsz/lrzsz_0.12.20.bb| 6 ++
 meta/recipes-connectivity/connman/connman-gnome_0.7.bb | 4 
 meta/recipes-support/libfm/libfm_1.3.2.bb  | 4 
 3 files changed, 14 insertions(+)

diff --git a/meta/recipes-bsp/lrzsz/lrzsz_0.12.20.bb 
b/meta/recipes-bsp/lrzsz/lrzsz_0.12.20.bb
index 63edcbd8643..3024ddcaf07 100644
--- a/meta/recipes-bsp/lrzsz/lrzsz_0.12.20.bb
+++ b/meta/recipes-bsp/lrzsz/lrzsz_0.12.20.bb
@@ -46,3 +46,9 @@ ALTERNATIVE_TARGET[rb] = "${bindir}/lrz"
 ALTERNATIVE_TARGET[sz] = "${bindir}/lsz"
 ALTERNATIVE_TARGET[sx] = "${bindir}/lsz"
 ALTERNATIVE_TARGET[sb] = "${bindir}/lsz"
+
+# http://errors.yoctoproject.org/Errors/Details/766929/
+# lrzsz-0.12.20/src/tcp.c:75:56: error: passing argument 3 of 'getsockname' 
from incompatible pointer type [-Wincompatible-pointer-types]
+# lrzsz-0.12.20/src/tcp.c:83:52: error: passing argument 3 of 'getsockname' 
from incompatible pointer type [-Wincompatible-pointer-types]
+# lrzsz-0.12.20/src/tcp.c:103:51: error: passing argument 3 of 'accept' from 
incompatible pointer type [-Wincompatible-pointer-types]
+CFLAGS += "-Wno-error=incompatible-pointer-types"
diff --git a/meta/recipes-connectivity/connman/connman-gnome_0.7.bb 
b/meta/recipes-connectivity/connman/connman-gnome_0.7.bb
index f6150d98ec9..46b3f854c52 100644
--- a/meta/recipes-connectivity/connman/connman-gnome_0.7.bb
+++ b/meta/recipes-connectivity/connman/connman-gnome_0.7.bb
@@ -28,3 +28,7 @@ RDEPENDS:${PN} = "connman"
 do_install:append() {
 install -m 0644 ${UNPACKDIR}/images/* 
${D}/usr/share/icons/hicolor/22x22/apps/
 }
+
+# http://errors.yoctoproject.org/Errors/Details/766926/
+# connman-client.c:200:15: error: assignment to 'GtkTreeModel *' {aka 'struct 
_GtkTreeModel *'} from incompatible pointer type 'GtkTreeStore *' {aka 'struct 
_GtkTreeStore *'} [-Wincompatible-pointer-types]
+CFLAGS += "-Wno-error=incompatible-pointer-types"
diff --git a/meta/recipes-support/libfm/libfm_1.3.2.bb 
b/meta/recipes-support/libfm/libfm_1.3.2.bb
index 057c7370293..1d7609165b4 100644
--- a/meta/recipes-support/libfm/libfm_1.3.2.bb
+++ b/meta/recipes-support/libfm/libfm_1.3.2.bb
@@ -53,3 +53,7 @@ do_install:append () {
 rm -f ${D}${libdir}/libfm-extra.a
 rm -f ${D}${libdir}/libfm-extra.la
 }
+
+# http://errors.yoctoproject.org/Errors/Details/766924/
+# libfm-1.3.2/src/actions/action.c:2050:25: error: assignment to 'gchar **' 
{aka 'char **'} from incompatible pointer type 'const gchar * const*' {aka 
'const char * const*'} [-Wincompatible-pointer-types]
+CFLAGS += "-Wno-error=incompatible-pointer-types"
-- 
2.45.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#199133): 
https://lists.openembedded.org/g/openembedded-core/message/199133
Mute This Topic: https://lists.openembedded.org/mt/105994029/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] linux-yocto: Enable team net driver

2024-05-08 Thread Khem Raj
Signed-off-by: Khem Raj 
Cc: Bruce Ashfield 
---
 meta/recipes-kernel/linux/linux-yocto_6.6.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-kernel/linux/linux-yocto_6.6.bb 
b/meta/recipes-kernel/linux/linux-yocto_6.6.bb
index 71bfbf9e032..4503ec94ae9 100644
--- a/meta/recipes-kernel/linux/linux-yocto_6.6.bb
+++ b/meta/recipes-kernel/linux/linux-yocto_6.6.bb
@@ -66,6 +66,7 @@ KERNEL_FEATURES:append:qemux86-64=" cfg/sound.scc 
cfg/paravirt_kvm.scc"
 KERNEL_FEATURES:append = " ${@bb.utils.contains("TUNE_FEATURES", "mx32", " 
cfg/x32.scc", "", d)}"
 KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", " 
features/scsi/scsi-debug.scc features/nf_tables/nft_test.scc", "", d)}"
 KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", " 
features/gpio/mockup.scc features/gpio/sim.scc", "", d)}"
+KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", " 
features/net/team/team.scc", "", d)}"
 KERNEL_FEATURES:append:powerpc =" arch/powerpc/powerpc-debug.scc"
 KERNEL_FEATURES:append:powerpc64 =" arch/powerpc/powerpc-debug.scc"
 KERNEL_FEATURES:append:powerpc64le =" arch/powerpc/powerpc-debug.scc"
-- 
2.45.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#199131): 
https://lists.openembedded.org/g/openembedded-core/message/199131
Mute This Topic: https://lists.openembedded.org/mt/105993917/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] gtk4: update 4.14.2 -> 4.14.4

2024-05-08 Thread Markus Volk
Overview of Changes in 4.14.4, 02-05-2024
=

* GtkGraphicsOffload:
 - Don't crash without a child

* Icontheme:
 - Make symbolic svg loading more efficient
 - Handle color-free symbolics more efficiently

* Accessibility:
 - Make the gtk-demo sidebar search more accessible
 - Stop emitting focus events

* GDK:
 - Support XDG_ACTIVATION_TOKEN
 - dmabuf: Be more defensive when importing unknown formats to G
 - dmabuf: Use narrow range for YUV

* GSK:
 - gpu: Handle  tiny offscreens correctl

* Build:
 - Fix many ubsan warning

* macOS
 - Fix problems with events handed back to the OS
 - Respect GDK_DEBUG=default-settings

* Translation updates:
 German
 Indonesian
 Kabyle
 Korean
 Lithuanian
 Russian

Overview of Changes in 4.14.3, 18-04-2024
=

* GtkShortcutManager:
 - Track the propagation phase of added controllers

* Accessibility:
 - Implement GtkAccessibleRange for scrollbars

* X11:
 - Fix some confusing debug messages
 - Drop a no-longer-relevant optimization that was interfering with
   getting the current window manager capabilities

* Tools:
 - Support generating pdf in gtk4-rendernode-tool

* Translation updates:
 Basque
 Brazilian Portuguese
 Georgian
 Hebrew
 Kabyle
 Persian
 Polish
 Slovenian
 Swedish
 Ukrainian

Signed-off-by: Markus Volk 
---
 meta/recipes-gnome/gtk+/{gtk4_4.14.2.bb => gtk4_4.14.4.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-gnome/gtk+/{gtk4_4.14.2.bb => gtk4_4.14.4.bb} (98%)

diff --git a/meta/recipes-gnome/gtk+/gtk4_4.14.2.bb 
b/meta/recipes-gnome/gtk+/gtk4_4.14.4.bb
similarity index 98%
rename from meta/recipes-gnome/gtk+/gtk4_4.14.2.bb
rename to meta/recipes-gnome/gtk+/gtk4_4.14.4.bb
index 39483357b4..cda0552f7c 100644
--- a/meta/recipes-gnome/gtk+/gtk4_4.14.2.bb
+++ b/meta/recipes-gnome/gtk+/gtk4_4.14.4.bb
@@ -37,7 +37,7 @@ MAJ_VER = "${@oe.utils.trim_version("${PV}", 2)}"
 UPSTREAM_CHECK_REGEX = "gtk-(?P\d+\.(\d*[02468])+(\.\d+)+)\.tar.xz"
 
 SRC_URI = 
"http://ftp.gnome.org/pub/gnome/sources/gtk/${MAJ_VER}/gtk-${PV}.tar.xz;
-SRC_URI[sha256sum] = 
"22604cef2898a79e5f2143bb7aee2b7d1fa2eb946989a9d1338ecf9c8ae0e072"
+SRC_URI[sha256sum] = 
"443518b97e8348f9f6430ac435b1010f9a6c5207f4dc6a7cd5d24e3820cee633"
 
 S = "${WORKDIR}/gtk-${PV}"
 
-- 
2.44.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#199130): 
https://lists.openembedded.org/g/openembedded-core/message/199130
Mute This Topic: https://lists.openembedded.org/mt/105987996/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: skip test_concurrent_futures/test_shutdown

2024-05-08 Thread Trevor Gamblin
These tests are causing hangs on the Autobuilder, so disable them for
now.

Signed-off-by: Trevor Gamblin 
---
 ...-test_shutdown-skip-problematic-test.patch | 46 +++
 .../recipes-devtools/python/python3_3.12.3.bb |  1 +
 2 files changed, 47 insertions(+)
 create mode 100644 
meta/recipes-devtools/python/python3/0001-test_shutdown-skip-problematic-test.patch

diff --git 
a/meta/recipes-devtools/python/python3/0001-test_shutdown-skip-problematic-test.patch
 
b/meta/recipes-devtools/python/python3/0001-test_shutdown-skip-problematic-test.patch
new file mode 100644
index 000..1d4cda18b16
--- /dev/null
+++ 
b/meta/recipes-devtools/python/python3/0001-test_shutdown-skip-problematic-test.patch
@@ -0,0 +1,46 @@
+From 9d4cdbde100798ba9fa1cf3f82dbaf18fd10a543 Mon Sep 17 00:00:00 2001
+From: Trevor Gamblin 
+Date: Wed, 8 May 2024 11:58:09 -0400
+Subject: [PATCH] test_shutdown: skip problematic test
+
+This test hangs frequently when run on the Autobuilder. Disable it in
+testing until the cause can be determined.
+
+Upstream-Status: Inappropriate [OE-Specific]
+
+Signed-off-by: Trevor Gamblin 
+---
+ Lib/test/test_concurrent_futures/test_shutdown.py | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/Lib/test/test_concurrent_futures/test_shutdown.py 
b/Lib/test/test_concurrent_futures/test_shutdown.py
+index 7a4065afd4..6b878a48bf 100644
+--- a/Lib/test/test_concurrent_futures/test_shutdown.py
 b/Lib/test/test_concurrent_futures/test_shutdown.py
+@@ -20,6 +20,7 @@ def sleep_and_print(t, msg):
+ sys.stdout.flush()
+ 
+ 
++@unittest.skip("skipping problematic test")
+ class ExecutorShutdownTest:
+ def test_run_after_shutdown(self):
+ self.executor.shutdown()
+@@ -156,6 +157,7 @@ def timeout(_signum, _frame):
+ signal.signal(signal.SIGALRM, old_handler)
+ 
+ 
++@unittest.skip("skipping problematic test")
+ class ThreadPoolShutdownTest(ThreadPoolMixin, ExecutorShutdownTest, 
BaseTestCase):
+ def test_threads_terminate(self):
+ def acquire_lock(lock):
+@@ -252,6 +254,7 @@ def test_cancel_futures_wait_false(self):
+ self.assertIn(out.strip(), [b"apple", b""])
+ 
+ 
++@unittest.skip("skipping problematic test")
+ class ProcessPoolShutdownTest(ExecutorShutdownTest):
+ def test_processes_terminate(self):
+ def acquire_lock(lock):
+-- 
+2.45.0
+
diff --git a/meta/recipes-devtools/python/python3_3.12.3.bb 
b/meta/recipes-devtools/python/python3_3.12.3.bb
index 04558a64634..93709b207ce 100644
--- a/meta/recipes-devtools/python/python3_3.12.3.bb
+++ b/meta/recipes-devtools/python/python3_3.12.3.bb
@@ -30,6 +30,7 @@ SRC_URI = 
"http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.xz \

file://0001-skip-no_stdout_fileno-test-due-to-load-variability.patch \
file://0001-test_storlines-skip-due-to-load-variability.patch \

file://0001-gh-114492-Initialize-struct-termios-before-calling-t.patch \
+   file://0001-test_shutdown-skip-problematic-test.patch \
"
 
 SRC_URI:append:class-native = " \
-- 
2.45.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#199129): 
https://lists.openembedded.org/g/openembedded-core/message/199129
Mute This Topic: https://lists.openembedded.org/mt/105985483/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] sanity.conf: Require bitbake 2.9.1

2024-05-08 Thread Richard Purdie
On Wed, 2024-05-08 at 10:14 -0600, Tom Rini wrote:
> On Wed, May 08, 2024 at 02:57:39PM +0100, Richard Purdie wrote:
> 
> > We need a recent siggen change in bitbake to allow SPDX to work
> > better.
> > 
> > Signed-off-by: Richard Purdie 
> > ---
> >  meta/conf/sanity.conf | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/meta/conf/sanity.conf b/meta/conf/sanity.conf
> > index d2f56a3fb00..02775970aee 100644
> > --- a/meta/conf/sanity.conf
> > +++ b/meta/conf/sanity.conf
> > @@ -3,7 +3,7 @@
> >  # See sanity.bbclass
> >  #
> >  # Expert users can confirm their sanity with "touch
> > conf/sanity.conf"
> > -BB_MIN_VERSION = "2.7.3"
> > +BB_MIN_VERSION = "2.9.1"
> >  
> >  SANITY_ABIFILE = "${TMPDIR}/abi_version"
> 
> Apologies if I've missed a policy change in the bitbake repository
> but there's no tag for 2.9.1. For that matter there also isn't for
> 2.7.3, and I only bring this up because tags do make it easier when
> coming back to older releases to get a correct bitbake version.

I've not been tagging things as I don't have the ability to make signed
tags :/. As you say, we've not done this for a while. Unsigned tags
would be easy enough but that would probably raise different questions.

I've mainly been using the versions to ensure OE-Core errors sanely if
it needs a specific bitbake version.

Cheers,

Richard





-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#199128): 
https://lists.openembedded.org/g/openembedded-core/message/199128
Mute This Topic: https://lists.openembedded.org/mt/105981202/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] [scarthgap] psplash no longer working

2024-05-08 Thread Khem Raj
On Wed, May 8, 2024 at 3:07 AM Mike Looijmans via
lists.openembedded.org
 wrote:
>
> I'm puzzled.
>
> Migrating from kirkstone to scarthgap, and psplash somehow broke.
>
> Systemd doesn't start is because "/usr/bin/psplash" is missing.
>
> Interestingly, the line that appears to be responsible for that is in
> the do_install:append
>
>rm -f ${D}${bindir}/psplash
>
> If I copy that file from ${B} to the board, psplash works again.
>
> But what really baffles me is that kirkstone already had that line in
> do_install:append but somehow /usr/bin/psplash still got created. And I
> cannot find the magic that puts it there...
>

maybe this commit [1] is bringing this to front

[1] 
https://git.yoctoproject.org/poky/commit/?id=1ba76de20bca63cec4ccaf04766dfd994a728c75

> --
> Mike Looijmans
> System Expert
>
> TOPIC Embedded Products B.V.
> Materiaalweg 4, 5681 RJ Best
> The Netherlands
>
> T: +31 (0) 499 33 69 69
> E: mike.looijm...@topic.nl
> W: www.topic.nl
>
>
>
>
> 
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#199127): 
https://lists.openembedded.org/g/openembedded-core/message/199127
Mute This Topic: https://lists.openembedded.org/mt/105978071/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] sanity.conf: Require bitbake 2.9.1

2024-05-08 Thread Tom Rini
On Wed, May 08, 2024 at 02:57:39PM +0100, Richard Purdie wrote:

> We need a recent siggen change in bitbake to allow SPDX to work
> better.
> 
> Signed-off-by: Richard Purdie 
> ---
>  meta/conf/sanity.conf | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/conf/sanity.conf b/meta/conf/sanity.conf
> index d2f56a3fb00..02775970aee 100644
> --- a/meta/conf/sanity.conf
> +++ b/meta/conf/sanity.conf
> @@ -3,7 +3,7 @@
>  # See sanity.bbclass
>  #
>  # Expert users can confirm their sanity with "touch conf/sanity.conf"
> -BB_MIN_VERSION = "2.7.3"
> +BB_MIN_VERSION = "2.9.1"
>  
>  SANITY_ABIFILE = "${TMPDIR}/abi_version"

Apologies if I've missed a policy change in the bitbake repository but
there's no tag for 2.9.1. For that matter there also isn't for 2.7.3,
and I only bring this up because tags do make it easier when coming back
to older releases to get a correct bitbake version.

-- 
Tom

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#199126): 
https://lists.openembedded.org/g/openembedded-core/message/199126
Mute This Topic: https://lists.openembedded.org/mt/105981202/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] libxcrypt-compat: Rename libcrypto.so.1 -> libcrypt.so.1

2024-05-08 Thread Jordan Crouse via lists.openembedded.org
The comment in libxcrypt-cmpat incorrectly mentions libcrypto instead of
libcrypt which could be misleading to the unsuspecting grep user.

Signed-off-by: Jordan Crouse 
---

 meta/recipes-core/libxcrypt/libxcrypt-compat_4.4.36.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/libxcrypt/libxcrypt-compat_4.4.36.bb 
b/meta/recipes-core/libxcrypt/libxcrypt-compat_4.4.36.bb
index d5546ce9ba..30ec6a4674 100644
--- a/meta/recipes-core/libxcrypt/libxcrypt-compat_4.4.36.bb
+++ b/meta/recipes-core/libxcrypt/libxcrypt-compat_4.4.36.bb
@@ -1,5 +1,5 @@
 #
-# This provides libcrypto.so.1 which contains obsolete APIs, needed for 
uninative in particular
+# This provides libcrypt.so.1 which contains obsolete APIs, needed for 
uninative in particular
 #
 
 require libxcrypt.inc
-- 
2.40.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#199124): 
https://lists.openembedded.org/g/openembedded-core/message/199124
Mute This Topic: https://lists.openembedded.org/mt/105982997/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] llvm: Switch to using release tarballs

2024-05-08 Thread Khem Raj
git checkouts are in excess of 3G, which is not
ideal for everyone to download/clone, instead switch to
fetching release tarball which is ~126M as of 18.1.5 release

Signed-off-by: Khem Raj 
---
 .../llvm/{llvm_git.bb => llvm_18.1.5.bb}| 13 ++---
 1 file changed, 6 insertions(+), 7 deletions(-)
 rename meta/recipes-devtools/llvm/{llvm_git.bb => llvm_18.1.5.bb} (93%)

diff --git a/meta/recipes-devtools/llvm/llvm_git.bb 
b/meta/recipes-devtools/llvm/llvm_18.1.5.bb
similarity index 93%
rename from meta/recipes-devtools/llvm/llvm_git.bb
rename to meta/recipes-devtools/llvm/llvm_18.1.5.bb
index 6413b041a8d..9c80b46b607 100644
--- a/meta/recipes-devtools/llvm/llvm_git.bb
+++ b/meta/recipes-devtools/llvm/llvm_18.1.5.bb
@@ -13,27 +13,26 @@ DEPENDS = "libffi libxml2 zlib zstd libedit ninja-native 
llvm-native"
 RDEPENDS:${PN}:append:class-target = " ncurses-terminfo"
 
 inherit cmake pkgconfig
-
 # could be 'rcX' or 'git' or empty ( for release )
 VER_SUFFIX = ""
 
-PV = "18.1.5${VER_SUFFIX}"
+PV .= "${VER_SUFFIX}"
 
 MAJOR_VERSION = "${@oe.utils.trim_version("${PV}", 1)}"
 
 LLVM_RELEASE = "${PV}"
 
-BRANCH = "release/${MAJOR_VERSION}.x"
-SRCREV = "617a15a9eac96088ae5e9134248d8236e34b91b1"
-SRC_URI = 
"git://github.com/llvm/llvm-project.git;branch=${BRANCH};protocol=https \
+SRC_URI = 
"https://github.com/llvm/llvm-project/releases/download/llvmorg-${PV}/llvm-project-${PV}.src.tar.xz
 \
file://0007-llvm-allow-env-override-of-exe-path.patch;striplevel=2 \

file://0001-AsmMatcherEmitter-sort-ClassInfo-lists-by-name-as-we.patch;striplevel=2
 \
file://llvm-config \
"
+SRC_URI[sha256sum] = 
"3591a52761a7d390ede51af01ea73abfecc4b1d16445f9d019b67a57edd7de56"
 
-UPSTREAM_CHECK_GITTAGREGEX = "llvmorg-(?P\d+(\.\d+)+)"
+UPSTREAM_CHECK_URI = "https://github.com/llvm/llvm-project;
+UPSTREAM_CHECK_REGEX = "llvmorg-(?P\d+(\.\d+)+)"
 
-S = "${WORKDIR}/git/llvm"
+S = "${WORKDIR}/llvm-project-${PV}.src/llvm"
 
 LLVM_INSTALL_DIR = "${WORKDIR}/llvm-install"
 
-- 
2.45.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#199123): 
https://lists.openembedded.org/g/openembedded-core/message/199123
Mute This Topic: https://lists.openembedded.org/mt/105982917/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] [PATCHv1] Fix building error with '-O2' in sysroot path

2024-05-08 Thread Ross Burton
Feels like we should both backport that _and_ pass —disable-O-flag-munging, as 
we control the compiler flags.

Ross

> On 8 May 2024, at 11:48, simit.ghane via lists.openembedded.org 
>  wrote:
> 
> Characters like '-O2' or '-Ofast' will be replaced by '-O1' and '-O0'
> respectively when compiling cipher and random in the filesystem
> paths as well if they happen to contain '-O2' or '-Ofast
> 
> If we are cross compiling libgcrypt and sysroot contains such
> characters, we would
> get compile errors because the sysroot path has been modified.
> 
> Fix this by adding blank spaces and tabs before the original matching
> pattern in the sed command.
> 
> Signed-off-by: simit.ghane 
> ---
> ...ilding-error-with-O2-in-sysroot-path.patch | 52 +--
> 1 file changed, 36 insertions(+), 16 deletions(-)
> 
> diff --git 
> a/meta/recipes-support/libgcrypt/files/0002-libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch
>  
> b/meta/recipes-support/libgcrypt/files/0002-libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch
> index cf9ebfb3e6..339bc9c563 100644
> --- 
> a/meta/recipes-support/libgcrypt/files/0002-libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch
> +++ 
> b/meta/recipes-support/libgcrypt/files/0002-libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch
> @@ -1,31 +1,38 @@
> -From 0f66e796a8522e1043dda03b88d5f6feae839d16 Mon Sep 17 00:00:00 2001
> -From: Chen Qi 
> -Date: Wed, 16 Aug 2017 10:44:41 +0800
> -Subject: [PATCH] libgcrypt: fix building error with '-O2' in sysroot path
> +From 7d9817ca935a35fe6c8e2c2c7615825fa08a3a19 Mon Sep 17 00:00:00 2001
> +From: "simit.ghane" 
> +Date: Tue, 7 May 2024 14:09:03 +0530
> +Subject: [PATCHV2] Fix building error with '-O2' in sysroot path
> 
> -Upstream-Status: Pending
> +Upstream-Status: Backport 
> [https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git;a=commit;h=7d9817ca935a35fe6c8e2c2c7615825fa08a3a19]
> +
> +* cipher/Makefile.am (o_flag_munging): Tweak the sed script.
> +* random/Makefile.am (o_flag_munging): Ditto.
> +--
> +
> +Characters like '-O2' or '-Ofast' will be replaced by '-O1' and '-O0'
> +respectively when compiling cipher and random in the filesystem
> +paths as well if they happen to contain '-O2' or '-Ofast
> 
> -Characters like '-O2' or '-Ofast' will be replaced by '-O1' when
> -compiling cipher.
> If we are cross compiling libgcrypt and sysroot contains such
> characters, we would
> get compile errors because the sysroot path has been modified.
> 
> -Fix this by adding blank spaces before and after the original matching
> -pattern in the
> -sed command.
> +Fix this by adding blank spaces and tabs before the original matching
> +pattern in the sed command.
> 
> -Signed-off-by: Chen Qi 
> +Signed-off-by: simit.ghane 
> 
> -Rebase to 1.8.0
> -Signed-off-by: Hongxu Jia 
> +ChangeLog entries added by wk
> 
> +Note that there is also the configure option --disable-O-flag-munging;
> +see the README.
> ---
>  cipher/Makefile.am | 2 +-
> - 1 file changed, 1 insertion(+), 1 deletion(-)
> + random/Makefile.am | 2 +-
> + 2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/cipher/Makefile.am b/cipher/Makefile.am
> -index c3d642b..88c883a 100644
> +index c3d642b2ac..f1c3971c40 100644
> --- a/cipher/Makefile.am
> +++ b/cipher/Makefile.am
> @@ -153,7 +153,7 @@ gost-s-box: gost-s-box.c
> @@ -33,7 +40,20 @@ index c3d642b..88c883a 100644
> 
>  if ENABLE_O_FLAG_MUNGING
> -o_flag_munging = sed -e 's/-O\([2-9sgz][2-9sgz]*\)/-O1/' -e 's/-Ofast/-O1/g'
> -+o_flag_munging = sed -e 's/ -O\([2-9sgz][2-9sgz]*\) / -O1 /' -e 's/ -Ofast 
> / -O1 /g'
> ++o_flag_munging = sed -e 's/[[:blank:]]-O\([2-9sgz][2-9sgz]*\)/ -O1 /' -e 
> 's/[[:blank:]]-Ofast/ -O1 /g'
> + else
> + o_flag_munging = cat
> + endif
> +diff --git a/random/Makefile.am b/random/Makefile.am
> +index 0c935a0595..340df38a79 100644
> +--- a/random/Makefile.am
>  b/random/Makefile.am
> +@@ -56,7 +56,7 @@ jitterentropy-base.c jitterentropy.h 
> jitterentropy-base-user.h
> + 
> + # The rndjent module needs to be compiled without optimization.  */
> + if ENABLE_O_FLAG_MUNGING
> +-o_flag_munging = sed -e 's/-O\([1-9sgz][1-9sgz]*\)/-O0/g' -e 
> 's/-Ofast/-O0/g'
> ++o_flag_munging = sed -e 's/[[:blank:]]-O\([2-9sgz][2-9sgz]*\)/ -O0 /' -e 
> 's/[[:blank:]]-Ofast/ -O0 /g'
>  else
>  o_flag_munging = cat
>  endif
> 
> 
> 


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#199122): 
https://lists.openembedded.org/g/openembedded-core/message/199122
Mute This Topic: https://lists.openembedded.org/mt/105978437/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] sanity.conf: Require bitbake 2.9.1

2024-05-08 Thread Richard Purdie
We need a recent siggen change in bitbake to allow SPDX to work
better.

Signed-off-by: Richard Purdie 
---
 meta/conf/sanity.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/conf/sanity.conf b/meta/conf/sanity.conf
index d2f56a3fb00..02775970aee 100644
--- a/meta/conf/sanity.conf
+++ b/meta/conf/sanity.conf
@@ -3,7 +3,7 @@
 # See sanity.bbclass
 #
 # Expert users can confirm their sanity with "touch conf/sanity.conf"
-BB_MIN_VERSION = "2.7.3"
+BB_MIN_VERSION = "2.9.1"
 
 SANITY_ABIFILE = "${TMPDIR}/abi_version"
 
-- 
2.40.1


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



[oe-core][kirkstone][PATCH 2/2] xserver-xorg: fix CVE-2024-31083

2024-05-08 Thread Polampalli, Archana via lists.openembedded.org
From: Archana Polampalli 

FreeGlyph() function declared in render/glyphstr_priv.h, it is not present in
current recipe version and introduced in later versions, added this change to
render/glyphstr.h

Signed-off-by: Archana Polampalli 
---
 .../xserver-xorg/CVE-2024-31083-0001.patch| 117 ++
 .../xserver-xorg/CVE-2024-31083-0002.patch|  76 
 .../xorg-xserver/xserver-xorg_21.1.8.bb   |   2 +
 3 files changed, 195 insertions(+)
 create mode 100644 
meta/recipes-graphics/xorg-xserver/xserver-xorg/CVE-2024-31083-0001.patch
 create mode 100644 
meta/recipes-graphics/xorg-xserver/xserver-xorg/CVE-2024-31083-0002.patch

diff --git 
a/meta/recipes-graphics/xorg-xserver/xserver-xorg/CVE-2024-31083-0001.patch 
b/meta/recipes-graphics/xorg-xserver/xserver-xorg/CVE-2024-31083-0001.patch
new file mode 100644
index 00..1ef9d933ae
--- /dev/null
+++ b/meta/recipes-graphics/xorg-xserver/xserver-xorg/CVE-2024-31083-0001.patch
@@ -0,0 +1,117 @@
+From bdca6c3d1f5057eeb31609b1280fc93237b00c77 Mon Sep 17 00:00:00 2001
+From: Peter Hutterer 
+Date: Tue, 30 Jan 2024 13:13:35 +1000
+Subject: [PATCH] render: fix refcounting of glyphs during ProcRenderAddGlyphs
+
+Previously, AllocateGlyph would return a new glyph with refcount=0 and a
+re-used glyph would end up not changing the refcount at all. The
+resulting glyph_new array would thus have multiple entries pointing to
+the same non-refcounted glyphs.
+
+AddGlyph may free a glyph, resulting in a UAF when the same glyph
+pointer is then later used.
+
+Fix this by returning a refcount of 1 for a new glyph and always
+incrementing the refcount for a re-used glyph, followed by dropping that
+refcount back down again when we're done with it.
+
+CVE-2024-31083, ZDI-CAN-22880
+
+This vulnerability was discovered by:
+Jan-Niklas Sohn working with Trend Micro Zero Day Initiative
+
+Part-of: 
+
+CVE: CVE-2024-31083
+
+Upstream-Status: Backport 
[https://gitlab.freedesktop.org/xorg/xserver/-/commit/bdca6c3d1f5057ee]
+
+Signed-off-by: Archana Polampalli 
+---
+ render/glyph.c|  5 +++--
+ render/glyphstr.h |  2 ++
+ render/render.c   | 15 +++
+ 3 files changed, 16 insertions(+), 6 deletions(-)
+
+diff --git a/render/glyph.c b/render/glyph.c
+index f3ed9cf..d5fc5f3 100644
+--- a/render/glyph.c
 b/render/glyph.c
+@@ -245,10 +245,11 @@ FreeGlyphPicture(GlyphPtr glyph)
+ }
+ }
+
+-static void
++void
+ FreeGlyph(GlyphPtr glyph, int format)
+ {
+ CheckDuplicates([format], "FreeGlyph");
++BUG_RETURN(glyph->refcnt == 0);
+ if (--glyph->refcnt == 0) {
+ GlyphRefPtr gr;
+ int i;
+@@ -354,7 +355,7 @@ AllocateGlyph(xGlyphInfo * gi, int fdepth)
+ glyph = (GlyphPtr) malloc(size);
+ if (!glyph)
+ return 0;
+-glyph->refcnt = 0;
++glyph->refcnt = 1;
+ glyph->size = size + sizeof(xGlyphInfo);
+ glyph->info = *gi;
+ dixInitPrivates(glyph, (char *) glyph + head_size, PRIVATE_GLYPH);
+diff --git a/render/glyphstr.h b/render/glyphstr.h
+index 2f51bd2..68f8c9e 100644
+--- a/render/glyphstr.h
 b/render/glyphstr.h
+@@ -117,6 +117,8 @@ extern GlyphSetPtr AllocateGlyphSet(int fdepth, 
PictFormatPtr format);
+ extern int
+  FreeGlyphSet(void *value, XID gid);
+
++void FreeGlyph(GlyphPtr glyph, int format);
++
+ #define GLYPH_HAS_GLYPH_PICTURE_ACCESSOR 1 /* used for api compat */
+ extern _X_EXPORT PicturePtr
+  GetGlyphPicture(GlyphPtr glyph, ScreenPtr pScreen);
+diff --git a/render/render.c b/render/render.c
+index 456f156..5bc2a20 100644
+--- a/render/render.c
 b/render/render.c
+@@ -1076,6 +1076,7 @@ ProcRenderAddGlyphs(ClientPtr client)
+
+ if (glyph_new->glyph && glyph_new->glyph != DeletedGlyph) {
+ glyph_new->found = TRUE;
++++glyph_new->glyph->refcnt;
+ }
+ else {
+ GlyphPtr glyph;
+@@ -1168,8 +1169,10 @@ ProcRenderAddGlyphs(ClientPtr client)
+ err = BadAlloc;
+ goto bail;
+ }
+-for (i = 0; i < nglyphs; i++)
++for (i = 0; i < nglyphs; i++) {
+ AddGlyph(glyphSet, glyphs[i].glyph, glyphs[i].id);
++FreeGlyph(glyphs[i].glyph, glyphSet->fdepth);
++}
+
+ if (glyphsBase != glyphsLocal)
+ free(glyphsBase);
+@@ -1179,9 +1182,13 @@ ProcRenderAddGlyphs(ClientPtr client)
+ FreePicture((void *) pSrc, 0);
+ if (pSrcPix)
+ FreeScratchPixmapHeader(pSrcPix);
+-for (i = 0; i < nglyphs; i++)
+-if (glyphs[i].glyph && !glyphs[i].found)
+-free(glyphs[i].glyph);
++for (i = 0; i < nglyphs; i++) {
++if (glyphs[i].glyph) {
++--glyphs[i].glyph->refcnt;
++if (!glyphs[i].found)
++free(glyphs[i].glyph);
++}
++}
+ if (glyphsBase != glyphsLocal)
+ free(glyphsBase);
+ return err;
+--
+2.40.0
diff --git 
a/meta/recipes-graphics/xorg-xserver/xserver-xorg/CVE-2024-31083-0002.patch 

[oe-core][kirkstone][PATCH 1/2] xserver-xorg: fix CVE-2024-31082

2024-05-08 Thread Polampalli, Archana via lists.openembedded.org
From: Archana Polampalli 

Signed-off-by: Archana Polampalli 
---
 .../xserver-xorg/CVE-2024-31082.patch | 52 +++
 .../xorg-xserver/xserver-xorg_21.1.8.bb   |  1 +
 2 files changed, 53 insertions(+)
 create mode 100644 
meta/recipes-graphics/xorg-xserver/xserver-xorg/CVE-2024-31082.patch

diff --git 
a/meta/recipes-graphics/xorg-xserver/xserver-xorg/CVE-2024-31082.patch 
b/meta/recipes-graphics/xorg-xserver/xserver-xorg/CVE-2024-31082.patch
new file mode 100644
index 00..81d76977bb
--- /dev/null
+++ b/meta/recipes-graphics/xorg-xserver/xserver-xorg/CVE-2024-31082.patch
@@ -0,0 +1,52 @@
+From 6c684d035c06fd41c727f0ef0744517580864cef Mon Sep 17 00:00:00 2001
+From: Alan Coopersmith 
+Date: Fri, 22 Mar 2024 19:07:34 -0700
+Subject: [PATCH] Xquartz: ProcAppleDRICreatePixmap needs to use unswapped
+ length to send reply
+
+CVE-2024-31082
+
+Fixes: 14205ade0 ("XQuartz: appledri: Fix byte swapping in replies")
+Signed-off-by: Alan Coopersmith 
+Part-of: 
+
+CVE: CVE-2024-31082
+
+Upstream-Status: Backport 
[https://gitlab.freedesktop.org/xorg/xserver/-/commit/6c684d035c06fd4]
+
+Signed-off-by: Archana Polampalli 
+---
+ hw/xquartz/xpr/appledri.c | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/hw/xquartz/xpr/appledri.c b/hw/xquartz/xpr/appledri.c
+index 7757465..40422b6 100644
+--- a/hw/xquartz/xpr/appledri.c
 b/hw/xquartz/xpr/appledri.c
+@@ -272,6 +272,7 @@ ProcAppleDRICreatePixmap(ClientPtr client)
+ xAppleDRICreatePixmapReply rep;
+ int width, height, pitch, bpp;
+ void *ptr;
++CARD32 stringLength;
+
+ REQUEST_SIZE_MATCH(xAppleDRICreatePixmapReq);
+
+@@ -307,6 +308,7 @@ ProcAppleDRICreatePixmap(ClientPtr client)
+ if (sizeof(rep) != sz_xAppleDRICreatePixmapReply)
+ ErrorF("error sizeof(rep) is %zu\n", sizeof(rep));
+
++stringLength = rep.stringLength;  /* save unswapped value */
+ if (client->swapped) {
+ swaps();
+ swapl();
+@@ -319,7 +321,7 @@ ProcAppleDRICreatePixmap(ClientPtr client)
+ }
+
+ WriteToClient(client, sizeof(rep), );
+-WriteToClient(client, rep.stringLength, path);
++WriteToClient(client, stringLength, path);
+
+ return Success;
+ }
+--
+2.40.0
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xorg_21.1.8.bb 
b/meta/recipes-graphics/xorg-xserver/xserver-xorg_21.1.8.bb
index b9eed92103..0a8cb7d81a 100644
--- a/meta/recipes-graphics/xorg-xserver/xserver-xorg_21.1.8.bb
+++ b/meta/recipes-graphics/xorg-xserver/xserver-xorg_21.1.8.bb
@@ -18,6 +18,7 @@ SRC_URI += 
"file://0001-xf86pciBus.c-use-Intel-ddx-only-for-pre-gen4-hardwar.pat
file://CVE-2024-0409.patch \
file://CVE-2024-31080.patch \
file://CVE-2024-31081.patch \
+   file://CVE-2024-31082.patch \
"
 SRC_URI[sha256sum] = 
"38aadb735650c8024ee25211c190bf8aad844c5f59632761ab1ef4c4d5aeb152"
 
-- 
2.40.0


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



[oe-core][master][scarthgap][PATCH 1/1] xserver-xorg: upgrade 21.1.11 -> 21.1.12

2024-05-08 Thread Polampalli, Archana via lists.openembedded.org
From: Archana Polampalli 

This release contains security fixes for

* CVE-2024-31080
* CVE-2024-31081
* CVE-2024-31082
* CVE-2024-31083

Changelog:
===
101caa1b0 (tag: xorg-server-21.1.12) xserver 21.1.12
117315640 render: fix refcounting of glyphs during ProcRenderAddGlyphs
0e34d8ebc Xquartz: ProcAppleDRICreatePixmap needs to use unswapped length to 
send reply
cea92ca78 Xi: ProcXIPassiveGrabDevice needs to use unswapped length to send 
reply
8a7cd0e3e Xi: ProcXIGetSelectedEvents needs to use unswapped length to send 
reply
5ca3a9513 Xext: SProcSyncCreateFence needs to swap drawable id too
5d7272f05 Allow disabling byte-swapped clients
8a46a463f Initialize Mode->name in xf86CVTMode()
f653d9a0a hw/xfree86: fix NULL pointer refrence to mode name
8b75ec34d dix: Fix use after free in input device shutdown

https://lists.x.org/archives/xorg-announce/2024-April/003497.html

Signed-off-by: Archana Polampalli 
---
 .../{xserver-xorg_21.1.11.bb => xserver-xorg_21.1.12.bb}| 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-graphics/xorg-xserver/{xserver-xorg_21.1.11.bb => 
xserver-xorg_21.1.12.bb} (92%)

diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xorg_21.1.11.bb 
b/meta/recipes-graphics/xorg-xserver/xserver-xorg_21.1.12.bb
similarity index 92%
rename from meta/recipes-graphics/xorg-xserver/xserver-xorg_21.1.11.bb
rename to meta/recipes-graphics/xorg-xserver/xserver-xorg_21.1.12.bb
index 6506d775ca..570e08d5ae 100644
--- a/meta/recipes-graphics/xorg-xserver/xserver-xorg_21.1.11.bb
+++ b/meta/recipes-graphics/xorg-xserver/xserver-xorg_21.1.12.bb
@@ -3,7 +3,7 @@ require xserver-xorg.inc
 SRC_URI += 
"file://0001-xf86pciBus.c-use-Intel-ddx-only-for-pre-gen4-hardwar.patch \
file://0001-Avoid-duplicate-definitions-of-IOPortBase.patch \
"
-SRC_URI[sha256sum] = 
"1d3dadbd57fb86b16a018e9f5f957aeeadf744f56c0553f55737628d06d326ef"
+SRC_URI[sha256sum] = 
"1e016e2be1b5ccdd65eac3ea08e54bd13ce8f4f6c3fb32ad6fdac4e71729a90f"
 
 # These extensions are now integrated into the server, so declare the migration
 # path for in-place upgrades.
-- 
2.40.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#199118): 
https://lists.openembedded.org/g/openembedded-core/message/199118
Mute This Topic: https://lists.openembedded.org/mt/105979530/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] kernel-fitImage: use IMAGE_NAME_SUFFIX

2024-05-08 Thread Rouven Czerwinski
Hi,

please disregard this patch. Apparently the convention is for initramfs
images to set IMAGE_NAME_SUFFIX ?= "", which lets kernel-
fitimage.bbclass work as expected.

Best regards,
Rouven

On Tue, 2024-04-30 at 12:24 +0200, Rouven Czerwinski wrote:
> Without taking IMAGE_NAME_SUFFIX into account, the kernel-fitimage
> class
> will always fail to find the initramfs, fix the search path and error
> message to include IMAGE_NAME_SUFFIX.
> 
> Signed-off-by: Rouven Czerwinski 
> ---
>  meta/classes-recipe/kernel-fitimage.bbclass | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/meta/classes-recipe/kernel-fitimage.bbclass
> b/meta/classes-recipe/kernel-fitimage.bbclass
> index 4b74ddc201..e0a26d26b9 100644
> --- a/meta/classes-recipe/kernel-fitimage.bbclass
> +++ b/meta/classes-recipe/kernel-fitimage.bbclass
> @@ -683,7 +683,7 @@ fitimage_assemble() {
>   # Find and use the first initramfs image archive
> type we find
>   found=
>   for img in ${FIT_SUPPORTED_INITRAMFS_FSTYPES}; do
> -
>   
> initramfs_path="${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE_NAME}.$img"
> + initramfs_path="${DEPLOY_DIR_IMAGE}/${INITRA
> MFS_IMAGE_NAME}${IMAGE_NAME_SUFFIX}.$img"
>   if [ -e "$initramfs_path" ]; then
>   bbnote "Found initramfs image:
> $initramfs_path"
>   found=true
> @@ -695,7 +695,7 @@ fitimage_assemble() {
>   done
>  
>   if [ -z "$found" ]; then
> - bbfatal "Could not find a valid initramfs
> type for ${INITRAMFS_IMAGE_NAME}, the supported types are:
> ${FIT_SUPPORTED_INITRAMFS_FSTYPES}"
> + bbfatal "Could not find a valid initramfs
> type for ${INITRAMFS_IMAGE_NAME}${IMAGE_NAME_SUFFIX}, the supported
> types are: ${FIT_SUPPORTED_INITRAMFS_FSTYPES}"
>   fi
>   fi
>  
> 
> base-commit: 7ef767d84d56b25498e45db83bb8f9d9caebeaf9
> 
> 
> 


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



[OE-core][scarthgap][PATCH] glib-2.0: Upgrade 2.78.4 -> 2.78.5

2024-05-08 Thread Peter Marko via lists.openembedded.org
From: Peter Marko 

Handle CVE-2024-34397

Remove backported patch included in this release.

News 
(https://gitlab.gnome.org/GNOME/glib/-/commit/d18807b5ffc6dedc2db5225b044063f65720bf56):
Overview of changes in GLib 2.78.5, 2024-05-07
==
* Fix CVE-2024-34397: GDBus signal subscriptions for well-known names are
  vulnerable to unicast spoofing (#3268, work by Simon McVittie, reported by
  Alicia Boya García)
* Bugs fixed:
  - #3168 gvfs-udisks2-volume-monitor SIGSEGV in g_content_type_guess_for_tree()
due to filename with bad encoding (Ondrej Holy)
  - #3268 CVE-2024-34397: GDBus signal subscriptions for well-known names are
vulnerable to unicast spoofing (Simon McVittie)
  - !3825 glib-2-78: ci: Drop FreeBSD 12 CI runner as it’s EOL
  - !3960 gcontenttype: Make filename valid utf-8 string before processing
  - !4040 Backport !4038 “gdbusconnection: Don't deliver signals if the sender
doesn't match” to glib-2-78
  - !4043 CI: Ignore MSYS2 CI failures for this older stable-branch
* Translation updates:
  - English (United Kingdom) (Andi Chandler)
  - Georgian (Ekaterine Papava)
  - Portuguese (Brazil) (Juliano de Souza Camargo)

Signed-off-by: Peter Marko 
---
 .../glib-2.0/glib-2.0/fix-regex.patch | 54 ---
 ...{glib-2.0_2.78.4.bb => glib-2.0_2.78.5.bb} |  3 +-
 2 files changed, 1 insertion(+), 56 deletions(-)
 delete mode 100644 meta/recipes-core/glib-2.0/glib-2.0/fix-regex.patch
 rename meta/recipes-core/glib-2.0/{glib-2.0_2.78.4.bb => glib-2.0_2.78.5.bb} 
(95%)

diff --git a/meta/recipes-core/glib-2.0/glib-2.0/fix-regex.patch 
b/meta/recipes-core/glib-2.0/glib-2.0/fix-regex.patch
deleted file mode 100644
index bdfbd55899..00
--- a/meta/recipes-core/glib-2.0/glib-2.0/fix-regex.patch
+++ /dev/null
@@ -1,54 +0,0 @@
-From cce3ae98a2c1966719daabff5a4ec6cf94a846f6 Mon Sep 17 00:00:00 2001
-From: Philip Withnall 
-Date: Mon, 26 Feb 2024 16:55:44 +
-Subject: [PATCH] tests: Remove variable-length lookbehind tests for GRegex
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-PCRE2 10.43 has now introduced support for variable-length lookbehind,
-so these tests now fail if GLib is built against PCRE2 10.43 or higher.
-
-See
-https://github.com/PCRE2Project/pcre2/blob/e8db6fa7137f4c6f66cb87e0a3c9467252ec1ef7/ChangeLog#L94.
-
-Rather than making the tests conditional on the version of PCRE2 in use,
-just remove them. They are mostly testing the PCRE2 code rather than
-any code in GLib, so don’t have much value.
-
-This should fix CI runs on msys2-mingw32, which updated to PCRE2 10.43 2
-days ago.
-
-Signed-off-by: Philip Withnall 
-
-Upstream-Status: Backport 
[https://gitlab.gnome.org/GNOME/glib/-/commit/cce3ae98a2c1966719daabff5a4ec6cf94a846f6]
-Signed-off-by: Alexander Kanavin 

- glib/tests/regex.c | 10 --
- 1 file changed, 10 deletions(-)
-
-diff --git a/glib/tests/regex.c b/glib/tests/regex.c
-index 1082526292..d7a698ec67 100644
 a/glib/tests/regex.c
-+++ b/glib/tests/regex.c
-@@ -1885,16 +1885,6 @@ test_lookbehind (void)
-   g_match_info_free (match);
-   g_regex_unref (regex);
- 
--  regex = g_regex_new ("(?
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#199116): 
https://lists.openembedded.org/g/openembedded-core/message/199116
Mute This Topic: https://lists.openembedded.org/mt/105979059/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] [scarthgap] psplash no longer working

2024-05-08 Thread Mike Looijmans

Ah found it, something symlinks it later on.
Setting "outsuffix=default" in the URI fixed it. For some reason the old 
outsuffix didn't get installed.



On 08-05-2024 12:07, Mike Looijmans via lists.openembedded.org wrote:

I'm puzzled.

Migrating from kirkstone to scarthgap, and psplash somehow broke.

Systemd doesn't start is because "/usr/bin/psplash" is missing.

Interestingly, the line that appears to be responsible for that is in 
the do_install:append


  rm -f ${D}${bindir}/psplash

If I copy that file from ${B} to the board, psplash works again.

But what really baffles me is that kirkstone already had that line in 
do_install:append but somehow /usr/bin/psplash still got created. And 
I cannot find the magic that puts it there...



--
Mike Looijmans
System Expert

TOPIC Embedded Products B.V.
Materiaalweg 4, 5681 RJ Best
The Netherlands

T: +31 (0) 499 33 69 69
E: mike.looijm...@topic.nl
W: www.topic.nl




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



[OE-core] [PATCHv1] Fix building error with '-O2' in sysroot path

2024-05-08 Thread simit.ghane
Characters like '-O2' or '-Ofast' will be replaced by '-O1' and '-O0'
respectively when compiling cipher and random in the filesystem
paths as well if they happen to contain '-O2' or '-Ofast

If we are cross compiling libgcrypt and sysroot contains such
characters, we would
get compile errors because the sysroot path has been modified.

Fix this by adding blank spaces and tabs before the original matching
pattern in the sed command.

Signed-off-by: simit.ghane 
---
 ...ilding-error-with-O2-in-sysroot-path.patch | 52 +--
 1 file changed, 36 insertions(+), 16 deletions(-)

diff --git 
a/meta/recipes-support/libgcrypt/files/0002-libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch
 
b/meta/recipes-support/libgcrypt/files/0002-libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch
index cf9ebfb3e6..339bc9c563 100644
--- 
a/meta/recipes-support/libgcrypt/files/0002-libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch
+++ 
b/meta/recipes-support/libgcrypt/files/0002-libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch
@@ -1,31 +1,38 @@
-From 0f66e796a8522e1043dda03b88d5f6feae839d16 Mon Sep 17 00:00:00 2001
-From: Chen Qi 
-Date: Wed, 16 Aug 2017 10:44:41 +0800
-Subject: [PATCH] libgcrypt: fix building error with '-O2' in sysroot path
+From 7d9817ca935a35fe6c8e2c2c7615825fa08a3a19 Mon Sep 17 00:00:00 2001
+From: "simit.ghane" 
+Date: Tue, 7 May 2024 14:09:03 +0530
+Subject: [PATCHV2] Fix building error with '-O2' in sysroot path
 
-Upstream-Status: Pending
+Upstream-Status: Backport 
[https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git;a=commit;h=7d9817ca935a35fe6c8e2c2c7615825fa08a3a19]
+
+* cipher/Makefile.am (o_flag_munging): Tweak the sed script.
+* random/Makefile.am (o_flag_munging): Ditto.
+--
+
+Characters like '-O2' or '-Ofast' will be replaced by '-O1' and '-O0'
+respectively when compiling cipher and random in the filesystem
+paths as well if they happen to contain '-O2' or '-Ofast
 
-Characters like '-O2' or '-Ofast' will be replaced by '-O1' when
-compiling cipher.
 If we are cross compiling libgcrypt and sysroot contains such
 characters, we would
 get compile errors because the sysroot path has been modified.
 
-Fix this by adding blank spaces before and after the original matching
-pattern in the
-sed command.
+Fix this by adding blank spaces and tabs before the original matching
+pattern in the sed command.
 
-Signed-off-by: Chen Qi 
+Signed-off-by: simit.ghane 
 
-Rebase to 1.8.0
-Signed-off-by: Hongxu Jia 
+ChangeLog entries added by wk
 
+Note that there is also the configure option --disable-O-flag-munging;
+see the README.
 ---
  cipher/Makefile.am | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
+ random/Makefile.am | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
 
 diff --git a/cipher/Makefile.am b/cipher/Makefile.am
-index c3d642b..88c883a 100644
+index c3d642b2ac..f1c3971c40 100644
 --- a/cipher/Makefile.am
 +++ b/cipher/Makefile.am
 @@ -153,7 +153,7 @@ gost-s-box: gost-s-box.c
@@ -33,7 +40,20 @@ index c3d642b..88c883a 100644
  
  if ENABLE_O_FLAG_MUNGING
 -o_flag_munging = sed -e 's/-O\([2-9sgz][2-9sgz]*\)/-O1/' -e 's/-Ofast/-O1/g'
-+o_flag_munging = sed -e 's/ -O\([2-9sgz][2-9sgz]*\) / -O1 /' -e 's/ -Ofast / 
-O1 /g'
++o_flag_munging = sed -e 's/[[:blank:]]-O\([2-9sgz][2-9sgz]*\)/ -O1 /' -e 
's/[[:blank:]]-Ofast/ -O1 /g'
+ else
+ o_flag_munging = cat
+ endif
+diff --git a/random/Makefile.am b/random/Makefile.am
+index 0c935a0595..340df38a79 100644
+--- a/random/Makefile.am
 b/random/Makefile.am
+@@ -56,7 +56,7 @@ jitterentropy-base.c jitterentropy.h 
jitterentropy-base-user.h
+ 
+ # The rndjent module needs to be compiled without optimization.  */
+ if ENABLE_O_FLAG_MUNGING
+-o_flag_munging = sed -e 's/-O\([1-9sgz][1-9sgz]*\)/-O0/g' -e 's/-Ofast/-O0/g'
++o_flag_munging = sed -e 's/[[:blank:]]-O\([2-9sgz][2-9sgz]*\)/ -O0 /' -e 
's/[[:blank:]]-Ofast/ -O0 /g'
  else
  o_flag_munging = cat
  endif

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



[OE-core] [scarthgap] psplash no longer working

2024-05-08 Thread Mike Looijmans

I'm puzzled.

Migrating from kirkstone to scarthgap, and psplash somehow broke.

Systemd doesn't start is because "/usr/bin/psplash" is missing.

Interestingly, the line that appears to be responsible for that is in 
the do_install:append


  rm -f ${D}${bindir}/psplash

If I copy that file from ${B} to the board, psplash works again.

But what really baffles me is that kirkstone already had that line in 
do_install:append but somehow /usr/bin/psplash still got created. And I 
cannot find the magic that puts it there...


--
Mike Looijmans
System Expert

TOPIC Embedded Products B.V.
Materiaalweg 4, 5681 RJ Best
The Netherlands

T: +31 (0) 499 33 69 69
E: mike.looijm...@topic.nl
W: www.topic.nl




-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#199113): 
https://lists.openembedded.org/g/openembedded-core/message/199113
Mute This Topic: https://lists.openembedded.org/mt/105978071/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] oeqa/selftest/devtool: Fix for usrmerge in DISTRO_FEATURES

2024-05-08 Thread Richard Purdie
On Tue, 2024-05-07 at 15:50 -0700, Khem Raj wrote:
> 
> 
> On Tue, May 7, 2024 at 3:47 PM Richard Purdie via
> lists.openembedded.org
>  wrote:
> > If usrmerge is in DISTRO_FEATURES, assumptions in one of the tests
> > would
> > fail. Improve the test so it works in both cases.
> > 
> > Signed-off-by: Richard Purdie 
> > ---
> >  meta/lib/oeqa/selftest/cases/devtool.py | 2 ++
> >  1 file changed, 2 insertions(+)
> > 
> > diff --git a/meta/lib/oeqa/selftest/cases/devtool.py
> > b/meta/lib/oeqa/selftest/cases/devtool.py
> > index c8f9534e416..882225dde34 100644
> > --- a/meta/lib/oeqa/selftest/cases/devtool.py
> > +++ b/meta/lib/oeqa/selftest/cases/devtool.py
> > @@ -1773,6 +1773,8 @@ class DevtoolExtractTests(DevtoolBase):
> >          # Definitions
> >          testrecipe = 'mdadm'
> >          testfile = '/sbin/mdadm'
> > +        if "usrmerge" in get_bb_var('DISTRO_FEATURES'):
> > +            testfile = '/usr/sbin/mdadm'
> >          testimage = 'oe-selftest-image'
> >          testcommand = '/sbin/mdadm --help'
> > 
> 
> 
> Won’t this line also need to be covered as well ?
> I wonder if these paths need to be absolute or can they be searched
> in standard paths 
> 

Good question. I checked and it works due to the symlink present but it
would probably look better if that is tweaked as well.

Cheers,

Richard

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