[OE-core] [kirkstone][PATCHv2] libtiff: fix CVE-2023-26966 Buffer Overflow

2023-07-27 Thread Hitendra Prajapati
Upstream-Status: Backport from 
https://gitlab.com/libtiff/libtiff/-/commit/b0e1c25dd1d065200c8d8f59ad0afe014861a1b9

Signed-off-by: Hitendra Prajapati 
---
 .../libtiff/tiff/CVE-2023-26966.patch | 35 +++
 meta/recipes-multimedia/libtiff/tiff_4.3.0.bb |  1 +
 2 files changed, 36 insertions(+)
 create mode 100644 meta/recipes-multimedia/libtiff/tiff/CVE-2023-26966.patch

diff --git a/meta/recipes-multimedia/libtiff/tiff/CVE-2023-26966.patch 
b/meta/recipes-multimedia/libtiff/tiff/CVE-2023-26966.patch
new file mode 100644
index 00..85764304f9
--- /dev/null
+++ b/meta/recipes-multimedia/libtiff/tiff/CVE-2023-26966.patch
@@ -0,0 +1,35 @@
+From b0e1c25dd1d065200c8d8f59ad0afe014861a1b9 Mon Sep 17 00:00:00 2001
+From: Su_Laus 
+Date: Thu, 16 Feb 2023 12:03:16 +0100
+Subject: [PATCH] tif_luv: Check and correct for NaN data in uv_encode().
+
+Closes #530
+
+Upstream-Status: Backport 
[https://gitlab.com/libtiff/libtiff/-/commit/b0e1c25dd1d065200c8d8f59ad0afe014861a1b9]
+CVE: CVE-2023-26966
+Signed-off-by: Hitendra Prajapati 
+---
+ libtiff/tif_luv.c | 7 +++
+ 1 file changed, 7 insertions(+)
+
+diff --git a/libtiff/tif_luv.c b/libtiff/tif_luv.c
+index 13765ea..40b2719 100644
+--- a/libtiff/tif_luv.c
 b/libtiff/tif_luv.c
+@@ -908,6 +908,13 @@ uv_encode(double u, double v, int em) /* encode 
(u',v') coordinates */
+ {
+   register intvi, ui;
+ 
++  /* check for NaN */
++  if (u != u || v != v)
++  {
++  u = U_NEU;
++  v = V_NEU;
++}
++
+   if (v < UV_VSTART)
+   return oog_encode(u, v);
+   vi = tiff_itrunc((v - UV_VSTART)*(1./UV_SQSIZ), em);
+-- 
+2.25.1
+
diff --git a/meta/recipes-multimedia/libtiff/tiff_4.3.0.bb 
b/meta/recipes-multimedia/libtiff/tiff_4.3.0.bb
index 8e69621afb..61d8142e41 100644
--- a/meta/recipes-multimedia/libtiff/tiff_4.3.0.bb
+++ b/meta/recipes-multimedia/libtiff/tiff_4.3.0.bb
@@ -42,6 +42,7 @@ SRC_URI = 
"http://download.osgeo.org/libtiff/tiff-${PV}.tar.gz \
file://CVE-2023-3316.patch \
file://CVE-2023-3618-1.patch \
file://CVE-2023-3618-2.patch \
+   file://CVE-2023-26966.patch \
"
 
 SRC_URI[sha256sum] = 
"0e46e5acb087ce7d1ac53cf4f56a09b221537fc86dfc5daaad1c2e89e1b37ac8"
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#185014): 
https://lists.openembedded.org/g/openembedded-core/message/185014
Mute This Topic: https://lists.openembedded.org/mt/100405711/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] libtiff: fix CVE-2023-26966 libtiff: Buffer Overflow

2023-07-27 Thread Hitendra Prajapati
Upstream-Status: Backport from 
https://gitlab.com/libtiff/libtiff/-/commit/b0e1c25dd1d065200c8d8f59ad0afe014861a1b9

Signed-off-by: Hitendra Prajapati 
---
 .../libtiff/tiff/CVE-2023-26966.patch | 35 +++
 meta/recipes-multimedia/libtiff/tiff_4.3.0.bb |  1 +
 2 files changed, 36 insertions(+)
 create mode 100644 meta/recipes-multimedia/libtiff/tiff/CVE-2023-26966.patch

diff --git a/meta/recipes-multimedia/libtiff/tiff/CVE-2023-26966.patch 
b/meta/recipes-multimedia/libtiff/tiff/CVE-2023-26966.patch
new file mode 100644
index 00..85764304f9
--- /dev/null
+++ b/meta/recipes-multimedia/libtiff/tiff/CVE-2023-26966.patch
@@ -0,0 +1,35 @@
+From b0e1c25dd1d065200c8d8f59ad0afe014861a1b9 Mon Sep 17 00:00:00 2001
+From: Su_Laus 
+Date: Thu, 16 Feb 2023 12:03:16 +0100
+Subject: [PATCH] tif_luv: Check and correct for NaN data in uv_encode().
+
+Closes #530
+
+Upstream-Status: Backport 
[https://gitlab.com/libtiff/libtiff/-/commit/b0e1c25dd1d065200c8d8f59ad0afe014861a1b9]
+CVE: CVE-2023-26966
+Signed-off-by: Hitendra Prajapati 
+---
+ libtiff/tif_luv.c | 7 +++
+ 1 file changed, 7 insertions(+)
+
+diff --git a/libtiff/tif_luv.c b/libtiff/tif_luv.c
+index 13765ea..40b2719 100644
+--- a/libtiff/tif_luv.c
 b/libtiff/tif_luv.c
+@@ -908,6 +908,13 @@ uv_encode(double u, double v, int em) /* encode 
(u',v') coordinates */
+ {
+   register intvi, ui;
+ 
++  /* check for NaN */
++  if (u != u || v != v)
++  {
++  u = U_NEU;
++  v = V_NEU;
++}
++
+   if (v < UV_VSTART)
+   return oog_encode(u, v);
+   vi = tiff_itrunc((v - UV_VSTART)*(1./UV_SQSIZ), em);
+-- 
+2.25.1
+
diff --git a/meta/recipes-multimedia/libtiff/tiff_4.3.0.bb 
b/meta/recipes-multimedia/libtiff/tiff_4.3.0.bb
index 8e69621afb..61d8142e41 100644
--- a/meta/recipes-multimedia/libtiff/tiff_4.3.0.bb
+++ b/meta/recipes-multimedia/libtiff/tiff_4.3.0.bb
@@ -42,6 +42,7 @@ SRC_URI = 
"http://download.osgeo.org/libtiff/tiff-${PV}.tar.gz \
file://CVE-2023-3316.patch \
file://CVE-2023-3618-1.patch \
file://CVE-2023-3618-2.patch \
+   file://CVE-2023-26966.patch \
"
 
 SRC_URI[sha256sum] = 
"0e46e5acb087ce7d1ac53cf4f56a09b221537fc86dfc5daaad1c2e89e1b37ac8"
-- 
2.25.1


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



[OE-core] [mickledore][PATCH] go: update 1.20.5 -> 1.20.6

2023-07-27 Thread Sakib Sajal via lists.openembedded.org
From: Jose Quaresma 

Upgrade to latest 1.20.x release [1]:

$ git log --oneline go1.20.5..go1.20.6 origin/release-branch.go1.20
2c358ffe97 (tag: go1.20.6, origin/release-branch.go1.20) 
[release-branch.go1.20] go1.20.6
312920c00a [release-branch.go1.20] net/http: validate Host header before sending
4db13d762b [release-branch.go1.20] runtime: set raceignore to zero when 
starting a new goroutine
08a58dd8b6 [release-branch.go1.20] runtime: allow for 5 more threads in 
TestWindowsStackMemory*
65092835c5 [release-branch.go1.20] cmd/go: skip TestScript/gccgo_link_ldflags 
on aix/ppc64
bca817594c [release-branch.go1.20] crypto/x509: tolerate multiple matching 
chains in testVerify
b8e67d1ddd [release-branch.go1.20] cmd/go/internal/test: don't wait for 
previous test actions when interrupted
3db4f8146c [release-branch.go1.20] runtime: resolve checkdead panic by refining 
`startm` lock handling in caller context
6b45fb7b73 [release-branch.go1.20] runtime: fallback to TEB arbitrary pointer 
when TLS slots are full
be30960e58 [release-branch.go1.20] runtime: use 1-byte load for address 
checking in racecallatomic
b59efe6c34 [release-branch.go1.20] net/mail: permit more characters in mail 
headers
c32f1afb41 [release-branch.go1.20] all: make safe for new vet analyzer
c7b145655b [release-branch.go1.20] cmd/go: fix tests for new builder environment
03063101a2 [release-branch.go1.20] text/template: set variables correctly in 
range assignment
d51e322a3f [release-branch.go1.20] go/printer: error out of Fprint when it 
would write a '//line' directive with a multiline file path
49594244d3 [release-branch.go1.20] cmd/cover: error out if a requested source 
file contains a newline
4719048211 [release-branch.go1.20] cmd/cgo: error out if the source path used 
in line directives would contain a newline
6c606fc191 [release-branch.go1.20] cmd/go: fix TestScript/build_cwd_newline 
with CGO_ENABLED=0
63ad2b5811 [release-branch.go1.20] cmd/compile: do not report division by error 
during typecheck
95f377daad [release-branch.go1.20] cmd/go: retain extra roots to disambiguate 
imports in 'go mod tidy'
a7a48fad7e [release-branch.go1.20] crypto/ecdsa: properly truncate P-521 hashes
f5172dcd38 [release-branch.go1.20] go/build: check for invalid import paths 
again
8b3acefcbe [release-branch.go1.20] cmd/go: omit checksums for go.mod files 
needed for go version lines more often in pre-1.21 modules
1008486a9f [release-branch.go1.20] cmd/cgo: correct _cgo_flags output

[1] https://github.com/golang/go/compare/go1.20.5...go1.20.6

Signed-off-by: Jose Quaresma 
Signed-off-by: Alexandre Belloni 
Signed-off-by: Richard Purdie 
(cherry picked from commit 8d8216d8c4d37cc0d9508eb644653f94fff8989c)
Signed-off-by: Sakib Sajal 
---
 meta/recipes-devtools/go/{go-1.20.5.inc => go-1.20.6.inc}   | 2 +-
 ...o-binary-native_1.20.5.bb => go-binary-native_1.20.6.bb} | 6 +++---
 ...cross-canadian_1.20.5.bb => go-cross-canadian_1.20.6.bb} | 0
 .../go/{go-cross_1.20.5.bb => go-cross_1.20.6.bb}   | 0
 .../go/{go-crosssdk_1.20.5.bb => go-crosssdk_1.20.6.bb} | 0
 .../go/{go-native_1.20.5.bb => go-native_1.20.6.bb} | 0
 .../go/{go-runtime_1.20.5.bb => go-runtime_1.20.6.bb}   | 0
 meta/recipes-devtools/go/{go_1.20.5.bb => go_1.20.6.bb} | 0
 8 files changed, 4 insertions(+), 4 deletions(-)
 rename meta/recipes-devtools/go/{go-1.20.5.inc => go-1.20.6.inc} (90%)
 rename meta/recipes-devtools/go/{go-binary-native_1.20.5.bb => 
go-binary-native_1.20.6.bb} (78%)
 rename meta/recipes-devtools/go/{go-cross-canadian_1.20.5.bb => 
go-cross-canadian_1.20.6.bb} (100%)
 rename meta/recipes-devtools/go/{go-cross_1.20.5.bb => go-cross_1.20.6.bb} 
(100%)
 rename meta/recipes-devtools/go/{go-crosssdk_1.20.5.bb => 
go-crosssdk_1.20.6.bb} (100%)
 rename meta/recipes-devtools/go/{go-native_1.20.5.bb => go-native_1.20.6.bb} 
(100%)
 rename meta/recipes-devtools/go/{go-runtime_1.20.5.bb => go-runtime_1.20.6.bb} 
(100%)
 rename meta/recipes-devtools/go/{go_1.20.5.bb => go_1.20.6.bb} (100%)

diff --git a/meta/recipes-devtools/go/go-1.20.5.inc 
b/meta/recipes-devtools/go/go-1.20.6.inc
similarity index 90%
rename from meta/recipes-devtools/go/go-1.20.5.inc
rename to meta/recipes-devtools/go/go-1.20.6.inc
index 9cc79a8073..6277020fec 100644
--- a/meta/recipes-devtools/go/go-1.20.5.inc
+++ b/meta/recipes-devtools/go/go-1.20.6.inc
@@ -17,4 +17,4 @@ SRC_URI += "\
 file://CVE-2023-24531_1.patch \
 file://CVE-2023-24531_2.patch \
 "
-SRC_URI[main.sha256sum] = 
"9a15c133ba2cfafe79652f4815b62e7cfc267f68df1b9454c6ab2a3ca8b96a88"
+SRC_URI[main.sha256sum] = 
"62ee5bc6fb55b8bae8f705e0cb8df86d6453626b4ecf93279e2867092e0b7f70"
diff --git a/meta/recipes-devtools/go/go-binary-native_1.20.5.bb 
b/meta/recipes-devtools/go/go-binary-native_1.20.6.bb
similarity index 78%
rename from meta/recipes-devtools/go/go-binary-native_1.20.5.bb
rename to meta/recipes-devtools/go/go-binary-native_1.20.6.bb
index a98be4af1b..5b2f8f4352 100644
--- 

[OE-core] [PATCH 2/4] autoconf: Backport upstreamed patches

2023-07-27 Thread Khem Raj
These patches improve the Y2038 support on top of 2.72c release

Signed-off-by: Khem Raj 
---
 ...-prototypes-more-prominently-in-NEWS.patch |  36 ++
 ...d-run-make-fetch-which-updated-these.patch | 123 ++
 .../0003-NEWS-Tighten-up-wording.patch|  29 ++
 ...to-programs-misusing-AC_EGREP_HEADER.patch |  82 
 ...-Fix-timing-bug-on-high-speed-builds.patch |  75 
 ...7-Support-underquoted-callers-better.patch |  57 +++
 ...-for-building-inside-Guix-containers.patch |  54 +++
 ..._DIR-Rewrite-using-AC_CANONICAL_HOST.patch |  82 
 ...PE_UID_T-Rewrite-using-AC_CHECK_TYPE.patch |  77 
 ..._TRADITIONAL-a-compatibility-alias-f.patch | 180 
 ...TYPE_GETGROUPS-and-AC_FUNC_GETGROUPS.patch | 328 ++
 ...-Fold-AC_C_STRINGIZE-into-AC_PROG_CC.patch |  84 
 ...st-few-internal-uses-of-AC_EGREP_CPP.patch | 116 +
 ...0015-Support-circa-early-2022-Gnulib.patch |  32 ++
 ...year2038-largefile-option-processing.patch | 121 ++
 ...Fix-configure-failure-on-32-bit-ming.patch |  30 ++
 ...18-Document-limitation-of-BusyBox-tr.patch |  45 ++
 ...REQUIRED-Fix-configure-failure-with-.patch |  48 +++
 .../0020-Tone-down-year-2038-changes.patch| 405 ++
 ...-AC_FUNC_MMAP-to-more-modern-systems.patch |  98 +
 .../0022-Fix-port-of-AC_FUNC_MMAP.patch   |  91 
 ..._SYS_YEAR2038_RECOMMENDED-diagnostic.patch |  38 ++
 .../0024-Improve-AC_FUNC_MMAP-comments.patch  |  29 ++
 ...S_LARGEFILE-on-GNU-Linux-alpha-s390x.patch |  62 +++
 .../backports/0026-Modernize-INSTALL.patch| 270 
 .../0027-doc-fix-broken-cross-refs.patch  |  58 +++
 ...build-host-target-and-the-system-typ.patch | 224 ++
 .../0029-Shorten-and-improve-INSTALL.patch| 366 
 .../autoconf/autoconf_2.72c.bb|  34 +-
 29 files changed, 3273 insertions(+), 1 deletion(-)
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/backports/0001-mention-prototypes-more-prominently-in-NEWS.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/backports/0002-build-run-make-fetch-which-updated-these.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/backports/0003-NEWS-Tighten-up-wording.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/backports/0004-Cater-to-programs-misusing-AC_EGREP_HEADER.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/backports/0006-Fix-timing-bug-on-high-speed-builds.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/backports/0007-Support-underquoted-callers-better.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/backports/0008-New-script-for-building-inside-Guix-containers.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/backports/0009-AC_XENIX_DIR-Rewrite-using-AC_CANONICAL_HOST.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/backports/0010-AC_TYPE_UID_T-Rewrite-using-AC_CHECK_TYPE.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/backports/0011-Make-AC_PROG_GCC_TRADITIONAL-a-compatibility-alias-f.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/backports/0012-Overhaul-AC_TYPE_GETGROUPS-and-AC_FUNC_GETGROUPS.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/backports/0013-Fold-AC_C_STRINGIZE-into-AC_PROG_CC.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/backports/0014-Remove-the-last-few-internal-uses-of-AC_EGREP_CPP.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/backports/0015-Support-circa-early-2022-Gnulib.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/backports/0016-Improve-year2038-largefile-option-processing.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/backports/0017-AC_SYS_YEAR2038-Fix-configure-failure-on-32-bit-ming.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/backports/0018-Document-limitation-of-BusyBox-tr.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/backports/0019-AC_SYS_YEAR2038_REQUIRED-Fix-configure-failure-with-.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/backports/0020-Tone-down-year-2038-changes.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/backports/0021-Port-AC_FUNC_MMAP-to-more-modern-systems.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/backports/0022-Fix-port-of-AC_FUNC_MMAP.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/backports/0023-Improve-AC_SYS_YEAR2038_RECOMMENDED-diagnostic.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/backports/0024-Improve-AC_FUNC_MMAP-comments.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/backports/0025-Fix-AC_SYS_LARGEFILE-on-GNU-Linux-alpha-s390x.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/backports/0026-Modernize-INSTALL.patch
 create mode 100644 

[OE-core] [PATCH 4/4] x32-linux: Do not cache ac_cv_sys_file_offset_bits

2023-07-27 Thread Khem Raj
This variable is used on some packages e.g. gpgme/libimobiledevice [1]
but with new autoconf, its better to let autconf detect it than cache it
here

[1] https://github.com/gpg/gpgme/blob/master/configure.ac#L659-L670

Signed-off-by: Khem Raj 
---
 meta/site/x32-linux | 1 -
 1 file changed, 1 deletion(-)

diff --git a/meta/site/x32-linux b/meta/site/x32-linux
index cf4ef147f7a..2e120480c35 100644
--- a/meta/site/x32-linux
+++ b/meta/site/x32-linux
@@ -1,5 +1,4 @@
 # general
 ac_cv_sizeof_long_double=${ac_cv_sizeof_long_double=16}
 ac_cv_sizeof_dev_t=${ac_cv_sizeof_dev_t=8}
-ac_cv_sys_file_offset_bits=${ac_cv_sys_file_offset_bits=64}
 ac_cv_alignof_double=8
-- 
2.41.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#185010): 
https://lists.openembedded.org/g/openembedded-core/message/185010
Mute This Topic: https://lists.openembedded.org/mt/100404749/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/4] autoconf: Upgrade to 2.72c

2023-07-27 Thread Khem Raj
From: Richard Purdie 

Signed-off-by: Richard Purdie 
Signed-off-by: Khem Raj 
---
 .../gettext-0.21.1/autoconf-2.73.patch|  41 ++
 meta/recipes-core/gettext/gettext_0.21.1.bb   |   1 +
 ...ilers-that-moan-about-K-R-func-decls.patch | 138 --
 .../{autoconf_2.71.bb => autoconf_2.72c.bb}   |   6 +-
 .../bison/bison/autoconf-2.73.patch   |  15 ++
 meta/recipes-devtools/bison/bison_3.8.2.bb|   1 +
 meta/recipes-extended/findutils/findutils.inc |   1 +
 .../findutils/findutils/autoconf-2.73.patch   |  15 ++
 .../gzip/gzip-1.12/autoconf-2.73.patch|  15 ++
 meta/recipes-extended/gzip/gzip_1.12.bb   |   1 +
 .../libarchive/libarchive/configurehack.patch |  45 ++
 .../libarchive/libarchive_3.6.2.bb|   1 +
 .../libpipeline/autoconf-2.73.patch   |  15 ++
 .../libpipeline/libpipeline_1.5.7.bb  |   1 +
 .../man-db/files/autoconf-2.73.patch  |  15 ++
 meta/recipes-extended/man-db/man-db_2.11.2.bb |   1 +
 .../parted/files/autoconf-2.73.patch  |  13 ++
 meta/recipes-extended/parted/parted_3.6.bb|   1 +
 .../apr/apr/autoconf-2.73.patch   |  23 +++
 meta/recipes-support/apr/apr_1.7.4.bb |   1 +
 20 files changed, 209 insertions(+), 141 deletions(-)
 create mode 100644 meta/recipes-core/gettext/gettext-0.21.1/autoconf-2.73.patch
 delete mode 100644 
meta/recipes-devtools/autoconf/autoconf/0001-Port-to-compilers-that-moan-about-K-R-func-decls.patch
 rename meta/recipes-devtools/autoconf/{autoconf_2.71.bb => autoconf_2.72c.bb} 
(92%)
 create mode 100644 meta/recipes-devtools/bison/bison/autoconf-2.73.patch
 create mode 100644 
meta/recipes-extended/findutils/findutils/autoconf-2.73.patch
 create mode 100644 meta/recipes-extended/gzip/gzip-1.12/autoconf-2.73.patch
 create mode 100644 
meta/recipes-extended/libarchive/libarchive/configurehack.patch
 create mode 100644 
meta/recipes-extended/libpipeline/libpipeline/autoconf-2.73.patch
 create mode 100644 meta/recipes-extended/man-db/files/autoconf-2.73.patch
 create mode 100644 meta/recipes-extended/parted/files/autoconf-2.73.patch
 create mode 100644 meta/recipes-support/apr/apr/autoconf-2.73.patch

diff --git a/meta/recipes-core/gettext/gettext-0.21.1/autoconf-2.73.patch 
b/meta/recipes-core/gettext/gettext-0.21.1/autoconf-2.73.patch
new file mode 100644
index 000..9b3ed336a4b
--- /dev/null
+++ b/meta/recipes-core/gettext/gettext-0.21.1/autoconf-2.73.patch
@@ -0,0 +1,41 @@
+Upstream-Status: Inappropriate
+
+Index: gettext-0.21.1/gettext-runtime/gnulib-m4/largefile.m4
+===
+--- gettext-0.21.1.orig/gettext-runtime/gnulib-m4/largefile.m4
 gettext-0.21.1/gettext-runtime/gnulib-m4/largefile.m4
+@@ -26,7 +26,7 @@ AC_DEFUN([gl_SET_LARGEFILE_SOURCE],
+ # with _TIME_BITS.  Also, work around a problem in autoconf <= 2.69:
+ # AC_SYS_LARGEFILE does not configure for large inodes on Mac OS X 10.5,
+ # or configures them incorrectly in some cases.
+-m4_version_prereq([2.70], [], [
++m4_version_prereq([2.73], [], [
+ 
+ # _AC_SYS_LARGEFILE_TEST_INCLUDES
+ # ---
+Index: gettext-0.21.1/gettext-tools/gnulib-m4/largefile.m4
+===
+--- gettext-0.21.1.orig/gettext-tools/gnulib-m4/largefile.m4
 gettext-0.21.1/gettext-tools/gnulib-m4/largefile.m4
+@@ -26,7 +26,7 @@ AC_DEFUN([gl_SET_LARGEFILE_SOURCE],
+ # with _TIME_BITS.  Also, work around a problem in autoconf <= 2.69:
+ # AC_SYS_LARGEFILE does not configure for large inodes on Mac OS X 10.5,
+ # or configures them incorrectly in some cases.
+-m4_version_prereq([2.70], [], [
++m4_version_prereq([2.73], [], [
+ 
+ # _AC_SYS_LARGEFILE_TEST_INCLUDES
+ # ---
+Index: gettext-0.21.1/libtextstyle/gnulib-m4/largefile.m4
+===
+--- gettext-0.21.1.orig/libtextstyle/gnulib-m4/largefile.m4
 gettext-0.21.1/libtextstyle/gnulib-m4/largefile.m4
+@@ -26,7 +26,7 @@ AC_DEFUN([gl_SET_LARGEFILE_SOURCE],
+ # with _TIME_BITS.  Also, work around a problem in autoconf <= 2.69:
+ # AC_SYS_LARGEFILE does not configure for large inodes on Mac OS X 10.5,
+ # or configures them incorrectly in some cases.
+-m4_version_prereq([2.70], [], [
++m4_version_prereq([2.73], [], [
+ 
+ # _AC_SYS_LARGEFILE_TEST_INCLUDES
+ # ---
diff --git a/meta/recipes-core/gettext/gettext_0.21.1.bb 
b/meta/recipes-core/gettext/gettext_0.21.1.bb
index b80ea9276ef..2f030a2df9d 100644
--- a/meta/recipes-core/gettext/gettext_0.21.1.bb
+++ b/meta/recipes-core/gettext/gettext_0.21.1.bb
@@ -29,6 +29,7 @@ SRC_URI = "${GNU_MIRROR}/gettext/gettext-${PV}.tar.gz \
file://serial-tests-config.patch \
file://0001-tests-autopoint-3-unset-MAKEFLAGS.patch \
file://0001-init-env.in-do-not-add-C-CXX-parameters.patch \
+   file://autoconf-2.73.patch \
"
 

[OE-core] [PATCH 3/4] Revert "site: merged common-glibc from OE"

2023-07-27 Thread Khem Raj
This reverts commit a2f942c22e31fe15fef1b44a0e5cc548a60d43a6.

AC_TYPE_UID_T autoconf macro caches its result in ac_cv_type_uid_t
for defining uid_t and gid_t to suitable types if system headers do not
define them

back in 2008 autoconf did not evaluate it correctly [1] however it works
fine now with autoconf 2.72c especially after [2]

[1] 
https://git.openembedded.org/openembedded/commit/?id=d572f3b010ea76c5b79ecf1ae7864f7a6348220a
[2] 
https://git.savannah.gnu.org/cgit/autoconf.git/commit/?id=51d98495d1aac00970d791f064e83ca762bf81c7

Signed-off-by: Khem Raj 
---
 meta/site/common-glibc | 1 -
 1 file changed, 1 deletion(-)

diff --git a/meta/site/common-glibc b/meta/site/common-glibc
index 7ba91e03c04..958699b143f 100644
--- a/meta/site/common-glibc
+++ b/meta/site/common-glibc
@@ -12,7 +12,6 @@ ac_cv_func_getgrgid_r=${ac_cv_func_getgrgid_r=yes}
 ac_cv_func_getpwuid_r=${ac_cv_func_getpwuid_r=yes}
 ac_cv_func_posix_getpwuid_r=${ac_cv_func_posix_getpwuid_r=yes}
 ac_cv_func_posix_getgrgid_r=${ac_cv_func_posix_getgrgid_r=yes}
-ac_cv_type_uid_t={ac_cv_type_uid_t=yes}
 ac_cv_func_getaddrinfo=${ac_cv_func_getaddrinfo=yes}
 ac_cv_func_strtod=${ac_cv_func_strtod=yes}
 
-- 
2.41.0


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



[OE-core] [PATCH 0/4] Upgrade autoconf to 2.72c

2023-07-27 Thread Khem Raj
Khem Raj (3):
  autoconf: Backport upstreamed patches
  Revert "site: merged common-glibc from OE"
  x32-linux: Do not cache ac_cv_sys_file_offset_bits

Richard Purdie (1):
  autoconf: Upgrade to 2.72c

 .../gettext-0.21.1/autoconf-2.73.patch|  41 ++
 meta/recipes-core/gettext/gettext_0.21.1.bb   |   1 +
 ...ilers-that-moan-about-K-R-func-decls.patch | 138 --
 ...-prototypes-more-prominently-in-NEWS.patch |  36 ++
 ...d-run-make-fetch-which-updated-these.patch | 123 ++
 .../0003-NEWS-Tighten-up-wording.patch|  29 ++
 ...to-programs-misusing-AC_EGREP_HEADER.patch |  82 
 ...-Fix-timing-bug-on-high-speed-builds.patch |  75 
 ...7-Support-underquoted-callers-better.patch |  57 +++
 ...-for-building-inside-Guix-containers.patch |  54 +++
 ..._DIR-Rewrite-using-AC_CANONICAL_HOST.patch |  82 
 ...PE_UID_T-Rewrite-using-AC_CHECK_TYPE.patch |  77 
 ..._TRADITIONAL-a-compatibility-alias-f.patch | 180 
 ...TYPE_GETGROUPS-and-AC_FUNC_GETGROUPS.patch | 328 ++
 ...-Fold-AC_C_STRINGIZE-into-AC_PROG_CC.patch |  84 
 ...st-few-internal-uses-of-AC_EGREP_CPP.patch | 116 +
 ...0015-Support-circa-early-2022-Gnulib.patch |  32 ++
 ...year2038-largefile-option-processing.patch | 121 ++
 ...Fix-configure-failure-on-32-bit-ming.patch |  30 ++
 ...18-Document-limitation-of-BusyBox-tr.patch |  45 ++
 ...REQUIRED-Fix-configure-failure-with-.patch |  48 +++
 .../0020-Tone-down-year-2038-changes.patch| 405 ++
 ...-AC_FUNC_MMAP-to-more-modern-systems.patch |  98 +
 .../0022-Fix-port-of-AC_FUNC_MMAP.patch   |  91 
 ..._SYS_YEAR2038_RECOMMENDED-diagnostic.patch |  38 ++
 .../0024-Improve-AC_FUNC_MMAP-comments.patch  |  29 ++
 ...S_LARGEFILE-on-GNU-Linux-alpha-s390x.patch |  62 +++
 .../backports/0026-Modernize-INSTALL.patch| 270 
 .../0027-doc-fix-broken-cross-refs.patch  |  58 +++
 ...build-host-target-and-the-system-typ.patch | 224 ++
 .../0029-Shorten-and-improve-INSTALL.patch| 366 
 .../{autoconf_2.71.bb => autoconf_2.72c.bb}   |  40 +-
 .../bison/bison/autoconf-2.73.patch   |  15 +
 meta/recipes-devtools/bison/bison_3.8.2.bb|   1 +
 meta/recipes-extended/findutils/findutils.inc |   1 +
 .../findutils/findutils/autoconf-2.73.patch   |  15 +
 .../gzip/gzip-1.12/autoconf-2.73.patch|  15 +
 meta/recipes-extended/gzip/gzip_1.12.bb   |   1 +
 .../libarchive/libarchive/configurehack.patch |  45 ++
 .../libarchive/libarchive_3.6.2.bb|   1 +
 .../libpipeline/autoconf-2.73.patch   |  15 +
 .../libpipeline/libpipeline_1.5.7.bb  |   1 +
 .../man-db/files/autoconf-2.73.patch  |  15 +
 meta/recipes-extended/man-db/man-db_2.11.2.bb |   1 +
 .../parted/files/autoconf-2.73.patch  |  13 +
 meta/recipes-extended/parted/parted_3.6.bb|   1 +
 .../apr/apr/autoconf-2.73.patch   |  23 +
 meta/recipes-support/apr/apr_1.7.4.bb |   1 +
 meta/site/common-glibc|   1 -
 meta/site/x32-linux   |   1 -
 50 files changed, 3482 insertions(+), 144 deletions(-)
 create mode 100644 meta/recipes-core/gettext/gettext-0.21.1/autoconf-2.73.patch
 delete mode 100644 
meta/recipes-devtools/autoconf/autoconf/0001-Port-to-compilers-that-moan-about-K-R-func-decls.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/backports/0001-mention-prototypes-more-prominently-in-NEWS.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/backports/0002-build-run-make-fetch-which-updated-these.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/backports/0003-NEWS-Tighten-up-wording.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/backports/0004-Cater-to-programs-misusing-AC_EGREP_HEADER.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/backports/0006-Fix-timing-bug-on-high-speed-builds.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/backports/0007-Support-underquoted-callers-better.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/backports/0008-New-script-for-building-inside-Guix-containers.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/backports/0009-AC_XENIX_DIR-Rewrite-using-AC_CANONICAL_HOST.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/backports/0010-AC_TYPE_UID_T-Rewrite-using-AC_CHECK_TYPE.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/backports/0011-Make-AC_PROG_GCC_TRADITIONAL-a-compatibility-alias-f.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/backports/0012-Overhaul-AC_TYPE_GETGROUPS-and-AC_FUNC_GETGROUPS.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/backports/0013-Fold-AC_C_STRINGIZE-into-AC_PROG_CC.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/backports/0014-Remove-the-last-few-internal-uses-of-AC_EGREP_CPP.patch
 create mode 100644 

Re: [OE-core] [kirkstone][dunfell][PATCH] cve-update-nvd2-native: always pass str for json.loads()

2023-07-27 Thread Yuta Hayama
Hi Steve,

On 2023/07/28 4:01, Steve Sakoman wrote:
> Will this change also work on master and mickledore?  If so, please submit
> for master and I will cherry-pick to the other branches.
> 
> I've been trying to keep the cve checking in the stable branches in sync
> with master as much as possible.

This patch can be applied to master and mickledore, but this patch is
actually only needed for build environments where the build host Python3
is earlier than 3.6.

I referred to the Yocto Project Reference Manual to find out which Linux
distributions are supported by each version of Yocto (OE-Core). 
The Linux distributions supported by mickledore are listed below, but I
think that none of them will install Python3 earlier than 3.6 by default.
This should be the same for master.

* Ubuntu 18.04, 20.04, 22.04
* Fedora 36, 37
* AlmaLinux 8.7, 9.1
* Debian GNU/Linux 11.x
* OpenSUSE Leap 15.3, 15.4

On the other hand, kirkstone supports Debian 9.x (with python 3.5 installed
by default) and dunfell supports Debian 9.x and Ubuntu 16.04 (also with
python 3.5 installed by default).

Therefore, I think strictly speaking only kirkstone and dunfell need this
patch. For other branches (i.e., those that are clearly intended to run on
Python 3.6 or later), there is no difference in behavior whether this patch
is applied or not. Rather, it may be better performance-wise to not apply
this patch, since it eliminates unnecessary decode() calls.

Yes, of course it is important to sync each stable branch with master. What
should we do in such a case...


Regards,

Yuta Hayama

> 
> Thanks!
> 
> Steve
> 
> On Wed, Jul 26, 2023 at 10:56 PM Yuta Hayama  wrote:
> 
>> Currently json.loads() accepts one of the types str, bytes, or bytearray
>> as an argument, but bytes and bytearrays have only been allowed since
>> python 3.6. The version of Python3 provided by default on Ubuntu 16.04
>> and Debian 9.x is 3.5, so make raw_data type str to work correctly on
>> these build hosts.
>>
>> Signed-off-by: Yuta Hayama 
>> ---
>>  meta/recipes-core/meta/cve-update-nvd2-native.bb | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/meta/recipes-core/meta/cve-update-nvd2-native.bb
>> b/meta/recipes-core/meta/cve-update-nvd2-native.bb
>> index 2f7dad7e82..67d76f75dd 100644
>> --- a/meta/recipes-core/meta/cve-update-nvd2-native.bb
>> +++ b/meta/recipes-core/meta/cve-update-nvd2-native.bb
>> @@ -136,7 +136,7 @@ def nvd_request_next(url, api_key, args):
>>
>>  if (r.headers['content-encoding'] == 'gzip'):
>>  buf = r.read()
>> -raw_data = gzip.decompress(buf)
>> +raw_data = gzip.decompress(buf).decode("utf-8")
>>  else:
>>  raw_data = r.read().decode("utf-8")
>>
>> --
>> 2.25.1
>>
>>
> 

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#185006): 
https://lists.openembedded.org/g/openembedded-core/message/185006
Mute This Topic: https://lists.openembedded.org/mt/100387035/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-firmware: split platform-specific Adreno shaders to separate packages

2023-07-27 Thread Dmitry Baryshkov
For newest Qualcomm platforms the firmware for the Adreno GPU consists
of two parts: platform-independent SQE/GMU/GPMU/PFP/PM4 and
platform-specific ZAP shader, which is used during the boot process. As
the platform-independent parts can be shared between different
platforms, split the platform-specific part to the separate package.

Signed-off-by: Dmitry Baryshkov 
---
 .../linux-firmware/linux-firmware_20230625.bb  | 18 --
 1 file changed, 12 insertions(+), 6 deletions(-)

diff --git a/meta/recipes-kernel/linux-firmware/linux-firmware_20230625.bb 
b/meta/recipes-kernel/linux-firmware/linux-firmware_20230625.bb
index a98a4e9b45a6..807f222ba74b 100644
--- a/meta/recipes-kernel/linux-firmware/linux-firmware_20230625.bb
+++ b/meta/recipes-kernel/linux-firmware/linux-firmware_20230625.bb
@@ -316,14 +316,14 @@ PACKAGES =+ "${PN}-ralink-license ${PN}-ralink \
  ${PN}-qcom-adreno-a2xx ${PN}-qcom-adreno-a3xx 
${PN}-qcom-adreno-a4xx ${PN}-qcom-adreno-a530 \
  ${PN}-qcom-adreno-a630 ${PN}-qcom-adreno-a650 
${PN}-qcom-adreno-a660 \
  ${PN}-qcom-apq8016-modem ${PN}-qcom-apq8016-wifi \
- ${PN}-qcom-apq8096-audio ${PN}-qcom-apq8096-modem \
+ ${PN}-qcom-apq8096-adreno ${PN}-qcom-apq8096-audio 
${PN}-qcom-apq8096-modem \
  ${PN}-qcom-sc8280xp-lenovo-x13s-compat \
  ${PN}-qcom-sc8280xp-lenovo-x13s-audio \
  ${PN}-qcom-sc8280xp-lenovo-x13s-adreno \
  ${PN}-qcom-sc8280xp-lenovo-x13s-compute \
  ${PN}-qcom-sc8280xp-lenovo-x13s-sensors \
- ${PN}-qcom-sdm845-audio ${PN}-qcom-sdm845-compute 
${PN}-qcom-sdm845-modem \
- ${PN}-qcom-sm8250-audio ${PN}-qcom-sm8250-compute \
+ ${PN}-qcom-sdm845-adreno ${PN}-qcom-sdm845-audio 
${PN}-qcom-sdm845-compute ${PN}-qcom-sdm845-modem \
+ ${PN}-qcom-sm8250-adreno ${PN}-qcom-sm8250-audio 
${PN}-qcom-sm8250-compute \
  ${PN}-amlogic-vdec-license ${PN}-amlogic-vdec \
  ${PN}-lt9611uxc ${PN}-lontium-license \
  ${PN}-whence-license \
@@ -1004,15 +1004,18 @@ LICENSE:${PN}-qcom-adreno-a660 = "Firmware-qcom"
 LICENSE:${PN}-qcom-apq8016-modem = "Firmware-qcom"
 LICENSE:${PN}-qcom-apq8016-wifi = "Firmware-qcom"
 LICENSE:${PN}-qcom-apq8096-audio = "Firmware-qcom"
+LICENSE:${PN}-qcom-apq8096-adreno = "Firmware-qcom"
 LICENSE:${PN}-qcom-apq8096-modem = "Firmware-qcom"
 LICENSE:${PN}-qcom-sc8280xp-lenovo-x13s-audio = "Firmware-qcom"
 LICENSE:${PN}-qcom-sc8280xp-lenovo-x13s-adreno = "Firmware-qcom"
 LICENSE:${PN}-qcom-sc8280xp-lenovo-x13s-compute = "Firmware-qcom"
 LICENSE:${PN}-qcom-sc8280xp-lenovo-x13s-sensors = "Firmware-qcom"
 LICENSE:${PN}-qcom-sdm845-audio = "Firmware-qcom"
+LICENSE:${PN}-qcom-sdm845-adreno = "Firmware-qcom"
 LICENSE:${PN}-qcom-sdm845-compute = "Firmware-qcom"
 LICENSE:${PN}-qcom-sdm845-modem = "Firmware-qcom"
 LICENSE:${PN}-qcom-sm8250-audio = "Firmware-qcom"
+LICENSE:${PN}-qcom-sm8250-adreno = "Firmware-qcom"
 LICENSE:${PN}-qcom-sm8250-compute = "Firmware-qcom"
 
 FILES:${PN}-qcom-license   = "${nonarch_base_libdir}/firmware/LICENSE.qcom 
${nonarch_base_libdir}/firmware/qcom/NOTICE.txt"
@@ -1026,12 +1029,13 @@ FILES:${PN}-qcom-vpu-2.0 = 
"${nonarch_base_libdir}/firmware/qcom/vpu-2.0/*"
 FILES:${PN}-qcom-adreno-a2xx = "${nonarch_base_libdir}/firmware/qcom/leia_*.fw 
${nonarch_base_libdir}/firmware/qcom/yamato_*.fw"
 FILES:${PN}-qcom-adreno-a3xx = "${nonarch_base_libdir}/firmware/qcom/a3*_*.fw 
${nonarch_base_libdir}/firmware/a300_*.fw"
 FILES:${PN}-qcom-adreno-a4xx = "${nonarch_base_libdir}/firmware/qcom/a4*_*.fw"
-FILES:${PN}-qcom-adreno-a530 = "${nonarch_base_libdir}/firmware/qcom/a530*.* 
${nonarch_base_libdir}/firmware/qcom/apq8096/a530*.*"
-FILES:${PN}-qcom-adreno-a630 = "${nonarch_base_libdir}/firmware/qcom/a630*.* 
${nonarch_base_libdir}/firmware/qcom/sdm845/a630*.*"
-FILES:${PN}-qcom-adreno-a650 = "${nonarch_base_libdir}/firmware/qcom/a650*.* 
${nonarch_base_libdir}/firmware/qcom/sm8250/a650*.*"
+FILES:${PN}-qcom-adreno-a530 = "${nonarch_base_libdir}/firmware/qcom/a530*.fw*"
+FILES:${PN}-qcom-adreno-a630 = "${nonarch_base_libdir}/firmware/qcom/a630*.*"
+FILES:${PN}-qcom-adreno-a650 = "${nonarch_base_libdir}/firmware/qcom/a650*.*"
 FILES:${PN}-qcom-adreno-a660 = "${nonarch_base_libdir}/firmware/qcom/a660*.*"
 FILES:${PN}-qcom-apq8016-modem = 
"${nonarch_base_libdir}/firmware/qcom/apq8016/mba.mbn 
${nonarch_base_libdir}/firmware/qcom/apq8016/modem.mbn"
 FILES:${PN}-qcom-apq8016-wifi = 
"${nonarch_base_libdir}/firmware/qcom/apq8016/wcnss.mbn 
${nonarch_base_libdir}/firmware/qcom/apq8016/WCNSS*"
+FILES:${PN}-qcom-apq8096-adreno = 
"${nonarch_base_libdir}/firmware/qcom/apq8096/a530_zap.mbn 
${nonarch_base_libdir}/firmware/qcom/a530_zap.mdt"
 FILES:${PN}-qcom-apq8096-audio = 
"${nonarch_base_libdir}/firmware/qcom/apq8096/adsp*.*"
 FILES:${PN}-qcom-apq8096-modem = 
"${nonarch_base_libdir}/firmware/qcom/apq8096/mba.mbn 

[OE-core] [PATCH] createrepo-c: Update patch status

2023-07-27 Thread Richard Purdie
The patch was submitted upstream, thanks Khem.

Signed-off-by: Richard Purdie 
---
 meta/recipes-devtools/createrepo-c/createrepo-c/time64fix.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/createrepo-c/createrepo-c/time64fix.patch 
b/meta/recipes-devtools/createrepo-c/createrepo-c/time64fix.patch
index d022d95b703..a63801ce26e 100644
--- a/meta/recipes-devtools/createrepo-c/createrepo-c/time64fix.patch
+++ b/meta/recipes-devtools/createrepo-c/createrepo-c/time64fix.patch
@@ -8,7 +8,7 @@ Fixes format specifier mismatch warnings as well while here
 e.g.
 warning: format '%ld' expects argument of type 'long int', but argument 2 has 
type 'time_t'
 
-Upstream-Status: Pending
+Upstream-Status: Submitted 
[https://github.com/rpm-software-management/createrepo_c/pull/376]
 
 Signed-off-by: Khem Raj 
 ---
-- 
2.39.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#185004): 
https://lists.openembedded.org/g/openembedded-core/message/185004
Mute This Topic: https://lists.openembedded.org/mt/100399720/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] ltp: Use bfd linker for KVM_LD as well when ld-is-lld

2023-07-27 Thread Khem Raj
Signed-off-by: Khem Raj 
---
 meta/recipes-extended/ltp/ltp_20230516.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-extended/ltp/ltp_20230516.bb 
b/meta/recipes-extended/ltp/ltp_20230516.bb
index e4ba3c68724..9c9acc6c145 100644
--- a/meta/recipes-extended/ltp/ltp_20230516.bb
+++ b/meta/recipes-extended/ltp/ltp_20230516.bb
@@ -48,7 +48,7 @@ LDFLAGS:append = "${@bb.utils.contains('DISTRO_FEATURES', 
'ld-is-lld', ' -fuse-l
 # it fails with gold also a bit later when trying to use *-payload.bin
 # http://errors.yoctoproject.org/Errors/Details/663094/
 # work around this by forcing .bfd linked in LD when ld-is-gold is in 
DISTRO_FEATURES
-KVM_LD = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', 
'${HOST_PREFIX}ld.bfd${TOOLCHAIN_OPTIONS} ${HOST_LD_ARCH}', '${LD}', d)}"
+KVM_LD = "${@bb.utils.contains_any('DISTRO_FEATURES', 'ld-is-gold ld-is-lld', 
'${HOST_PREFIX}ld.bfd${TOOLCHAIN_OPTIONS} ${HOST_LD_ARCH}', '${LD}', d)}"
 
 TARGET_CC_ARCH += "${LDFLAGS}"
 
-- 
2.41.0


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



[OE-core][mickledore 27/27] util-linux: add alternative links for ipcs,ipcrm

2023-07-27 Thread Steve Sakoman
From: Benjamin Bouvier 

When enabling ipcs and ipcrm configuration into busybox, both tools are
built and then deployed during do_rootfs. These operation lead to below
issue (similar behavior happens for ipcs):

do_rootfs: Postinstall scriptlets of ['busybox'] have failed. If the intention 
is to defer them to first boot,
then please place them into pkg_postinst_ontarget:${PN} ().

update-alternatives: Error: not linking 
.../build/tmp/work/board-poky-linux/board-image/1.0-r0/rootfs/usr/bin/ipcrm
to /bin/busybox since 
.../build/tmp/work/board-poky-linux/board-image/1.0-r0/rootfs/usr/bin/ipcrm 
exists and is not a link

Binaries enter in conflict with same named util-linux utilities during
do_rootfs step.
Adding ALTERNATIVE_LINK_NAME for both tools fix the issue.

Signed-off-by: Benjamin Bouvier 
Signed-off-by: Alexandre Belloni 
Signed-off-by: Richard Purdie 
(cherry picked from commit e4d60408b869c9cc2ccff794d4e271d993ec8a97)
Signed-off-by: Steve Sakoman 
---
 meta/recipes-core/util-linux/util-linux_2.38.1.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-core/util-linux/util-linux_2.38.1.bb 
b/meta/recipes-core/util-linux/util-linux_2.38.1.bb
index 9ea7a04e8a..c81405533c 100644
--- a/meta/recipes-core/util-linux/util-linux_2.38.1.bb
+++ b/meta/recipes-core/util-linux/util-linux_2.38.1.bb
@@ -234,6 +234,8 @@ ALTERNATIVE_TARGET[getty] = "${base_sbindir}/agetty"
 ALTERNATIVE_LINK_NAME[hexdump] = "${bindir}/hexdump"
 ALTERNATIVE_LINK_NAME[hwclock] = "${base_sbindir}/hwclock"
 ALTERNATIVE_LINK_NAME[ionice] = "${bindir}/ionice"
+ALTERNATIVE_LINK_NAME[ipcrm] = "${bindir}/ipcrm"
+ALTERNATIVE_LINK_NAME[ipcs] = "${bindir}/ipcs"
 ALTERNATIVE_LINK_NAME[kill] = "${base_bindir}/kill"
 ALTERNATIVE:${PN}-last = "last lastb"
 ALTERNATIVE_LINK_NAME[last] = "${bindir}/last"
-- 
2.34.1


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



[OE-core][mickledore 26/27] openssl: use a glob on the PERLEXTERNAL to track updates on the path

2023-07-27 Thread Steve Sakoman
From: Jose Quaresma 

The Text-Template was updated from 1.46 to 1.56

| ERROR: openssl-native-3.1.1-r0 do_configure: PERLEXTERNAL 
'/build/tmp/work/x86_64-linux/openssl-native/3.1.1-r0/openssl-3.1.1/external/perl/Text-Template-1.46/lib'
 not found!

Signed-off-by: Jose Quaresma 
Signed-off-by: Alexandre Belloni 
Signed-off-by: Richard Purdie 
(cherry picked from commit b9a7739b01e31d0cc8358d99255e3e1b02a0a1a8)
Signed-off-by: Steve Sakoman 
---
 meta/recipes-connectivity/openssl/openssl_3.1.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-connectivity/openssl/openssl_3.1.1.bb 
b/meta/recipes-connectivity/openssl/openssl_3.1.1.bb
index b849f9ca79..432ab4032b 100644
--- a/meta/recipes-connectivity/openssl/openssl_3.1.1.bb
+++ b/meta/recipes-connectivity/openssl/openssl_3.1.1.bb
@@ -137,7 +137,7 @@ do_configure () {
fi
# WARNING: do not set compiler/linker flags (-I/-D etc.) in 
EXTRA_OECONF, as they will fully replace the
# environment variables set by bitbake. Adjust the environment 
variables instead.
-   PERLEXTERNAL="${S}/external/perl/Text-Template-1.46/lib"
+   PERLEXTERNAL="$(realpath ${S}/external/perl/Text-Template-*/lib)"
test -d "$PERLEXTERNAL" || bberror "PERLEXTERNAL '$PERLEXTERNAL' not 
found!"
HASHBANGPERL="/usr/bin/env perl" PERL=perl PERL5LIB="$PERLEXTERNAL" \
perl ${S}/Configure ${EXTRA_OECONF} ${PACKAGECONFIG_CONFARGS} 
${DEPRECATED_CRYPTO_FLAGS} --prefix=$useprefix --openssldir=${libdir}/ssl-3 
--libdir=${libdir} $target
-- 
2.34.1


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



[OE-core][mickledore 25/27] openssl: add PERLEXTERNAL path to test its existence

2023-07-27 Thread Steve Sakoman
From: Jose Quaresma 

When upstream change is better to fail or removing the PERL5LIB
if they are not need anymore.

Signed-off-by: Jose Quaresma 
Signed-off-by: Alexandre Belloni 
Signed-off-by: Richard Purdie 
(cherry picked from commit 337ac1159644678508990927923ef8af30f34cd7)
Signed-off-by: Steve Sakoman 
---
 meta/recipes-connectivity/openssl/openssl_3.1.1.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-connectivity/openssl/openssl_3.1.1.bb 
b/meta/recipes-connectivity/openssl/openssl_3.1.1.bb
index f5f3f32a97..b849f9ca79 100644
--- a/meta/recipes-connectivity/openssl/openssl_3.1.1.bb
+++ b/meta/recipes-connectivity/openssl/openssl_3.1.1.bb
@@ -137,7 +137,9 @@ do_configure () {
fi
# WARNING: do not set compiler/linker flags (-I/-D etc.) in 
EXTRA_OECONF, as they will fully replace the
# environment variables set by bitbake. Adjust the environment 
variables instead.
-   HASHBANGPERL="/usr/bin/env perl" PERL=perl 
PERL5LIB="${S}/external/perl/Text-Template-1.46/lib/" \
+   PERLEXTERNAL="${S}/external/perl/Text-Template-1.46/lib"
+   test -d "$PERLEXTERNAL" || bberror "PERLEXTERNAL '$PERLEXTERNAL' not 
found!"
+   HASHBANGPERL="/usr/bin/env perl" PERL=perl PERL5LIB="$PERLEXTERNAL" \
perl ${S}/Configure ${EXTRA_OECONF} ${PACKAGECONFIG_CONFARGS} 
${DEPRECATED_CRYPTO_FLAGS} --prefix=$useprefix --openssldir=${libdir}/ssl-3 
--libdir=${libdir} $target
perl ${B}/configdata.pm --dump
 }
-- 
2.34.1


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



[OE-core][mickledore 24/27] oeqa/selftest/devtool: add unit test for "devtool add -b"

2023-07-27 Thread Steve Sakoman
From: Yoann Congal 

Fix [Yocto #15085]

Co-authored-by: Fawzi KHABER 
Signed-off-by: Yoann Congal 
Signed-off-by: Richard Purdie 
(cherry picked from commit d5eedf8ca689ccb433c2f5d0b324378f966dd627)
Signed-off-by: Steve Sakoman 
---
 meta/lib/oeqa/selftest/cases/devtool.py | 32 +
 1 file changed, 32 insertions(+)

diff --git a/meta/lib/oeqa/selftest/cases/devtool.py 
b/meta/lib/oeqa/selftest/cases/devtool.py
index f51de8efe0..7ea56d3133 100644
--- a/meta/lib/oeqa/selftest/cases/devtool.py
+++ b/meta/lib/oeqa/selftest/cases/devtool.py
@@ -366,6 +366,38 @@ class DevtoolAddTests(DevtoolBase):
 bindir = bindir[1:]
 self.assertTrue(os.path.isfile(os.path.join(installdir, bindir, 
'pv')), 'pv binary not found in D')
 
+def test_devtool_add_binary(self):
+# Create a binary package containing a known test file
+tempdir = tempfile.mkdtemp(prefix='devtoolqa')
+self.track_for_cleanup(tempdir)
+pn = 'tst-bin'
+pv = '1.0'
+test_file_dir = "var/lib/%s/" % pn
+test_file_name= "test_file"
+test_file_content = "TEST CONTENT"
+test_file_package_root = os.path.join(tempdir, pn)
+test_file_dir_full = os.path.join(test_file_package_root, 
test_file_dir)
+bb.utils.mkdirhier(test_file_dir_full)
+with open(os.path.join(test_file_dir_full, test_file_name), "w") as f:
+   f.write(test_file_content)
+bin_package_path = os.path.join(tempdir, "%s.tar.gz" % pn)
+runCmd("tar czf %s -C %s ." % (bin_package_path, 
test_file_package_root))
+
+# Test devtool add -b on the binary package
+self.track_for_cleanup(self.workspacedir)
+self.add_command_to_tearDown('bitbake -c cleansstate %s' % pn)
+self.add_command_to_tearDown('bitbake-layers remove-layer */workspace')
+result = runCmd('devtool add  -b %s %s' % (pn, bin_package_path))
+self.assertExists(os.path.join(self.workspacedir, 'conf', 
'layer.conf'), 'Workspace directory not created')
+
+# Build the resulting recipe
+result = runCmd('devtool build %s' % pn)
+installdir = get_bb_var('D', pn)
+self.assertTrue(installdir, 'Could not query installdir variable')
+
+# Check that a known file from the binary package has indeed been 
installed
+self.assertTrue(os.path.isfile(os.path.join(installdir, test_file_dir, 
test_file_name)), '%s not found in D' % test_file_name)
+
 def test_devtool_add_git_local(self):
 # We need dbus built so that DEPENDS recognition works
 bitbake('dbus')
-- 
2.34.1


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



[OE-core][mickledore 23/27] rootfs_rpm: don't depend on opkg-native for update-alternatives

2023-07-27 Thread Steve Sakoman
From: Ross Burton 

opkg-native hasn't provided update-alternatives since 2014[1] so this is
the wrong dependency, and image.bbclass depends on the virtual provider
virtual/update-alternatives-native already.

[1] oe-core 1e2c38ce13f8e4b25d8656d237343380cbc970aa

Signed-off-by: Ross Burton 
Signed-off-by: Richard Purdie 
(cherry picked from commit 51004376be9a6b9a4c38585d14d2516d90138319)
Signed-off-by: Steve Sakoman 
---
 meta/classes-recipe/rootfs_rpm.bbclass | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/meta/classes-recipe/rootfs_rpm.bbclass 
b/meta/classes-recipe/rootfs_rpm.bbclass
index 6eccd5a959..55f1cc92ca 100644
--- a/meta/classes-recipe/rootfs_rpm.bbclass
+++ b/meta/classes-recipe/rootfs_rpm.bbclass
@@ -20,11 +20,9 @@ IMAGE_ROOTFS_EXTRA_SPACE:append = 
"${@bb.utils.contains("PACKAGE_INSTALL", "dnf"
 # Dnf is python based, so be sure python3-native is available to us.
 EXTRANATIVEPATH += "python3-native"
 
-# opkg is needed for update-alternatives
 RPMROOTFSDEPENDS = "rpm-native:do_populate_sysroot \
 dnf-native:do_populate_sysroot \
-createrepo-c-native:do_populate_sysroot \
-opkg-native:do_populate_sysroot"
+createrepo-c-native:do_populate_sysroot"
 
 do_rootfs[depends] += "${RPMROOTFSDEPENDS}"
 do_populate_sdk[depends] += "${RPMROOTFSDEPENDS}"
-- 
2.34.1


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



[OE-core][mickledore 22/27] oeqa/runtime/cases/rpm: fix wait_for_no_process_for_user failure case

2023-07-27 Thread Steve Sakoman
From: Ross Burton 

str.format() doesn't use % notation, update the formatting to work.

assertTrue() is a member of self not a global, and assertTrue(True) will
always pass. Change this to just self.fail() as this is the failure case.

Signed-off-by: Ross Burton 
Signed-off-by: Richard Purdie 
(cherry picked from commit 017f3a0b1265c1a3b69c20bdb56bbf446111977e)
Signed-off-by: Steve Sakoman 
---
 meta/lib/oeqa/runtime/cases/rpm.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/lib/oeqa/runtime/cases/rpm.py 
b/meta/lib/oeqa/runtime/cases/rpm.py
index fa86eb0537..a4ba4e6769 100644
--- a/meta/lib/oeqa/runtime/cases/rpm.py
+++ b/meta/lib/oeqa/runtime/cases/rpm.py
@@ -59,8 +59,8 @@ class RpmBasicTest(OERuntimeTestCase):
 return
 time.sleep(1)
 user_pss = [ps for ps in output.split("\n") if u + ' ' in ps]
-msg = "There're %s 's process(es) still running: %s".format(u, 
"\n".join(user_pss))
-assertTrue(True, msg=msg)
+msg = "User %s has processes still running: %s" % (u, 
"\n".join(user_pss))
+self.fail(msg=msg)
 
 def unset_up_test_user(u):
 # ensure no test1 process in running
-- 
2.34.1


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



[OE-core][mickledore 18/27] mdadm: re-add mdadm-ptest to PTESTS_SLOW

2023-07-27 Thread Steve Sakoman
From: Ovidiu Panait 

The ptest problems reported in e21021dc00ec ("mdadm: drop from PTESTS_SLOW")
should now be fixed, so mdadm can be added back to PTESTS_SLOW (a qemux86-64
test run takes about ~12 minutes to execute with kvm).

root@qemux86-64:~# ptest-runner mdadm
START: ptest-runner
2023-06-30T08:25
BEGIN: /usr/lib/mdadm/ptest
PASS: /usr/lib/mdadm/ptest/tests/00linear
PASS: /usr/lib/mdadm/ptest/tests/00multipath
...
PASS: /usr/lib/mdadm/ptest/tests/19repair-does-not-destroy
PASS: /usr/lib/mdadm/ptest/tests/20raid5journal
PASS: /usr/lib/mdadm/ptest/tests/21raid5cache
DURATION: 723
END: /usr/lib/mdadm/ptest
2023-06-30T09:16
STOP: ptest-runner
TOTAL: 1 FAIL: 0

For the testcases to run correctly, there must be enough rootfs space to create
13 loop devices. Similar to strace and lttng-tools, add a new
IMAGE_ROOTFS_EXTRA_SPACE entry for mdadm-ptest.

Signed-off-by: Ovidiu Panait 
Signed-off-by: Richard Purdie 
(cherry picked from commit dfefff63c547adb1add0c8e3a308b2d0bd6cfc8c)
Signed-off-by: Steve Sakoman 
---
 meta/conf/distro/include/ptest-packagelists.inc | 3 +--
 meta/recipes-core/images/core-image-ptest.bb| 1 +
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/conf/distro/include/ptest-packagelists.inc 
b/meta/conf/distro/include/ptest-packagelists.inc
index 003348906a..674801d8b8 100644
--- a/meta/conf/distro/include/ptest-packagelists.inc
+++ b/meta/conf/distro/include/ptest-packagelists.inc
@@ -96,6 +96,7 @@ PTESTS_SLOW = "\
 libgcrypt \
 libmodule-build-perl \
 lttng-tools \
+mdadm \
 openssh \
 openssl \
 parted \
@@ -119,7 +120,6 @@ PTESTS_PROBLEMS:append:x86 = " valgrind"
 #rt-tests \ # Needs to be checked whether it runs at all
 #bash \ # Test outcomes are non-deterministic by design
 #ifupdown \ # Tested separately in lib/oeqa/selftest/cases/imagefeatures.py
-#mdadm \ # Tests rely on non-deterministic sleep() amounts
 #libinput \ # Tests need an unloaded system to be reliable
 #libpam \ # Needs pam DISTRO_FEATURE
 #numactl \ # qemu not (yet) configured for numa; all tests are skipped
@@ -132,7 +132,6 @@ PTESTS_PROBLEMS = "\
 rt-tests \
 bash \
 ifupdown \
-mdadm \
 libinput \
 libpam \
 libseccomp \
diff --git a/meta/recipes-core/images/core-image-ptest.bb 
b/meta/recipes-core/images/core-image-ptest.bb
index 90c26641ba..ddc56c8f9f 100644
--- a/meta/recipes-core/images/core-image-ptest.bb
+++ b/meta/recipes-core/images/core-image-ptest.bb
@@ -19,6 +19,7 @@ BBCLASSEXTEND = "${@' '.join(['mcextend:'+x for x in 
d.getVar('PTESTS').split()]
 # strace-ptest in particular needs more than 500MB
 IMAGE_OVERHEAD_FACTOR = "1.0"
 IMAGE_ROOTFS_EXTRA_SPACE = "324288"
+IMAGE_ROOTFS_EXTRA_SPACE:virtclass-mcextend-mdadm = "1524288"
 IMAGE_ROOTFS_EXTRA_SPACE:virtclass-mcextend-strace = "1024288"
 IMAGE_ROOTFS_EXTRA_SPACE:virtclass-mcextend-lttng-tools = "1524288"
 
-- 
2.34.1


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



[OE-core][mickledore 21/27] systemd-systemctl: fix errors in instance name expansion

2023-07-27 Thread Steve Sakoman
From: Yuta Hayama 

If the instance name indicated by %i begins with a number, the meaning of the
replacement string "\\1{}".format(instance) is ambiguous.

To indicate group number 1 regardless of the instance name, use "\g<1>".

Signed-off-by: Yuta Hayama 
Signed-off-by: Richard Purdie 
(cherry picked from commit d18b939fb08b37380ce95934da38e6522392621c)
Signed-off-by: Steve Sakoman 
---
 meta/recipes-core/systemd/systemd-systemctl/systemctl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/systemd/systemd-systemctl/systemctl 
b/meta/recipes-core/systemd/systemd-systemctl/systemctl
index 514f747fe6..7fe751b397 100755
--- a/meta/recipes-core/systemd/systemd-systemctl/systemctl
+++ b/meta/recipes-core/systemd/systemd-systemctl/systemctl
@@ -202,7 +202,7 @@ class SystemdUnit():
 try:
 for dependent in config.get('Install', prop):
 # expand any %i to instance (ignoring escape sequence %%)
-dependent = re.sub("([^%](%%)*)%i", "\\1{}".format(instance), 
dependent)
+dependent = re.sub("([^%](%%)*)%i", 
"\\g<1>{}".format(instance), dependent)
 wants = systemdir / "{}.{}".format(dependent, dirstem) / 
service
 add_link(wants, target)
 
-- 
2.34.1


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



[OE-core][mickledore 20/27] meson.bbclass: Point to llvm-config from native sysroot

2023-07-27 Thread Steve Sakoman
From: Khem Raj 

Default search in meson would grok /usr/bin for llvm-config and if found
will use it, which might add wrong paths into cflags/ldflags, since we
depend on llvm-native when building gallium support ( thats when
llvm-config is effective), its better to point llvm-config into native
sysroot so it can add correct paths into compiler/linker cmdline

Signed-off-by: Khem Raj 
Signed-off-by: Richard Purdie 
(cherry picked from commit cc73360b9728812ed6123e30559b77d8e89cc21c)
Signed-off-by: Steve Sakoman 
---
 meta/classes-recipe/meson.bbclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/classes-recipe/meson.bbclass 
b/meta/classes-recipe/meson.bbclass
index 48688bed75..7f5e9b1943 100644
--- a/meta/classes-recipe/meson.bbclass
+++ b/meta/classes-recipe/meson.bbclass
@@ -111,6 +111,7 @@ nm = ${@meson_array('BUILD_NM', d)}
 strip = ${@meson_array('BUILD_STRIP', d)}
 readelf = ${@meson_array('BUILD_READELF', d)}
 objcopy = ${@meson_array('BUILD_OBJCOPY', d)}
+llvm-config = '${STAGING_BINDIR_NATIVE}/llvm-config'
 pkgconfig = 'pkg-config-native'
 ${@rust_tool(d, "BUILD_SYS")}
 
-- 
2.34.1


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



[OE-core][mickledore 19/27] python3: fix missing comma in get_module_deps3.py

2023-07-27 Thread Steve Sakoman
From: Ross Burton 

Wes Tarro  noticed a missing comma in a
preplace() call, add it.

That said, calling replace() with one argument results in a TypeError,
so this is obviously dead code.

Signed-off-by: Ross Burton 
Signed-off-by: Richard Purdie 
(cherry picked from commit 9b2e2c8d809e7ca34451ec9702b029a00dfb410b)
Signed-off-by: Steve Sakoman 
---
 meta/recipes-devtools/python/python3/get_module_deps3.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/python/python3/get_module_deps3.py 
b/meta/recipes-devtools/python/python3/get_module_deps3.py
index 0ca687d2eb..8e432b49af 100644
--- a/meta/recipes-devtools/python/python3/get_module_deps3.py
+++ b/meta/recipes-devtools/python/python3/get_module_deps3.py
@@ -32,7 +32,7 @@ def fix_path(dep_path):
 dep_path = dep_path[dep_path.find(pivot)+len(pivot):]
 
 if '/usr/bin' in dep_path:
-dep_path = dep_path.replace('/usr/bin''${bindir}')
+dep_path = dep_path.replace('/usr/bin','${bindir}')
 
 # Handle multilib, is there a better way?
 if '/usr/lib32' in dep_path:
-- 
2.34.1


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



[OE-core][mickledore 17/27] mdadm: skip running known broken ptests

2023-07-27 Thread Steve Sakoman
From: Ovidiu Panait 

Upstream marked some testcases as "KNOWN BROKEN" and introduced the
"--skip-broken" flag to ignore them when running the testsuite (commits [1]
and [2]). Backport these two commits to get rid of the last remaining ptest
failures.

Also, add the "--skip-broken" option to the run-ptest script.

[1] https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git/commit/?id=28520bf114b3
[2] https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git/commit/?id=daa86d663476

Signed-off-by: Ovidiu Panait 
Signed-off-by: Richard Purdie 
(cherry picked from commit 62148b978b26b5fcd1a2fa3a0ff82ef814f4e7ec)
Signed-off-by: Steve Sakoman 
---
 ...Mark-and-ignore-broken-test-failures.patch | 128 +
 ...dd-broken-files-for-all-broken-tests.patch | 454 ++
 meta/recipes-extended/mdadm/files/run-ptest   |   2 +-
 meta/recipes-extended/mdadm/mdadm_4.2.bb  |   2 +
 4 files changed, 585 insertions(+), 1 deletion(-)
 create mode 100644 
meta/recipes-extended/mdadm/files/0005-mdadm-test-Mark-and-ignore-broken-test-failures.patch
 create mode 100644 
meta/recipes-extended/mdadm/files/0006-tests-Add-broken-files-for-all-broken-tests.patch

diff --git 
a/meta/recipes-extended/mdadm/files/0005-mdadm-test-Mark-and-ignore-broken-test-failures.patch
 
b/meta/recipes-extended/mdadm/files/0005-mdadm-test-Mark-and-ignore-broken-test-failures.patch
new file mode 100644
index 00..c55bfb125b
--- /dev/null
+++ 
b/meta/recipes-extended/mdadm/files/0005-mdadm-test-Mark-and-ignore-broken-test-failures.patch
@@ -0,0 +1,128 @@
+From feab1f72fcf032a4d21d0a69eb61b23a5ddb3352 Mon Sep 17 00:00:00 2001
+From: Logan Gunthorpe 
+Date: Wed, 22 Jun 2022 14:25:18 -0600
+Subject: [PATCH 5/6] mdadm/test: Mark and ignore broken test failures
+
+Add functionality to continue if a test marked as broken fails.
+
+To mark a test as broken, a file with the same name but with the suffix
+'.broken' should exist. The first line in the file will be printed with
+a KNOWN BROKEN message; the rest of the file can describe the how the
+test is broken.
+
+Also adds --skip-broken and --skip-always-broken to skip all the tests
+that have a .broken file or to skip all tests whose .broken file's first
+line contains the keyword always.
+
+Signed-off-by: Logan Gunthorpe 
+Signed-off-by: Jes Sorensen 
+
+Upstream-Status: Backport
+
+Reference to upstream patch:
+https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git/commit/?id=28520bf114b3
+
+[OP: adjusted context for mdadm-4.2]
+Signed-off-by: Ovidiu Panait 
+---
+ test | 37 +++--
+ 1 file changed, 35 insertions(+), 2 deletions(-)
+
+diff --git a/test b/test
+index 8f189d9..ee8fba1 100755
+--- a/test
 b/test
+@@ -10,6 +10,8 @@ devlist=
+ 
+ savelogs=0
+ exitonerror=1
++ctrl_c_error=0
++skipbroken=0
+ prefix='[0-9][0-9]'
+ 
+ # use loop devices by default if doesn't specify --dev
+@@ -35,6 +37,7 @@ die() {
+ 
+ ctrl_c() {
+   exitonerror=1
++  ctrl_c_error=1
+ }
+ 
+ # mdadm always adds --quiet, and we want to see any unexpected messages
+@@ -79,8 +82,21 @@ mdadm() {
+ do_test() {
+   _script=$1
+   _basename=`basename $_script`
++  _broken=0
++
+   if [ -f "$_script" ]
+   then
++  if [ -f "${_script}.broken" ]; then
++  _broken=1
++  _broken_msg=$(head -n1 "${_script}.broken" | tr -d '\n')
++  if [ "$skipbroken" == "all" ]; then
++  return
++  elif [ "$skipbroken" == "always" ] &&
++   [[ "$_broken_msg" == *always* ]]; then
++  return
++  fi
++  fi
++
+   rm -f $targetdir/stderr
+   # this might have been reset: restore the default.
+   echo 2000 > /proc/sys/dev/raid/speed_limit_max
+@@ -97,10 +113,15 @@ do_test() {
+   else
+   save_log fail
+   _fail=1
++  if [ "$_broken" == "1" ]; then
++  echo "  (KNOWN BROKEN TEST: $_broken_msg)"
++  fi
+   fi
+   [ "$savelogs" == "1" ] &&
+   mv -f $targetdir/log $logdir/$_basename.log
+-  [ "$_fail" == "1" -a "$exitonerror" == "1" ] && exit 1
++  [ "$ctrl_c_error" == "1" ] && exit 1
++  [ "$_fail" == "1" -a "$exitonerror" == "1" \
++-a "$_broken" == "0" ] && exit 1
+   fi
+ }
+ 
+@@ -117,6 +138,8 @@ do_help() {
+   --logdir=directory  Directory to save all logfiles in
+   --save-logs Usually use with --logdir together
+   --keep-going | --no-error   Don't stop on error, ie. run all 
tests
++  --skip-broken   Skip tests that are known to be 
broken
++  --skip-always-brokenSkip tests that are known to always 
fail
+   

[OE-core][mickledore 15/27] mdadm: fix 07revert-inplace ptest

2023-07-27 Thread Steve Sakoman
From: Ovidiu Panait 

Testcase 07revert-inplace fails if strace is not installed:
...
strace -o /tmp/str ./mdadm -A /dev/md0 --update=revert-reshape /dev/<...>
tests/07revert-inplace: line 40: strace: command not found

Add strace to mdadm-ptest RDEPENDS to make sure the testcase passes even with
a core-image-minimal build.

Signed-off-by: Ovidiu Panait 
Signed-off-by: Richard Purdie 
(cherry picked from commit 7d9386663ac52ab69812867a0823c6055aedbc18)
Signed-off-by: Steve Sakoman 
---
 meta/recipes-extended/mdadm/mdadm_4.2.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-extended/mdadm/mdadm_4.2.bb 
b/meta/recipes-extended/mdadm/mdadm_4.2.bb
index bcc0175f67..6152a83655 100644
--- a/meta/recipes-extended/mdadm/mdadm_4.2.bb
+++ b/meta/recipes-extended/mdadm/mdadm_4.2.bb
@@ -101,7 +101,7 @@ do_install_ptest() {
 }
 
 RDEPENDS:${PN} += "bash"
-RDEPENDS:${PN}-ptest += "bash e2fsprogs-mke2fs util-linux-lsblk 
util-linux-losetup"
+RDEPENDS:${PN}-ptest += "bash e2fsprogs-mke2fs util-linux-lsblk 
util-linux-losetup strace"
 RRECOMMENDS:${PN}-ptest += " \
 coreutils \
 kernel-module-loop \
-- 
2.34.1


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



[OE-core][mickledore 16/27] mdadm: fix segfaults when running ptests

2023-07-27 Thread Steve Sakoman
From: Ovidiu Panait 

Currently, some segfaults are reported when running ptest:
mdadm[12333]: segfault at 0 ip 7fe855924060 sp 7ffc4d6caf88 error 4 in 
libc.so.6[7f)
Code: d2 0f 84 b7 0f 00 00 48 83 fa 01 0f 84 b9 0f 00 00 49 89 d3 89 f1 89 f8 
48 83 e1 3f 4f

Backport the following upstream commits to fix them:
679bd9508a30 ("DDF: Cleanup validate_geometry_ddf_container()")
2b93288a5650 ("DDF: Fix NULL pointer dereference in validate_geometry_ddf()")
548e9b916f86 ("mdadm/Grow: Fix use after close bug by closing after fork")
9ae62977b51d ("monitor: Avoid segfault when calling NULL get_bad_blocks")

The fixes are part of the "Bug fixes and testing improvments" patchset [1].

[1] https://www.spinics.net/lists/raid/msg70621.html

Signed-off-by: Ovidiu Panait 
Signed-off-by: Richard Purdie 
(cherry picked from commit 9585009e3e505b361cd32b14e0e85e77e7822878)
Signed-off-by: Steve Sakoman 
---
 ...anup-validate_geometry_ddf_container.patch | 148 ++
 ...nter-dereference-in-validate_geometr.patch |  56 +++
 ...se-after-close-bug-by-closing-after-.patch |  91 +++
 ...gfault-when-calling-NULL-get_bad_blo.patch |  42 +
 meta/recipes-extended/mdadm/mdadm_4.2.bb  |   4 +
 5 files changed, 341 insertions(+)
 create mode 100644 
meta/recipes-extended/mdadm/files/0001-DDF-Cleanup-validate_geometry_ddf_container.patch
 create mode 100644 
meta/recipes-extended/mdadm/files/0002-DDF-Fix-NULL-pointer-dereference-in-validate_geometr.patch
 create mode 100644 
meta/recipes-extended/mdadm/files/0003-mdadm-Grow-Fix-use-after-close-bug-by-closing-after-.patch
 create mode 100644 
meta/recipes-extended/mdadm/files/0004-monitor-Avoid-segfault-when-calling-NULL-get_bad_blo.patch

diff --git 
a/meta/recipes-extended/mdadm/files/0001-DDF-Cleanup-validate_geometry_ddf_container.patch
 
b/meta/recipes-extended/mdadm/files/0001-DDF-Cleanup-validate_geometry_ddf_container.patch
new file mode 100644
index 00..cea435f83b
--- /dev/null
+++ 
b/meta/recipes-extended/mdadm/files/0001-DDF-Cleanup-validate_geometry_ddf_container.patch
@@ -0,0 +1,148 @@
+From ca458f4dcc4de9403298f67543466ce4bbc8f8ae Mon Sep 17 00:00:00 2001
+From: Logan Gunthorpe 
+Date: Wed, 22 Jun 2022 14:25:07 -0600
+Subject: [PATCH 1/4] DDF: Cleanup validate_geometry_ddf_container()
+
+Move the function up so that the function declaration is not necessary
+and remove the unused arguments to the function.
+
+No functional changes are intended but will help with a bug fix in the
+next patch.
+
+Signed-off-by: Logan Gunthorpe 
+Acked-by: Mariusz Tkaczyk 
+Signed-off-by: Jes Sorensen 
+
+Upstream-Status: Backport
+
+Reference to upstream patch:
+https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git/commit/?id=679bd9508a30
+
+Signed-off-by: Ovidiu Panait 
+---
+ super-ddf.c | 88 -
+ 1 file changed, 39 insertions(+), 49 deletions(-)
+
+diff --git a/super-ddf.c b/super-ddf.c
+index 3f304cd..65cf727 100644
+--- a/super-ddf.c
 b/super-ddf.c
+@@ -503,13 +503,6 @@ struct ddf_super {
+ static int load_super_ddf_all(struct supertype *st, int fd,
+ void **sbp, char *devname);
+ static int get_svd_state(const struct ddf_super *, const struct vcl *);
+-static int
+-validate_geometry_ddf_container(struct supertype *st,
+-  int level, int layout, int raiddisks,
+-  int chunk, unsigned long long size,
+-  unsigned long long data_offset,
+-  char *dev, unsigned long long *freesize,
+-  int verbose);
+ 
+ static int validate_geometry_ddf_bvd(struct supertype *st,
+int level, int layout, int raiddisks,
+@@ -3322,6 +3315,42 @@ static int reserve_space(struct supertype *st, int 
raiddisks,
+   return 1;
+ }
+ 
++static int
++validate_geometry_ddf_container(struct supertype *st,
++  int level, int raiddisks,
++  unsigned long long data_offset,
++  char *dev, unsigned long long *freesize,
++  int verbose)
++{
++  int fd;
++  unsigned long long ldsize;
++
++  if (level != LEVEL_CONTAINER)
++  return 0;
++  if (!dev)
++  return 1;
++
++  fd = dev_open(dev, O_RDONLY|O_EXCL);
++  if (fd < 0) {
++  if (verbose)
++  pr_err("ddf: Cannot open %s: %s\n",
++ dev, strerror(errno));
++  return 0;
++  }
++  if (!get_dev_size(fd, dev, )) {
++  close(fd);
++  return 0;
++  }
++  close(fd);
++  if (freesize) {
++  *freesize = avail_size_ddf(st, ldsize >> 9, INVALID_SECTORS);
++  if (*freesize == 0)
++  return 0;
++  }
++
++  return 1;
++}
++
+ static int validate_geometry_ddf(struct 

[OE-core][mickledore 14/27] mdadm: fix util-linux ptest dependency

2023-07-27 Thread Steve Sakoman
From: Ovidiu Panait 

Trying to run mdadm-ptest in a core-image-minimal build will result in:
root@qemux86-64:~# ptest-runner mdadm
START: ptest-runner
BEGIN: /usr/lib/mdadm/ptest
which: no lsblk in 
(/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin)
lsblk command not found!
DURATION: 0
END: /usr/lib/mdadm/ptest
2023-06-28T10:14
STOP: ptest-runner
TOTAL: 1 FAIL: 0

Remove util-linux from RRECOMMENDS and only add util-linux-lsblk and
util-linux-losetup to RDEPENDS.

Signed-off-by: Ovidiu Panait 
Signed-off-by: Richard Purdie 
(cherry picked from commit 3004f7589974c135cc82630d980ea281b97ecd83)
Signed-off-by: Steve Sakoman 
---
 meta/recipes-extended/mdadm/mdadm_4.2.bb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/meta/recipes-extended/mdadm/mdadm_4.2.bb 
b/meta/recipes-extended/mdadm/mdadm_4.2.bb
index 14de9d88c2..bcc0175f67 100644
--- a/meta/recipes-extended/mdadm/mdadm_4.2.bb
+++ b/meta/recipes-extended/mdadm/mdadm_4.2.bb
@@ -101,10 +101,9 @@ do_install_ptest() {
 }
 
 RDEPENDS:${PN} += "bash"
-RDEPENDS:${PN}-ptest += "bash e2fsprogs-mke2fs"
+RDEPENDS:${PN}-ptest += "bash e2fsprogs-mke2fs util-linux-lsblk 
util-linux-losetup"
 RRECOMMENDS:${PN}-ptest += " \
 coreutils \
-util-linux \
 kernel-module-loop \
 kernel-module-linear \
 kernel-module-raid0 \
-- 
2.34.1


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



[OE-core][mickledore 13/27] uboot-extlinux-config.bbclass: fix old override syntax in comment

2023-07-27 Thread Steve Sakoman
From: Quentin Schulz 

The comment specifies how to use the variables but uses the older and
now unsupported override syntax. Let's update to match the newer syntax.

Cc: Quentin Schulz 
(From OE-Core rev: 0a381eea4d50ff1c6e7c7d0d4df62eb581454b48)

Signed-off-by: Quentin Schulz 
Signed-off-by: Alexandre Belloni 
Signed-off-by: Ross Burton 
Signed-off-by: Richard Purdie 
(cherry picked from commit bb64f3fed29b9532e6ddc9a2ba0283d373622d87)
Signed-off-by: Steve Sakoman 
---
 meta/classes-recipe/uboot-extlinux-config.bbclass | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/meta/classes-recipe/uboot-extlinux-config.bbclass 
b/meta/classes-recipe/uboot-extlinux-config.bbclass
index 86a7d30ca0..653e583663 100644
--- a/meta/classes-recipe/uboot-extlinux-config.bbclass
+++ b/meta/classes-recipe/uboot-extlinux-config.bbclass
@@ -33,11 +33,11 @@
 # UBOOT_EXTLINUX_DEFAULT_LABEL ??= "Linux Default"
 # UBOOT_EXTLINUX_TIMEOUT ??= "30"
 #
-# UBOOT_EXTLINUX_KERNEL_IMAGE_default ??= "../zImage"
-# UBOOT_EXTLINUX_MENU_DESCRIPTION_default ??= "Linux Default"
+# UBOOT_EXTLINUX_KERNEL_IMAGE:default ??= "../zImage"
+# UBOOT_EXTLINUX_MENU_DESCRIPTION:default ??= "Linux Default"
 #
-# UBOOT_EXTLINUX_KERNEL_IMAGE_fallback ??= "../zImage-fallback"
-# UBOOT_EXTLINUX_MENU_DESCRIPTION_fallback ??= "Linux Fallback"
+# UBOOT_EXTLINUX_KERNEL_IMAGE:fallback ??= "../zImage-fallback"
+# UBOOT_EXTLINUX_MENU_DESCRIPTION:fallback ??= "Linux Fallback"
 #
 # Results:
 #
-- 
2.34.1


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



[OE-core][mickledore 12/27] kernel-module-split add systemd modulesloaddir and modprobedir config

2023-07-27 Thread Steve Sakoman
From: Jose Quaresma 

Because busybox doesn't support other path than /etc [1] we can't
change the default path unconditionally so change it only for systemd.

The modules-load.d [2] - Configure kernel modules to load at boot
should install their configuration files in /usr/lib/modules-load.d.

The modprobe.d [3] - Configuration directory for modprobe
should install their configuration files in /lib/modprobe.d

[1] 
https://git.busybox.net/busybox/tree/modutils/modprobe.c?id=669c40ed8ebf480c95ce36135104e474e361a7e6#n658
[2] https://man7.org/linux/man-pages/man5/modules-load.d.5.html
[3] https://man7.org/linux/man-pages/man5/modprobe.d.5.html

[YOCTO #12212] https://bugzilla.yoctoproject.org/show_bug.cgi?id=12212

Signed-off-by: Jose Quaresma 
Signed-off-by: Richard Purdie 
(cherry picked from commit 075c309bd28bc8e19a82569a2e75da14fa5795dd)
Signed-off-by: Steve Sakoman 
---
 meta/classes-recipe/kernel-module-split.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes-recipe/kernel-module-split.bbclass 
b/meta/classes-recipe/kernel-module-split.bbclass
index 0e4f9a6ec3..c1208d55e0 100644
--- a/meta/classes-recipe/kernel-module-split.bbclass
+++ b/meta/classes-recipe/kernel-module-split.bbclass
@@ -30,8 +30,8 @@ fi
 
 PACKAGE_WRITE_DEPS += "kmod-native depmodwrapper-cross"
 
-modulesloaddir ??= "${sysconfdir}/modules-load.d"
-modprobedir ??= "${sysconfdir}/modprobe.d"
+modulesloaddir ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 
'${nonarch_libdir}', '${sysconfdir}', d)}/modules-load.d"
+modprobedir ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 
'${nonarch_base_libdir}', '${sysconfdir}', d)}/modprobe.d"
 
 KERNEL_SPLIT_MODULES ?= "1"
 PACKAGESPLITFUNCS =+ "split_kernel_module_packages"
-- 
2.34.1


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



[OE-core][mickledore 11/27] pkgconf: update SRC_URI

2023-07-27 Thread Steve Sakoman
From: Ross Burton 

dereferenced.org is now longer controlled by the pkgconf maintainers[1],
so use the the new hosting location.

[1] 
https://github.com/pkgconf/pkgconf/commit/437c2a3218bfcb1cae7fa38a4ccd0cb29575ff07

Signed-off-by: Ross Burton 
Signed-off-by: Richard Purdie 
(cherry picked from commit c3df4594513410c7a6352e62aa928c42982eac13)
Signed-off-by: Steve Sakoman 
---
 meta/recipes-devtools/pkgconf/pkgconf_1.9.5.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/pkgconf/pkgconf_1.9.5.bb 
b/meta/recipes-devtools/pkgconf/pkgconf_1.9.5.bb
index 4bdf03c574..ab1d1c84e8 100644
--- a/meta/recipes-devtools/pkgconf/pkgconf_1.9.5.bb
+++ b/meta/recipes-devtools/pkgconf/pkgconf_1.9.5.bb
@@ -15,7 +15,7 @@ LICENSE = "pkgconf"
 LIC_FILES_CHKSUM = "file://COPYING;md5=2214222ec1a820bd6cc75167a56925e0"
 
 SRC_URI = "\
-https://distfiles.dereferenced.org/pkgconf/pkgconf-${PV}.tar.xz \
+https://distfiles.ariadne.space/pkgconf/pkgconf-${PV}.tar.xz \
 file://pkg-config-wrapper \
 file://pkg-config-native.in \
 file://pkg-config-esdk.in \
-- 
2.34.1


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



[OE-core][mickledore 10/27] scripts/oe-setup-builddir: copy conf-notes.txt to build dir

2023-07-27 Thread Steve Sakoman
From: Stéphane Veyret 

Since commit 569d4cd325, if one is using a custom template directory
containing a conf-notes.txt, this file is only displayed when creating
a new environment. When entering an already existing environment, only
the default poky conf-notes.txt is displayed.

This patch copies the conf-notes.txt to display to the build directory,
so that the good file is shown, even when templateconf.cfg is not used.

Signed-off-by: Stéphane Veyret 
Signed-off-by: Richard Purdie 
(cherry picked from commit 845e8292f218d740ee653fa68bc3110aec1af3c5)
Signed-off-by: Steve Sakoman 
---
 scripts/oe-setup-builddir | 14 +-
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/scripts/oe-setup-builddir b/scripts/oe-setup-builddir
index 89ae30f609..678aeac4be 100755
--- a/scripts/oe-setup-builddir
+++ b/scripts/oe-setup-builddir
@@ -98,9 +98,17 @@ EOM
 SHOWYPDOC=yes
 fi
 
+if [ -z "$OECORENOTESCONF" ]; then
+OECORENOTESCONF="$OEROOT/meta/conf/templates/default/conf-notes.txt"
+fi
+if [ ! -r "$BUILDDIR/conf/conf-notes.txt" ]; then
+[ ! -r "$OECORENOTESCONF" ] || cp "$OECORENOTESCONF" 
"$BUILDDIR/conf/conf-notes.txt"
+fi
+
 # Prevent disturbing a new GIT clone in same console
 unset OECORELOCALCONF
 unset OECORELAYERCONF
+unset OECORENOTESCONF
 
 # Ending the first-time run message. Show the YP Documentation banner.
 if [ -n "$SHOWYPDOC" ]; then
@@ -116,11 +124,7 @@ EOM
 #unset SHOWYPDOC
 fi
 
-if [ -z "$OECORENOTESCONF" ]; then
-OECORENOTESCONF="$OEROOT/meta/conf/templates/default/conf-notes.txt"
-fi
-[ ! -r "$OECORENOTESCONF" ] || cat "$OECORENOTESCONF"
-unset OECORENOTESCONF
+[ ! -r "$BUILDDIR/conf/conf-notes.txt" ] || cat "$BUILDDIR/conf/conf-notes.txt"
 
 if [ ! -f "$BUILDDIR/conf/templateconf.cfg" ]; then
 echo "$ORG_TEMPLATECONF" >"$BUILDDIR/conf/templateconf.cfg"
-- 
2.34.1


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



[OE-core][mickledore 08/27] taglib: upgrade 1.13 -> 1.13.1

2023-07-27 Thread Steve Sakoman
From: Wang Mingyu 

Changelog:
===
 * Fixed parsing of TXXX frames without description.
 * Detect MP4 atoms with invalid length or type.
 * Do not miss ID3v2 frames when an extended header is present.
 * Use property "DISCSUBTITLE" for ID3v2 "TSST" frame.
 * Build system improvements: Use absolute path for macOS dylib install name,
   support --define-prefix when using pkg-config, fixed minimum required
   CppUnit version.
 * Code clean up using clang-tidy.

Signed-off-by: Wang Mingyu 
Signed-off-by: Alexandre Belloni 
Signed-off-by: Richard Purdie 
(cherry picked from commit 69477347a21cc810851fd231659f73c6b4661d03)
Signed-off-by: Steve Sakoman 
---
 .../recipes-support/taglib/{taglib_1.13.bb => taglib_1.13.1.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-support/taglib/{taglib_1.13.bb => taglib_1.13.1.bb} (95%)

diff --git a/meta/recipes-support/taglib/taglib_1.13.bb 
b/meta/recipes-support/taglib/taglib_1.13.1.bb
similarity index 95%
rename from meta/recipes-support/taglib/taglib_1.13.bb
rename to meta/recipes-support/taglib/taglib_1.13.1.bb
index 6560bc3660..3f0a759f95 100644
--- a/meta/recipes-support/taglib/taglib_1.13.bb
+++ b/meta/recipes-support/taglib/taglib_1.13.1.bb
@@ -11,7 +11,7 @@ DEPENDS = "zlib"
 
 SRC_URI = "http://taglib.github.io/releases/${BP}.tar.gz;
 
-SRC_URI[sha256sum] = 
"58f08b4db3dc31ed152c04896ee9172d22052bc7ef12888028c01d8b1d60ade0"
+SRC_URI[sha256sum] = 
"c8da2b10f1bfec2cd7dbfcd33f4a2338db0765d851a50583d410bacf055cfd0b"
 
 UPSTREAM_CHECK_URI = "https://taglib.org/;
 
-- 
2.34.1


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



[OE-core][mickledore 09/27] libwebp: upgrade 1.3.0 -> 1.3.1

2023-07-27 Thread Steve Sakoman
From: Wang Mingyu 

CVE-2023-1999.patch
removed since it's included in 1.3.1

Changelog:
==
  This is a binary compatible release.
  * security fixes for lossless encoder (#603, chromium: #1420107, #1455619,
CVE-2023-1999)
  * improve error reporting through WebPPicture error codes
  * fix upsampling for RGB565 and RGBA in NEON builds
  * img2webp: add -sharp_yuv & -near_lossless
  * Windows builds:
- fix compatibility with clang-cl (#607)
- improve Arm64 performance with cl.exe
- add Arm64EC support
  * fix webp_js with emcc >= 3.1.27 (stack size change, #614)
  * CMake fixes (#592, #610, #612)
  * further updates to the container and lossless bitstream docs (#581, #611)

Signed-off-by: Wang Mingyu 
Signed-off-by: Alexandre Belloni 
Signed-off-by: Richard Purdie 
(cherry picked from commit 15411fb32b5a3c0ac9c06ff89db5664799f55d77)
Signed-off-by: Steve Sakoman 
---
 .../webp/files/CVE-2023-1999.patch| 55 ---
 .../{libwebp_1.3.0.bb => libwebp_1.3.1.bb}|  6 +-
 2 files changed, 1 insertion(+), 60 deletions(-)
 delete mode 100644 meta/recipes-multimedia/webp/files/CVE-2023-1999.patch
 rename meta/recipes-multimedia/webp/{libwebp_1.3.0.bb => libwebp_1.3.1.bb} 
(93%)

diff --git a/meta/recipes-multimedia/webp/files/CVE-2023-1999.patch 
b/meta/recipes-multimedia/webp/files/CVE-2023-1999.patch
deleted file mode 100644
index d293ab93ab..00
--- a/meta/recipes-multimedia/webp/files/CVE-2023-1999.patch
+++ /dev/null
@@ -1,55 +0,0 @@
-From a486d800b60d0af4cc0836bf7ed8f21e12974129 Mon Sep 17 00:00:00 2001
-From: James Zern 
-Date: Wed, 22 Feb 2023 22:15:47 -0800
-Subject: [PATCH] EncodeAlphaInternal: clear result->bw on error
-
-This avoids a double free should the function fail prior to
-VP8BitWriterInit() and a previous trial result's buffer carried over.
-Previously in ApplyFiltersAndEncode() trial.bw (with a previous
-iteration's buffer) would be freed, followed by best.bw pointing to the
-same buffer.
-
-Since:
-187d379d add a fallback to ALPHA_NO_COMPRESSION
-
-In addition, check the return value of VP8BitWriterInit() in this
-function.
-
-Bug: webp:603
-Change-Id: Ic258381ee26c8c16bc211d157c8153831c8c6910
-
-CVE: CVE-2023-1999
-Upstream-Status: Backport 
[https://github.com/webmproject/libwebp/commit/a486d800b60d0af4cc0836bf7ed8f21e12974129]
-Signed-off-by: Nikhil R 

- src/enc/alpha_enc.c | 4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
-
-diff --git a/src/enc/alpha_enc.c b/src/enc/alpha_enc.c
-index f7c02690e3..7d205586fe 100644
 a/src/enc/alpha_enc.c
-+++ b/src/enc/alpha_enc.c
-@@ -13,6 +13,7 @@
- 
- #include 
- #include 
-+#include 
- 
- #include "src/enc/vp8i_enc.h"
- #include "src/dsp/dsp.h"
-@@ -148,6 +149,7 @@ static int EncodeAlphaInternal(const uint8_t* const data, 
int width, int height,
-   }
- } else {
-   VP8LBitWriterWipeOut(_bw);
-+  memset(>bw, 0, sizeof(result->bw));
-   return 0;
- }
-   }
-@@ -162,7 +164,7 @@ static int EncodeAlphaInternal(const uint8_t* const data, 
int width, int height,
-   header = method | (filter << 2);
-   if (reduce_levels) header |= ALPHA_PREPROCESSED_LEVELS << 4;
- 
--  VP8BitWriterInit(>bw, ALPHA_HEADER_LEN + output_size);
-+  if (!VP8BitWriterInit(>bw, ALPHA_HEADER_LEN + output_size)) ok = 0;
-   ok = ok && VP8BitWriterAppend(>bw, , ALPHA_HEADER_LEN);
-   ok = ok && VP8BitWriterAppend(>bw, output, output_size);
diff --git a/meta/recipes-multimedia/webp/libwebp_1.3.0.bb 
b/meta/recipes-multimedia/webp/libwebp_1.3.1.bb
similarity index 93%
rename from meta/recipes-multimedia/webp/libwebp_1.3.0.bb
rename to meta/recipes-multimedia/webp/libwebp_1.3.1.bb
index 58a91d5077..0a345498c1 100644
--- a/meta/recipes-multimedia/webp/libwebp_1.3.0.bb
+++ b/meta/recipes-multimedia/webp/libwebp_1.3.1.bb
@@ -14,14 +14,10 @@ LIC_FILES_CHKSUM = 
"file://COPYING;md5=6e8dee932c26f2dab503abf70c96d8bb \
 file://PATENTS;md5=c6926d0cb07d296f886ab6e0cc5a85b7"
 
 SRC_URI = "http://downloads.webmproject.org/releases/webp/${BP}.tar.gz;
-SRC_URI[sha256sum] = 
"64ac4614db292ae8c5aa26de0295bf1623dbb3985054cb656c55e67431def17c"
+SRC_URI[sha256sum] = 
"b3779627c2dfd31e3d8c4485962c2efe17785ef975e2be5c8c0c9e6cd3c4ef66"
 
 UPSTREAM_CHECK_URI = 
"http://downloads.webmproject.org/releases/webp/index.html;
 
-SRC_URI += " \
-file://CVE-2023-1999.patch \
-"
-
 EXTRA_OECONF = " \
 --disable-wic \
 --enable-libwebpmux \
-- 
2.34.1


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



[OE-core][mickledore 07/27] linux-yocto/6.1: update to v6.1.38

2023-07-27 Thread Steve Sakoman
From: Bruce Ashfield 

Updating  to the latest korg -stable release that comprises
the following commits:

61fd484b2cf6 Linux 6.1.38
c50065a39279 drm/amd/display: Ensure vmin and vmax adjust for DCE
9d0b2afadfd7 drm/amdgpu: Validate VM ioctl flags.
fe56f507a11a docs: Set minimal gtags / GNU GLOBAL version to 6.6.5
c437b26bc3ae scripts/tags.sh: Resolve gtags empty index generation
50e36c2897ba perf symbols: Symbol lookup with kcore can fail if multiple 
segments match stext
67e3b5230cef nubus: Partially revert proc_create_single_data() conversion
296927dbae7d execve: always mark stack as growing down during early stack 
setup
d856e6f8a0b4 PCI/ACPI: Call _REG when transitioning D-states
788c76c33df9 PCI/ACPI: Validate acpi_pci_set_power_state() parameter
a905b0b318ad drm/amd/display: Do not update DRR while BW optimizations 
pending
dd6d6f9d47ae drm/amd/display: Remove optimization for VRR updates
6b2849b3e05d xtensa: fix lock_mm_and_find_vma in case VMA not found

Signed-off-by: Bruce Ashfield 
Signed-off-by: Richard Purdie 
(cherry picked from commit b4a4354fff41ffe61a1638b216e3a17e50b5c0e2)
Signed-off-by: Steve Sakoman 
---
 .../linux/linux-yocto-rt_6.1.bb   |  6 ++--
 .../linux/linux-yocto-tiny_6.1.bb |  6 ++--
 meta/recipes-kernel/linux/linux-yocto_6.1.bb  | 28 +--
 3 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/meta/recipes-kernel/linux/linux-yocto-rt_6.1.bb 
b/meta/recipes-kernel/linux/linux-yocto-rt_6.1.bb
index b01f09b1a7..30fcbd8e86 100644
--- a/meta/recipes-kernel/linux/linux-yocto-rt_6.1.bb
+++ b/meta/recipes-kernel/linux/linux-yocto-rt_6.1.bb
@@ -14,13 +14,13 @@ python () {
 raise bb.parse.SkipRecipe("Set PREFERRED_PROVIDER_virtual/kernel to 
linux-yocto-rt to enable it")
 }
 
-SRCREV_machine ?= "48cdae83316b7055b4e63f3434ea26b0c04d7c71"
-SRCREV_meta ?= "f15c15c0755e36ec185927dd83a8a569186836eb"
+SRCREV_machine ?= "efb2c857761e865cd7947aab42eaa5ba77ef6ee7"
+SRCREV_meta ?= "2eaed50911009f9ddbc74460093e17b22ef7daa0"
 
 SRC_URI = 
"git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine;protocol=https
 \

git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-6.1;destsuffix=${KMETA};protocol=https"
 
-LINUX_VERSION ?= "6.1.37"
+LINUX_VERSION ?= "6.1.38"
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
 
diff --git a/meta/recipes-kernel/linux/linux-yocto-tiny_6.1.bb 
b/meta/recipes-kernel/linux/linux-yocto-tiny_6.1.bb
index 529f515db1..be27537dbc 100644
--- a/meta/recipes-kernel/linux/linux-yocto-tiny_6.1.bb
+++ b/meta/recipes-kernel/linux/linux-yocto-tiny_6.1.bb
@@ -8,7 +8,7 @@ require recipes-kernel/linux/linux-yocto.inc
 # CVE exclusions
 include recipes-kernel/linux/cve-exclusion_6.1.inc
 
-LINUX_VERSION ?= "6.1.37"
+LINUX_VERSION ?= "6.1.38"
 LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
 
 DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}"
@@ -17,8 +17,8 @@ DEPENDS += "openssl-native util-linux-native"
 KMETA = "kernel-meta"
 KCONF_BSP_AUDIT_LEVEL = "2"
 
-SRCREV_machine ?= "154c43de4e13946ccecf0ff13772db6c2adba355"
-SRCREV_meta ?= "f15c15c0755e36ec185927dd83a8a569186836eb"
+SRCREV_machine ?= "b110cf9bbc395fe757956839d8110e72368699f4"
+SRCREV_meta ?= "2eaed50911009f9ddbc74460093e17b22ef7daa0"
 
 PV = "${LINUX_VERSION}+git${SRCPV}"
 
diff --git a/meta/recipes-kernel/linux/linux-yocto_6.1.bb 
b/meta/recipes-kernel/linux/linux-yocto_6.1.bb
index 3245c3eab2..5f61c43fed 100644
--- a/meta/recipes-kernel/linux/linux-yocto_6.1.bb
+++ b/meta/recipes-kernel/linux/linux-yocto_6.1.bb
@@ -17,25 +17,25 @@ KBRANCH:qemux86-64 ?= "v6.1/standard/base"
 KBRANCH:qemuloongarch64  ?= "v6.1/standard/base"
 KBRANCH:qemumips64 ?= "v6.1/standard/mti-malta64"
 
-SRCREV_machine:qemuarm ?= "fccbb53f81908991a69214e09ae0eea360410617"
-SRCREV_machine:qemuarm64 ?= "154c43de4e13946ccecf0ff13772db6c2adba355"
-SRCREV_machine:qemuloongarch64 ?= "154c43de4e13946ccecf0ff13772db6c2adba355"
-SRCREV_machine:qemumips ?= "8370d3d4823bcff9532dd6bb163359f75a5416cd"
-SRCREV_machine:qemuppc ?= "154c43de4e13946ccecf0ff13772db6c2adba355"
-SRCREV_machine:qemuriscv64 ?= "154c43de4e13946ccecf0ff13772db6c2adba355"
-SRCREV_machine:qemuriscv32 ?= "154c43de4e13946ccecf0ff13772db6c2adba355"
-SRCREV_machine:qemux86 ?= "154c43de4e13946ccecf0ff13772db6c2adba355"
-SRCREV_machine:qemux86-64 ?= "154c43de4e13946ccecf0ff13772db6c2adba355"
-SRCREV_machine:qemumips64 ?= "efe0a0701a1a8c5b6113d6a06b65857f8c84ac9f"
-SRCREV_machine ?= "154c43de4e13946ccecf0ff13772db6c2adba355"
-SRCREV_meta ?= "f15c15c0755e36ec185927dd83a8a569186836eb"
+SRCREV_machine:qemuarm ?= "a74344429a095a5941cd8dfac532160349344c92"
+SRCREV_machine:qemuarm64 ?= "b110cf9bbc395fe757956839d8110e72368699f4"
+SRCREV_machine:qemuloongarch64 ?= "b110cf9bbc395fe757956839d8110e72368699f4"
+SRCREV_machine:qemumips ?= 

[OE-core][mickledore 06/27] linux-yocto/6.1: update to v6.1.37

2023-07-27 Thread Steve Sakoman
From: Bruce Ashfield 

Updating  to the latest korg -stable release that comprises
the following commits:

0f4ac6b4c5f0 Linux 6.1.37
323846590c55 xtensa: fix NOMMU build with lock_mm_and_find_vma() conversion
c2d89256de75 csky: fix up lock_mm_and_find_vma() conversion
4a1db15878aa parisc: fix expand_stack() conversion
0a1da2dde461 sparc32: fix lock_mm_and_find_vma() conversion
00f04a3385f7 Revert "thermal/drivers/mediatek: Use devm_of_iomap to avoid 
resource leak in mtk_thermal_probe"
a536383ef030 HID: logitech-hidpp: add HIDPP_QUIRK_DELAYED_INIT for the T651.
d89750b19681 HID: wacom: Use ktime_t rather than int when dealing with 
timestamps
879e79c3aead HID: hidraw: fix data race on device refcount
cae854249578 fbdev: fix potential OOB read in fast_imageblit()
e6bbad75712a mm: always expand the stack with the mmap write lock held
c4b31d1b694e execve: expand new process stack manually ahead of time
6a6b5616c3d0 mm: make find_extend_vma() fail if write lock not held
48c232819e77 powerpc/mm: convert coprocessor fault to lock_mm_and_find_vma()
21ee33d51bf9 mm/fault: convert remaining simple cases to 
lock_mm_and_find_vma()
1f4197f050de arm/mm: Convert to using lock_mm_and_find_vma()
ac764deea709 riscv/mm: Convert to using lock_mm_and_find_vma()
7227d70acc78 mips/mm: Convert to using lock_mm_and_find_vma()
82972ea17b47 powerpc/mm: Convert to using lock_mm_and_find_vma()
b92cd80e5f0b arm64/mm: Convert to using lock_mm_and_find_vma()
755aa1bc6aaf mm: make the page fault mmap locking killable
d6a5c7a1a6e5 mm: introduce new 'lock_mm_and_find_vma()' page fault helper
4e2ad53ababe maple_tree: fix potential out-of-bounds access in 
mas_wr_end_piv()
31cde3bdadca can: isotp: isotp_sendmsg(): fix return error fix on TX path
0af4750eaaed x86/smp: Cure kexec() vs. mwait_play_dead() breakage
6d3b2e0aef6c x86/smp: Use dedicated cache-line for mwait_play_dead()
50a1abc67702 x86/smp: Remove pointless wmb()s from native_stop_other_cpus()
e47037d28b73 x86/smp: Dont access non-existing CPUID leaf
edadebb349e8 x86/smp: Make stop_other_cpus() more robust
94a69d699941 x86/microcode/AMD: Load late on both threads too
84f077802e56 mm, hwpoison: when copy-on-write hits poison, take page offline
4af5960d7cd4 mm, hwpoison: try to recover from copy-on write faults
69925a346acb mptcp: ensure listener is unhashed before updating the sk 
status
42a018a796d1 mm/mmap: Fix error return in do_vmi_align_munmap()
a149174ff8bb mm/mmap: Fix error path in do_vmi_align_munmap()

Signed-off-by: Bruce Ashfield 
Signed-off-by: Richard Purdie 
(cherry picked from commit 4d43c9ebcb0308d9178f6f44c02cac13de126c92)
Signed-off-by: Steve Sakoman 
---
 .../linux/linux-yocto-rt_6.1.bb   |  6 ++--
 .../linux/linux-yocto-tiny_6.1.bb |  6 ++--
 meta/recipes-kernel/linux/linux-yocto_6.1.bb  | 28 +--
 3 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/meta/recipes-kernel/linux/linux-yocto-rt_6.1.bb 
b/meta/recipes-kernel/linux/linux-yocto-rt_6.1.bb
index 19758206bc..b01f09b1a7 100644
--- a/meta/recipes-kernel/linux/linux-yocto-rt_6.1.bb
+++ b/meta/recipes-kernel/linux/linux-yocto-rt_6.1.bb
@@ -14,13 +14,13 @@ python () {
 raise bb.parse.SkipRecipe("Set PREFERRED_PROVIDER_virtual/kernel to 
linux-yocto-rt to enable it")
 }
 
-SRCREV_machine ?= "5227a8173cee7256e370750216dbff5eca741134"
-SRCREV_meta ?= "aba2c2181163cf40e3f8c5618c05e78e931f235b"
+SRCREV_machine ?= "48cdae83316b7055b4e63f3434ea26b0c04d7c71"
+SRCREV_meta ?= "f15c15c0755e36ec185927dd83a8a569186836eb"
 
 SRC_URI = 
"git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine;protocol=https
 \

git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-6.1;destsuffix=${KMETA};protocol=https"
 
-LINUX_VERSION ?= "6.1.36"
+LINUX_VERSION ?= "6.1.37"
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
 
diff --git a/meta/recipes-kernel/linux/linux-yocto-tiny_6.1.bb 
b/meta/recipes-kernel/linux/linux-yocto-tiny_6.1.bb
index 48cc6b87fb..529f515db1 100644
--- a/meta/recipes-kernel/linux/linux-yocto-tiny_6.1.bb
+++ b/meta/recipes-kernel/linux/linux-yocto-tiny_6.1.bb
@@ -8,7 +8,7 @@ require recipes-kernel/linux/linux-yocto.inc
 # CVE exclusions
 include recipes-kernel/linux/cve-exclusion_6.1.inc
 
-LINUX_VERSION ?= "6.1.36"
+LINUX_VERSION ?= "6.1.37"
 LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
 
 DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}"
@@ -17,8 +17,8 @@ DEPENDS += "openssl-native util-linux-native"
 KMETA = "kernel-meta"
 KCONF_BSP_AUDIT_LEVEL = "2"
 
-SRCREV_machine ?= "6ba5ae474699ee9e6dd39874dfdb680959f55ffd"
-SRCREV_meta ?= "aba2c2181163cf40e3f8c5618c05e78e931f235b"
+SRCREV_machine ?= "154c43de4e13946ccecf0ff13772db6c2adba355"
+SRCREV_meta ?= 

[OE-core][mickledore 05/27] linux-yocto/6.1: update to v6.1.36

2023-07-27 Thread Steve Sakoman
From: Bruce Ashfield 

Updating  to the latest korg -stable release that comprises
the following commits:

a1c449d00ff8 Linux 6.1.36
29429a1f5871 smb: move client and server files to common directory fs/smb
9d3e4bca4b92 i2c: imx-lpi2c: fix type char overflow issue when calculating 
the clock cycle
81d4078f7a42 x86/apic: Fix kernel panic when booting with intremap=off and 
x2apic_phys
679354bea008 KVM: arm64: Restore GICv2-on-GICv3 functionality
6ab9468d3eea vhost_net: revert upend_idx only on retriable error
454e4f391a14 vhost_vdpa: tell vqs about the negotiated
1af1cd7be370 drm/radeon: fix race condition UAF in 
radeon_gem_set_domain_ioctl
022f2306d94f drm/exynos: fix race condition UAF in exynos_g2d_exec_ioctl
aa88042218aa drm/exynos: vidi: fix a wrong error return
711f727f7bab null_blk: Fix: memory release when memory_backed=1
f6076a1386c9 ARM: dts: Fix erroneous ADS touchscreen polarities
1d1baefacdb4 i2c: mchp-pci1: Avoid cast to incompatible function type
8e3257599409 ALSA: hda/realtek: Add "Intel Reference board" and "NUC 13" 
SSID in the ALC256
cfa01235b5ed ASoC: fsl_sai: Enable BCI bit if SAI works on synchronous mode 
with BYP asserted
570583c6251a s390/purgatory: disable branch profiling
c2888c460db2 gfs2: Don't get stuck writing page onto itself under direct I/O
878dad66b9b5 ASoC: amd: yc: Add Thinkpad Neo14 to quirks list for acp6x
1c97025d441f ASoC: nau8824: Add quirk to active-high jack-detect
5cc506e9b3e5 soundwire: qcom: add proper error paths in qcom_swrm_startup()
2839e0b64e65 soundwire: dmi-quirks: add new mapping for HP Spectre x360
ee4d36a14d3f ASoC: simple-card: Add missing of_node_put() in case of error
e701fb0a5d5b ASoC: codecs: wcd938x-sdw: do not set can_multi_write flag
06b9522ca831 spi: lpspi: disable lpspi module irq in DMA mode
39a77f005f8a s390/cio: unregister device when the only path is gone
552a24eb7168 arm64: dts: qcom: sc7280-qcard: drop incorrect dai-cells from 
WCD938x SDW
4de58b7c14c0 arm64: dts: qcom: sc7280-idp: drop incorrect dai-cells from 
WCD938x SDW
2e8ebf1a44cb Input: soc_button_array - add invalid acpi_index DMI quirk 
handling
ba0cc7a2e508 nvme: improve handling of long keep alives
06d9ec407f76 nvme: check IO start time when deciding to defer KA
8a72260619ca nvme: double KA polling frequency to avoid KATO with TBKAS on
c8f988c37a6b usb: gadget: udc: fix NULL dereference in remove()
3f6391062d0b btrfs: fix an uninitialized variable warning in btrfs_log_inode
a2c3e9bfc02c nfcsim.c: Fix error checking for debugfs_create_dir
a05df0643120 media: cec: core: don't set last_initiator if tx in progress
f37956a140d1 media: cec: core: disable adapter in cec_devnode_unregister
9d8ac2726cff smb3: missing null check in SMB2_change_notify
3e8458c5b205 arm64: Add missing Set/Way CMO encodings
8428f4c00d8c HID: wacom: Add error check to wacom_parse_and_register()
aaa50510adb7 scsi: target: iscsi: Prevent login threads from racing between 
each other
0357259cb103 gpiolib: Fix irq_domain resource tracking for 
gpiochip_irqchip_add_domain()
8592ada80ea5 gpio: sifive: add missing check for platform_get_irq
cb1108e17493 gpiolib: Fix GPIO chip IRQ initialization restriction
90714f7ed760 arm64: dts: rockchip: fix nEXTRST on SOQuartz
e51abd4808f9 arm64: dts: rockchip: Enable GPU on SOQuartz CM4
ec3d0f12e728 revert "net: align SO_RCVMARK required privileges with SO_MARK"
b2e2f9c0939f sch_netem: acquire qdisc lock in netem_change()
0434277b72a4 platform/x86/amd/pmf: Register notify handler only if SPS is 
enabled
2d580c73afdc selftests: forwarding: Fix race condition in mirror 
installation
eff07bf11841 io_uring/net: use the correct msghdr union member in 
io_sendmsg_copy_hdr
1b7b048c228e bpf: Force kprobe multi expected_attach_type for kprobe_multi 
link
fc3afb337814 bpf/btf: Accept function names that contain dots
22cc989f2b10 Revert "net: phy: dp83867: perform soft reset and retain 
established link"
3e04743dbacf netfilter: nfnetlink_osf: fix module autoload
abd3afddbf9e netfilter: nf_tables: disallow updates of anonymous sets
c34b22038543 netfilter: nf_tables: reject unbound chain set before commit 
phase
46f801ab5fb9 netfilter: nf_tables: reject unbound anonymous set before 
commit phase
b60c0ce0ff31 netfilter: nf_tables: disallow element updates of bound 
anonymous sets
0d836f917520 netfilter: nft_set_pipapo: .walk does not deal with generations
d60be2da67d1 netfilter: nf_tables: drop map element references from 
preparation phase
df27be7c1530 netfilter: nf_tables: add NFT_TRANS_PREPARE_ERROR to deal with 
bound set/chain
891cd2edddc7 netfilter: nf_tables: fix chain binding transaction logic
f5b6dbec26f1 be2net: Extend xmit workaround to BE3 chip
50f689918db4 net: dsa: mt7530: fix handling of LLDP frames
a50f84af215e 

[OE-core][mickledore 04/27] ruby: Fix CVE-2023-36617

2023-07-27 Thread Steve Sakoman
From: Mingli Yu 

Backport two patches [1] [2] to fix CVE-2023-36617 [3].

[1] https://github.com/ruby/uri/commit/9010ee2536adda10a0555ae1ed6fe2f5808e6bf1
[2] https://github.com/ruby/uri/commit/9d7bcef1e6ad23c9c6e4932f297fb737888144c8
[3] https://www.ruby-lang.org/en/news/2023/06/29/redos-in-uri-CVE-2023-36617/

Signed-off-by: Mingli Yu 
Signed-off-by: Steve Sakoman 
---
 .../ruby/ruby/CVE-2023-36617_1.patch  | 56 +++
 .../ruby/ruby/CVE-2023-36617_2.patch  | 52 +
 meta/recipes-devtools/ruby/ruby_3.2.2.bb  |  2 +
 3 files changed, 110 insertions(+)
 create mode 100644 meta/recipes-devtools/ruby/ruby/CVE-2023-36617_1.patch
 create mode 100644 meta/recipes-devtools/ruby/ruby/CVE-2023-36617_2.patch

diff --git a/meta/recipes-devtools/ruby/ruby/CVE-2023-36617_1.patch 
b/meta/recipes-devtools/ruby/ruby/CVE-2023-36617_1.patch
new file mode 100644
index 00..17c7e30176
--- /dev/null
+++ b/meta/recipes-devtools/ruby/ruby/CVE-2023-36617_1.patch
@@ -0,0 +1,56 @@
+From 2ebb50d2dc302917a6f57c1239dc9e700dfe0e34 Mon Sep 17 00:00:00 2001
+From: Nobuyoshi Nakada 
+Date: Thu, 27 Jul 2023 15:53:01 +0800
+Subject: [PATCH] Fix quadratic backtracking on invalid relative URI
+
+https://hackerone.com/reports/1958260
+
+CVE: CVE-2023-36617
+
+Upstream-Status: Backport 
[https://github.com/ruby/uri/commit/9010ee2536adda10a0555ae1ed6fe2f5808e6bf1]
+
+Signed-off-by: Mingli Yu 
+---
+ lib/uri/rfc2396_parser.rb |  4 ++--
+ test/uri/test_parser.rb   | 12 
+ 2 files changed, 14 insertions(+), 2 deletions(-)
+
+diff --git a/lib/uri/rfc2396_parser.rb b/lib/uri/rfc2396_parser.rb
+index 76a8f99..00c66cf 100644
+--- a/lib/uri/rfc2396_parser.rb
 b/lib/uri/rfc2396_parser.rb
+@@ -497,8 +497,8 @@ module URI
+   ret = {}
+ 
+   # for URI::split
+-  ret[:ABS_URI] = Regexp.new('\A\s*' + pattern[:X_ABS_URI] + '\s*\z', 
Regexp::EXTENDED)
+-  ret[:REL_URI] = Regexp.new('\A\s*' + pattern[:X_REL_URI] + '\s*\z', 
Regexp::EXTENDED)
++  ret[:ABS_URI] = Regexp.new('\A\s*+' + pattern[:X_ABS_URI] + '\s*\z', 
Regexp::EXTENDED)
++  ret[:REL_URI] = Regexp.new('\A\s*+' + pattern[:X_REL_URI] + '\s*\z', 
Regexp::EXTENDED)
+ 
+   # for URI::extract
+   ret[:URI_REF] = Regexp.new(pattern[:URI_REF])
+diff --git a/test/uri/test_parser.rb b/test/uri/test_parser.rb
+index 72fb590..721e05e 100644
+--- a/test/uri/test_parser.rb
 b/test/uri/test_parser.rb
+@@ -79,4 +79,16 @@ class URI::TestParser < Test::Unit::TestCase
+ assert_equal([nil, nil, "example.com", nil, nil, "", nil, nil, nil], 
URI.split("//example.com"))
+ assert_equal([nil, nil, "[0::0]", nil, nil, "", nil, nil, nil], 
URI.split("//[0::0]"))
+   end
++
++  def test_rfc2822_parse_relative_uri
++pre = ->(length) {
++  " " * length + "\0"
++}
++parser = URI::RFC2396_Parser.new
++assert_linear_performance((1..5).map {|i| 10**i}, pre: pre) do |uri|
++  assert_raise(URI::InvalidURIError) do
++parser.split(uri)
++  end
++end
++  end
+ end
+-- 
+2.25.1
+
diff --git a/meta/recipes-devtools/ruby/ruby/CVE-2023-36617_2.patch 
b/meta/recipes-devtools/ruby/ruby/CVE-2023-36617_2.patch
new file mode 100644
index 00..7c51deaa42
--- /dev/null
+++ b/meta/recipes-devtools/ruby/ruby/CVE-2023-36617_2.patch
@@ -0,0 +1,52 @@
+From eea5868120509c245216c4b5c2d4b5db1c593d0e Mon Sep 17 00:00:00 2001
+From: Nobuyoshi Nakada 
+Date: Thu, 27 Jul 2023 16:16:30 +0800
+Subject: [PATCH] Fix quadratic backtracking on invalid port number
+
+https://hackerone.com/reports/1958260
+
+CVE: CVE-2023-36617
+
+Upstream-Status: Backport 
[https://github.com/ruby/uri/commit/9d7bcef1e6ad23c9c6e4932f297fb737888144c8]
+
+Signed-off-by: Mingli Yu 
+---
+ lib/uri/rfc3986_parser.rb |  2 +-
+ test/uri/test_parser.rb   | 10 ++
+ 2 files changed, 11 insertions(+), 1 deletion(-)
+
+diff --git a/lib/uri/rfc3986_parser.rb b/lib/uri/rfc3986_parser.rb
+index dd24a40..9b1663d 100644
+--- a/lib/uri/rfc3986_parser.rb
 b/lib/uri/rfc3986_parser.rb
+@@ -100,7 +100,7 @@ module URI
+ QUERY: /\A(?:%\h\h|[!$&-.0-;=@-Z_a-z~\/?])*\z/,
+ FRAGMENT: /\A(?:%\h\h|[!$&-.0-;=@-Z_a-z~\/?])*\z/,
+ OPAQUE: /\A(?:[^\/].*)?\z/,
+-PORT: /\A[\x09\x0a\x0c\x0d ]*\d*[\x09\x0a\x0c\x0d ]*\z/,
++PORT: /\A[\x09\x0a\x0c\x0d ]*+\d*[\x09\x0a\x0c\x0d ]*\z/,
+   }
+ end
+ 
+diff --git a/test/uri/test_parser.rb b/test/uri/test_parser.rb
+index 721e05e..cee0acb 100644
+--- a/test/uri/test_parser.rb
 b/test/uri/test_parser.rb
+@@ -91,4 +91,14 @@ class URI::TestParser < Test::Unit::TestCase
+   end
+ end
+   end
++
++  def test_rfc3986_port_check
++pre = ->(length) {"\t" * length + "a"}
++uri = URI.parse("http://my.example.com;)
++assert_linear_performance((1..5).map {|i| 10**i}, pre: pre) do |port|
++  assert_raise(URI::InvalidComponentError) do
++uri.port = port
++  end
++end
++  end
+ end
+-- 
+2.25.1
+
diff --git 

[OE-core][mickledore 03/27] cups: Fix CVE-2023-34241

2023-07-27 Thread Steve Sakoman
From: Mingli Yu 

Backport patch [1] to fix CVE-2023-34241.

[1] 
https://github.com/OpenPrinting/cups/commit/9809947a959e18409dcf562a3466ef246cb90cb2

Signed-off-by: Mingli Yu 
Signed-off-by: Steve Sakoman 
---
 meta/recipes-extended/cups/cups.inc   |  1 +
 .../cups/cups/CVE-2023-34241.patch| 70 +++
 2 files changed, 71 insertions(+)
 create mode 100644 meta/recipes-extended/cups/cups/CVE-2023-34241.patch

diff --git a/meta/recipes-extended/cups/cups.inc 
b/meta/recipes-extended/cups/cups.inc
index d77758fd3f..c6a676b747 100644
--- a/meta/recipes-extended/cups/cups.inc
+++ b/meta/recipes-extended/cups/cups.inc
@@ -16,6 +16,7 @@ SRC_URI = 
"${GITHUB_BASE_URI}/download/v${PV}/cups-${PV}-source.tar.gz \
file://volatiles.99_cups \
file://cups-volatiles.conf \
file://CVE-2023-32324.patch \
+   file://CVE-2023-34241.patch \
"
 
 GITHUB_BASE_URI = "https://github.com/OpenPrinting/cups/releases;
diff --git a/meta/recipes-extended/cups/cups/CVE-2023-34241.patch 
b/meta/recipes-extended/cups/cups/CVE-2023-34241.patch
new file mode 100644
index 00..4950ca341d
--- /dev/null
+++ b/meta/recipes-extended/cups/cups/CVE-2023-34241.patch
@@ -0,0 +1,70 @@
+From ffd290b4ab247f82722927ba9b21358daa16dbf1 Mon Sep 17 00:00:00 2001
+From: Rose <83477269+ataridre...@users.noreply.github.com>
+Date: Thu, 1 Jun 2023 11:33:39 -0400
+Subject: [PATCH] Log result of httpGetHostname BEFORE closing the connection
+
+httpClose frees the memory of con->http. This is problematic because 
httpGetHostname then tries to access the memory it points to.
+
+We have to log the hostname first.
+
+CVE: CVE-2023-34241
+
+Upstream-Status: Backport 
[https://github.com/OpenPrinting/cups/commit/9809947a959e18409dcf562a3466ef246cb90cb2]
+
+Signed-off-by: Mingli Yu 
+---
+ scheduler/client.c | 16 +++-
+ 1 file changed, 7 insertions(+), 9 deletions(-)
+
+diff --git a/scheduler/client.c b/scheduler/client.c
+index 91e441188..327473a4d 100644
+--- a/scheduler/client.c
 b/scheduler/client.c
+@@ -193,13 +193,11 @@ cupsdAcceptClient(cupsd_listener_t *lis)/* I - Listener 
socket */
+/*
+ * Can't have an unresolved IP address with double-lookups enabled...
+ */
+-
+-httpClose(con->http);
+-
+ cupsdLogClient(con, CUPSD_LOG_WARN,
+-"Name lookup failed - connection from %s closed!",
++"Name lookup failed - closing connection from %s!",
+ httpGetHostname(con->http, NULL, 0));
+ 
++httpClose(con->http);
+ free(con);
+ return;
+   }
+@@ -235,11 +233,11 @@ cupsdAcceptClient(cupsd_listener_t *lis)/* I - Listener 
socket */
+   * with double-lookups enabled...
+   */
+ 
+-  httpClose(con->http);
+-
+   cupsdLogClient(con, CUPSD_LOG_WARN,
+-  "IP lookup failed - connection from %s closed!",
++  "IP lookup failed - closing connection from %s!",
+   httpGetHostname(con->http, NULL, 0));
++
++  httpClose(con->http);
+   free(con);
+   return;
+ }
+@@ -256,11 +254,11 @@ cupsdAcceptClient(cupsd_listener_t *lis)/* I - Listener 
socket */
+ 
+   if (!hosts_access(_req))
+   {
+-httpClose(con->http);
+-
+ cupsdLogClient(con, CUPSD_LOG_WARN,
+ "Connection from %s refused by /etc/hosts.allow and "
+   "/etc/hosts.deny rules.", httpGetHostname(con->http, NULL, 
0));
++
++httpClose(con->http);
+ free(con);
+ return;
+   }
+-- 
+2.25.1
+
-- 
2.34.1


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



[OE-core][mickledore 02/27] python3: ignore CVE-2023-36632

2023-07-27 Thread Steve Sakoman
From: Peter Marko 

This CVE shouldn't have been filed as the "exploit" is described in the
documentation as how the library behaves.

Signed-off-by: Ross Burton 
Signed-off-by: Alexandre Belloni 
Signed-off-by: Richard Purdie 
(cherry picked from commit c652f094d86c4efb7ff99accba63b8169493ab18)
Signed-off-by: Peter Marko 
Signed-off-by: Steve Sakoman 
---
 meta/recipes-devtools/python/python3_3.11.2.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-devtools/python/python3_3.11.2.bb 
b/meta/recipes-devtools/python/python3_3.11.2.bb
index 5bd8d32b14..f3be9768bf 100644
--- a/meta/recipes-devtools/python/python3_3.11.2.bb
+++ b/meta/recipes-devtools/python/python3_3.11.2.bb
@@ -56,6 +56,8 @@ CVE_CHECK_IGNORE += "CVE-2020-15523 CVE-2022-26488"
 # The mailcap module is insecure by design, so this can't be fixed in a 
meaningful way.
 # The module will be removed in the future and flaws documented.
 CVE_CHECK_IGNORE += "CVE-2015-20107"
+# Not an issue, in fact expected behaviour
+CVE_CHECK_IGNORE += "CVE-2023-36632"
 
 PYTHON_MAJMIN = "3.11"
 
-- 
2.34.1


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



[OE-core][mickledore 01/27] libjpeg-turbo: patch CVE-2023-2804

2023-07-27 Thread Steve Sakoman
From: Peter Marko 

Relevant links:
* linked fronm NVD:
  * 
https://github.com/libjpeg-turbo/libjpeg-turbo/issues/668#issuecomment-1492586118
* follow-up analysis:
  * 
https://github.com/libjpeg-turbo/libjpeg-turbo/issues/668#issuecomment-1496473989
  * picked commits fix all issues mentioned in this analysis

Signed-off-by: Peter Marko 
Signed-off-by: Steve Sakoman 
---
 .../jpeg/files/CVE-2023-2804-1.patch  | 103 ++
 .../jpeg/files/CVE-2023-2804-2.patch  |  75 +
 .../jpeg/libjpeg-turbo_2.1.5.1.bb |   2 +
 3 files changed, 180 insertions(+)
 create mode 100644 meta/recipes-graphics/jpeg/files/CVE-2023-2804-1.patch
 create mode 100644 meta/recipes-graphics/jpeg/files/CVE-2023-2804-2.patch

diff --git a/meta/recipes-graphics/jpeg/files/CVE-2023-2804-1.patch 
b/meta/recipes-graphics/jpeg/files/CVE-2023-2804-1.patch
new file mode 100644
index 00..fd8a66bca7
--- /dev/null
+++ b/meta/recipes-graphics/jpeg/files/CVE-2023-2804-1.patch
@@ -0,0 +1,103 @@
+From 42ce199c9cfe129e5e21afd48dfe757a6acf87c4 Mon Sep 17 00:00:00 2001
+From: DRC 
+Date: Tue, 4 Apr 2023 19:06:20 -0500
+Subject: [PATCH] Decomp: Don't enable 2-pass color quant w/ RGB565
+
+The 2-pass color quantization algorithm assumes 3-sample pixels.  RGB565
+is the only 3-component colorspace that doesn't have 3-sample pixels, so
+we need to treat it as a special case when determining whether to enable
+2-pass color quantization.  Otherwise, attempting to initialize 2-pass
+color quantization with an RGB565 output buffer could cause
+prescan_quantize() to read from uninitialized memory and subsequently
+underflow/overflow the histogram array.
+
+djpeg is supposed to fail gracefully if both -rgb565 and -colors are
+specified, because none of its destination managers (image writers)
+support color quantization with RGB565.  However, prescan_quantize() was
+called before that could occur.  It is possible but very unlikely that
+these issues could have been reproduced in applications other than
+djpeg.  The issues involve the use of two features (12-bit precision and
+RGB565) that are incompatible, and they also involve the use of two
+rarely-used legacy features (RGB565 and color quantization) that don't
+make much sense when combined.
+
+Fixes #668
+Fixes #671
+Fixes #680
+
+CVE: CVE-2023-2804
+Upstream-Status: Backport 
[https://github.com/libjpeg-turbo/libjpeg-turbo/commit/42ce199c9cfe129e5e21afd48dfe757a6acf87c4]
+
+Signed-off-by: Peter Marko 
+---
+ ChangeLog.md | 12 
+ jdmaster.c   |  5 +++--
+ jquant2.c|  5 +++--
+ 3 files changed, 18 insertions(+), 4 deletions(-)
+
+diff --git a/ChangeLog.md b/ChangeLog.md
+index 1c1e6538a..f1bfb3d87 100644
+--- a/ChangeLog.md
 b/ChangeLog.md
+@@ -1,3 +1,15 @@
++2.1.6
++=
++
++### Significant changes relative to 2.1.5.1:
++
++1. Fixed an oversight in 1.4 beta1[8] that caused various segfaults and buffer
++overruns when attempting to decompress various specially-crafted malformed
++12-bit-per-component JPEG images using a 12-bit-per-component build of djpeg
++(`-DWITH_12BIT=1`) with both color quantization and RGB565 color conversion
++enabled.
++
++
+ 2.1.5.1
+ ===
+ 
+diff --git a/jdmaster.c b/jdmaster.c
+index a3690bf56..a9446adfd 100644
+--- a/jdmaster.c
 b/jdmaster.c
+@@ -5,7 +5,7 @@
+  * Copyright (C) 1991-1997, Thomas G. Lane.
+  * Modified 2002-2009 by Guido Vollbeding.
+  * libjpeg-turbo Modifications:
+- * Copyright (C) 2009-2011, 2016, 2019, 2022, D. R. Commander.
++ * Copyright (C) 2009-2011, 2016, 2019, 2022-2023, D. R. Commander.
+  * Copyright (C) 2013, Linaro Limited.
+  * Copyright (C) 2015, Google, Inc.
+  * For conditions of distribution and use, see the accompanying README.ijg
+@@ -480,7 +480,8 @@ master_selection(j_decompress_ptr cinfo)
+ if (cinfo->raw_data_out)
+   ERREXIT(cinfo, JERR_NOTIMPL);
+ /* 2-pass quantizer only works in 3-component color space. */
+-if (cinfo->out_color_components != 3) {
++if (cinfo->out_color_components != 3 ||
++cinfo->out_color_space == JCS_RGB565) {
+   cinfo->enable_1pass_quant = TRUE;
+   cinfo->enable_external_quant = FALSE;
+   cinfo->enable_2pass_quant = FALSE;
+diff --git a/jquant2.c b/jquant2.c
+index 44efb18ca..1c14ef763 100644
+--- a/jquant2.c
 b/jquant2.c
+@@ -4,7 +4,7 @@
+  * This file was part of the Independent JPEG Group's software:
+  * Copyright (C) 1991-1996, Thomas G. Lane.
+  * libjpeg-turbo Modifications:
+- * Copyright (C) 2009, 2014-2015, 2020, D. R. Commander.
++ * Copyright (C) 2009, 2014-2015, 2020, 2023, D. R. Commander.
+  * For conditions of distribution and use, see the accompanying README.ijg
+  * file.
+  *
+@@ -1230,7 +1230,8 @@ jinit_2pass_quantizer(j_decompress_ptr cinfo)
+   cquantize->error_limiter = NULL;
+ 
+   /* Make sure jdmaster didn't give me a case I can't handle */
+-  if (cinfo->out_color_components != 3)
++  if (cinfo->out_color_components != 3 ||
++  cinfo->out_color_space 

[OE-core][mickledore 00/27] Patch review

2023-07-27 Thread Steve Sakoman
Please review this set of changes for mickledore and have comments back by
end of day Monday.

Passed a-full on autobuilder:

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

The following changes since commit 4724b382d183a2b3b8426c77c23b368f509411e7:

  acpica: Update SRC_URI (2023-07-21 07:41:18 -1000)

are available in the Git repository at:

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

Benjamin Bouvier (1):
  util-linux: add alternative links for ipcs,ipcrm

Bruce Ashfield (3):
  linux-yocto/6.1: update to v6.1.36
  linux-yocto/6.1: update to v6.1.37
  linux-yocto/6.1: update to v6.1.38

Jose Quaresma (3):
  kernel-module-split add systemd modulesloaddir and modprobedir config
  openssl: add PERLEXTERNAL path to test its existence
  openssl: use a glob on the PERLEXTERNAL to track updates on the path

Khem Raj (1):
  meson.bbclass: Point to llvm-config from native sysroot

Mingli Yu (2):
  cups: Fix CVE-2023-34241
  ruby: Fix CVE-2023-36617

Ovidiu Panait (5):
  mdadm: fix util-linux ptest dependency
  mdadm: fix 07revert-inplace ptest
  mdadm: fix segfaults when running ptests
  mdadm: skip running known broken ptests
  mdadm: re-add mdadm-ptest to PTESTS_SLOW

Peter Marko (2):
  libjpeg-turbo: patch CVE-2023-2804
  python3: ignore CVE-2023-36632

Quentin Schulz (1):
  uboot-extlinux-config.bbclass: fix old override syntax in comment

Ross Burton (4):
  pkgconf: update SRC_URI
  python3: fix missing comma in get_module_deps3.py
  oeqa/runtime/cases/rpm: fix wait_for_no_process_for_user failure case
  rootfs_rpm: don't depend on opkg-native for update-alternatives

Stéphane Veyret (1):
  scripts/oe-setup-builddir: copy conf-notes.txt to build dir

Wang Mingyu (2):
  taglib: upgrade 1.13 -> 1.13.1
  libwebp: upgrade 1.3.0 -> 1.3.1

Yoann Congal (1):
  oeqa/selftest/devtool: add unit test for "devtool add -b"

Yuta Hayama (1):
  systemd-systemctl: fix errors in instance name expansion

 .../kernel-module-split.bbclass   |   4 +-
 meta/classes-recipe/meson.bbclass |   1 +
 meta/classes-recipe/rootfs_rpm.bbclass|   4 +-
 .../uboot-extlinux-config.bbclass |   8 +-
 .../distro/include/ptest-packagelists.inc |   3 +-
 meta/lib/oeqa/runtime/cases/rpm.py|   4 +-
 meta/lib/oeqa/selftest/cases/devtool.py   |  32 ++
 .../openssl/openssl_3.1.1.bb  |   4 +-
 meta/recipes-core/images/core-image-ptest.bb  |   1 +
 .../systemd/systemd-systemctl/systemctl   |   2 +-
 .../util-linux/util-linux_2.38.1.bb   |   2 +
 .../recipes-devtools/pkgconf/pkgconf_1.9.5.bb |   2 +-
 .../python/python3/get_module_deps3.py|   2 +-
 .../recipes-devtools/python/python3_3.11.2.bb |   2 +
 .../ruby/ruby/CVE-2023-36617_1.patch  |  56 +++
 .../ruby/ruby/CVE-2023-36617_2.patch  |  52 ++
 meta/recipes-devtools/ruby/ruby_3.2.2.bb  |   2 +
 meta/recipes-extended/cups/cups.inc   |   1 +
 .../cups/cups/CVE-2023-34241.patch|  70 +++
 ...anup-validate_geometry_ddf_container.patch | 148 ++
 ...nter-dereference-in-validate_geometr.patch |  56 +++
 ...se-after-close-bug-by-closing-after-.patch |  91 
 ...gfault-when-calling-NULL-get_bad_blo.patch |  42 ++
 ...Mark-and-ignore-broken-test-failures.patch | 128 +
 ...dd-broken-files-for-all-broken-tests.patch | 454 ++
 meta/recipes-extended/mdadm/files/run-ptest   |   2 +-
 meta/recipes-extended/mdadm/mdadm_4.2.bb  |   9 +-
 .../jpeg/files/CVE-2023-2804-1.patch  | 103 
 .../jpeg/files/CVE-2023-2804-2.patch  |  75 +++
 .../jpeg/libjpeg-turbo_2.1.5.1.bb |   2 +
 .../linux/linux-yocto-rt_6.1.bb   |   6 +-
 .../linux/linux-yocto-tiny_6.1.bb |   6 +-
 meta/recipes-kernel/linux/linux-yocto_6.1.bb  |  28 +-
 .../webp/files/CVE-2023-1999.patch|  55 ---
 .../{libwebp_1.3.0.bb => libwebp_1.3.1.bb}|   6 +-
 .../{taglib_1.13.bb => taglib_1.13.1.bb}  |   2 +-
 scripts/oe-setup-builddir |  14 +-
 37 files changed, 1373 insertions(+), 106 deletions(-)
 create mode 100644 meta/recipes-devtools/ruby/ruby/CVE-2023-36617_1.patch
 create mode 100644 meta/recipes-devtools/ruby/ruby/CVE-2023-36617_2.patch
 create mode 100644 meta/recipes-extended/cups/cups/CVE-2023-34241.patch
 create mode 100644 
meta/recipes-extended/mdadm/files/0001-DDF-Cleanup-validate_geometry_ddf_container.patch
 create mode 100644 
meta/recipes-extended/mdadm/files/0002-DDF-Fix-NULL-pointer-dereference-in-validate_geometr.patch
 create mode 100644 
meta/recipes-extended/mdadm/files/0003-mdadm-Grow-Fix-use-after-close-bug-by-closing-after-.patch
 create mode 100644 
meta/recipes-extended/mdadm/files/0004-monitor-Avoid-segfault-when-calling-NULL-get_bad_blo.patch
 create mode 100644 

Re: [OE-core] [PATCH v2] oeqa/selftest/rust: Add failed test cases to exclude list for Rust Oe-selftest

2023-07-27 Thread Alexandre Belloni via lists.openembedded.org
On 27/07/2023 07:32:52-0700, Shinde, Yash via lists.openembedded.org wrote:
> I already posted the other needed patch here, 
> https://lists.openembedded.org/g/openembedded-core/topic/100373873#184890 ( 
> https://lists.openembedded.org/g/openembedded-core/topic/100373873#184890 ) 
> to be patched before this one.
> 

This is exactly my point, you must send a proper series when there are
dependencies between your patches.


> 
> 
> 


-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#184974): 
https://lists.openembedded.org/g/openembedded-core/message/184974
Mute This Topic: https://lists.openembedded.org/mt/100387455/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-firmware : Add firmware of RTL8822 serie

2023-07-27 Thread belouargamohamed
From: BELOUARGA Mohamed 

RTL8822 is a serie of wireless modules that need firmwares to function 
correctly.
The linux firmware recipe does not have a package of these firmwares, and this 
commit add them.

Signed-off-by: BELOUARGA Mohamed 
---
 .../linux-firmware/linux-firmware_20230625.bb | 8 
 1 file changed, 8 insertions(+)

diff --git a/meta/recipes-kernel/linux-firmware/linux-firmware_20230625.bb 
b/meta/recipes-kernel/linux-firmware/linux-firmware_20230625.bb
index 329a3e3c9a..3d6645579a 100644
--- a/meta/recipes-kernel/linux-firmware/linux-firmware_20230625.bb
+++ b/meta/recipes-kernel/linux-firmware/linux-firmware_20230625.bb
@@ -241,6 +241,7 @@ PACKAGES =+ "${PN}-ralink-license ${PN}-ralink \
  ${PN}-rtl-license ${PN}-rtl8188 ${PN}-rtl8192cu ${PN}-rtl8192ce 
${PN}-rtl8192su ${PN}-rtl8723 ${PN}-rtl8821 \
  ${PN}-rtl8761 \
  ${PN}-rtl8168 \
+ ${PN}-rtl8822 \
  ${PN}-cypress-license \
  ${PN}-broadcom-license \
  ${PN}-bcm-0bb4-0306 \
@@ -581,6 +582,7 @@ LICENSE:${PN}-rtl8192su = "Firmware-rtlwifi_firmware"
 LICENSE:${PN}-rtl8723 = "Firmware-rtlwifi_firmware"
 LICENSE:${PN}-rtl8761 = "Firmware-rtlwifi_firmware"
 LICENSE:${PN}-rtl8821 = "Firmware-rtlwifi_firmware"
+LICENSE:${PN}-rtl8822 = "Firmware-rtlwifi_firmware"
 LICENSE:${PN}-rtl-license = "Firmware-rtlwifi_firmware"
 LICENSE:${PN}-rtl8168 = "WHENCE"
 
@@ -611,6 +613,11 @@ FILES:${PN}-rtl8761 = " \
 FILES:${PN}-rtl8168 = " \
   ${nonarch_base_libdir}/firmware/rtl_nic/rtl8168*.fw \
 "
+FILES:${PN}-rtl8822 = " \
+  ${nonarch_base_libdir}/firmware/rtl_bt/rtl8822*.bin \
+  ${nonarch_base_libdir}/firmware/rtw88/rtw8822*.bin \
+  ${nonarch_base_libdir}/firmware/rtlwifi/rtl8822*.bin \
+"
 
 RDEPENDS:${PN}-rtl8188 += "${PN}-rtl-license"
 RDEPENDS:${PN}-rtl8192ce += "${PN}-rtl-license"
@@ -619,6 +626,7 @@ RDEPENDS:${PN}-rtl8192su = "${PN}-rtl-license"
 RDEPENDS:${PN}-rtl8723 += "${PN}-rtl-license"
 RDEPENDS:${PN}-rtl8821 += "${PN}-rtl-license"
 RDEPENDS:${PN}-rtl8761 += "${PN}-rtl-license"
+RDEPENDS:${PN}-rtl8822 += "${PN}-rtl-license"
 RDEPENDS:${PN}-rtl8168 += "${PN}-whence-license"
 
 # For ti-connectivity
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#184973): 
https://lists.openembedded.org/g/openembedded-core/message/184973
Mute This Topic: https://lists.openembedded.org/mt/100396950/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][kirkstone][dunfell][PATCH] systemd-systemctl: fix errors in instance name expansion

2023-07-27 Thread Steve Sakoman
On Wed, Jul 26, 2023 at 10:22 PM Yuta Hayama  wrote:

> Hi Steve,
>
> Sorry for rushing you.
> If the patch obviously needs to be backported to stable branch, could I
> post
> a backport request email right away? This issue is not listed in bugzilla,
> so
> I was worried that the patch might have been missed.
>
>
I have the patch in my mickledore test queue right now, and should have it
in kirkstone and dunfell shortly.

Yes, it is fine to send patches for stable branches once they have been
accepted in master.  It will help ensure that I don't miss something.

Steve


>
> On 2023/07/27 17:19, Yuta Hayama via lists.openembedded.org wrote:
> > If the instance name indicated by %i begins with a number, the meaning
> of the
> > replacement string "\\1{}".format(instance) is ambiguous.
> >
> > To indicate group number 1 regardless of the instance name, use "\g<1>".
> >
> > (From OE-Core rev: d18b939fb08b37380ce95934da38e6522392621c)
> >
> > Signed-off-by: Yuta Hayama 
> > Signed-off-by: Richard Purdie 
> > ---
> >  meta/recipes-core/systemd/systemd-systemctl/systemctl | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/meta/recipes-core/systemd/systemd-systemctl/systemctl
> b/meta/recipes-core/systemd/systemd-systemctl/systemctl
> > index 514f747fe6..7fe751b397 100755
> > --- a/meta/recipes-core/systemd/systemd-systemctl/systemctl
> > +++ b/meta/recipes-core/systemd/systemd-systemctl/systemctl
> > @@ -202,7 +202,7 @@ class SystemdUnit():
> >  try:
> >  for dependent in config.get('Install', prop):
> >  # expand any %i to instance (ignoring escape sequence
> %%)
> > -dependent = re.sub("([^%](%%)*)%i",
> "\\1{}".format(instance), dependent)
> > +dependent = re.sub("([^%](%%)*)%i",
> "\\g<1>{}".format(instance), dependent)
> >  wants = systemdir / "{}.{}".format(dependent, dirstem)
> / service
> >  add_link(wants, target)
> >
> >
> >
> >
> > 
> >
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#184972): 
https://lists.openembedded.org/g/openembedded-core/message/184972
Mute This Topic: https://lists.openembedded.org/mt/100386774/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][dunfell][PATCH] cve-update-nvd2-native: always pass str for json.loads()

2023-07-27 Thread Steve Sakoman
Will this change also work on master and mickledore?  If so, please submit
for master and I will cherry-pick to the other branches.

I've been trying to keep the cve checking in the stable branches in sync
with master as much as possible.

Thanks!

Steve

On Wed, Jul 26, 2023 at 10:56 PM Yuta Hayama  wrote:

> Currently json.loads() accepts one of the types str, bytes, or bytearray
> as an argument, but bytes and bytearrays have only been allowed since
> python 3.6. The version of Python3 provided by default on Ubuntu 16.04
> and Debian 9.x is 3.5, so make raw_data type str to work correctly on
> these build hosts.
>
> Signed-off-by: Yuta Hayama 
> ---
>  meta/recipes-core/meta/cve-update-nvd2-native.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-core/meta/cve-update-nvd2-native.bb
> b/meta/recipes-core/meta/cve-update-nvd2-native.bb
> index 2f7dad7e82..67d76f75dd 100644
> --- a/meta/recipes-core/meta/cve-update-nvd2-native.bb
> +++ b/meta/recipes-core/meta/cve-update-nvd2-native.bb
> @@ -136,7 +136,7 @@ def nvd_request_next(url, api_key, args):
>
>  if (r.headers['content-encoding'] == 'gzip'):
>  buf = r.read()
> -raw_data = gzip.decompress(buf)
> +raw_data = gzip.decompress(buf).decode("utf-8")
>  else:
>  raw_data = r.read().decode("utf-8")
>
> --
> 2.25.1
>
>

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



[OE-core] [PATCH 2/2] oeqa/runtime/ltp: Increase ltp test output timeout

2023-07-27 Thread Richard Purdie
On our slower arm server, the tests currently timeout leading to inconsistent 
test
results. Increase the timeout to avoid this and aim to make the test results
consistent.

Signed-off-by: Richard Purdie 
---
 meta/lib/oeqa/runtime/cases/ltp.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oeqa/runtime/cases/ltp.py 
b/meta/lib/oeqa/runtime/cases/ltp.py
index 29c26d7d324..362054452ec 100644
--- a/meta/lib/oeqa/runtime/cases/ltp.py
+++ b/meta/lib/oeqa/runtime/cases/ltp.py
@@ -71,7 +71,7 @@ class LtpTest(LtpTestBase):
 cmd = '/opt/ltp/runltp -f %s -q -r /opt/ltp -l /opt/ltp/results/%s 
-I 1 -d /opt/ltp' % (ltp_group, ltp_group)
 
 starttime = time.time()
-(status, output) = self.target.run(cmd)
+(status, output) = self.target.run(cmd, timeout=600)
 endtime = time.time()
 
 # Write the console log to disk for convenience
-- 
2.39.2


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



[OE-core] [PATCH 1/2] oeqa/target/ssh: Ensure EAGAIN doesn't truncate output

2023-07-27 Thread Richard Purdie
We have a suspicion that the read() call may return EAGAIN on the non-blocking
fd and this may truncate test output leading to some of our intermittent 
failures.
Tweak the code to avoid this potential issue.

Signed-off-by: Richard Purdie 
---
 meta/lib/oeqa/core/target/ssh.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/lib/oeqa/core/target/ssh.py b/meta/lib/oeqa/core/target/ssh.py
index e650302052d..243e45dd99e 100644
--- a/meta/lib/oeqa/core/target/ssh.py
+++ b/meta/lib/oeqa/core/target/ssh.py
@@ -253,6 +253,9 @@ def SSHCall(command, logger, timeout=None, **opts):
 except InterruptedError:
 logger.debug('InterruptedError')
 continue
+except BlockingIOError:
+logger.debug('BlockingIOError')
+continue
 
 process.stdout.close()
 
-- 
2.39.2


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

2023-07-27 Thread Khem Raj

On 7/27/23 4:01 AM, Sundeep KOKKONDA via lists.openembedded.org wrote:

Regression testing is done and below are the results.
*
gcc test summary:      v11.3v11.4*
# of expected passes                            126552126842
# of unexpected failures                        24295                24383


We need to review these for regressions. I am worried about regressing, 
new fails are acceptable.



# of unexpected successes                   77                      77
# of expected failures                            782                    782
# of unresolved testcases                     10                      10
# of unsupported tests                           2760                  2773






OpenPGP_0xBB053355919D3314.asc
Description: OpenPGP public key


OpenPGP_signature.asc
Description: OpenPGP digital signature

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#184968): 
https://lists.openembedded.org/g/openembedded-core/message/184968
Mute This Topic: https://lists.openembedded.org/mt/100387943/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 16/21] libadwaita: add recipe from meta-gnome

2023-07-27 Thread Khem Raj

On 7/27/23 7:36 AM, Alexander Kanavin wrote:

This is a requirement of latest epiphany 44.x.



This import breaks layer check tests for meta-oe job because now we have 
this recipe in two places. Would be good to send a removal to meta-gnome 
simultaneously.



Signed-off-by: Alexander Kanavin 
---
  meta/conf/distro/include/maintainers.inc  |  1 +
  .../libadwaita/libadwaita_1.3.3.bb| 25 +++
  2 files changed, 26 insertions(+)
  create mode 100644 meta/recipes-gnome/libadwaita/libadwaita_1.3.3.bb

diff --git a/meta/conf/distro/include/maintainers.inc 
b/meta/conf/distro/include/maintainers.inc
index 17f038c71ef..d472849265b 100644
--- a/meta/conf/distro/include/maintainers.inc
+++ b/meta/conf/distro/include/maintainers.inc
@@ -305,6 +305,7 @@ RECIPE_MAINTAINER:pn-ldconfig-native = "Khem Raj 
"
  RECIPE_MAINTAINER:pn-less = "Yi Zhao "
  RECIPE_MAINTAINER:pn-liba52 = "Unassigned "
  RECIPE_MAINTAINER:pn-libacpi = "Anuj Mittal "
+RECIPE_MAINTAINER:pn-libadwaita = "Alexander Kanavin "
  RECIPE_MAINTAINER:pn-libaio = "Alexander Kanavin "
  RECIPE_MAINTAINER:pn-libarchive = "Otavio Salvador 
"
  RECIPE_MAINTAINER:pn-libassuan = "Unassigned "
diff --git a/meta/recipes-gnome/libadwaita/libadwaita_1.3.3.bb 
b/meta/recipes-gnome/libadwaita/libadwaita_1.3.3.bb
new file mode 100644
index 000..8ec5258c736
--- /dev/null
+++ b/meta/recipes-gnome/libadwaita/libadwaita_1.3.3.bb
@@ -0,0 +1,25 @@
+SUMMARY = "Building blocks for modern GNOME applications"
+HOMEPAGE = "https://gitlab.gnome.org/GNOME/libadwaita;
+LICENSE="LGPL-2.1-or-later"
+LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
+
+GNOMEBASEBUILDCLASS = "meson"
+
+DEPENDS = " \
+gtk4 \
+"
+
+inherit gnomebase gobject-introspection gi-docgen vala features_check
+
+SRC_URI[archive.sha256sum] = 
"3fb9f6f8f570e543ab2dafb8b4b94d8b376c59ad565efadfede44557e3f3a9e1"
+
+ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
+REQUIRED_DISTRO_FEATURES = "opengl"
+
+GIR_MESON_ENABLE_FLAG = 'enabled'
+GIR_MESON_DISABLE_FLAG = 'disabled'
+GTKDOC_MESON_OPTION = 'gtk_doc'
+
+PACKAGECONFIG[examples] = "-Dexamples=true,-Dexamples=false"
+
+FILES:${PN} += "${datadir}/metainfo"







OpenPGP_0xBB053355919D3314.asc
Description: OpenPGP public key


OpenPGP_signature.asc
Description: OpenPGP digital signature

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#184967): 
https://lists.openembedded.org/g/openembedded-core/message/184967
Mute This Topic: https://lists.openembedded.org/mt/100391619/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 08/21] gnu-efi: upgrade 3.0.15 -> 3.0.17

2023-07-27 Thread Khem Raj

On 7/27/23 7:36 AM, Alexander Kanavin wrote:

Unset LDFLAGS as the standard ones do not work when linking EFI binaries
(the new version of gnu-efi adds various apps).



curious about which ldflags are problematic from OE env.


Signed-off-by: Alexander Kanavin 
---
  .../gnu-efi/{gnu-efi_3.0.15.bb => gnu-efi_3.0.17.bb}  | 8 ++--
  1 file changed, 6 insertions(+), 2 deletions(-)
  rename meta/recipes-bsp/gnu-efi/{gnu-efi_3.0.15.bb => gnu-efi_3.0.17.bb} (93%)

diff --git a/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.15.bb 
b/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.17.bb
similarity index 93%
rename from meta/recipes-bsp/gnu-efi/gnu-efi_3.0.15.bb
rename to meta/recipes-bsp/gnu-efi/gnu-efi_3.0.17.bb
index 5ae6f391ae9..547c469d19f 100644
--- a/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.15.bb
+++ b/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.17.bb
@@ -17,7 +17,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/files/${BP}.tar.bz2 \
 file://gnu-efi-3.0.9-fix-clang-build.patch \
 "
  
-SRC_URI[sha256sum] = "931a257b9c5c1ba65ff519f18373c438a26825f2db7866b163e96d1b168f20ea"

+SRC_URI[sha256sum] = 
"7807e903349343a7a142ebb934703a2872235e89688cf586c032b0a1087bcaf4"
  
  COMPATIBLE_HOST = "(x86_64.*|i.86.*|aarch64.*|arm.*|riscv64.*)-linux"

  COMPATIBLE_HOST:armv4 = 'null'
@@ -34,6 +34,10 @@ def gnu_efi_arch(d):
  return "ia32"
  return tarch
  
+do_compile:prepend() {

+unset LDFLAGS
+}
+
  EXTRA_OEMAKE = "'ARCH=${@gnu_efi_arch(d)}' 'CC=${CC}' 'AS=${AS}' 'LD=${LD}' 
'AR=${AR}' \
  'RANLIB=${RANLIB}' 'OBJCOPY=${OBJCOPY}' 'PREFIX=${prefix}' 
'LIBDIR=${libdir}' \
  "
@@ -46,7 +50,7 @@ do_install() {
  oe_runmake install INSTALLROOT="${D}"
  }
  
-FILES:${PN} += "${libdir}/*.lds"

+FILES:${PN} += "${libdir}/*.lds ${libdir}/gnuefi/apps"


Do you think if there is any positives of these be packaged separately?

  
  # 64-bit binaries are expected for EFI when targeting X32

  INSANE_SKIP:${PN}-dev:append:linux-gnux32 = " arch"







OpenPGP_0xBB053355919D3314.asc
Description: OpenPGP public key


OpenPGP_signature.asc
Description: OpenPGP digital signature

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#184966): 
https://lists.openembedded.org/g/openembedded-core/message/184966
Mute This Topic: https://lists.openembedded.org/mt/100391609/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] ltp: Use bfd linker when lld is distro linker default

2023-07-27 Thread Khem Raj
Signed-off-by: Khem Raj 
---
v2: Also fix KVM_LD and remove -fuse-ld=lld
v3: Drop remove operation, its not needed

 meta/recipes-extended/ltp/ltp_20230516.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-extended/ltp/ltp_20230516.bb 
b/meta/recipes-extended/ltp/ltp_20230516.bb
index e9407d3148e..9c9acc6c145 100644
--- a/meta/recipes-extended/ltp/ltp_20230516.bb
+++ b/meta/recipes-extended/ltp/ltp_20230516.bb
@@ -41,13 +41,14 @@ inherit autotools-brokensep pkgconfig
 # https://sourceware.org/bugzilla/show_bug.cgi?id=18097
 # 
https://github.com/linux-test-project/ltp/commit/3fce2064b54843218d085aae326c8f7ecf3a8c41#diff-39268f0855c634ca48c8993fcd2c95b12a65b79e8d9fa5ccd6b0f5a8785c0dd6R36
 LDFLAGS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' 
-fuse-ld=bfd', '', d)}"
+LDFLAGS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' 
-fuse-ld=bfd', '', d)}"
 
 # After 0002-kvm-use-LD-instead-of-hardcoding-ld.patch
 # 
https://github.com/linux-test-project/ltp/commit/f94e0ef3b7280f886384703ef9019aaf2f2dfebb
 # it fails with gold also a bit later when trying to use *-payload.bin
 # http://errors.yoctoproject.org/Errors/Details/663094/
 # work around this by forcing .bfd linked in LD when ld-is-gold is in 
DISTRO_FEATURES
-KVM_LD = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', 
'${HOST_PREFIX}ld.bfd${TOOLCHAIN_OPTIONS} ${HOST_LD_ARCH}', '${LD}', d)}"
+KVM_LD = "${@bb.utils.contains_any('DISTRO_FEATURES', 'ld-is-gold ld-is-lld', 
'${HOST_PREFIX}ld.bfd${TOOLCHAIN_OPTIONS} ${HOST_LD_ARCH}', '${LD}', d)}"
 
 TARGET_CC_ARCH += "${LDFLAGS}"
 
-- 
2.41.0


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



[OE-core] [PATCH] package: always sort the conffiles

2023-07-27 Thread Jean-Marie Lemetayer via lists.openembedded.org
To improve package reproducibility, the conffiles order should not be
directly linked to the file system.

Sorting the conffiles solves this issue.
---
 meta/lib/oe/package.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oe/package.py b/meta/lib/oe/package.py
index 70040f09e7..9d70925b9b 100644
--- a/meta/lib/oe/package.py
+++ b/meta/lib/oe/package.py
@@ -613,7 +613,7 @@ def get_conffiles(pkg, d):
 conf_list[i] = conf_list[i][1:]
 
 os.chdir(cwd)
-return conf_list
+return sorted(conf_list)
 
 def legitimize_package_name(s):
 """
-- 
2.34.1


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



ODP: ODP: [OE-Core][PATCH v11][master-next 1/5] package_ipk.bbclass: add support for ACLs and xattr

2023-07-27 Thread Piotr Łobacz
Hi Alexandre,

> Hello,
>
> I sent this to the autobuilders and I got the same reproducibility
> failure as earlier:
>
> https://autobuilder.yoctoproject.org/typhoon/#/builders/117/builds/3263/steps/13/logs/stdio>data=05%7C01%7Cp.lobacz%40welotec.com%7C8fb759c0e1ab49b0c69408db8eac5547%7C25111a7f1d5a4c51a4ca7f8e44011b39%7C0%7C0%7C638260643038719160%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=C6mYlLwOmYosyl1ZIS8vKQf2ailFqMqBXeamF%2FnSE7E%3D=0
>
> I'm not sure why you wouldn't see those.

Nor do I. I'm running it once again on our remote CI server, maybe I missed 
something. I'll answer you when I will know something more.

BR
Piotr

On 26/07/2023 09:27:53+, Piotr Łobacz wrote:
>
> Hi Alexandre, Alex,
> Thx for supporting me, I have finally discovered the issue regarding this 
> packages differences.
> It occurred that I was badly comparing two strings for tarformat comparison. 
> Now it is fixed and should finally work.
>
> This has been additionally tested with oe-selftest -r reproducible.
>
> BR
> Piotr
>
> Od: Piotr Łobacz 
> Wysłane: środa, 26 lipca 2023 11:22
> Do: openembedded-core@lists.openembedded.org 
> 
> DW: Piotr Łobacz 
> Temat: [OE-Core][PATCH v11][master-next 1/5] package_ipk.bbclass: add support 
> for ACLs and xattr
>
> Extend OPKGBUILDCMD variable, with additional parameters, depending
> on target distro features, in order to support ACLs and xattr.
>
> With fix pushed to the opkg-devel:
> https://groups.google.com/g/opkg-devel/c/dYNHrLjDwg8
> opkg-build is able to create tar archives with ACLs and xattr.
>
> Signed-off-by: Piotr Łobacz 
> ---
>  meta/classes-global/package_ipk.bbclass | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/classes-global/package_ipk.bbclass 
> b/meta/classes-global/package_ipk.bbclass
> index b4b7bc9ac2..a0f106e4ad 100644
> --- a/meta/classes-global/package_ipk.bbclass
> +++ b/meta/classes-global/package_ipk.bbclass
> @@ -15,7 +15,7 @@ IPKGCONF_SDK_TARGET = "${WORKDIR}/opkg-sdk-target.conf"
>  PKGWRITEDIRIPK = "${WORKDIR}/deploy-ipks"
>
>  # Program to be used to build opkg packages
> -OPKGBUILDCMD ??= 'opkg-build -Z xz -a "${XZ_DEFAULTS}"'
> +OPKGBUILDCMD ??= 'opkg-build -Z xz -a "${XZ_DEFAULTS}" 
> ${@bb.utils.contains('DISTRO_FEATURES', 'acl', '-A', '', d)} 
> ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', '-X', '', d)}'
>
>  OPKG_ARGS += "--force_postinstall --prefer-arch-to-version"
>  OPKG_ARGS += "${@['', 
> '--no-install-recommends'][d.getVar("NO_RECOMMENDATIONS") == "1"]}"
> --
> 2.34.1

>
> 
>


--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com/

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#184963): 
https://lists.openembedded.org/g/openembedded-core/message/184963
Mute This Topic: https://lists.openembedded.org/mt/100392767/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 v2] ltp: Use bfd linker when lld is distro linker default

2023-07-27 Thread Khem Raj
On Thu, Jul 27, 2023 at 1:38 AM Richard Purdie <
richard.pur...@linuxfoundation.org> wrote:

> On Thu, 2023-07-27 at 00:56 -0700, Khem Raj wrote:
> > Signed-off-by: Khem Raj 
> > ---
> > v2: Also fix KVM_LD and remove -fuse-ld=lld
> >
> >  meta/recipes-extended/ltp/ltp_20230516.bb | 4 +++-
> >  1 file changed, 3 insertions(+), 1 deletion(-)
> >
> > diff --git a/meta/recipes-extended/ltp/ltp_20230516.bb
> b/meta/recipes-extended/ltp/ltp_20230516.bb
> > index e9407d3148e..1efb7637dcf 100644
> > --- a/meta/recipes-extended/ltp/ltp_20230516.bb
> > +++ b/meta/recipes-extended/ltp/ltp_20230516.bb
> > @@ -41,13 +41,15 @@ inherit autotools-brokensep pkgconfig
> >  # https://sourceware.org/bugzilla/show_bug.cgi?id=18097
> >  #
> https://github.com/linux-test-project/ltp/commit/3fce2064b54843218d085aae326c8f7ecf3a8c41#diff-39268f0855c634ca48c8993fcd2c95b12a65b79e8d9fa5ccd6b0f5a8785c0dd6R36
> >  LDFLAGS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold',
> ' -fuse-ld=bfd', '', d)}"
> > +LDFLAGS:remove = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld',
> '-fuse-ld=lld', '', d)}"
> > +LDFLAGS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld',
> ' -fuse-ld=bfd', '', d)}"
>
> Why do we need the remove? Nobody would set both ld-is-gold and ls-is-
> ldd would they?
>
> I don't really like remove on principle in OE-Core...


I think it is not needed for will test a v2

>
>
> Cheers,
>
> Richard
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#184962): 
https://lists.openembedded.org/g/openembedded-core/message/184962
Mute This Topic: https://lists.openembedded.org/mt/100386590/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/21] kbd: upgrade 2.6.0 -> 2.6.1

2023-07-27 Thread Alexander Kanavin
Signed-off-by: Alexander Kanavin 
---
 meta/recipes-core/kbd/{kbd_2.6.0.bb => kbd_2.6.1.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-core/kbd/{kbd_2.6.0.bb => kbd_2.6.1.bb} (94%)

diff --git a/meta/recipes-core/kbd/kbd_2.6.0.bb 
b/meta/recipes-core/kbd/kbd_2.6.1.bb
similarity index 94%
rename from meta/recipes-core/kbd/kbd_2.6.0.bb
rename to meta/recipes-core/kbd/kbd_2.6.1.bb
index 9a3e0a74766..112039b9192 100644
--- a/meta/recipes-core/kbd/kbd_2.6.0.bb
+++ b/meta/recipes-core/kbd/kbd_2.6.1.bb
@@ -16,7 +16,7 @@ RCONFLICTS:${PN} = "console-tools"
 SRC_URI = "${KERNELORG_MIRROR}/linux/utils/${BPN}/${BP}.tar.xz \
"
 
-SRC_URI[sha256sum] = 
"9c159433db5df8ef31d86b42f5b09d32311bdda2ed35107fb1926243da60b28a"
+SRC_URI[sha256sum] = 
"2eb6c6c972be9589bab733275bf020beb5f644d5f9439737920e701af6cf3485"
 
 EXTRA_OECONF = "--disable-tests"
 PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)} \
-- 
2.30.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#184949): 
https://lists.openembedded.org/g/openembedded-core/message/184949
Mute This Topic: https://lists.openembedded.org/mt/100391611/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/21] gnu-efi: upgrade 3.0.15 -> 3.0.17

2023-07-27 Thread Alexander Kanavin
Unset LDFLAGS as the standard ones do not work when linking EFI binaries
(the new version of gnu-efi adds various apps).

Signed-off-by: Alexander Kanavin 
---
 .../gnu-efi/{gnu-efi_3.0.15.bb => gnu-efi_3.0.17.bb}  | 8 ++--
 1 file changed, 6 insertions(+), 2 deletions(-)
 rename meta/recipes-bsp/gnu-efi/{gnu-efi_3.0.15.bb => gnu-efi_3.0.17.bb} (93%)

diff --git a/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.15.bb 
b/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.17.bb
similarity index 93%
rename from meta/recipes-bsp/gnu-efi/gnu-efi_3.0.15.bb
rename to meta/recipes-bsp/gnu-efi/gnu-efi_3.0.17.bb
index 5ae6f391ae9..547c469d19f 100644
--- a/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.15.bb
+++ b/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.17.bb
@@ -17,7 +17,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/files/${BP}.tar.bz2 \
file://gnu-efi-3.0.9-fix-clang-build.patch \
"
 
-SRC_URI[sha256sum] = 
"931a257b9c5c1ba65ff519f18373c438a26825f2db7866b163e96d1b168f20ea"
+SRC_URI[sha256sum] = 
"7807e903349343a7a142ebb934703a2872235e89688cf586c032b0a1087bcaf4"
 
 COMPATIBLE_HOST = "(x86_64.*|i.86.*|aarch64.*|arm.*|riscv64.*)-linux"
 COMPATIBLE_HOST:armv4 = 'null'
@@ -34,6 +34,10 @@ def gnu_efi_arch(d):
 return "ia32"
 return tarch
 
+do_compile:prepend() {
+unset LDFLAGS
+}
+
 EXTRA_OEMAKE = "'ARCH=${@gnu_efi_arch(d)}' 'CC=${CC}' 'AS=${AS}' 'LD=${LD}' 
'AR=${AR}' \
 'RANLIB=${RANLIB}' 'OBJCOPY=${OBJCOPY}' 'PREFIX=${prefix}' 
'LIBDIR=${libdir}' \
 "
@@ -46,7 +50,7 @@ do_install() {
 oe_runmake install INSTALLROOT="${D}"
 }
 
-FILES:${PN} += "${libdir}/*.lds"
+FILES:${PN} += "${libdir}/*.lds ${libdir}/gnuefi/apps"
 
 # 64-bit binaries are expected for EFI when targeting X32
 INSANE_SKIP:${PN}-dev:append:linux-gnux32 = " arch"
-- 
2.30.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#184948): 
https://lists.openembedded.org/g/openembedded-core/message/184948
Mute This Topic: https://lists.openembedded.org/mt/100391609/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/21] insane.bbclass: add a SUMMARY/HOMEPAGE check (oe-core recipes only)

2023-07-27 Thread Alexander Kanavin
This was done in a selftest, but that is too late and creates
friction in integration as errors are not seen until autobuilder fails.

Bonus fix: SUMMARY check wasn't even working, as in the absence
of one set in the recipe there is a default value set from bitbake.conf.

I left DESCRIPTION check out for now, as many recipes don't actually
have it, and it's set from SUMMARY (plus a dot) if absent.

Signed-off-by: Alexander Kanavin 
---
 meta/classes-global/insane.bbclass | 16 ++
 meta/lib/oeqa/selftest/cases/distrodata.py | 36 --
 2 files changed, 16 insertions(+), 36 deletions(-)

diff --git a/meta/classes-global/insane.bbclass 
b/meta/classes-global/insane.bbclass
index 148ae4b7ad5..78506c30b1e 100644
--- a/meta/classes-global/insane.bbclass
+++ b/meta/classes-global/insane.bbclass
@@ -50,6 +50,7 @@ ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch 
pkgconfig la \
 # Add usrmerge QA check based on distro feature
 ERROR_QA:append = "${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', ' 
usrmerge', '', d)}"
 ERROR_QA:append:layer-core = " patch-status"
+WARN_QA:append:layer-core = " missing-metadata"
 
 FAKEROOT_QA = "host-user-contaminated"
 FAKEROOT_QA[doc] = "QA tests which need to run under fakeroot. If any \
@@ -1470,6 +1471,21 @@ python do_qa_unpack() {
 }
 
 python do_recipe_qa() {
+def test_missing_metadata(d):
+fn = d.getVar("FILE")
+pn = d.getVar('BPN')
+srcfile = d.getVar('SRC_URI').split()
+# Check that SUMMARY is not the same as the default from bitbake.conf
+if d.getVar('SUMMARY') == d.expand("${PN} version ${PV}-${PR}"):
+oe.qa.handle_error("missing-metadata", "Recipe {} in {} does not 
contain a SUMMARY. Please add an entry.".format(pn, fn), d)
+if not d.getVar('HOMEPAGE'):
+if srcfile and srcfile[0].startswith('file') or not 
d.getVar('SRC_URI'):
+# We are only interested in recipes SRC_URI fetched from 
external sources
+pass
+else:
+oe.qa.handle_error("missing-metadata", "Recipe {} in {} does 
not contain a HOMEPAGE. Please add an entry.".format(pn, fn), d)
+
+test_missing_metadata(d)
 oe.qa.exit_if_errors(d)
 }
 
diff --git a/meta/lib/oeqa/selftest/cases/distrodata.py 
b/meta/lib/oeqa/selftest/cases/distrodata.py
index 111bd3c9beb..ad952c004b5 100644
--- a/meta/lib/oeqa/selftest/cases/distrodata.py
+++ b/meta/lib/oeqa/selftest/cases/distrodata.py
@@ -39,42 +39,6 @@ but their recipes claim otherwise by setting 
UPSTREAM_VERSION_UNKNOWN. Please re
 """ + "\n".join(regressed_successes)
 self.assertTrue(len(regressed_failures) == 0 and 
len(regressed_successes) == 0, msg)
 
-def test_missing_homepg(self):
-"""
-Summary: Test for oe-core recipes that don't have a HOMEPAGE or 
DESCRIPTION
-Expected:All oe-core recipes should have a DESCRIPTION entry
-Expected:All oe-core recipes should have a HOMEPAGE entry except 
for recipes that are not fetched from external sources.
-Product: oe-core
-"""
-with bb.tinfoil.Tinfoil() as tinfoil:
-tinfoil.prepare(config_only=False)
-no_description = []
-no_homepage = []
-for fn in tinfoil.all_recipe_files(variants=False):
-if not '/meta/recipes-' in fn:
-# We are only interested in OE-Core
-continue
-rd = tinfoil.parse_recipe_file(fn, appends=False)
-pn = rd.getVar('BPN')
-srcfile = rd.getVar('SRC_URI').split()
-#Since DESCRIPTION defaults to SUMMARY if not set, we are only 
interested in recipes without DESCRIPTION or SUMMARY
-if not (rd.getVar('SUMMARY') or rd.getVar('DESCRIPTION')):
-no_description.append((pn, fn))
-if not rd.getVar('HOMEPAGE'):
-if srcfile and srcfile[0].startswith('file') or not 
rd.getVar('SRC_URI'):
-# We are only interested in recipes SRC_URI fetched 
from external sources
-continue
-no_homepage.append((pn, fn))
-if no_homepage:
-self.fail("""
-The following recipes do not have a HOMEPAGE. Please add an entry for HOMEPAGE 
in the recipe.
-""" + "\n".join(['%s (%s)' % i for i in no_homepage]))
-
-if no_description:
-self.fail("""
-The following recipes do not have a DESCRIPTION. Please add an entry for 
DESCRIPTION in the recipe.
-""" + "\n".join(['%s (%s)' % i for i in no_description]))
-
 def test_maintainers(self):
 """
 Summary: Test that oe-core recipes have a maintainer and entries 
in maintainers list have a recipe
-- 
2.30.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#184944): 
https://lists.openembedded.org/g/openembedded-core/message/184944

[OE-core] [PATCH 21/21] procps: address failure with gettext 0.22

2023-07-27 Thread Alexander Kanavin
Signed-off-by: Alexander Kanavin 
---
 ...o-address-failures-with-gettext-0.22.patch | 37 +++
 meta/recipes-extended/procps/procps_4.0.3.bb  |  1 +
 2 files changed, 38 insertions(+)
 create mode 100644 
meta/recipes-extended/procps/procps/0001-po-fr.po-address-failures-with-gettext-0.22.patch

diff --git 
a/meta/recipes-extended/procps/procps/0001-po-fr.po-address-failures-with-gettext-0.22.patch
 
b/meta/recipes-extended/procps/procps/0001-po-fr.po-address-failures-with-gettext-0.22.patch
new file mode 100644
index 000..805517900de
--- /dev/null
+++ 
b/meta/recipes-extended/procps/procps/0001-po-fr.po-address-failures-with-gettext-0.22.patch
@@ -0,0 +1,37 @@
+From 1d685477c254e5b10a81e32c87786e0f001b70f1 Mon Sep 17 00:00:00 2001
+From: Alexander Kanavin 
+Date: Mon, 24 Jul 2023 18:06:51 +0200
+Subject: [PATCH] po/fr.po: address failures with gettext 0.22
+
+Specifically:
+| fr.1po:3027: 'msgstr' is not a valid C format string, unlike 'msgid'. 
Reason: In the directive number 4, the argument size specifier is invalid.
+| fr.1po:3820: 'msgstr' is not a valid C format string, unlike 'msgid'. 
Reason: In the directive number 1, the argument size specifier is invalid.
+
+Upstream-Status: Submitted 
[https://gitlab.com/procps-ng/procps/-/merge_requests/199]
+Signed-off-by: Alexander Kanavin 
+---
+ po/fr.po | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/po/fr.po b/po/fr.po
+index 715c2b69..700834e1 100644
+--- a/po/fr.po
 b/po/fr.po
+@@ -3800,7 +3800,7 @@ msgid ""
+ "Type 'q' or  to continue "
+ msgstr ""
+ "Aide pour les commandes interactives~2 - %s\n"
+-"Fenêtre ~1%s~6: ~1Mode cumulatif ~3%s~2.  ~1Système~6: ~1Délai ~3%.1lf "
++"Fenêtre ~1%s~6: ~1Mode cumulatif ~3%s~2.  ~1Système~6: ~1Délai ~3%.1f "
+ "secs~2; ~1Mode sûr ~3%s~2.\n"
+ "\n"
+ "  Z~5,~1B~5,E,e   Global: «~1Z~2» couleurs; «~1B~2» gras; «~1E~2»/«~1e~2» "
+@@ -4723,7 +4723,7 @@ msgstr " -v, --version  affiche les informations de 
version et sort\n"
+ #: src/watch.c:486
+ #, c-format
+ msgid "Every %.1fs: "
+-msgstr "Toutes les %.1lfs: "
++msgstr "Toutes les %.1fs: "
+ 
+ #: src/watch.c:487
+ #, c-format
diff --git a/meta/recipes-extended/procps/procps_4.0.3.bb 
b/meta/recipes-extended/procps/procps_4.0.3.bb
index dc0e957bda1..71efb80207d 100644
--- a/meta/recipes-extended/procps/procps_4.0.3.bb
+++ b/meta/recipes-extended/procps/procps_4.0.3.bb
@@ -15,6 +15,7 @@ inherit autotools gettext pkgconfig update-alternatives
 SRC_URI = "git://gitlab.com/procps-ng/procps.git;protocol=https;branch=master \
file://sysctl.conf \
file://0001-src-w.c-use-utmp.h-only.patch \
+   file://0001-po-fr.po-address-failures-with-gettext-0.22.patch \
"
 SRCREV = "806eb270f217ff7e1e745c7bda2b002b5be74be4"
 
-- 
2.30.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#184961): 
https://lists.openembedded.org/g/openembedded-core/message/184961
Mute This Topic: https://lists.openembedded.org/mt/100391624/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/21] epiphany: upgrade 43.1 -> 44.5

2023-07-27 Thread Alexander Kanavin
With this version, epiphany has transitioned to gtk4,
and requires webkit built with gtk4 support (there is no choice,
it's a hard break). Adjust the webkit recipe accordingly.

There's also a new requirement for gcr 4.x and libadwaita.

Signed-off-by: Alexander Kanavin 
---
 .../epiphany/{epiphany_43.1.bb => epiphany_44.5.bb}  | 5 +++--
 meta/recipes-sato/webkit/webkitgtk_2.40.2.bb | 5 +++--
 2 files changed, 6 insertions(+), 4 deletions(-)
 rename meta/recipes-gnome/epiphany/{epiphany_43.1.bb => epiphany_44.5.bb} (92%)

diff --git a/meta/recipes-gnome/epiphany/epiphany_43.1.bb 
b/meta/recipes-gnome/epiphany/epiphany_44.5.bb
similarity index 92%
rename from meta/recipes-gnome/epiphany/epiphany_43.1.bb
rename to meta/recipes-gnome/epiphany/epiphany_44.5.bb
index c97ede459da..f92d149c881 100644
--- a/meta/recipes-gnome/epiphany/epiphany_43.1.bb
+++ b/meta/recipes-gnome/epiphany/epiphany_44.5.bb
@@ -8,10 +8,11 @@ LIC_FILES_CHKSUM = 
"file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
 
 DEPENDS = " \
   webkitgtk \
-  gcr3 \
+  gcr \
   gsettings-desktop-schemas \
   nettle \
   json-glib \
+  libadwaita \
   libarchive \
   libdazzle \
   libhandy \
@@ -31,7 +32,7 @@ SRC_URI = 
"${GNOME_MIRROR}/${GNOMEBN}/${@oe.utils.trim_version("${PV}", 1)}/${GN
file://migrator.patch \
file://distributor.patch \
"
-SRC_URI[archive.sha256sum] = 
"e86ead27cb9982815150664de3bf20faf375f77b8065b02b31180c65b6bbebb4"
+SRC_URI[archive.sha256sum] = 
"3c475e04ed2a0f410cb44b96937563697079193ac9b7a50c91485fb9b08315ab"
 
 # Developer mode enables debugging
 PACKAGECONFIG[developer-mode] = "-Ddeveloper_mode=true,-Ddeveloper_mode=false"
diff --git a/meta/recipes-sato/webkit/webkitgtk_2.40.2.bb 
b/meta/recipes-sato/webkit/webkitgtk_2.40.2.bb
index 8bef0b16055..a9391bfc991 100644
--- a/meta/recipes-sato/webkit/webkitgtk_2.40.2.bb
+++ b/meta/recipes-sato/webkit/webkitgtk_2.40.2.bb
@@ -35,7 +35,7 @@ DEPENDS += " \
   jpeg \
   atk \
   libwebp \
-  gtk+3 \
+  gtk4 \
   libxslt \
   libtasn1 \
   libnotify \
@@ -84,6 +84,7 @@ EXTRA_OECMAKE = " \
-DENABLE_MINIBROWSER=ON \
 -DENABLE_BUBBLEWRAP_SANDBOX=OFF \
 -DENABLE_GAMEPAD=OFF \
+-DUSE_GTK4=ON \
"
 
 # Javascript JIT is not supported on ARC
@@ -124,7 +125,7 @@ EXTRA_OECMAKE:append:x86-x32 = " -DENABLE_JIT=OFF "
 SECURITY_CFLAGS:remove:aarch64 = "-fpie"
 SECURITY_CFLAGS:append:aarch64 = " -fPIE"
 
-FILES:${PN} += 
"${libdir}/webkit2gtk-4.*/injected-bundle/libwebkit2gtkinjectedbundle.so"
+FILES:${PN} += "${libdir}/webkitgtk-*/injected-bundle/*.so"
 
 RRECOMMENDS:${PN} += "ca-certificates shared-mime-info"
 
-- 
2.30.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#184957): 
https://lists.openembedded.org/g/openembedded-core/message/184957
Mute This Topic: https://lists.openembedded.org/mt/100391620/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/21] uninative-tarball: install the full set of gconv modules

2023-07-27 Thread Alexander Kanavin
msgfmt from gettext-native 0.22 is using iconv() to convert data to utf-8
from arbitrary source encodings (previous versions of gettext did not
do this conversion):
https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=commit;h=5412a4f79929004cb6db15d545e07dc953330e8d

As this is happening at build time, and the source encodings are specified by 
upstream projects
 in translation files, we need the full set to cover all of them.

Signed-off-by: Alexander Kanavin 
---
 meta/recipes-core/meta/uninative-tarball.bb | 10 +-
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/meta/recipes-core/meta/uninative-tarball.bb 
b/meta/recipes-core/meta/uninative-tarball.bb
index 4aecf39b890..7eebcaf11a4 100644
--- a/meta/recipes-core/meta/uninative-tarball.bb
+++ b/meta/recipes-core/meta/uninative-tarball.bb
@@ -3,18 +3,10 @@ LICENSE = "MIT"
 
 TOOLCHAIN_TARGET_TASK = ""
 
-# ibm850 - mcopy from mtools
-# iso8859-1 - guile
-# utf-16, cp1252 - binutils-windres
 TOOLCHAIN_HOST_TASK = "\
 nativesdk-glibc \
 nativesdk-glibc-dbg \
-nativesdk-glibc-gconv-ibm850 \
-nativesdk-glibc-gconv-iso8859-1 \
-nativesdk-glibc-gconv-utf-16 \
-nativesdk-glibc-gconv-cp1252 \
-nativesdk-glibc-gconv-euc-jp \
-nativesdk-glibc-gconv-libjis \
+nativesdk-glibc-gconvs \
 nativesdk-patchelf \
 nativesdk-libxcrypt \
 nativesdk-libxcrypt-compat \
-- 
2.30.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#184959): 
https://lists.openembedded.org/g/openembedded-core/message/184959
Mute This Topic: https://lists.openembedded.org/mt/100391622/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/21] buildtools-extended-tarball: install the full set of gconv modules

2023-07-27 Thread Alexander Kanavin
The specific set was written to ensure vim builds reproducibly; this is
however prone to silent regressions (if vim adds more usage of iconv with
different encodings). Installing the full set also matches what standard
desktop distributions do, and thus meets expectations of upstream projects in 
general.

Signed-off-by: Alexander Kanavin 
---
 .../recipes-core/meta/buildtools-extended-tarball.bb | 12 ++--
 1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/meta/recipes-core/meta/buildtools-extended-tarball.bb 
b/meta/recipes-core/meta/buildtools-extended-tarball.bb
index 83e3fddccc1..633f8e6b99d 100644
--- a/meta/recipes-core/meta/buildtools-extended-tarball.bb
+++ b/meta/recipes-core/meta/buildtools-extended-tarball.bb
@@ -28,21 +28,13 @@ TOOLCHAIN_HOST_TASK += "\
 nativesdk-libtool \
 nativesdk-pkgconfig \
 nativesdk-glibc-utils \
-nativesdk-glibc-gconv-ibm850 \
-nativesdk-glibc-gconv-iso8859-1 \
-nativesdk-glibc-gconv-utf-16 \
-nativesdk-glibc-gconv-cp1250 \
-nativesdk-glibc-gconv-cp1251 \
-nativesdk-glibc-gconv-cp1252 \
-nativesdk-glibc-gconv-euc-jp \
-nativesdk-glibc-gconv-libjis \
+nativesdk-glibc-gconvs \
 nativesdk-libxcrypt-dev \
 nativesdk-parted \
 nativesdk-dosfstools \
 nativesdk-gptfdisk \
 "
-# gconv-cp1250, cp1251 and euc-jp needed for iconv to work in vim builds
-# also copied list from uninative
+# gconvs needed for iconv to work in vim builds
 
 TOOLCHAIN_OUTPUTNAME = 
"${SDK_ARCH}-buildtools-extended-nativesdk-standalone-${DISTRO_VERSION}"
 
-- 
2.30.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#184960): 
https://lists.openembedded.org/g/openembedded-core/message/184960
Mute This Topic: https://lists.openembedded.org/mt/100391623/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/21] glibc-locale: use stricter matching for metapackages' runtime dependencies

2023-07-27 Thread Alexander Kanavin
This resolves two issues:

1. metapackages were depending on themselves (except -binaries which wouldn't 
match against 'glibc-binary').

2. for the nativesdk variant, due to a non-empty dependency list at parsing 
time caused by
issue 1, map_depends_variable() from meta/lib/oe/classextend.py was forcibly 
setting PACKAGES
to the initial parse-time value (e.g. missing the dynamically created 
packages). This meant that
three out of four nativesdk- metapackages were entireyly missing the 
dependencies on the
respective dynamic package sets.

Signed-off-by: Alexander Kanavin 
---
 meta/recipes-core/glibc/glibc-locale.inc | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/meta/recipes-core/glibc/glibc-locale.inc 
b/meta/recipes-core/glibc/glibc-locale.inc
index 760de9437b5..289f58d4df9 100644
--- a/meta/recipes-core/glibc/glibc-locale.inc
+++ b/meta/recipes-core/glibc/glibc-locale.inc
@@ -37,22 +37,22 @@ PACKAGES_DYNAMIC = "^locale-base-.* \
 # Create a glibc-binaries package
 ALLOW_EMPTY:${BPN}-binaries = "1"
 PACKAGES += "${BPN}-binaries"
-RRECOMMENDS:${BPN}-binaries =  "${@" ".join([p for p in 
d.getVar('PACKAGES').split() if p.find("glibc-binary") != -1])}"
+RRECOMMENDS:${BPN}-binaries =  "${@" ".join([p for p in 
d.getVar('PACKAGES').split() if p.find("glibc-binary-") != -1])}"
 
 # Create a glibc-charmaps package
 ALLOW_EMPTY:${BPN}-charmaps = "1"
 PACKAGES += "${BPN}-charmaps"
-RRECOMMENDS:${BPN}-charmaps =  "${@" ".join([p for p in 
d.getVar('PACKAGES').split() if p.find("glibc-charmap") != -1])}"
+RRECOMMENDS:${BPN}-charmaps =  "${@" ".join([p for p in 
d.getVar('PACKAGES').split() if p.find("glibc-charmap-") != -1])}"
 
 # Create a glibc-gconvs package
 ALLOW_EMPTY:${BPN}-gconvs = "1"
 PACKAGES += "${BPN}-gconvs"
-RRECOMMENDS:${BPN}-gconvs =  "${@" ".join([p for p in 
d.getVar('PACKAGES').split() if p.find("glibc-gconv") != -1])}"
+RRECOMMENDS:${BPN}-gconvs =  "${@" ".join([p for p in 
d.getVar('PACKAGES').split() if p.find("glibc-gconv-") != -1])}"
 
 # Create a glibc-localedatas package
 ALLOW_EMPTY:${BPN}-localedatas = "1"
 PACKAGES += "${BPN}-localedatas"
-RRECOMMENDS:${BPN}-localedatas =  "${@" ".join([p for p in 
d.getVar('PACKAGES').split() if p.find("glibc-localedata") != -1])}"
+RRECOMMENDS:${BPN}-localedatas =  "${@" ".join([p for p in 
d.getVar('PACKAGES').split() if p.find("glibc-localedata-") != -1])}"
 
 DESCRIPTION:localedef = "glibc: compile locale definition files"
 
-- 
2.30.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#184958): 
https://lists.openembedded.org/g/openembedded-core/message/184958
Mute This Topic: https://lists.openembedded.org/mt/100391621/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/21] strace: upgrade 6.3 -> 6.4

2023-07-27 Thread Alexander Kanavin
Signed-off-by: Alexander Kanavin 
---
 ...e1392f5bd289239b755458dcdeeed69af1da.patch | 303 --
 ...b541b258baec9eba674b5d8dc30007a61542.patch |  50 ---
 ...2f4494779e5c5f170ad10539bfc2dfafe967.patch |  50 ---
 .../strace/{strace_6.3.bb => strace_6.4.bb}   |   5 +-
 4 files changed, 1 insertion(+), 407 deletions(-)
 delete mode 100644 
meta/recipes-devtools/strace/strace/00ace1392f5bd289239b755458dcdeeed69af1da.patch
 delete mode 100644 
meta/recipes-devtools/strace/strace/3bbfb541b258baec9eba674b5d8dc30007a61542.patch
 delete mode 100644 
meta/recipes-devtools/strace/strace/f31c2f4494779e5c5f170ad10539bfc2dfafe967.patch
 rename meta/recipes-devtools/strace/{strace_6.3.bb => strace_6.4.bb} (88%)

diff --git 
a/meta/recipes-devtools/strace/strace/00ace1392f5bd289239b755458dcdeeed69af1da.patch
 
b/meta/recipes-devtools/strace/strace/00ace1392f5bd289239b755458dcdeeed69af1da.patch
deleted file mode 100644
index bdf815e55e3..000
--- 
a/meta/recipes-devtools/strace/strace/00ace1392f5bd289239b755458dcdeeed69af1da.patch
+++ /dev/null
@@ -1,303 +0,0 @@
-From 00ace1392f5bd289239b755458dcdeeed69af1da Mon Sep 17 00:00:00 2001
-From: "Dmitry V. Levin" 
-Date: Mon, 26 Jun 2023 10:00:00 +
-Subject: [PATCH] tests: avoid accept() libc function when tracing accept()
- syscall
-
-The libc function is allowed to implement accept() using accept4()
-syscall, so migrate to accept4() those tests that trace accept() syscall
-but do not test accept() specifically, and change the test of accept()
-syscall to invoke either __NR_accept or __NR_socketcall(SYS_ACCEPT)
-directly.
-
-* tests/accept_compat.h: Remove.
-* tests/Makefile.am (EXTRA_DIST): Remove accept_compat.h.
-* tests/accept.c [TEST_SYSCALL_NAME]: Do not invoke accept(),
-call __NR_accept or __NR_socketcall if available, or skip the test.
-* tests/net-y-unix.c: Do not include "accept_compat.h".
-(main): Invoke accept4() instead of accept().
-* tests/net-yy-inet.c: Likewise.
-* tests/net-yy-unix.c: Likewise.
-
-Resolves: https://github.com/strace/strace/issues/260
-
-Upstream-Status: Backport

- tests/Makefile.am |  1 -
- tests/accept.c| 36 
- tests/accept_compat.h | 32 
- tests/net-y-unix.c| 16 
- tests/net-yy-inet.c   | 12 ++--
- tests/net-yy-unix.c   | 16 
- 6 files changed, 42 insertions(+), 71 deletions(-)
- delete mode 100644 tests/accept_compat.h
-
-Index: strace-6.3/tests/Makefile.am
-===
 strace-6.3.orig/tests/Makefile.am
-+++ strace-6.3/tests/Makefile.am
-@@ -776,7 +776,6 @@ check_DATA = \
-   # end of check_DATA
- 
- EXTRA_DIST = \
--  accept_compat.h \
-   attach-p-cmd.h \
-   clock_adjtime-common.c \
-   clock_xettime-common.c \
-Index: strace-6.3/tests/accept.c
-===
 strace-6.3.orig/tests/accept.c
-+++ strace-6.3/tests/accept.c
-@@ -9,38 +9,36 @@
-  */
- 
- #include "tests.h"
--
-+#include "scno.h"
- #include 
- 
--#include "scno.h"
-+#ifndef TEST_SYSCALL_NAME
- 
--#if defined __NR_accept
-+# if defined __NR_accept || defined __NR_socketcall
- 
--# ifndef TEST_SYSCALL_NAME
- #  define TEST_SYSCALL_NAME do_accept
--
--#  ifndef TEST_SYSCALL_STR
--#   define TEST_SYSCALL_STR "accept"
--#  endif
-+#  define TEST_SYSCALL_STR "accept"
- 
- static int
- do_accept(int sockfd, void *addr, void *addrlen)
- {
-+#  ifdef __NR_accept
-   return syscall(__NR_accept, sockfd, addr, addrlen);
-+#  else /* __NR_socketcall */
-+  const long args[] = { sockfd, (long) addr, (long) addrlen };
-+  return syscall(__NR_socketcall, 5, args);
-+#  endif
- }
--# endif /* !TEST_SYSCALL_NAME */
- 
--#else /* !__NR_accept */
-+# endif /* __NR_accept || __NR_socketcall */
- 
--# ifndef TEST_SYSCALL_NAME
--#  define TEST_SYSCALL_NAME accept
--# endif
-+#endif /* !TEST_SYSCALL_NAME */
- 
--#endif /* __NR_accept */
-+#ifdef TEST_SYSCALL_NAME
- 
--#define TEST_SYSCALL_PREPARE connect_un()
-+# define TEST_SYSCALL_PREPARE connect_un()
- static void connect_un(void);
--#include "sockname.c"
-+# include "sockname.c"
- 
- static void
- connect_un(void)
-@@ -90,3 +88,9 @@ main(void)
-   puts("+++ exited with 0 +++");
-   return 0;
- }
-+
-+#else
-+
-+SKIP_MAIN_UNDEFINED("__NR_accept || __NR_socketcall")
-+
-+#endif
-Index: strace-6.3/tests/accept_compat.h
-===
 strace-6.3.orig/tests/accept_compat.h
-+++ /dev/null
-@@ -1,32 +0,0 @@
--/*
-- * Copyright (c) 2018-2019 The strace developers.
-- * All rights reserved.
-- *
-- * SPDX-License-Identifier: GPL-2.0-or-later
-- */
--
--#ifndef _STRACE_TESTS_ACCEPT_COMPAT_H_
--# define _STRACE_TESTS_ACCEPT_COMPAT_H_
--
--# include 
--# include 
--# include "scno.h"
--
--# if defined __NR_socketcall && defined __sparc__
--/*
-- * Work around the fact that
-- * - glibc >= 

[OE-core] [PATCH 16/21] libadwaita: add recipe from meta-gnome

2023-07-27 Thread Alexander Kanavin
This is a requirement of latest epiphany 44.x.

Signed-off-by: Alexander Kanavin 
---
 meta/conf/distro/include/maintainers.inc  |  1 +
 .../libadwaita/libadwaita_1.3.3.bb| 25 +++
 2 files changed, 26 insertions(+)
 create mode 100644 meta/recipes-gnome/libadwaita/libadwaita_1.3.3.bb

diff --git a/meta/conf/distro/include/maintainers.inc 
b/meta/conf/distro/include/maintainers.inc
index 17f038c71ef..d472849265b 100644
--- a/meta/conf/distro/include/maintainers.inc
+++ b/meta/conf/distro/include/maintainers.inc
@@ -305,6 +305,7 @@ RECIPE_MAINTAINER:pn-ldconfig-native = "Khem Raj 
"
 RECIPE_MAINTAINER:pn-less = "Yi Zhao "
 RECIPE_MAINTAINER:pn-liba52 = "Unassigned "
 RECIPE_MAINTAINER:pn-libacpi = "Anuj Mittal "
+RECIPE_MAINTAINER:pn-libadwaita = "Alexander Kanavin "
 RECIPE_MAINTAINER:pn-libaio = "Alexander Kanavin "
 RECIPE_MAINTAINER:pn-libarchive = "Otavio Salvador 
"
 RECIPE_MAINTAINER:pn-libassuan = "Unassigned "
diff --git a/meta/recipes-gnome/libadwaita/libadwaita_1.3.3.bb 
b/meta/recipes-gnome/libadwaita/libadwaita_1.3.3.bb
new file mode 100644
index 000..8ec5258c736
--- /dev/null
+++ b/meta/recipes-gnome/libadwaita/libadwaita_1.3.3.bb
@@ -0,0 +1,25 @@
+SUMMARY = "Building blocks for modern GNOME applications"
+HOMEPAGE = "https://gitlab.gnome.org/GNOME/libadwaita;
+LICENSE="LGPL-2.1-or-later"
+LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
+
+GNOMEBASEBUILDCLASS = "meson"
+
+DEPENDS = " \
+gtk4 \
+"
+
+inherit gnomebase gobject-introspection gi-docgen vala features_check
+
+SRC_URI[archive.sha256sum] = 
"3fb9f6f8f570e543ab2dafb8b4b94d8b376c59ad565efadfede44557e3f3a9e1"
+
+ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
+REQUIRED_DISTRO_FEATURES = "opengl"
+
+GIR_MESON_ENABLE_FLAG = 'enabled'
+GIR_MESON_DISABLE_FLAG = 'disabled'
+GTKDOC_MESON_OPTION = 'gtk_doc'
+
+PACKAGECONFIG[examples] = "-Dexamples=true,-Dexamples=false"
+
+FILES:${PN} += "${datadir}/metainfo"
-- 
2.30.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#184956): 
https://lists.openembedded.org/g/openembedded-core/message/184956
Mute This Topic: https://lists.openembedded.org/mt/100391619/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/21] sudo: update 1.9.13p3 -> 1.9.14p2

2023-07-27 Thread Alexander Kanavin
License-update: file removed upstream

Drop patch as issue fixed upstream.

Signed-off-by: Alexander Kanavin 
---
 ...me.c-correctly-include-header-for-ou.patch | 25 ---
 meta/recipes-extended/sudo/sudo.inc   |  5 ++--
 .../{sudo_1.9.13p3.bb => sudo_1.9.14p2.bb}|  3 +--
 3 files changed, 3 insertions(+), 30 deletions(-)
 delete mode 100644 
meta/recipes-extended/sudo/files/0001-lib-util-mksigname.c-correctly-include-header-for-ou.patch
 rename meta/recipes-extended/sudo/{sudo_1.9.13p3.bb => sudo_1.9.14p2.bb} (92%)

diff --git 
a/meta/recipes-extended/sudo/files/0001-lib-util-mksigname.c-correctly-include-header-for-ou.patch
 
b/meta/recipes-extended/sudo/files/0001-lib-util-mksigname.c-correctly-include-header-for-ou.patch
deleted file mode 100644
index f63ed553bef..000
--- 
a/meta/recipes-extended/sudo/files/0001-lib-util-mksigname.c-correctly-include-header-for-ou.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From f993c5c88faacc43971899aae2168ffb3e34dc80 Mon Sep 17 00:00:00 2001
-From: Alexander Kanavin 
-Date: Fri, 24 Sep 2021 13:36:24 +0200
-Subject: [PATCH] lib/util/mksigname.c: correctly include header for out of
- tree builds
-
-Upstream-Status: Submitted [https://github.com/sudo-project/sudo/pull/123]
-Signed-off-by: Alexander Kanavin 

- lib/util/mksigname.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/lib/util/mksigname.c b/lib/util/mksigname.c
-index de8b1ad..0a69e7e 100644
 a/lib/util/mksigname.c
-+++ b/lib/util/mksigname.c
-@@ -36,7 +36,7 @@ main(int argc, char *argv[])
- {
- unsigned int i;
- 
--#include "mksigname.h"
-+#include "lib/util/mksigname.h"
- 
- printf("const char *const sudo_sys_signame[] = {\n");
- for (i = 0; i < nitems(sudo_sys_signame); i++) {
diff --git a/meta/recipes-extended/sudo/sudo.inc 
b/meta/recipes-extended/sudo/sudo.inc
index bedf713d2ce..feb1cf35a75 100644
--- a/meta/recipes-extended/sudo/sudo.inc
+++ b/meta/recipes-extended/sudo/sudo.inc
@@ -8,7 +8,6 @@ LIC_FILES_CHKSUM = 
"file://LICENSE.md;md5=5100e20d35f9015f9eef6bdb27ba194f \
 
file://plugins/sudoers/redblack.c;beginline=1;endline=46;md5=03e35317699ba00b496251e0dfe9f109
 \
 
file://lib/util/reallocarray.c;beginline=3;endline=15;md5=397dd45c7683e90b9f8bf24638cf03bf
 \
 
file://lib/util/fnmatch.c;beginline=3;endline=27;md5=004d7d2866ba1f5b41174906849d2e0f
 \
-
file://lib/util/getcwd.c;beginline=2;endline=27;md5=50f8d9667750e18dea4e84a935c12009
 \
 
file://lib/util/glob.c;beginline=2;endline=31;md5=2852f68687544e3eb8a0a61665506f0e
 \
 
file://lib/util/snprintf.c;beginline=3;endline=33;md5=b70df6179969e38fcf68da91b53b8029
 \
 
file://include/sudo_queue.h;beginline=2;endline=27;md5=ad578e9664d17a010b63e4bc0576ee8d
 \
@@ -31,12 +30,12 @@ EXTRA_OECONF = "--with-editor=${base_bindir}/vi 
--with-env-editor"
 EXTRA_OECONF:append:libc-musl = " --disable-hardening "
 
 do_compile:prepend () {
-   # Remove build host references from sudo_usage.h
+   # Remove build host references from config.h
sed -i  \
-e 's,--with-libtool-sysroot=${STAGING_DIR_TARGET},,g' \
-e 's,--build=${BUILD_SYS},,g' \
-e 's,--host=${HOST_SYS},,g' \
-   ${B}/src/sudo_usage.h
+   ${B}/config.h
 }
 
 # Explicitly create ${localstatedir}/lib before do_install to ensure
diff --git a/meta/recipes-extended/sudo/sudo_1.9.13p3.bb 
b/meta/recipes-extended/sudo/sudo_1.9.14p2.bb
similarity index 92%
rename from meta/recipes-extended/sudo/sudo_1.9.13p3.bb
rename to meta/recipes-extended/sudo/sudo_1.9.14p2.bb
index 2e11739470f..fa7939171f9 100644
--- a/meta/recipes-extended/sudo/sudo_1.9.13p3.bb
+++ b/meta/recipes-extended/sudo/sudo_1.9.14p2.bb
@@ -3,12 +3,11 @@ require sudo.inc
 SRC_URI = "https://www.sudo.ws/dist/sudo-${PV}.tar.gz \
${@bb.utils.contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', 
'', d)} \
file://0001-sudo.conf.in-fix-conflict-with-multilib.patch \
-   
file://0001-lib-util-mksigname.c-correctly-include-header-for-ou.patch \
"
 
 PAM_SRC_URI = "file://sudo.pam"
 
-SRC_URI[sha256sum] = 
"92334a12bb93e0c056b09f53e255ccb7d6f67c6350e2813cd9593ceeca78560b"
+SRC_URI[sha256sum] = 
"15f6308db0ed4265ec929f2c61e2e13492e551750c203ee001d1fcd8104c9514"
 
 DEPENDS += " virtual/crypt ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 
'libpam', '', d)}"
 RDEPENDS:${PN} += " ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 
'pam-plugin-limits pam-plugin-keyinit', '', d)}"
-- 
2.30.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#184955): 
https://lists.openembedded.org/g/openembedded-core/message/184955
Mute This Topic: https://lists.openembedded.org/mt/100391617/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: 

[OE-core] [PATCH 13/21] jquery: upgrade 3.6.3 -> 3.7.0

2023-07-27 Thread Alexander Kanavin
License-Update: needed lines shifted upwards

Signed-off-by: Alexander Kanavin 
---
 .../jquery/{jquery_3.6.3.bb => jquery_3.7.0.bb}   | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)
 rename meta/recipes-devtools/jquery/{jquery_3.6.3.bb => jquery_3.7.0.bb} (75%)

diff --git a/meta/recipes-devtools/jquery/jquery_3.6.3.bb 
b/meta/recipes-devtools/jquery/jquery_3.7.0.bb
similarity index 75%
rename from meta/recipes-devtools/jquery/jquery_3.6.3.bb
rename to meta/recipes-devtools/jquery/jquery_3.7.0.bb
index db4745ad7ab..eceed9c9dd4 100644
--- a/meta/recipes-devtools/jquery/jquery_3.6.3.bb
+++ b/meta/recipes-devtools/jquery/jquery_3.7.0.bb
@@ -3,7 +3,7 @@ HOMEPAGE = "https://jquery.com/;
 DESCRIPTION = "${SUMMARY}"
 LICENSE = "MIT"
 SECTION = "devel"
-LIC_FILES_CHKSUM = 
"file://${S}/${BP}.js;beginline=8;endline=10;md5=9c7c6e9ab275fc1e0d99cb7180ecd14c"
+LIC_FILES_CHKSUM = 
"file://${S}/${BP}.js;beginline=5;endline=7;md5=9c7c6e9ab275fc1e0d99cb7180ecd14c"
 
 # unpack items to ${S} so the archiver can see them
 #
@@ -13,9 +13,9 @@ SRC_URI = "\
 https://code.jquery.com/${BP}.min.map;name=map;subdir=${BP} \
 "
 
-SRC_URI[js.sha256sum] = 
"9d02ee01919145c20b03ee9d3013af7118793dedf5d2c0696a773af90066c953"
-SRC_URI[min.sha256sum] = 
"a6f3f0faea4b3d48e03176341bef0ed3151ffbf226d4c6635f1c6039c0500575"
-SRC_URI[map.sha256sum] = 
"156b740931ade6c1a98d99713eeb186f93847ffc56057e973becab4d037ed53a"
+SRC_URI[js.sha256sum] = 
"265a924c42de4784cba8fd0e1bd77133bc833ea5f5a31fc77e08922c18fcfa43"
+SRC_URI[min.sha256sum] = 
"d8f9afbf492e4c139e9d2bcb9ba6ef7c14921eb509fb703bc7a3f911b774eff8"
+SRC_URI[map.sha256sum] = 
"cae47e834ee977975a48c851b165cc52ea916cc968ba7d280b1293f573cd1a48"
 
 UPSTREAM_CHECK_REGEX = "jquery-(?P\d+(\.\d+)+)\.js"
 
-- 
2.30.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#184953): 
https://lists.openembedded.org/g/openembedded-core/message/184953
Mute This Topic: https://lists.openembedded.org/mt/100391615/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/21] util-linux: upgrade 2.38.1 -> 2.39.1

2023-07-27 Thread Alexander Kanavin
License-update: added bsd-2-clause
https://github.com/util-linux/util-linux/commit/faeb1b64b36ededd1a0b62555cad65f002d47ac6

Signed-off-by: Alexander Kanavin 
---
 ...2.38.1.bb => util-linux-libuuid_2.39.1.bb} |  0
 meta/recipes-core/util-linux/util-linux.inc   | 10 ++--
 .../0001-check-for-sys-pidfd.h.patch  | 53 ---
 ...configure.ac-Improve-check-for-magic.patch | 40 --
 .../util-linux/util-linux/run-ptest   |  6 +++
 ...l-linux_2.38.1.bb => util-linux_2.39.1.bb} |  0
 6 files changed, 10 insertions(+), 99 deletions(-)
 rename meta/recipes-core/util-linux/{util-linux-libuuid_2.38.1.bb => 
util-linux-libuuid_2.39.1.bb} (100%)
 delete mode 100644 
meta/recipes-core/util-linux/util-linux/0001-check-for-sys-pidfd.h.patch
 delete mode 100644 
meta/recipes-core/util-linux/util-linux/0001-configure.ac-Improve-check-for-magic.patch
 rename meta/recipes-core/util-linux/{util-linux_2.38.1.bb => 
util-linux_2.39.1.bb} (100%)

diff --git a/meta/recipes-core/util-linux/util-linux-libuuid_2.38.1.bb 
b/meta/recipes-core/util-linux/util-linux-libuuid_2.39.1.bb
similarity index 100%
rename from meta/recipes-core/util-linux/util-linux-libuuid_2.38.1.bb
rename to meta/recipes-core/util-linux/util-linux-libuuid_2.39.1.bb
diff --git a/meta/recipes-core/util-linux/util-linux.inc 
b/meta/recipes-core/util-linux/util-linux.inc
index 3868b1c41d3..99ce2a24b0a 100644
--- a/meta/recipes-core/util-linux/util-linux.inc
+++ b/meta/recipes-core/util-linux/util-linux.inc
@@ -6,13 +6,13 @@ disk partitioning, kernel message management, filesystem 
creation, and system lo
 
 SECTION = "base"
 
-LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later & BSD-3-Clause & BSD-4-Clause"
+LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later & BSD-2-Clause & BSD-3-Clause 
& BSD-4-Clause"
 LICENSE:${PN}-libblkid = "LGPL-2.1-or-later"
 LICENSE:${PN}-libfdisk = "LGPL-2.1-or-later"
 LICENSE:${PN}-libmount = "LGPL-2.1-or-later"
 LICENSE:${PN}-libsmartcols = "LGPL-2.1-or-later"
 
-LIC_FILES_CHKSUM = 
"file://README.licensing;md5=0fd5c050c6187d2bf0a4492b7f4e33da \
+LIC_FILES_CHKSUM = 
"file://README.licensing;md5=12ae7768a65ec8f2e44d930df9cb43fa \
 file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
 
file://Documentation/licenses/COPYING.GPL-2.0-or-later;md5=b234ee4d69f5fce4486a80fdaf4a4263
 \
 
file://Documentation/licenses/COPYING.LGPL-2.1-or-later;md5=4fbd65380cdd255951079008b364516c
 \
@@ -23,7 +23,7 @@ LIC_FILES_CHKSUM = 
"file://README.licensing;md5=0fd5c050c6187d2bf0a4492b7f4e33da
 
file://libblkid/COPYING;md5=693bcbbe16d3a4a4b37bc906bc01cc04 \
 
file://libfdisk/COPYING;md5=693bcbbe16d3a4a4b37bc906bc01cc04 \
 
file://libsmartcols/COPYING;md5=693bcbbe16d3a4a4b37bc906bc01cc04 \
-"
+"
 
 FILESEXTRAPATHS:prepend := "${THISDIR}/util-linux:"
 MAJOR_VERSION = "${@'.'.join(d.getVar('PV').split('.')[0:2])}"
@@ -35,8 +35,6 @@ SRC_URI = 
"${KERNELORG_MIRROR}/linux/utils/util-linux/v${MAJOR_VERSION}/util-lin
file://run-ptest \
file://display_testname_for_subtest.patch \
file://avoid_parallel_tests.patch \
-   file://0001-check-for-sys-pidfd.h.patch \
-   file://0001-configure.ac-Improve-check-for-magic.patch \
"
 
-SRC_URI[sha256sum] = 
"60492a19b44e6cf9a3ddff68325b333b8b52b6c59ce3ebd6a0ecaa4c5117e84f"
+SRC_URI[sha256sum] = 
"890ae8ff810247bd19e274df76e8371d202cda01ad277681b0ea88eeaa00286b"
diff --git 
a/meta/recipes-core/util-linux/util-linux/0001-check-for-sys-pidfd.h.patch 
b/meta/recipes-core/util-linux/util-linux/0001-check-for-sys-pidfd.h.patch
deleted file mode 100644
index 19f57f14bc7..000
--- a/meta/recipes-core/util-linux/util-linux/0001-check-for-sys-pidfd.h.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From 548bc568f3c735e53fb5b0a5ab6473a3f1457b91 Mon Sep 17 00:00:00 2001
-From: Khem Raj 
-Date: Sun, 7 Aug 2022 14:39:19 -0700
-Subject: [PATCH] check for sys/pidfd.h
-
-This header in newer glibc defines the signatures of functions
-pidfd_send_signal() and pidfd_open() and when these functions are
-defined by libc then we need to include the relevant header to get
-the definitions. Clang 15+ has started to error out when function
-signatures are missing.
-
-Fixes errors like
-misc-utils/kill.c:402:6: error: call to undeclared function 
'pidfd_send_signal'; ISO C99 and later do not support implicit function 
declarations [-Wimplicit-function-declaration]
-if (pidfd_send_signal(pfd, ctl->numsig, , 0) < 0)
-
-Upstream-Status: Submitted [https://github.com/util-linux/util-linux/pull/1769]
-Signed-off-by: Khem Raj 

- configure.ac  | 1 +
- include/pidfd-utils.h | 4 +++-
- 2 files changed, 4 insertions(+), 1 deletion(-)
-
-diff --git a/configure.ac b/configure.ac
-index a511e93de..fd7d9245f 100644
 a/configure.ac
-+++ b/configure.ac
-@@ -342,6 +342,7 @@ AC_CHECK_HEADERS([ \
-   sys/mkdev.h \
-  

[OE-core] [PATCH 01/21] meta: add missing summaries for image recipes

2023-07-27 Thread Alexander Kanavin
Signed-off-by: Alexander Kanavin 
---
 meta/recipes-core/images/core-image-minimal-initramfs.bb| 1 +
 meta/recipes-core/images/core-image-tiny-initramfs.bb   | 1 +
 meta/recipes-core/ovmf/ovmf-shell-image.bb  | 2 +-
 meta/recipes-extended/images/core-image-full-cmdline.bb | 2 +-
 .../images/core-image-testcontroller-initramfs.bb   | 2 +-
 meta/recipes-extended/images/core-image-testcontroller.bb   | 2 +-
 meta/recipes-sato/images/core-image-sato.bb | 1 +
 7 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/meta/recipes-core/images/core-image-minimal-initramfs.bb 
b/meta/recipes-core/images/core-image-minimal-initramfs.bb
index 0b51187d516..1c08c7fec62 100644
--- a/meta/recipes-core/images/core-image-minimal-initramfs.bb
+++ b/meta/recipes-core/images/core-image-minimal-initramfs.bb
@@ -1,4 +1,5 @@
 # Simple initramfs image. Mostly used for live images.
+SUMMARY = "Small image capable of booting a device."
 DESCRIPTION = "Small image capable of booting a device. The kernel includes \
 the Minimal RAM-based Initial Root Filesystem (initramfs), which finds the \
 first 'init' program more efficiently."
diff --git a/meta/recipes-core/images/core-image-tiny-initramfs.bb 
b/meta/recipes-core/images/core-image-tiny-initramfs.bb
index a1883de0ebe..96b56a2f59b 100644
--- a/meta/recipes-core/images/core-image-tiny-initramfs.bb
+++ b/meta/recipes-core/images/core-image-tiny-initramfs.bb
@@ -1,4 +1,5 @@
 # Simple initramfs image artifact generation for tiny images.
+SUMMARY = "Tiny image capable of booting a device."
 DESCRIPTION = "Tiny image capable of booting a device. The kernel includes \
 the Minimal RAM-based Initial Root Filesystem (initramfs), which finds the \
 first 'init' program more efficiently. core-image-tiny-initramfs doesn't \
diff --git a/meta/recipes-core/ovmf/ovmf-shell-image.bb 
b/meta/recipes-core/ovmf/ovmf-shell-image.bb
index 50c4517da39..4d7958eb5fa 100644
--- a/meta/recipes-core/ovmf/ovmf-shell-image.bb
+++ b/meta/recipes-core/ovmf/ovmf-shell-image.bb
@@ -1,4 +1,4 @@
-DESCRIPTION = "boot image with UEFI shell and tools"
+SUMMARY = "boot image with UEFI shell and tools"
 COMPATIBLE_HOST:class-target='(i.86|x86_64).*'
 
 # For this image recipe, only the wic format with a
diff --git a/meta/recipes-extended/images/core-image-full-cmdline.bb 
b/meta/recipes-extended/images/core-image-full-cmdline.bb
index 4d69073d9dc..4e1cf58d55b 100644
--- a/meta/recipes-extended/images/core-image-full-cmdline.bb
+++ b/meta/recipes-extended/images/core-image-full-cmdline.bb
@@ -1,4 +1,4 @@
-DESCRIPTION = "A console-only image with more full-featured Linux system \
+SUMMARY = "A console-only image with more full-featured Linux system \
 functionality installed."
 
 IMAGE_FEATURES += "splash ssh-server-openssh"
diff --git 
a/meta/recipes-extended/images/core-image-testcontroller-initramfs.bb 
b/meta/recipes-extended/images/core-image-testcontroller-initramfs.bb
index 2bc035a538d..a5b3d10205c 100644
--- a/meta/recipes-extended/images/core-image-testcontroller-initramfs.bb
+++ b/meta/recipes-extended/images/core-image-testcontroller-initramfs.bb
@@ -1,4 +1,4 @@
-DESCRIPTION = "Small image capable of booting a device with custom install 
scripts, \
+SUMMARY = "Small image capable of booting a device with custom install 
scripts, \
 adding a second rootfs, used for testing."
 
 # use -testfs live-install scripts
diff --git a/meta/recipes-extended/images/core-image-testcontroller.bb 
b/meta/recipes-extended/images/core-image-testcontroller.bb
index 20edbd5630c..ff79bde0c5d 100644
--- a/meta/recipes-extended/images/core-image-testcontroller.bb
+++ b/meta/recipes-extended/images/core-image-testcontroller.bb
@@ -1,4 +1,4 @@
-DESCRIPTION = "A test controller image to be deployed on a target useful for 
testing other images using the OEQA runtime tests"
+SUMMARY = "A test controller image to be deployed on a target useful for 
testing other images using the OEQA runtime tests"
 
 IMAGE_FEATURES += "ssh-server-openssh package-management"
 
diff --git a/meta/recipes-sato/images/core-image-sato.bb 
b/meta/recipes-sato/images/core-image-sato.bb
index e63a229d125..9200ae54401 100644
--- a/meta/recipes-sato/images/core-image-sato.bb
+++ b/meta/recipes-sato/images/core-image-sato.bb
@@ -1,3 +1,4 @@
+SUMMARY = "Image with Sato, a mobile environment and visual style for mobile 
devices."
 DESCRIPTION = "Image with Sato, a mobile environment and visual style for \
 mobile devices. The image supports X11 with a Sato theme, Pimlico \
 applications, and contains terminal, editor, and file manager."
-- 
2.30.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#184941): 
https://lists.openembedded.org/g/openembedded-core/message/184941
Mute This Topic: https://lists.openembedded.org/mt/100391602/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: 

[OE-core] [PATCH 11/21] systemd: upgrade 253.3 -> 253.7

2023-07-27 Thread Alexander Kanavin
Signed-off-by: Alexander Kanavin 
---
 .../systemd/{systemd-boot_253.3.bb => systemd-boot_253.7.bb}| 0
 meta/recipes-core/systemd/systemd.inc   | 2 +-
 .../recipes-core/systemd/{systemd_253.3.bb => systemd_253.7.bb} | 0
 3 files changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-core/systemd/{systemd-boot_253.3.bb => 
systemd-boot_253.7.bb} (100%)
 rename meta/recipes-core/systemd/{systemd_253.3.bb => systemd_253.7.bb} (100%)

diff --git a/meta/recipes-core/systemd/systemd-boot_253.3.bb 
b/meta/recipes-core/systemd/systemd-boot_253.7.bb
similarity index 100%
rename from meta/recipes-core/systemd/systemd-boot_253.3.bb
rename to meta/recipes-core/systemd/systemd-boot_253.7.bb
diff --git a/meta/recipes-core/systemd/systemd.inc 
b/meta/recipes-core/systemd/systemd.inc
index d50f2c9cba6..c2f2899044f 100644
--- a/meta/recipes-core/systemd/systemd.inc
+++ b/meta/recipes-core/systemd/systemd.inc
@@ -14,7 +14,7 @@ LICENSE = "GPL-2.0-only & LGPL-2.1-only"
 LIC_FILES_CHKSUM = "file://LICENSE.GPL2;md5=751419260aa954499f7abaabaa882bbe \
 
file://LICENSE.LGPL2.1;md5=4fbd65380cdd255951079008b364516c"
 
-SRCREV = "ed18c2ab79e8b94182d5dcf31d58457763f3e3e1"
+SRCREV = "f1c4da0414640cf201147144f558e1af31a3ae80"
 SRCBRANCH = "v253-stable"
 SRC_URI = 
"git://github.com/systemd/systemd-stable.git;protocol=https;branch=${SRCBRANCH} 
\

file://0026-src-boot-efi-efi-string.c-define-wchar_t-from-__WCHA.patch \
diff --git a/meta/recipes-core/systemd/systemd_253.3.bb 
b/meta/recipes-core/systemd/systemd_253.7.bb
similarity index 100%
rename from meta/recipes-core/systemd/systemd_253.3.bb
rename to meta/recipes-core/systemd/systemd_253.7.bb
-- 
2.30.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#184950): 
https://lists.openembedded.org/g/openembedded-core/message/184950
Mute This Topic: https://lists.openembedded.org/mt/100391612/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/21] librsvg: fix upstream version check

2023-07-27 Thread Alexander Kanavin
- upstream no longer uses odd-even scheme
https://gitlab.gnome.org/GNOME/librsvg/-/releases/2.55.1

- x.y.9z versions are pre-releases and need to be excluded

Signed-off-by: Alexander Kanavin 
---
 meta/recipes-gnome/librsvg/librsvg_2.56.1.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-gnome/librsvg/librsvg_2.56.1.bb 
b/meta/recipes-gnome/librsvg/librsvg_2.56.1.bb
index edd7ad38fd6..76fd5ae2d51 100644
--- a/meta/recipes-gnome/librsvg/librsvg_2.56.1.bb
+++ b/meta/recipes-gnome/librsvg/librsvg_2.56.1.bb
@@ -14,7 +14,7 @@ SECTION = "x11/utils"
 DEPENDS = "cairo gdk-pixbuf glib-2.0 libxml2 pango python3-docutils-native"
 BBCLASSEXTEND = "native nativesdk"
 
-inherit cargo_common gnomebase pixbufcache upstream-version-is-even 
gobject-introspection rust vala gi-docgen cargo-update-recipe-crates
+inherit cargo_common gnomebase pixbufcache gobject-introspection rust vala 
gi-docgen cargo-update-recipe-crates
 
 require ${BPN}-crates.inc
 
@@ -23,6 +23,8 @@ SRC_URI += 
"file://0001-Makefile.am-pass-rust-target-to-cargo-also-when-not-.pat
 
 SRC_URI[archive.sha256sum] = 
"1685aeacae9a441dcb12c0c3ec63706172a2f52705dafbefb8e7311d4d5e430b"
 
+UPSTREAM_CHECK_REGEX = "librsvg-(?P\d+\.\d+\.(?!9\d+)\d+)"
+
 # librsvg is still autotools-based, but is calling cargo from its 
automake-driven makefiles
 # so we cannot use cargo class directly, but still need bits and pieces from 
it 
 # for cargo to be happy
-- 
2.30.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#184946): 
https://lists.openembedded.org/g/openembedded-core/message/184946
Mute This Topic: https://lists.openembedded.org/mt/100391607/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/21] acpica: tarball and homepage relocated to intel.com

2023-07-27 Thread Alexander Kanavin
Sadly the tarball link is hidden behind html button trickery: while
the link seems stable, determining what it is is too much for
our upstream version checker, and so new versions will
have to be checked by hand every sometimes.

Switching to git won't help either: the tags are in MMDDYY format,
and so won't sort:
https://github.com/acpica/acpica/tags
https://github.com/acpica/acpica/issues/886

Signed-off-by: Alexander Kanavin 
---
 meta/recipes-extended/acpica/acpica_20230628.bb | 7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-extended/acpica/acpica_20230628.bb 
b/meta/recipes-extended/acpica/acpica_20230628.bb
index 06db99cef5b..3b939ad6652 100644
--- a/meta/recipes-extended/acpica/acpica_20230628.bb
+++ b/meta/recipes-extended/acpica/acpica_20230628.bb
@@ -6,7 +6,7 @@ ACPI meant to be directly integrated into the host OS as a 
kernel-resident \
 subsystem, and a small set of tools to assist in developing and debugging \
 ACPI tables."
 
-HOMEPAGE = "http://www.acpica.org/;
+HOMEPAGE = 
"https://www.intel.com/content/www/us/en/developer/topic-technology/open/acpica/overview.html;
 SECTION = "console/tools"
 
 LICENSE = "Intel | BSD-3-Clause | GPL-2.0-only"
@@ -16,10 +16,11 @@ COMPATIBLE_HOST = "(i.86|x86_64|arm|aarch64).*-linux"
 
 DEPENDS = "m4-native flex-native bison-native"
 
-SRC_URI = "https://acpica.org/sites/acpica/files/acpica-unix-${PV}.tar.gz;
+SRC_URI = "https://downloadmirror.intel.com/783534/acpica-unix-${PV}.tar.gz;
 SRC_URI[sha256sum] = 
"86876a745e3d224dcfd222ed3de465b47559e85811df2db9820ef09a9dff5cce"
 
-UPSTREAM_CHECK_URI = "https://acpica.org/downloads;
+UPSTREAM_CHECK_URI = 
"https://www.intel.com/content/www/us/en/download/776303/acpi-component-architecture-downloads-unix-format-source-code-and-build-environment-with-an-intel-license.html;
+UPSTREAM_VERSION_UNKNOWN = "1"
 
 S = "${WORKDIR}/acpica-unix-${PV}"
 
-- 
2.30.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#184947): 
https://lists.openembedded.org/g/openembedded-core/message/184947
Mute This Topic: https://lists.openembedded.org/mt/100391608/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/21] devtool: do not run recipe_qa task when extracting source

2023-07-27 Thread Alexander Kanavin
The immediate reason is that the task is sstate enabled, and due
to the way devtool sets up source extraction this causes bogus
values to appear in tmp/sstate-control/index-* files.

Also, recipe_qa may contain hard failures in the future, and it
would be counterproductive for the failures to prevent devtool
workflows (which may perhaps be about fixing the failure).

An alternative would have been to not insert recipe_qa task before
fetch task, but that would greatly delay the checks in larger
bitbake builds, and it's better to run them as early as possible.

Signed-off-by: Alexander Kanavin 
---
 scripts/lib/devtool/standard.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index 86ca77f7180..88a6ecd4219 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -567,6 +567,8 @@ def _extract_source(srctree, keep_temp, devbranch, sync, 
config, basepath, works
 logger.debug('writing append file %s' % appendfile)
 with open(appendfile, 'a') as f:
 f.write('###--- _extract_source\n')
+f.write('deltask do_recipe_qa\n')
+f.write('deltask do_recipe_qa_setscene\n')
 f.write('ERROR_QA:remove = "patch-fuzz"\n')
 f.write('DEVTOOL_TEMPDIR = "%s"\n' % tempdir)
 f.write('DEVTOOL_DEVBRANCH = "%s"\n' % devbranch)
-- 
2.30.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#184943): 
https://lists.openembedded.org/g/openembedded-core/message/184943
Mute This Topic: https://lists.openembedded.org/mt/100391604/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/21] insane.bbclass: add a RECIPE_MAINTAINER check (oe-core recipes only)

2023-07-27 Thread Alexander Kanavin
Absent maintainer entries are as well a frequent source of friction, as they 
are checked
only in selftest, and so aren't revealed until autobuilder runs.

The selftest is retained as it also checks for obsolete entries in 
maintainers.inc
(not possible to do in insane class).

Signed-off-by: Alexander Kanavin 
---
 meta/classes-global/insane.bbclass | 11 ++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/meta/classes-global/insane.bbclass 
b/meta/classes-global/insane.bbclass
index 78506c30b1e..960dfc8924a 100644
--- a/meta/classes-global/insane.bbclass
+++ b/meta/classes-global/insane.bbclass
@@ -50,7 +50,7 @@ ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch 
pkgconfig la \
 # Add usrmerge QA check based on distro feature
 ERROR_QA:append = "${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', ' 
usrmerge', '', d)}"
 ERROR_QA:append:layer-core = " patch-status"
-WARN_QA:append:layer-core = " missing-metadata"
+WARN_QA:append:layer-core = " missing-metadata missing-maintainer"
 
 FAKEROOT_QA = "host-user-contaminated"
 FAKEROOT_QA[doc] = "QA tests which need to run under fakeroot. If any \
@@ -1485,7 +1485,16 @@ python do_recipe_qa() {
 else:
 oe.qa.handle_error("missing-metadata", "Recipe {} in {} does 
not contain a HOMEPAGE. Please add an entry.".format(pn, fn), d)
 
+def test_missing_maintainer(d):
+fn = d.getVar("FILE")
+pn = d.getVar("PN")
+if pn.endswith("-native") or pn.startswith("nativesdk-") or 
"packagegroup-" in pn or "core-image-ptest-" in pn:
+return
+if not d.getVar('RECIPE_MAINTAINER'):
+oe.qa.handle_error("missing-maintainer", "Recipe {} in {} does not 
have an assigned maintainer. Please add an entry into 
meta/conf/distro/include/maintainers.inc.".format(pn, fn), d)
+
 test_missing_metadata(d)
+test_missing_maintainer(d)
 oe.qa.exit_if_errors(d)
 }
 
-- 
2.30.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#184945): 
https://lists.openembedded.org/g/openembedded-core/message/184945
Mute This Topic: https://lists.openembedded.org/mt/100391606/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/21] insane.bbclass: add do_recipe_qa task

2023-07-27 Thread Alexander Kanavin
There is a need to run QA checks that can operate entirely from
recipe metadata and do not need any of the build artefacts or
source code. After some deliberation it was concluded that such
checks are best collected in their own task that runs as early as possible,
and so this commit adds the task.

Like package_qa, the task is sstate enabled, but doesn't (yet)
register the qa results into sstate.

Signed-off-by: Alexander Kanavin 
---
 meta/classes-global/insane.bbclass | 14 ++
 1 file changed, 14 insertions(+)

diff --git a/meta/classes-global/insane.bbclass 
b/meta/classes-global/insane.bbclass
index 114781c7803..148ae4b7ad5 100644
--- a/meta/classes-global/insane.bbclass
+++ b/meta/classes-global/insane.bbclass
@@ -1469,6 +1469,20 @@ python do_qa_unpack() {
 unpack_check_src_uri(d.getVar('PN'), d)
 }
 
+python do_recipe_qa() {
+oe.qa.exit_if_errors(d)
+}
+
+addtask do_recipe_qa before do_fetch do_package_qa do_build
+
+SSTATETASKS += "do_recipe_qa"
+do_recipe_qa[sstate-inputdirs] = ""
+do_recipe_qa[sstate-outputdirs] = ""
+python do_recipe_qa_setscene () {
+sstate_setscene(d)
+}
+addtask do_recipe_qa_setscene
+
 # Check for patch fuzz
 do_patch[postfuncs] += "do_qa_patch "
 
-- 
2.30.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#184942): 
https://lists.openembedded.org/g/openembedded-core/message/184942
Mute This Topic: https://lists.openembedded.org/mt/100391603/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 v2] oeqa/selftest/rust: Add failed test cases to exclude list for Rust Oe-selftest

2023-07-27 Thread Shinde, Yash via lists.openembedded.org
I already posted the other needed patch here, 
https://lists.openembedded.org/g/openembedded-core/topic/100373873#184890 ( 
https://lists.openembedded.org/g/openembedded-core/topic/100373873#184890 ) to 
be patched before this one.

Regards,

Yash

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



Re: [OE-core] [RFC v2 0/2] Add bblock helper script

2023-07-27 Thread Alexander Kanavin
Sure; if you can write a script and show it here, we can figure out
where to place the test officially.

Alex

On Thu, 27 Jul 2023 at 16:15, Julien Stephan  wrote:
>
> On Mon, Jul 24, 2023 at 10:36:28AM +0200, Alexander Kanavin wrote:
> > On Mon, 24 Jul 2023 at 10:25, Julien Stephan  wrote:
> > > > Thanks for working on this. Should we think about how this could be 
> > > > tested?
> > > Do you mean we should consider addind self test for bblock? or you want
> > > to discuss about acceptance criteria for bblock?
> >
> > Hello,
> > I mean mostly about what should be tested. How can we verify that the
> > script does what it's supposed to, in an automated way, so it won't
> > silently break as new changes to bitbake/oe-core are added? What
> > should such a test contain?
> > The specific form of tests (whether it's selftest, or maybe a part of
> > SDK testing, or something else) is secondary.
> >
> > Alex
>
> Hi Alex,
>
> I just send the v3 with a lot of improvements!
>
> Here is what I do during my dev:
> - lock a recipe's task for a given arch (qemux86-64 vs qemuarm)
> - modify the given task
> - check that for the selected arch, task is locked (but not for other arch)
>
> Maybe we need to be more formal with that?
>
> I would be happy to provide a test script if needed.
>
> Cheers
> Julien

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



Re: ODP: [OE-Core][PATCH v11][master-next 1/5] package_ipk.bbclass: add support for ACLs and xattr

2023-07-27 Thread Alexandre Belloni via lists.openembedded.org
Hello,

I sent this to the autobuilders and I got the same reproducibility
failure as earlier:

https://autobuilder.yoctoproject.org/typhoon/#/builders/117/builds/3263/steps/13/logs/stdio

I'm not sure why you wouldn't see those.

On 26/07/2023 09:27:53+, Piotr Łobacz wrote:
> 
> Hi Alexandre, Alex,
> Thx for supporting me, I have finally discovered the issue regarding this 
> packages differences.
> It occurred that I was badly comparing two strings for tarformat comparison. 
> Now it is fixed and should finally work.
> 
> This has been additionally tested with oe-selftest -r reproducible.
> 
> BR
> Piotr
> 
> Od: Piotr Łobacz 
> Wysłane: środa, 26 lipca 2023 11:22
> Do: openembedded-core@lists.openembedded.org 
> 
> DW: Piotr Łobacz 
> Temat: [OE-Core][PATCH v11][master-next 1/5] package_ipk.bbclass: add support 
> for ACLs and xattr 
>  
> Extend OPKGBUILDCMD variable, with additional parameters, depending
> on target distro features, in order to support ACLs and xattr.
> 
> With fix pushed to the opkg-devel:
> https://groups.google.com/g/opkg-devel/c/dYNHrLjDwg8
> opkg-build is able to create tar archives with ACLs and xattr.
> 
> Signed-off-by: Piotr Łobacz 
> ---
>  meta/classes-global/package_ipk.bbclass | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/classes-global/package_ipk.bbclass 
> b/meta/classes-global/package_ipk.bbclass
> index b4b7bc9ac2..a0f106e4ad 100644
> --- a/meta/classes-global/package_ipk.bbclass
> +++ b/meta/classes-global/package_ipk.bbclass
> @@ -15,7 +15,7 @@ IPKGCONF_SDK_TARGET = "${WORKDIR}/opkg-sdk-target.conf"
>  PKGWRITEDIRIPK = "${WORKDIR}/deploy-ipks"
>  
>  # Program to be used to build opkg packages
> -OPKGBUILDCMD ??= 'opkg-build -Z xz -a "${XZ_DEFAULTS}"'
> +OPKGBUILDCMD ??= 'opkg-build -Z xz -a "${XZ_DEFAULTS}" 
> ${@bb.utils.contains('DISTRO_FEATURES', 'acl', '-A', '', d)} 
> ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', '-X', '', d)}'
>  
>  OPKG_ARGS += "--force_postinstall --prefer-arch-to-version"
>  OPKG_ARGS += "${@['', 
> '--no-install-recommends'][d.getVar("NO_RECOMMENDATIONS") == "1"]}"
> -- 
> 2.34.1

> 
> 
> 


-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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



Re: [OE-core] [RFC v2 0/2] Add bblock helper script

2023-07-27 Thread Julien Stephan
On Mon, Jul 24, 2023 at 10:36:28AM +0200, Alexander Kanavin wrote:
> On Mon, 24 Jul 2023 at 10:25, Julien Stephan  wrote:
> > > Thanks for working on this. Should we think about how this could be 
> > > tested?
> > Do you mean we should consider addind self test for bblock? or you want
> > to discuss about acceptance criteria for bblock?
>
> Hello,
> I mean mostly about what should be tested. How can we verify that the
> script does what it's supposed to, in an automated way, so it won't
> silently break as new changes to bitbake/oe-core are added? What
> should such a test contain?
> The specific form of tests (whether it's selftest, or maybe a part of
> SDK testing, or something else) is secondary.
>
> Alex

Hi Alex,

I just send the v3 with a lot of improvements!

Here is what I do during my dev:
- lock a recipe's task for a given arch (qemux86-64 vs qemuarm)
- modify the given task
- check that for the selected arch, task is locked (but not for other arch)

Maybe we need to be more formal with that?

I would be happy to provide a test script if needed.

Cheers
Julien

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#184937): 
https://lists.openembedded.org/g/openembedded-core/message/184937
Mute This Topic: https://lists.openembedded.org/mt/100277504/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 v2] oeqa/selftest/rust: Add failed test cases to exclude list for Rust Oe-selftest

2023-07-27 Thread Alexandre Belloni via lists.openembedded.org
Hello,

Is this patch self sufficient? If this needs another patch applied,
please send them as a series.

On 27/07/2023 02:48:04-0700, Shinde, Yash via lists.openembedded.org wrote:
> * Add the failing test cases in exclude_list to exclude them from testing 
> during the Rust Oe-selftest.
> 
> * Drop  meta/recipes-devtools/rust/files/rust-oe-selftest.patch file as the 
> failing tests are
>   moved from being a patch to exclude_list in 
> meta/lib/oeqa/selftest/cases/rust.py.
> 
> * When updating to a newer version of Rust, it is manually needed to update 
> the exclude_list. The tests that fail are observed to
>   work on some versions and fail on others. These tests have been excluded in 
> order to successfully complete testing of Rust Oe-selftest.
> 
> * The tests that are passed and skipped are as follows-
> 
> TargetPASSSKIPPED
> 
> ARM 15507  428
> ARM64 15535400
> MIPS6415479456
> X86   15528407
> X86-6415643292
> 
> Signed-off-by: Yash Shinde 
> ---
>  meta/lib/oeqa/selftest/cases/rust.py  |  211 +-
>  .../rust/files/rust-oe-selftest.patch | 2324 -
>  meta/recipes-devtools/rust/rust-source.inc|1 -
>  3 files changed, 210 insertions(+), 2326 deletions(-)
>  delete mode 100644 meta/recipes-devtools/rust/files/rust-oe-selftest.patch
> 
> diff --git a/meta/lib/oeqa/selftest/cases/rust.py 
> b/meta/lib/oeqa/selftest/cases/rust.py
> index 7a0fd7033d..35a80c442f 100644
> --- a/meta/lib/oeqa/selftest/cases/rust.py
> +++ b/meta/lib/oeqa/selftest/cases/rust.py
> @@ -70,7 +70,216 @@ class RustSelfTestSystemEmulated(OESelftestTestCase, 
> OEPTestResultTestCase):
>  # no-fail-fast: Run all tests regardless of failure.
>  # bless: First runs rustfmt to format the codebase,
>  # then runs tidy checks.
> -testargs = "--exclude tests/rustdoc --exclude 
> src/tools/rust-analyzer  --exclude tests/rustdoc-json  --exclude 
> tests/run-make-fulldeps --exclude src/tools/tidy --exclude 
> src/tools/rustdoc-themes --exclude src/rustdoc-json-types --exclude 
> src/librustdoc --exclude src/doc/unstable-book --exclude src/doc/rustdoc 
> --exclude src/doc/rustc --exclude compiler/rustc --exclude 
> library/panic_abort --exclude library/panic_unwind --exclude 
> src/tools/lint-docs  --exclude tests/rustdoc-js-std --doc --no-fail-fast 
> --bless"
> +exclude_list =  """
> +--exclude compiler/rustc
> +--exclude 
> compiler/rustc_interface/src/tests.rs
> +--exclude library/panic_abort
> +--exclude library/panic_unwind
> +--exclude library/test/src/stats/tests.rs
> +--exclude src/bootstrap/builder/tests.rs
> +--exclude src/doc/rustc
> +--exclude src/doc/rustdoc
> +--exclude src/doc/unstable-book
> +--exclude src/librustdoc
> +--exclude src/rustdoc-json-types
> +--exclude src/tools/compiletest/src/common.rs
> +--exclude src/tools/lint-docs
> +--exclude src/tools/rust-analyzer
> +--exclude src/tools/rustdoc-themes
> +--exclude src/tools/tidy
> +--exclude 
> tests/assembly/asm/aarch64-outline-atomics.rs
> +--exclude 
> tests/codegen/abi-main-signature-32bit-c-int.rs
> +--exclude tests/codegen/abi-repr-ext.rs
> +--exclude tests/codegen/abi-x86-interrupt.rs
> +--exclude tests/codegen/branch-protection.rs
> +--exclude tests/codegen/catch-unwind.rs
> +--exclude tests/codegen/cf-protection.rs
> +--exclude 
> tests/codegen/enum-bounds-check-derived-idx.rs
> +--exclude 
> tests/codegen/force-unwind-tables.rs
> +--exclude 
> tests/codegen/intrinsic-no-unnamed-attr.rs
> +--exclude 
> tests/codegen/issues/issue-103840.rs
> +--exclude tests/codegen/issues/issue-47278.rs
> +--exclude 
> tests/codegen/issues/issue-73827-bounds-check-index-in-subexpr.rs
> +--exclude tests/codegen/lifetime_start_end.rs
> +--exclude 
> 

[OE-core] [PATCH v3 0/3] Add bblock helper scripts

2023-07-27 Thread Julien Stephan
Hi all,

This is v3 from bblock script.

Improvement from v2:
* Add a function in bb.cooker to compute task signatures
* Replace the findSigInfo function by the new created one. This has the
  following advantages:
* findSigInfo needs the task to be already built to get the siginfo
  file, meaning we cannot lock a recipe on a fresh build
* we can now generate the signatures for all available task of a given
  recipe
* Check if a given task is already locked. If so, don't duplicate
  entry in bblock.conf

Limitations:
* Needs to taint tasks that are locked, to display a warning
* I may be still missing some checks on user input
* Silently does nothing if given task doesn't exist
* Silently does nothing when resetting a recipe that doesn't exist

I did some tests using qemux86-64 and qemuarm but I may be missing some
corner cases.

Improvement from V1:
* Signatures are now package architecture specific meaning that if you
  switch MACHINE, the lock sig will not be taken into account
* I added the -r option to unlock recipes
* I added a -d option to display the current bblock.conf
* Added an include directive for conf/bblock.conf inside bitbake.conf
* Added -t option to specify the tasks to lock/unlock

Limitations:
* I may be still missing some checks on user input
* I need to find a way to get the list of tasks ( by default still lock
  only the do_compile for now, unless -t is specified)
* Do not check if a particular recipe/task is already locked when trying
  to add lock. So entries may appear multiple times
* We still need the signature of the tasks to be already computed before
  locking. Need to find a way to generate it if missing

V2: https://lists.openembedded.org/g/openembedded-core/message/184697
V1: https://lists.openembedded.org/g/openembedded-core/message/184584

My branch is available here [1]

Cheers
Julien

[1]: https://git.yoctoproject.org/poky-contrib/commit/?h=jstephan/bblock

Julien Stephan (3):
  bitbake.conf: include bblock.conf
  bitbake: cooker: add a new function to retrieve task signatures
  scripts/bblock: add a script to lock/unlock recipes

 bitbake/lib/bb/command.py |   6 ++
 bitbake/lib/bb/cooker.py  |  16 
 bitbake/lib/bb/event.py   |   8 ++
 meta/conf/bitbake.conf|   1 +
 scripts/bblock| 182 ++
 5 files changed, 213 insertions(+)
 create mode 100755 scripts/bblock

--
2.41.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#184932): 
https://lists.openembedded.org/g/openembedded-core/message/184932
Mute This Topic: https://lists.openembedded.org/mt/100390731/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 3/3] scripts/bblock: add a script to lock/unlock recipes

2023-07-27 Thread Julien Stephan
bblock script allows to lock/unlock recipes to latest task signatures.
The idea is to prevent some recipes to be rebuilt during development.
For example when working on rust recipe, one may not want rust-native to be
rebuilt.

This tool can be used, with proper environment set up, using the following
command:

bblock 

if a 's task signature change, this task will not be built again 
and
sstate cache will be used.

[YOCTO #13425]

Signed-off-by: Julien Stephan 
---
 scripts/bblock | 182 +
 1 file changed, 182 insertions(+)
 create mode 100755 scripts/bblock

diff --git a/scripts/bblock b/scripts/bblock
new file mode 100755
index 000..a9c5583127e
--- /dev/null
+++ b/scripts/bblock
@@ -0,0 +1,182 @@
+#!/usr/bin/env python3
+# bblock
+# lock/unlock task to latest signature
+#
+# Copyright (c) 2023 BayLibre, SAS
+# Author: Julien Stepahn 
+#
+# SPDX-License-Identifier: GPL-2.0-only
+#
+
+import os
+import sys
+import logging
+
+scripts_path = os.path.dirname(os.path.realpath(__file__))
+lib_path = scripts_path + "/lib"
+sys.path = sys.path + [lib_path]
+
+import scriptpath
+
+scriptpath.add_bitbake_lib_path()
+
+import bb.tinfoil
+import bb.msg
+
+import argparse_oe
+
+myname = os.path.basename(sys.argv[0])
+logger = bb.msg.logger_create(myname)
+
+
+def getTaskSignatures(tinfoil, pn, tasks):
+tinfoil.set_event_mask(
+[
+"bb.event.GetTaskSignatureResult",
+"logging.LogRecord",
+"bb.command.CommandCompleted",
+"bb.command.CommandFailed",
+]
+)
+ret = tinfoil.run_command("getTaskSignatures", pn, tasks)
+if ret:
+while True:
+event = tinfoil.wait_event(1)
+if event:
+if isinstance(event, bb.command.CommandCompleted):
+break
+elif isinstance(event, bb.command.CommandFailed):
+logger.error(str(event))
+sys.exit(2)
+elif isinstance(event, bb.event.GetTaskSignatureResult):
+sig = event.sig
+elif isinstance(event, logging.LogRecord):
+logger.handle(event)
+else:
+logger.error("No result returned from getTaskSignatures command")
+sys.exit(2)
+return sig
+
+
+def parseRecipe(tinfoil, recipe):
+try:
+tinfoil.parse_recipes()
+d = tinfoil.parse_recipe(recipe)
+except Exception:
+logger.error("Failed to get recipe info for: %s" % recipe)
+sys.exit(1)
+return d
+
+
+def bblockDump(lockfile):
+try:
+with open(lockfile, "r") as lockfile:
+for line in lockfile:
+print(line.strip())
+except IOError:
+return 1
+return 0
+
+
+def bblockReset(lockfile, pns, package_archs, tasks):
+if not pns:
+logger.info("Unlocking all recipes")
+try:
+os.remove(lockfile)
+except FileNotFoundError:
+pass
+else:
+logger.info("Unlocking {pns}".format(pns=pns))
+tmp_lockfile = lockfile + ".tmp"
+with open(lockfile, "r") as infile, open(tmp_lockfile, "w") as outfile:
+for line in infile:
+if not (
+any(element in line for element in pns)
+and any(element in line for element in 
package_archs.split())
+):
+outfile.write(line)
+else:
+if tasks and not any(element in line for element in tasks):
+outfile.write(line)
+os.remove(lockfile)
+os.rename(tmp_lockfile, lockfile)
+
+
+def main():
+parser = argparse_oe.ArgumentParser(description="Lock and unlock a recipe")
+parser.add_argument("pn", nargs="*", help="Space separated list of recipe 
to lock")
+parser.add_argument(
+"-t",
+"--tasks",
+help="Comma separated list of tasks",
+type=lambda s: [task for task in s.split(",")],
+)
+parser.add_argument(
+"-r",
+"--reset",
+action="store_true",
+help="Unlock pn recipes, or all recipes if pn is empty",
+)
+parser.add_argument(
+"-d",
+"--dump",
+action="store_true",
+help="Dump generated bblock.conf file",
+)
+
+global_args, unparsed_args = parser.parse_known_args()
+
+with bb.tinfoil.Tinfoil() as tinfoil:
+tinfoil.prepare(config_only=True)
+
+package_archs = tinfoil.config_data.getVar("PACKAGE_ARCHS")
+builddir = tinfoil.config_data.getVar("TOPDIR")
+lockfile = "{builddir}/conf/bblock.conf".format(builddir=builddir)
+
+if global_args.dump:
+bblockDump(lockfile)
+return 0
+
+if global_args.reset:
+bblockReset(lockfile, global_args.pn, package_archs, 
global_args.tasks)
+return 0
+
+with open(lockfile, "a") as lockfile:
+

[OE-core] [PATCH v3 1/3] bitbake.conf: include bblock.conf

2023-07-27 Thread Julien Stephan
include conf/bblock.conf. This file is generated by the bblock tool. It
locks some package tasks by fixing their signatures. See bblock -h for
more details

Signed-off-by: Julien Stephan 
---
 meta/conf/bitbake.conf | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 9625a6fef4c..a4b2b4b0380 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -831,6 +831,7 @@ include conf/distro/defaultsetup.conf
 include conf/documentation.conf
 include conf/licenses.conf
 require conf/sanity.conf
+include conf/bblock.conf
 
 ##
 # Weak variables (usually to retain backwards compatibility)
-- 
2.41.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#184933): 
https://lists.openembedded.org/g/openembedded-core/message/184933
Mute This Topic: https://lists.openembedded.org/mt/100390732/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/3] bitbake: cooker: add a new function to retrieve task signatures

2023-07-27 Thread Julien Stephan
adding a new command in cooker to compute and get task signatures

this commit also add the associated command and event needed to get the
signatures using tinfoil

Signed-off-by: Julien Stephan 
---
 bitbake/lib/bb/command.py |  6 ++
 bitbake/lib/bb/cooker.py  | 16 
 bitbake/lib/bb/event.py   |  8 
 3 files changed, 30 insertions(+)

diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py
index a355f56c60c..12202779ac0 100644
--- a/bitbake/lib/bb/command.py
+++ b/bitbake/lib/bb/command.py
@@ -776,3 +776,9 @@ class CommandsAsync:
 bb.event.fire(bb.event.FindSigInfoResult(res), 
command.cooker.databuilder.mcdata[mc])
 command.finishAsyncCommand()
 findSigInfo.needcache = False
+
+def getTaskSignatures(self, command, params):
+res = command.cooker.getTaskSignatures(params[0], params[1])
+bb.event.fire(bb.event.GetTaskSignatureResult(res), 
command.cooker.data)
+command.finishAsyncCommand()
+getTaskSignatures.needcache = True
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 11c9fa2c40d..687cdde5e6d 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -1542,6 +1542,22 @@ class BBCooker:
 
 self.idleCallBackRegister(buildFileIdle, rq)
 
+def getTaskSignatures(self, target, task):
+sig = []
+
+taskdata, runlist = self.buildTaskData(target, "do_build", 
self.configuration.halt)
+rq = bb.runqueue.RunQueue(self, self.data, self.recipecaches, 
taskdata, runlist)
+rq.rqdata.prepare()
+
+for key in rq.rqdata.runtaskentries:
+pn = bb.parse.siggen.tidtopn[key]
+taskname = bb.runqueue.taskname_from_tid(key)
+if pn in target:
+if (task and taskname in task) or (not task):
+rq.rqdata.prepare_task_hash(key)
+sig.append([pn, taskname, rq.rqdata.get_task_unihash(key)])
+return sig
+
 def buildTargets(self, targets, task):
 """
 Attempt to build the targets specified
diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py
index 0d0e0a68aac..f8acacd80d1 100644
--- a/bitbake/lib/bb/event.py
+++ b/bitbake/lib/bb/event.py
@@ -857,6 +857,14 @@ class FindSigInfoResult(Event):
 Event.__init__(self)
 self.result = result
 
+class GetTaskSignatureResult(Event):
+"""
+Event to return results from GetTaskSignatures command
+"""
+def __init__(self, sig):
+Event.__init__(self)
+self.sig = sig
+
 class ParseError(Event):
 """
 Event to indicate parse failed
-- 
2.41.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#184934): 
https://lists.openembedded.org/g/openembedded-core/message/184934
Mute This Topic: https://lists.openembedded.org/mt/100390733/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] rust: Add failed test cases to exclude list for Rust Oe-selftest

2023-07-27 Thread Shinde, Yash via lists.openembedded.org
On Thu, Jul 27, 2023 at 05:45 AM, Randy MacLeod wrote:

> 
> I don't see this in master or master-next yet so see comments below and
> send a slightly updated v2.
> 
> On 2023-07-26 12:25, Yash Shinde wrote:
> 
>> Failed test cases are added to exclude list.
>> Drop
>> meta/recipes-devtools/rust/files/rust-oe-selftest.patch file.
>> 
>> Signed-off-by: Yash Shinde  (
>> yash.shi...@windriver.com )
>> ---
>>  meta/lib/oeqa/selftest/cases/rust.py 
>> |  209 +-
>>  .../rust/files/rust-oe-selftest.patch | 2324
>> -
>>  meta/recipes-devtools/rust/rust-source.inc|1 -
>> 
>> 3 files changed, 208 insertions(+), 2326 deletions(-)
>>  delete mode 100644
>> meta/recipes-devtools/rust/files/rust-oe-selftest.patch
> 
> 
> 
> It's good to see the large patch be replaced with a 10x smaller rust.py
> change.
> 
> 
> 
> If this change is acceptable to others, I'd like the commit log to be
> amended to explain
> how to (automatically?) update the exclude list when rust is updated.
> Alternatively
> we could add that to meta/recipes-devtools/rust/README-rust.md
> https://github.com/yoctoproject/poky/blob/master/meta/recipes-devtools/rust/README-rust.md
> 
> 
> 
> 
> Is this a manual process now? Could it be mostly automated?
> 
> 
> 
> Please sort the exclude list alphabetically in v2 so that it's
> easier for people to see what tests are being excluded (see below (*))
> 
> 
> 
> I assume that this commit doesn't change the tests that are run but only
> moves the skipping from being a patch to the exclude list. Please confirm
> and in your v2 commit log, mention that as well as what the current number
> of
> passed and skipped tests.
> 
> 

When updating to a newer version of Rust, it is manually needed to update the 
exclude_list. The tests that fail are observed to work on some versions and 
fail on others.
I have updated the commit log in v2 and also mentioned the testing numbers for 
passed and skipped cases here, 
https://lists.openembedded.org/g/openembedded-core/message/184926

> 
> 
>> diff --git a/meta/lib/oeqa/selftest/cases/rust.py
>> b/meta/lib/oeqa/selftest/cases/rust.py
>> index 7a0fd7033d..abd3ef8314 100644
>> --- a/meta/lib/oeqa/selftest/cases/rust.py
>> +++
>> b/meta/lib/oeqa/selftest/cases/rust.py
>> @@ -70,7 +70,214 @@ class
>> RustSelfTestSystemEmulated(OESelftestTestCase, OEPTestResultTestCase):
>>
>> # no-fail-fast: Run all tests regardless of failure.
>>  # bless:
>> First runs rustfmt to format the codebase,
>>  # then runs tidy
>> checks.
>> -testargs = "--exclude tests/rustdoc --exclude
>> src/tools/rust-analyzer  --exclude tests/rustdoc-json  --exclude
>> tests/run-make-fulldeps --exclude src/tools/tidy --exclude
>> src/tools/rustdoc-themes --exclude src/rustdoc-json-types --exclude
>> src/librustdoc --exclude src/doc/unstable-book --exclude src/doc/rustdoc
>> --exclude src/doc/rustc --exclude compiler/rustc --exclude
>> library/panic_abort --exclude library/panic_unwind --exclude
>> src/tools/lint-docs  --exclude tests/rustdoc-js-std --doc --no-fail-fast
>> --bless"
> 
> 
> 
> I think you're doing two things in the 2 lines above and the list below:
> 
> 
> 
> 1. splitting up the testargs into one per line
> 
> 
> 
> 2. adding an exclude list of tests that are know to fail.
> 
> 
> 
> Is that true?
> If so can you use two seperate variables/lists to reflect the different
> intended purpose of each list?
> This should also help in maintaining each list and hopefully the tests
> that are exluded will all have a:
> 
> 
> 
> tests/foo/bar.rs
> 
> 
> 
> format rather than somewhat worrying prefixes like:
> compiler/rustc
> 
> 
> 
> and
> 
> 
> 
> library/panic_abort
> 
> 

The 'compiler/rustc', 'library/panic_abort' and similar other dir paths are the 
part of test exclude_list since they fail during rust build. Actually, the 
'testargs' directly contained the excluded failing test dirs in previous patch 
versions. Thus, added exclude_list as  a separate list for failing test cases 
and dirs which is then added to testargs with other args like '--doc 
--no-fail-fast --bless'.

> 
> 
>> +exclude_list = """  --exclude tests/run-make
> 
> If python will let you, please split this line like this:
> +exclude_list = """ 
> +
> --exclude tests/run-make
> 
> to separate the variables from the list name to
> make future updates a bit easier.
> 
>> +--exclude
>> tests/run-make/pgo-branch-weights/
>> +   
>> --exclude tests/ui/macros/restricted-shadowing-legacy.rs
>> +
>> --exclude tests/ui-fulldeps/issue-14021.rs
>> 
>> 
>> 
> 
> 
> 
> >< -- the middle bits of the long unsorted list.
> 
> 
> 
> 
> 
> 
>> +--exclude library/panic_unwind
>> + 
>> --exclude src/tools/lint-docs
>> +--exclude
>> tests/rustdoc-js-std"""
> 
> 
> 
> Similarly, if 

Re: [oe-core][PATCH] gcr3: remove recipe

2023-07-27 Thread Alexander Kanavin
Note that this needs to be applied on top of my upcoming patchset
which is coming shortly :)

Alex

On Thu, 27 Jul 2023 at 13:38, Markus Volk  wrote:
>
> It will be added to meta-gnome
>
> Signed-off-by: Markus Volk 
> ---
>  meta/conf/distro/include/maintainers.inc  |  1 -
>  ...ectly-handle-disabled-ssh_agent-opti.patch | 36 ---
>  meta/recipes-gnome/gcr/gcr3_3.41.1.bb | 59 ---
>  3 files changed, 96 deletions(-)
>  delete mode 100644 
> meta/recipes-gnome/gcr/gcr3/0001-meson.build-correctly-handle-disabled-ssh_agent-opti.patch
>  delete mode 100644 meta/recipes-gnome/gcr/gcr3_3.41.1.bb
>
> diff --git a/meta/conf/distro/include/maintainers.inc 
> b/meta/conf/distro/include/maintainers.inc
> index 17f038c71e..f058647ce5 100644
> --- a/meta/conf/distro/include/maintainers.inc
> +++ b/meta/conf/distro/include/maintainers.inc
> @@ -189,7 +189,6 @@ RECIPE_MAINTAINER:pn-gcc-runtime = "Khem Raj 
> "
>  RECIPE_MAINTAINER:pn-gcc-sanitizers = "Khem Raj "
>  RECIPE_MAINTAINER:pn-gcc-source-13.1.1 = "Khem Raj "
>  RECIPE_MAINTAINER:pn-gconf = "Ross Burton "
> -RECIPE_MAINTAINER:pn-gcr3 = "Markus Volk "
>  RECIPE_MAINTAINER:pn-gcr = "Alexander Kanavin "
>  RECIPE_MAINTAINER:pn-gdb = "Khem Raj "
>  RECIPE_MAINTAINER:pn-gdb-cross-${TARGET_ARCH} = "Khem Raj 
> "
> diff --git 
> a/meta/recipes-gnome/gcr/gcr3/0001-meson.build-correctly-handle-disabled-ssh_agent-opti.patch
>  
> b/meta/recipes-gnome/gcr/gcr3/0001-meson.build-correctly-handle-disabled-ssh_agent-opti.patch
> deleted file mode 100644
> index d3c26d97ae..00
> --- 
> a/meta/recipes-gnome/gcr/gcr3/0001-meson.build-correctly-handle-disabled-ssh_agent-opti.patch
> +++ /dev/null
> @@ -1,36 +0,0 @@
> -From 9b67bb18d8409e0e693cc6000507acbd73a30eab Mon Sep 17 00:00:00 2001
> -From: Alexander Kanavin 
> -Date: Wed, 16 Nov 2022 11:27:24 +0100
> -Subject: [PATCH 1/2] meson.build: correctly handle disabled ssh_agent option
> -
> -Existing code produces these errors:
> -| gcr/meson.build:61:0: ERROR: Unable to get the path of a not-found 
> external program
> -| gcr/meson.build:101:5: ERROR: Unknown variable "ssh_add_path".
> -
> -Signed-off-by: Alexander Kanavin 
> -
> -Upstream-Status: Backport [ 
> https://gitlab.gnome.org/GNOME/gcr/-/commit/9b67bb18d8409e0e693cc6000507acbd73a30eab
>  ]
> 
> - meson.build | 12 
> - 1 file changed, 8 insertions(+), 4 deletions(-)
> -
> -diff --git a/meson.build b/meson.build
> -index 3f35173..11d7fa7 100644
>  a/meson.build
> -+++ b/meson.build
> -@@ -96,8 +98,10 @@ conf.set('HAVE_TIMEGM', cc.has_function('timegm'))
> - conf.set('HAVE_MLOCK', cc.has_function('mlock'))
> - conf.set_quoted('GPG_EXECUTABLE', gpg_path)
> - conf.set_quoted('LIBGCRYPT_VERSION', libgcrypt_dep.version())
> --conf.set_quoted('SSH_ADD_EXECUTABLE', ssh_add_path)
> --conf.set_quoted('SSH_AGENT_EXECUTABLE', ssh_agent_path)
> -+if get_option('ssh_agent')
> -+  conf.set_quoted('SSH_ADD_EXECUTABLE', ssh_add_path)
> -+  conf.set_quoted('SSH_AGENT_EXECUTABLE', ssh_agent_path)
> -+endif
> - conf.set10('WITH_SYSTEMD', with_systemd)
> - config_file = configure_file(
> -   output: 'config.h',
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-gnome/gcr/gcr3_3.41.1.bb 
> b/meta/recipes-gnome/gcr/gcr3_3.41.1.bb
> deleted file mode 100644
> index ba5660a5ed..00
> --- a/meta/recipes-gnome/gcr/gcr3_3.41.1.bb
> +++ /dev/null
> @@ -1,59 +0,0 @@
> -SUMMARY = "A library for bits of crypto UI and parsing etc"
> -DESCRIPTION = "GCR is a library for displaying certificates, and crypto UI, \
> -accessing key stores. It also provides the viewer for crypto files on the \
> -GNOME desktop."
> -HOMEPAGE = "https://gitlab.gnome.org/GNOME/gcr;
> -BUGTRACKER = "https://gitlab.gnome.org/GNOME/gcr/issues;
> -
> -LICENSE = "GPL-2.0-only"
> -LIC_FILES_CHKSUM = "file://COPYING;md5=55ca817ccb7d5b5b66355690e9abc605"
> -
> -DEPENDS = "p11-kit glib-2.0 libgcrypt gnupg-native \
> -   ${@bb.utils.contains('GI_DATA_ENABLED', 'True', 'libxslt-native', 
> '', d)}"
> -
> -CACHED_CONFIGUREVARS += "ac_cv_path_GPG='gpg2'"
> -
> -CFLAGS += "-D_GNU_SOURCE"
> -
> -GNOMEBASEBUILDCLASS = "meson"
> -GTKDOC_MESON_OPTION = "gtk_doc"
> -inherit gnomebase gtk-icon-cache gi-docgen features_check 
> upstream-version-is-even vala gobject-introspection gettext mime mime-xdg
> -UPSTREAM_CHECK_REGEX = "[^\d\.](?P3.(?!9\d+)\d+(\.\d+)+)\.tar"
> -
> -SRC_URI = 
> "https://download.gnome.org/sources/gcr/3.41/gcr-${PV}.tar.xz;name=archive;
> -SRC_URI += 
> "file://0001-meson.build-correctly-handle-disabled-ssh_agent-opti.patch"
> -SRC_URI[archive.sha256sum] = 
> "bb7128a3c2febbfee9c03b90d77d498d0ceb237b0789802d60185c71c4bea24f"
> -
> -S = "${WORKDIR}/gcr-${PV}"
> -
> -PACKAGECONFIG ??= " \
> -   ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
> -   ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'gtk', '', d)} \
> -   ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'gtk', '', d)} \
> -"
> -PACKAGECONFIG[gtk] = 

[oe-core][PATCH] gcr3: remove recipe

2023-07-27 Thread Markus Volk
It will be added to meta-gnome

Signed-off-by: Markus Volk 
---
 meta/conf/distro/include/maintainers.inc  |  1 -
 ...ectly-handle-disabled-ssh_agent-opti.patch | 36 ---
 meta/recipes-gnome/gcr/gcr3_3.41.1.bb | 59 ---
 3 files changed, 96 deletions(-)
 delete mode 100644 
meta/recipes-gnome/gcr/gcr3/0001-meson.build-correctly-handle-disabled-ssh_agent-opti.patch
 delete mode 100644 meta/recipes-gnome/gcr/gcr3_3.41.1.bb

diff --git a/meta/conf/distro/include/maintainers.inc 
b/meta/conf/distro/include/maintainers.inc
index 17f038c71e..f058647ce5 100644
--- a/meta/conf/distro/include/maintainers.inc
+++ b/meta/conf/distro/include/maintainers.inc
@@ -189,7 +189,6 @@ RECIPE_MAINTAINER:pn-gcc-runtime = "Khem Raj 
"
 RECIPE_MAINTAINER:pn-gcc-sanitizers = "Khem Raj "
 RECIPE_MAINTAINER:pn-gcc-source-13.1.1 = "Khem Raj "
 RECIPE_MAINTAINER:pn-gconf = "Ross Burton "
-RECIPE_MAINTAINER:pn-gcr3 = "Markus Volk "
 RECIPE_MAINTAINER:pn-gcr = "Alexander Kanavin "
 RECIPE_MAINTAINER:pn-gdb = "Khem Raj "
 RECIPE_MAINTAINER:pn-gdb-cross-${TARGET_ARCH} = "Khem Raj "
diff --git 
a/meta/recipes-gnome/gcr/gcr3/0001-meson.build-correctly-handle-disabled-ssh_agent-opti.patch
 
b/meta/recipes-gnome/gcr/gcr3/0001-meson.build-correctly-handle-disabled-ssh_agent-opti.patch
deleted file mode 100644
index d3c26d97ae..00
--- 
a/meta/recipes-gnome/gcr/gcr3/0001-meson.build-correctly-handle-disabled-ssh_agent-opti.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-From 9b67bb18d8409e0e693cc6000507acbd73a30eab Mon Sep 17 00:00:00 2001
-From: Alexander Kanavin 
-Date: Wed, 16 Nov 2022 11:27:24 +0100
-Subject: [PATCH 1/2] meson.build: correctly handle disabled ssh_agent option
-
-Existing code produces these errors:
-| gcr/meson.build:61:0: ERROR: Unable to get the path of a not-found external 
program
-| gcr/meson.build:101:5: ERROR: Unknown variable "ssh_add_path".
-
-Signed-off-by: Alexander Kanavin 
-
-Upstream-Status: Backport [ 
https://gitlab.gnome.org/GNOME/gcr/-/commit/9b67bb18d8409e0e693cc6000507acbd73a30eab
 ]

- meson.build | 12 
- 1 file changed, 8 insertions(+), 4 deletions(-)
-
-diff --git a/meson.build b/meson.build
-index 3f35173..11d7fa7 100644
 a/meson.build
-+++ b/meson.build
-@@ -96,8 +98,10 @@ conf.set('HAVE_TIMEGM', cc.has_function('timegm'))
- conf.set('HAVE_MLOCK', cc.has_function('mlock'))
- conf.set_quoted('GPG_EXECUTABLE', gpg_path)
- conf.set_quoted('LIBGCRYPT_VERSION', libgcrypt_dep.version())
--conf.set_quoted('SSH_ADD_EXECUTABLE', ssh_add_path)
--conf.set_quoted('SSH_AGENT_EXECUTABLE', ssh_agent_path)
-+if get_option('ssh_agent')
-+  conf.set_quoted('SSH_ADD_EXECUTABLE', ssh_add_path)
-+  conf.set_quoted('SSH_AGENT_EXECUTABLE', ssh_agent_path)
-+endif
- conf.set10('WITH_SYSTEMD', with_systemd)
- config_file = configure_file(
-   output: 'config.h',
--- 
-2.34.1
-
diff --git a/meta/recipes-gnome/gcr/gcr3_3.41.1.bb 
b/meta/recipes-gnome/gcr/gcr3_3.41.1.bb
deleted file mode 100644
index ba5660a5ed..00
--- a/meta/recipes-gnome/gcr/gcr3_3.41.1.bb
+++ /dev/null
@@ -1,59 +0,0 @@
-SUMMARY = "A library for bits of crypto UI and parsing etc"
-DESCRIPTION = "GCR is a library for displaying certificates, and crypto UI, \
-accessing key stores. It also provides the viewer for crypto files on the \
-GNOME desktop."
-HOMEPAGE = "https://gitlab.gnome.org/GNOME/gcr;
-BUGTRACKER = "https://gitlab.gnome.org/GNOME/gcr/issues;
-
-LICENSE = "GPL-2.0-only"
-LIC_FILES_CHKSUM = "file://COPYING;md5=55ca817ccb7d5b5b66355690e9abc605"
-
-DEPENDS = "p11-kit glib-2.0 libgcrypt gnupg-native \
-   ${@bb.utils.contains('GI_DATA_ENABLED', 'True', 'libxslt-native', 
'', d)}"
-
-CACHED_CONFIGUREVARS += "ac_cv_path_GPG='gpg2'"
-
-CFLAGS += "-D_GNU_SOURCE"
-
-GNOMEBASEBUILDCLASS = "meson"
-GTKDOC_MESON_OPTION = "gtk_doc"
-inherit gnomebase gtk-icon-cache gi-docgen features_check 
upstream-version-is-even vala gobject-introspection gettext mime mime-xdg
-UPSTREAM_CHECK_REGEX = "[^\d\.](?P3.(?!9\d+)\d+(\.\d+)+)\.tar"
-
-SRC_URI = 
"https://download.gnome.org/sources/gcr/3.41/gcr-${PV}.tar.xz;name=archive;
-SRC_URI += 
"file://0001-meson.build-correctly-handle-disabled-ssh_agent-opti.patch"
-SRC_URI[archive.sha256sum] = 
"bb7128a3c2febbfee9c03b90d77d498d0ceb237b0789802d60185c71c4bea24f"
-
-S = "${WORKDIR}/gcr-${PV}"
-
-PACKAGECONFIG ??= " \
-   ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
-   ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'gtk', '', d)} \
-   ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'gtk', '', d)} \
-"
-PACKAGECONFIG[gtk] = "-Dgtk=true,-Dgtk=false,gtk+3"
-PACKAGECONFIG[ssh_agent] = 
"-Dssh_agent=true,-Dssh_agent=false,libsecret,openssh"
-#'Use systemd socket activation for server programs'
-PACKAGECONFIG[systemd] = "-Dsystemd=enabled,-Dsystemd=disabled,systemd"
-
-FILES:${PN} += " \
-${datadir}/dbus-1 \
-${datadir}/gcr-3 \
-${systemd_user_unitdir}/gcr-ssh-agent.socket \
-${systemd_user_unitdir}/gcr-ssh-agent.service \
-"

Re: [OE-core] [kirkstone][PATCH] gcc : upgrade to v11.4

2023-07-27 Thread Sundeep KOKKONDA via lists.openembedded.org
Regression testing is done and below are the results.
*
gcc test summary: v11.3 v11.4*
# of expected passes                            126552 126842
# of unexpected failures                        24295                24383
# of unexpected successes                   77                      77
# of expected failures                            782                    782
# of unresolved testcases                     10                      10
# of unsupported tests                           2760                  2773

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

2023-07-27 Thread Sundeep KOKKONDA via lists.openembedded.org
gcc stable version upgraded from v11.3 to v11.4

For changes in v11.4 see - https://gcc.gnu.org/gcc-11/changes.html

Below is the bug fix list for v11.4
https://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=RESOLVED=short_desc%2Cbug_status%2Cpriority%2Cassigned_to%2Cbug_id_format=advanced=FIXED_milestone=11.4

There are a total 115 bugs are fixed in this release, below is the list of bugs 
fixed excluding the regression fixes.

ID  Product CompResolution  Summary▲
108199  gcc tree-optFIXEBitfields, unions and SRA and 
storage_order_attribute
107801  gcc libstdc+FIXEBuilding cross compiler for H8 family 
fails in libstdc++ (c++17/memory_resource.cc)
108265  gcc libstdc+FIXEchrono::hh_mm_ss can't be constructed 
from unsigned durations
104443  gcc libstdc+FIXEcommon_iterator::operator-> is 
not correctly implemented
98056   gcc c++ FIXEcoroutines: ICE tree check: expected 
record_type or union_type or qual_union_type, have array_type since 
r11-2183-g0f66b8486cea8668
107061  gcc target  FIXEENCODEKEY128 clobbers xmm4-xmm6
105433  gcc testsuitFIXEFAIL: 
gcc.target/i386/iamcu/test_3_element_struct_and_unions.c
105095  gcc testsuitFIXEgcc.dg/vect/complex/fast-math-complex-* 
tests are not executed
100474  gcc c++ FIXEICE: in diagnose_trait_expr, at 
cp/constraint.cc:3706
105854  gcc target  FIXEICE: in extract_constrain_insn, at 
recog.cc:2692 (insn does not satisfy its constraints: sse2_lshrv1ti3)
104462  gcc target  FIXEICE: in extract_constrain_insn_cached, 
at recog.cc:2682 with -mavx512fp16 -mno-xsave
106045  gcc libgomp FIXEIncorrect testcase in 
libgomp.c/target-31.c at -O0
56189   gcc c++ FIXEInfinite recursion with noexcept when 
instantiating function template
100295  gcc c++ FIXEInternal compiler error from generic 
lambda capturing parameter pack and expanding it in if constexpr
100613  gcc jit FIXElibgccjit should produce dylib on macOS
104875  gcc libstdc+FIXE
libstdc++-v3/src/c++11/codecvt.cc:312:24: warning: left shift count >= width of 
type
107471  gcc libstdc+FIXEmismatching constraints in 
common_iterator
105284  gcc libstdc+FIXEmissing syncstream and spanstream 
forward decl. in 
98821   gcc c++ FIXEmodules : c++tools configures with CC 
but code fragments assume CXX.
109846  gcc fortran FIXEPointer-valued function reference 
rejected as actual argument
101324  gcc target  FIXEpowerpc64le: hashst appears before mflr 
at -O1 or higher
102479  gcc c++ FIXEsegfault when deducing class template 
arguments for tuple with libc++-14
105128  gcc libstdc+FIXEsource_location compile error for 
latest clang 15
106183  gcc libstdc+FIXEstd::atomic::wait might fail to be 
unblocked by notify_one/all on platforms without platform_wait()
102994  gcc libstdc+FIXEstd::atomic::wait is not marked 
const
105324  gcc libstdc+FIXEstd::from_chars() assertion at 
floating_from_chars.cc:78 when parsing 1.
105375  gcc libstdc+FIXEstd::packaged_task has no deduction 
guide.
104602  gcc libstdc+FIXEstd::source_location::current uses cast 
from void*
106808  gcc libstdc+FIXEstd::string_view range concept 
requirement causes compile error with Boost.Filesystem
105725  gcc c++ FIXE[ICE] segfault with `-Wmismatched-tags`
105920  gcc target  FIXE__builtin_cpu_supports ("f16c") should 
check AVX

Signed-off-by: Sundeep KOKKONDA 
---
 .../gcc/{gcc-11.3.inc => gcc-11.4.inc}|   6 +-
 ...ian_11.3.bb => gcc-cross-canadian_11.4.bb} |   0
 .../{gcc-cross_11.3.bb => gcc-cross_11.4.bb}  |   0
 ...-crosssdk_11.3.bb => gcc-crosssdk_11.4.bb} |   0
 ...cc-runtime_11.3.bb => gcc-runtime_11.4.bb} |   0
 ...itizers_11.3.bb => gcc-sanitizers_11.4.bb} |   0
 ...{gcc-source_11.3.bb => gcc-source_11.4.bb} |   0
 ...rch64-Update-Neoverse-N2-core-defini.patch |  20 ++--
 ...rm-add-armv9-a-architecture-to-march.patch |  54 +-
 ...AMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch | 102 +-
 ...s-fix-v4bx-to-linker-to-support-EABI.patch |   6 +-
 .../gcc/{gcc_11.3.bb => gcc_11.4.bb}  |   0
 ...initial_11.3.bb => libgcc-initial_11.4.bb} |   0
 .../gcc/{libgcc_11.3.bb => libgcc_11.4.bb}|   0
 ...ibgfortran_11.3.bb => libgfortran_11.4.bb} |   0
 15 files changed, 92 insertions(+), 96 deletions(-)
 rename meta/recipes-devtools/gcc/{gcc-11.3.inc => gcc-11.4.inc} (97%)
 rename meta/recipes-devtools/gcc/{gcc-cross-canadian_11.3.bb => 
gcc-cross-canadian_11.4.bb} (100%)
 rename meta/recipes-devtools/gcc/{gcc-cross_11.3.bb => gcc-cross_11.4.bb} 
(100%)
 rename 

[OE-core] [PATCH v2] oeqa/selftest/rust: Add failed test cases to exclude list for Rust Oe-selftest

2023-07-27 Thread Shinde, Yash via lists.openembedded.org
* Add the failing test cases in exclude_list to exclude them from testing 
during the Rust Oe-selftest.

* Drop  meta/recipes-devtools/rust/files/rust-oe-selftest.patch file as the 
failing tests are
  moved from being a patch to exclude_list in 
meta/lib/oeqa/selftest/cases/rust.py.

* When updating to a newer version of Rust, it is manually needed to update the 
exclude_list. The tests that fail are observed to
  work on some versions and fail on others. These tests have been excluded in 
order to successfully complete testing of Rust Oe-selftest.

* The tests that are passed and skipped are as follows-

Target  PASSSKIPPED

ARM 15507428
ARM64   15535400
MIPS64  15479456
X86 15528407
X86-64  15643292

Signed-off-by: Yash Shinde 
---
 meta/lib/oeqa/selftest/cases/rust.py  |  211 +-
 .../rust/files/rust-oe-selftest.patch | 2324 -
 meta/recipes-devtools/rust/rust-source.inc|1 -
 3 files changed, 210 insertions(+), 2326 deletions(-)
 delete mode 100644 meta/recipes-devtools/rust/files/rust-oe-selftest.patch

diff --git a/meta/lib/oeqa/selftest/cases/rust.py 
b/meta/lib/oeqa/selftest/cases/rust.py
index 7a0fd7033d..35a80c442f 100644
--- a/meta/lib/oeqa/selftest/cases/rust.py
+++ b/meta/lib/oeqa/selftest/cases/rust.py
@@ -70,7 +70,216 @@ class RustSelfTestSystemEmulated(OESelftestTestCase, 
OEPTestResultTestCase):
 # no-fail-fast: Run all tests regardless of failure.
 # bless: First runs rustfmt to format the codebase,
 # then runs tidy checks.
-testargs = "--exclude tests/rustdoc --exclude 
src/tools/rust-analyzer  --exclude tests/rustdoc-json  --exclude 
tests/run-make-fulldeps --exclude src/tools/tidy --exclude 
src/tools/rustdoc-themes --exclude src/rustdoc-json-types --exclude 
src/librustdoc --exclude src/doc/unstable-book --exclude src/doc/rustdoc 
--exclude src/doc/rustc --exclude compiler/rustc --exclude library/panic_abort 
--exclude library/panic_unwind --exclude src/tools/lint-docs  --exclude 
tests/rustdoc-js-std --doc --no-fail-fast --bless"
+exclude_list =  """
+--exclude compiler/rustc
+--exclude compiler/rustc_interface/src/tests.rs
+--exclude library/panic_abort
+--exclude library/panic_unwind
+--exclude library/test/src/stats/tests.rs
+--exclude src/bootstrap/builder/tests.rs
+--exclude src/doc/rustc
+--exclude src/doc/rustdoc
+--exclude src/doc/unstable-book
+--exclude src/librustdoc
+--exclude src/rustdoc-json-types
+--exclude src/tools/compiletest/src/common.rs
+--exclude src/tools/lint-docs
+--exclude src/tools/rust-analyzer
+--exclude src/tools/rustdoc-themes
+--exclude src/tools/tidy
+--exclude 
tests/assembly/asm/aarch64-outline-atomics.rs
+--exclude 
tests/codegen/abi-main-signature-32bit-c-int.rs
+--exclude tests/codegen/abi-repr-ext.rs
+--exclude tests/codegen/abi-x86-interrupt.rs
+--exclude tests/codegen/branch-protection.rs
+--exclude tests/codegen/catch-unwind.rs
+--exclude tests/codegen/cf-protection.rs
+--exclude 
tests/codegen/enum-bounds-check-derived-idx.rs
+--exclude tests/codegen/force-unwind-tables.rs
+--exclude 
tests/codegen/intrinsic-no-unnamed-attr.rs
+--exclude tests/codegen/issues/issue-103840.rs
+--exclude tests/codegen/issues/issue-47278.rs
+--exclude 
tests/codegen/issues/issue-73827-bounds-check-index-in-subexpr.rs
+--exclude tests/codegen/lifetime_start_end.rs
+--exclude 
tests/codegen/local-generics-in-exe-internalized.rs
+--exclude tests/codegen/match-unoptimized.rs
+--exclude 
tests/codegen/noalias-rwlockreadguard.rs
+--exclude 
tests/codegen/non-terminate/nonempty-infinite-loop.rs
+--exclude tests/codegen/noreturn-uninhabited.rs
+  

[OE-core] [PATCH] systemd: sysusersd: change how the root home directory is set

2023-07-27 Thread Louis Rannou
Modifying the sources brings troubles in the devtool command. Therefore it is
better to patch the source with a custom variable, and later replace it with the
correct root path.

Suggestion from :


Signed-off-by: Louis Rannou 
Suggested-by: Peter Kjellerstedt 
---
 ...usersd-Change-the-user-root-s-home-direct.patch | 32 ++
 meta/recipes-core/systemd/systemd_253.3.bb | 11 
 2 files changed, 38 insertions(+), 5 deletions(-)

diff --git 
a/meta/recipes-core/systemd/systemd/0029-sysusersd-Change-the-user-root-s-home-direct.patch
 
b/meta/recipes-core/systemd/systemd/0029-sysusersd-Change-the-user-root-s-home-direct.patch
new file mode 100644
index 00..738413ec93
--- /dev/null
+++ 
b/meta/recipes-core/systemd/systemd/0029-sysusersd-Change-the-user-root-s-home-direct.patch
@@ -0,0 +1,32 @@
+From bf97001978cdefad644f7b4b909f281368e5a4dd Mon Sep 17 00:00:00 2001
+From: Kas User 
+Date: Thu, 27 Jul 2023 08:23:06 +
+Subject: [PATCH] sysusers.d: Change the user root's home directory
+
+The default sysusers basic.conf.in file sets the root home directory to `/root`
+and does not permit its configuration. Change this to `:ROOT_HOME:` which must
+be set before the installation.
+
+The upstream considers the root home directory should not be changed
+
+
+Upstream-Status: Denied
+Signed-off-by: Louis Rannou 
+---
+ sysusers.d/basic.conf.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/sysusers.d/basic.conf.in b/sysusers.d/basic.conf.in
+index 0aec080a4c..f26c224341 100644
+--- a/sysusers.d/basic.conf.in
 b/sysusers.d/basic.conf.in
+@@ -7,7 +7,7 @@
+ 
+ # The superuser
+ g root0   --
+-u root0:0 "Super User" /root
++u root0:0 "Super User" :ROOT_HOME:
+ 
+ # The nobody user/group for NFS file systems
+ g {{NOBODY_GROUP_NAME}} 65534   --
+
diff --git a/meta/recipes-core/systemd/systemd_253.3.bb 
b/meta/recipes-core/systemd/systemd_253.3.bb
index cf0e17ff00..0f96140025 100644
--- a/meta/recipes-core/systemd/systemd_253.3.bb
+++ b/meta/recipes-core/systemd/systemd_253.3.bb
@@ -17,7 +17,6 @@ REQUIRED_DISTRO_FEATURES = "systemd"
 SRC_URI += " \
file://touchscreen.rules \
file://00-create-volatile.conf \
-   file://basic.conf.in \
${@bb.utils.contains('PACKAGECONFIG', 'polkit_hostnamed_fallback', 
'file://org.freedesktop.hostname1_no_polkit.conf', '', d)} \
${@bb.utils.contains('PACKAGECONFIG', 'polkit_hostnamed_fallback', 
'file://00-hostnamed-network-user.conf', '', d)} \
file://init \
@@ -28,6 +27,7 @@ SRC_URI += " \

file://0004-Move-sysusers.d-sysctl.d-binfmt.d-modules-load.d-to-.patch \
file://27254.patch \
file://27253.patch \
+   file://0029-sysusersd-Change-the-user-root-s-home-direct.patch \
"
 
 # patches needed by musl
@@ -253,10 +253,6 @@ EXTRA_OEMESON += "-Dkexec-path=${sbindir}/kexec \
 # The 60 seconds is watchdog's default vaule.
 WATCHDOG_TIMEOUT ??= "60"
 
-do_configure:prepend() {
-  sed s@:ROOT_HOME:@${ROOT_HOME}@g ${WORKDIR}/basic.conf.in > 
${S}/sysusers.d/basic.conf.in
-}
-
 do_install() {
meson_do_install
install -d ${D}/${base_sbindir}
@@ -368,6 +364,11 @@ do_install() {
 sed -i -e 
's/#RebootWatchdogSec=10min/RebootWatchdogSec=${WATCHDOG_TIMEOUT}/' \
 ${D}/${sysconfdir}/systemd/system.conf
 fi
+
+   # The root home directory specified in sysusers.d/ was patched to
+   # `:ROOT_HOME:`. Change now to the correct path given by ${ROOT_HOME}.
+   [ ! -f ${D}${libdir}/sysusers.d/basic.conf ] ||
+   sed -i s@:ROOT_HOME:@${ROOT_HOME}@g 
${D}${libdir}/sysusers.d/basic.conf
 }
 
 python populate_packages:prepend (){

---
base-commit: 23d9e2e210f18401ac669a930f2328aefacdc925
change-id: 20230726-sysusers_root-adb4c6b4cd05

Best regards,
-- 
Louis Rannou 


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#184925): 
https://lists.openembedded.org/g/openembedded-core/message/184925
Mute This Topic: https://lists.openembedded.org/mt/100387322/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][dunfell][PATCH] cve-update-nvd2-native: always pass str for json.loads()

2023-07-27 Thread Yuta Hayama
Currently json.loads() accepts one of the types str, bytes, or bytearray
as an argument, but bytes and bytearrays have only been allowed since
python 3.6. The version of Python3 provided by default on Ubuntu 16.04
and Debian 9.x is 3.5, so make raw_data type str to work correctly on
these build hosts.

Signed-off-by: Yuta Hayama 
---
 meta/recipes-core/meta/cve-update-nvd2-native.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/meta/cve-update-nvd2-native.bb 
b/meta/recipes-core/meta/cve-update-nvd2-native.bb
index 2f7dad7e82..67d76f75dd 100644
--- a/meta/recipes-core/meta/cve-update-nvd2-native.bb
+++ b/meta/recipes-core/meta/cve-update-nvd2-native.bb
@@ -136,7 +136,7 @@ def nvd_request_next(url, api_key, args):
 
 if (r.headers['content-encoding'] == 'gzip'):
 buf = r.read()
-raw_data = gzip.decompress(buf)
+raw_data = gzip.decompress(buf).decode("utf-8")
 else:
 raw_data = r.read().decode("utf-8")
 
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#184924): 
https://lists.openembedded.org/g/openembedded-core/message/184924
Mute This Topic: https://lists.openembedded.org/mt/100387035/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] rpm: Allow setting platform macro settings externally

2023-07-27 Thread Zoltan Boszormenyi

2023. 07. 27. 10:30 keltezéssel, Alexander Kanavin írta:

I was hoping to get a reaction from Panu (who's the maintainer; Neal
is a contributor), but then I remembered he's a Finn, and this time of
the year all Finns disappear into summer cabins - temperatures above
+20 are still rare in that country, and actual sun in the sky is even
more precious :)


:-)


So I'm slightly torn: I don't have anything against the patch, I just
don't want to carry (and maintain) something that upstream rejected.
We've had plenty of such incidents with rpm in the past.


No problem. I can carry the patch and recipe change internally in
bbappend form until it's decided. Apparently, it's only me where
the use case to need rpmbuild on a target machine ever occurred.

Thanks.



Alex

On Thu, 27 Jul 2023 at 09:32, Böszörményi Zoltán  wrote:

Patch approved with the requested changes.

I sent a v2 with using the approved patch and adding
the exports only to do_install:class-target because
that's where it's needed.

2023. 07. 26. 15:05 keltezéssel, Zoltan Boszormenyi via lists.openembedded.org 
írta:

2023. 07. 25. 18:30 keltezéssel, Alexander Kanavin írta:

I would want to hold this until we have a reaction from upstream.

Now we have reaction. Both PRs were closed because they were not
against master, my bad. Now reopened against master as
https://github.com/rpm-software-management/rpm/pull/2585

But there was some real comment here:
https://github.com/rpm-software-management/rpm/pull/2580#issuecomment-1651647277

The discussion may/should be taken to the issue at
https://github.com/rpm-software-management/rpm/issues/2578


RPM_CUSTOM_* exports should go to specific tasks where they are needed.

Alex

On Tue, 25 Jul 2023 at 15:57, Zoltán Böszörményi  wrote:

Feed platform settings to installplatform externally. Based on the patch
submitted under https://github.com/rpm-software-management/rpm/pull/2579

Signed-off-by: Zoltán Böszörményi 
---
   ...ng-plaform-macro-settings-externally.patch | 56 +++
   meta/recipes-devtools/rpm/rpm_4.18.1.bb   | 17 ++
   2 files changed, 73 insertions(+)
   create mode 100644
meta/recipes-devtools/rpm/files/0001-Allow-setting-plaform-macro-settings-externally.patch

diff --git
a/meta/recipes-devtools/rpm/files/0001-Allow-setting-plaform-macro-settings-externally.patch
b/meta/recipes-devtools/rpm/files/0001-Allow-setting-plaform-macro-settings-externally.patch

new file mode 100644
index 00..8b3220f114
--- /dev/null
+++
b/meta/recipes-devtools/rpm/files/0001-Allow-setting-plaform-macro-settings-externally.patch
@@ -0,0 +1,56 @@
+From 320f4f3861dad70342f065004311eac143d6522d Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Zolt=C3=A1n=20B=C3=B6sz=C3=B6rm=C3=A9nyi?=
+ 
+Date: Tue, 25 Jul 2023 10:56:44 +0200
+Subject: [PATCH] Allow setting plaform macro settings externally
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Yocto has their own way to set the platform names via BSPs
+(Board Support Packages). These names are more specific than
+basic CPU architectures, and such a platform name ends up in
+/etc/rpm/platform but the corresponding subdirectory under
+/usr/lib/rpm/platform does not exist.
+
+Allow creating such custom platform subdirectory with feeding
+the necessary data using external variables: RPM_CUSTOM_ARCH,
+RPM_CUSTOM_ISANAME, RPM_CUSTOM_ISABITS, RPM_CUSTOM_CANONARCH
+and RPM_CUSTOM_CANONCOLOR
+
+Signed-off-by: Zoltán Böszörményi 
+Upstream-Status: Submitted 
[https://github.com/rpm-software-management/rpm/pull/2579]
+---
+ installplatform | 9 -
+ 1 file changed, 8 insertions(+), 1 deletion(-)
+
+diff --git a/installplatform b/installplatform
+index a5ad7c5b8..59f57697b 100755
+--- a/installplatform
 b/installplatform
+@@ -11,7 +11,7 @@ VENDOR="${4}"
+ OS="${5}"
+ RPMRC_GNU="${6}"
+
+-for ARCH in noarch `grep ^arch_canon $RPMRC | cut -d: -f2`; do
++for ARCH in noarch `grep ^arch_canon $RPMRC | cut -d: -f2`
${RPM_CUSTOM_ARCH:+custom}; do
+   RPMRC_OPTFLAGS="`sed -n 's/^optflags: '$ARCH' //p' $RPMRC`"
+   RPMRC_OPTFLAGS="`echo $RPMRC_OPTFLAGS | sed -e 's, ,\ ,g'`"
+   case $RPMRC_OPTFLAGS in
+@@ -30,6 +30,13 @@ for ARCH in noarch `grep ^arch_canon $RPMRC | cut -d: -f2`; 
do
+   CANONCOLOR=
+   FILTER=cat
+   case "${ARCH}" in
++custom)
++  ARCH=$RPM_CUSTOM_ARCH
++  ISANAME=$RPM_CUSTOM_ISANAME
++  ISABITS=$RPM_CUSTOM_ISABITS
++  CANONARCH=$RPM_CUSTOM_CANONARCH
++  CANONCOLOR=$RPM_CUSTOM_CANONCOLOR
++;;
+ sparc64*)
+   ISANAME=sparc
+   ISABITS=64
+--
+2.41.0
+
diff --git a/meta/recipes-devtools/rpm/rpm_4.18.1.bb
b/meta/recipes-devtools/rpm/rpm_4.18.1.bb
index 95a9e92f96..bc036fc843 100644
--- a/meta/recipes-devtools/rpm/rpm_4.18.1.bb
+++ b/meta/recipes-devtools/rpm/rpm_4.18.1.bb
@@ -40,6 +40,7 @@ SRC_URI =
"git://github.com/rpm-software-management/rpm;branch=rpm-4.18.x;protoc
file://0001-python-Use-Py_hash_t-instead-of-long-in-hdr_hash.patch \
  

Re: [OE-core] [PATCH v2] ltp: Use bfd linker when lld is distro linker default

2023-07-27 Thread Richard Purdie
On Thu, 2023-07-27 at 00:56 -0700, Khem Raj wrote:
> Signed-off-by: Khem Raj 
> ---
> v2: Also fix KVM_LD and remove -fuse-ld=lld
> 
>  meta/recipes-extended/ltp/ltp_20230516.bb | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/meta/recipes-extended/ltp/ltp_20230516.bb 
> b/meta/recipes-extended/ltp/ltp_20230516.bb
> index e9407d3148e..1efb7637dcf 100644
> --- a/meta/recipes-extended/ltp/ltp_20230516.bb
> +++ b/meta/recipes-extended/ltp/ltp_20230516.bb
> @@ -41,13 +41,15 @@ inherit autotools-brokensep pkgconfig
>  # https://sourceware.org/bugzilla/show_bug.cgi?id=18097
>  # 
> https://github.com/linux-test-project/ltp/commit/3fce2064b54843218d085aae326c8f7ecf3a8c41#diff-39268f0855c634ca48c8993fcd2c95b12a65b79e8d9fa5ccd6b0f5a8785c0dd6R36
>  LDFLAGS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' 
> -fuse-ld=bfd', '', d)}"
> +LDFLAGS:remove = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', 
> '-fuse-ld=lld', '', d)}"
> +LDFLAGS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' 
> -fuse-ld=bfd', '', d)}"

Why do we need the remove? Nobody would set both ld-is-gold and ls-is-
ldd would they?

I don't really like remove on principle in OE-Core...

Cheers,

Richard

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#184922): 
https://lists.openembedded.org/g/openembedded-core/message/184922
Mute This Topic: https://lists.openembedded.org/mt/100386590/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] rpm: Allow setting platform macro settings externally

2023-07-27 Thread Alexander Kanavin
I was hoping to get a reaction from Panu (who's the maintainer; Neal
is a contributor), but then I remembered he's a Finn, and this time of
the year all Finns disappear into summer cabins - temperatures above
+20 are still rare in that country, and actual sun in the sky is even
more precious :)

So I'm slightly torn: I don't have anything against the patch, I just
don't want to carry (and maintain) something that upstream rejected.
We've had plenty of such incidents with rpm in the past.

Alex

On Thu, 27 Jul 2023 at 09:32, Böszörményi Zoltán  wrote:
>
> Patch approved with the requested changes.
>
> I sent a v2 with using the approved patch and adding
> the exports only to do_install:class-target because
> that's where it's needed.
>
> 2023. 07. 26. 15:05 keltezéssel, Zoltan Boszormenyi via 
> lists.openembedded.org írta:
> > 2023. 07. 25. 18:30 keltezéssel, Alexander Kanavin írta:
> >> I would want to hold this until we have a reaction from upstream.
> >
> > Now we have reaction. Both PRs were closed because they were not
> > against master, my bad. Now reopened against master as
> > https://github.com/rpm-software-management/rpm/pull/2585
> >
> > But there was some real comment here:
> > https://github.com/rpm-software-management/rpm/pull/2580#issuecomment-1651647277
> >
> > The discussion may/should be taken to the issue at
> > https://github.com/rpm-software-management/rpm/issues/2578
> >
> >> RPM_CUSTOM_* exports should go to specific tasks where they are needed.
> >>
> >> Alex
> >>
> >> On Tue, 25 Jul 2023 at 15:57, Zoltán Böszörményi  wrote:
> >>> Feed platform settings to installplatform externally. Based on the patch
> >>> submitted under https://github.com/rpm-software-management/rpm/pull/2579
> >>>
> >>> Signed-off-by: Zoltán Böszörményi 
> >>> ---
> >>>   ...ng-plaform-macro-settings-externally.patch | 56 +++
> >>>   meta/recipes-devtools/rpm/rpm_4.18.1.bb   | 17 ++
> >>>   2 files changed, 73 insertions(+)
> >>>   create mode 100644
> >>> meta/recipes-devtools/rpm/files/0001-Allow-setting-plaform-macro-settings-externally.patch
> >>>
> >>> diff --git
> >>> a/meta/recipes-devtools/rpm/files/0001-Allow-setting-plaform-macro-settings-externally.patch
> >>> b/meta/recipes-devtools/rpm/files/0001-Allow-setting-plaform-macro-settings-externally.patch
> >>>
> >>> new file mode 100644
> >>> index 00..8b3220f114
> >>> --- /dev/null
> >>> +++
> >>> b/meta/recipes-devtools/rpm/files/0001-Allow-setting-plaform-macro-settings-externally.patch
> >>> @@ -0,0 +1,56 @@
> >>> +From 320f4f3861dad70342f065004311eac143d6522d Mon Sep 17 00:00:00 2001
> >>> +From: =?UTF-8?q?Zolt=C3=A1n=20B=C3=B6sz=C3=B6rm=C3=A9nyi?=
> >>> + 
> >>> +Date: Tue, 25 Jul 2023 10:56:44 +0200
> >>> +Subject: [PATCH] Allow setting plaform macro settings externally
> >>> +MIME-Version: 1.0
> >>> +Content-Type: text/plain; charset=UTF-8
> >>> +Content-Transfer-Encoding: 8bit
> >>> +
> >>> +Yocto has their own way to set the platform names via BSPs
> >>> +(Board Support Packages). These names are more specific than
> >>> +basic CPU architectures, and such a platform name ends up in
> >>> +/etc/rpm/platform but the corresponding subdirectory under
> >>> +/usr/lib/rpm/platform does not exist.
> >>> +
> >>> +Allow creating such custom platform subdirectory with feeding
> >>> +the necessary data using external variables: RPM_CUSTOM_ARCH,
> >>> +RPM_CUSTOM_ISANAME, RPM_CUSTOM_ISABITS, RPM_CUSTOM_CANONARCH
> >>> +and RPM_CUSTOM_CANONCOLOR
> >>> +
> >>> +Signed-off-by: Zoltán Böszörményi 
> >>> +Upstream-Status: Submitted 
> >>> [https://github.com/rpm-software-management/rpm/pull/2579]
> >>> +---
> >>> + installplatform | 9 -
> >>> + 1 file changed, 8 insertions(+), 1 deletion(-)
> >>> +
> >>> +diff --git a/installplatform b/installplatform
> >>> +index a5ad7c5b8..59f57697b 100755
> >>> +--- a/installplatform
> >>>  b/installplatform
> >>> +@@ -11,7 +11,7 @@ VENDOR="${4}"
> >>> + OS="${5}"
> >>> + RPMRC_GNU="${6}"
> >>> +
> >>> +-for ARCH in noarch `grep ^arch_canon $RPMRC | cut -d: -f2`; do
> >>> ++for ARCH in noarch `grep ^arch_canon $RPMRC | cut -d: -f2`
> >>> ${RPM_CUSTOM_ARCH:+custom}; do
> >>> +   RPMRC_OPTFLAGS="`sed -n 's/^optflags: '$ARCH' //p' $RPMRC`"
> >>> +   RPMRC_OPTFLAGS="`echo $RPMRC_OPTFLAGS | sed -e 's, ,\ ,g'`"
> >>> +   case $RPMRC_OPTFLAGS in
> >>> +@@ -30,6 +30,13 @@ for ARCH in noarch `grep ^arch_canon $RPMRC | cut -d: 
> >>> -f2`; do
> >>> +   CANONCOLOR=
> >>> +   FILTER=cat
> >>> +   case "${ARCH}" in
> >>> ++custom)
> >>> ++  ARCH=$RPM_CUSTOM_ARCH
> >>> ++  ISANAME=$RPM_CUSTOM_ISANAME
> >>> ++  ISABITS=$RPM_CUSTOM_ISABITS
> >>> ++  CANONARCH=$RPM_CUSTOM_CANONARCH
> >>> ++  CANONCOLOR=$RPM_CUSTOM_CANONCOLOR
> >>> ++;;
> >>> + sparc64*)
> >>> +   ISANAME=sparc
> >>> +   ISABITS=64
> >>> +--
> >>> +2.41.0
> >>> +
> >>> diff --git a/meta/recipes-devtools/rpm/rpm_4.18.1.bb
> >>> b/meta/recipes-devtools/rpm/rpm_4.18.1.bb
> >>> index 

[OE-core] [mickledore][PATCH] ruby: Fix CVE-2023-36617

2023-07-27 Thread Yu, Mingli
From: Mingli Yu 

Backport two patches [1] [2] to fix CVE-2023-36617 [3].

[1] https://github.com/ruby/uri/commit/9010ee2536adda10a0555ae1ed6fe2f5808e6bf1
[2] https://github.com/ruby/uri/commit/9d7bcef1e6ad23c9c6e4932f297fb737888144c8
[3] https://www.ruby-lang.org/en/news/2023/06/29/redos-in-uri-CVE-2023-36617/

Signed-off-by: Mingli Yu 
---
 .../ruby/ruby/CVE-2023-36617_1.patch  | 56 +++
 .../ruby/ruby/CVE-2023-36617_2.patch  | 52 +
 meta/recipes-devtools/ruby/ruby_3.2.2.bb  |  2 +
 3 files changed, 110 insertions(+)
 create mode 100644 meta/recipes-devtools/ruby/ruby/CVE-2023-36617_1.patch
 create mode 100644 meta/recipes-devtools/ruby/ruby/CVE-2023-36617_2.patch

diff --git a/meta/recipes-devtools/ruby/ruby/CVE-2023-36617_1.patch 
b/meta/recipes-devtools/ruby/ruby/CVE-2023-36617_1.patch
new file mode 100644
index 00..17c7e30176
--- /dev/null
+++ b/meta/recipes-devtools/ruby/ruby/CVE-2023-36617_1.patch
@@ -0,0 +1,56 @@
+From 2ebb50d2dc302917a6f57c1239dc9e700dfe0e34 Mon Sep 17 00:00:00 2001
+From: Nobuyoshi Nakada 
+Date: Thu, 27 Jul 2023 15:53:01 +0800
+Subject: [PATCH] Fix quadratic backtracking on invalid relative URI
+
+https://hackerone.com/reports/1958260
+
+CVE: CVE-2023-36617
+
+Upstream-Status: Backport 
[https://github.com/ruby/uri/commit/9010ee2536adda10a0555ae1ed6fe2f5808e6bf1]
+
+Signed-off-by: Mingli Yu 
+---
+ lib/uri/rfc2396_parser.rb |  4 ++--
+ test/uri/test_parser.rb   | 12 
+ 2 files changed, 14 insertions(+), 2 deletions(-)
+
+diff --git a/lib/uri/rfc2396_parser.rb b/lib/uri/rfc2396_parser.rb
+index 76a8f99..00c66cf 100644
+--- a/lib/uri/rfc2396_parser.rb
 b/lib/uri/rfc2396_parser.rb
+@@ -497,8 +497,8 @@ module URI
+   ret = {}
+ 
+   # for URI::split
+-  ret[:ABS_URI] = Regexp.new('\A\s*' + pattern[:X_ABS_URI] + '\s*\z', 
Regexp::EXTENDED)
+-  ret[:REL_URI] = Regexp.new('\A\s*' + pattern[:X_REL_URI] + '\s*\z', 
Regexp::EXTENDED)
++  ret[:ABS_URI] = Regexp.new('\A\s*+' + pattern[:X_ABS_URI] + '\s*\z', 
Regexp::EXTENDED)
++  ret[:REL_URI] = Regexp.new('\A\s*+' + pattern[:X_REL_URI] + '\s*\z', 
Regexp::EXTENDED)
+ 
+   # for URI::extract
+   ret[:URI_REF] = Regexp.new(pattern[:URI_REF])
+diff --git a/test/uri/test_parser.rb b/test/uri/test_parser.rb
+index 72fb590..721e05e 100644
+--- a/test/uri/test_parser.rb
 b/test/uri/test_parser.rb
+@@ -79,4 +79,16 @@ class URI::TestParser < Test::Unit::TestCase
+ assert_equal([nil, nil, "example.com", nil, nil, "", nil, nil, nil], 
URI.split("//example.com"))
+ assert_equal([nil, nil, "[0::0]", nil, nil, "", nil, nil, nil], 
URI.split("//[0::0]"))
+   end
++
++  def test_rfc2822_parse_relative_uri
++pre = ->(length) {
++  " " * length + "\0"
++}
++parser = URI::RFC2396_Parser.new
++assert_linear_performance((1..5).map {|i| 10**i}, pre: pre) do |uri|
++  assert_raise(URI::InvalidURIError) do
++parser.split(uri)
++  end
++end
++  end
+ end
+-- 
+2.25.1
+
diff --git a/meta/recipes-devtools/ruby/ruby/CVE-2023-36617_2.patch 
b/meta/recipes-devtools/ruby/ruby/CVE-2023-36617_2.patch
new file mode 100644
index 00..7c51deaa42
--- /dev/null
+++ b/meta/recipes-devtools/ruby/ruby/CVE-2023-36617_2.patch
@@ -0,0 +1,52 @@
+From eea5868120509c245216c4b5c2d4b5db1c593d0e Mon Sep 17 00:00:00 2001
+From: Nobuyoshi Nakada 
+Date: Thu, 27 Jul 2023 16:16:30 +0800
+Subject: [PATCH] Fix quadratic backtracking on invalid port number
+
+https://hackerone.com/reports/1958260
+
+CVE: CVE-2023-36617
+
+Upstream-Status: Backport 
[https://github.com/ruby/uri/commit/9d7bcef1e6ad23c9c6e4932f297fb737888144c8]
+
+Signed-off-by: Mingli Yu 
+---
+ lib/uri/rfc3986_parser.rb |  2 +-
+ test/uri/test_parser.rb   | 10 ++
+ 2 files changed, 11 insertions(+), 1 deletion(-)
+
+diff --git a/lib/uri/rfc3986_parser.rb b/lib/uri/rfc3986_parser.rb
+index dd24a40..9b1663d 100644
+--- a/lib/uri/rfc3986_parser.rb
 b/lib/uri/rfc3986_parser.rb
+@@ -100,7 +100,7 @@ module URI
+ QUERY: /\A(?:%\h\h|[!$&-.0-;=@-Z_a-z~\/?])*\z/,
+ FRAGMENT: /\A(?:%\h\h|[!$&-.0-;=@-Z_a-z~\/?])*\z/,
+ OPAQUE: /\A(?:[^\/].*)?\z/,
+-PORT: /\A[\x09\x0a\x0c\x0d ]*\d*[\x09\x0a\x0c\x0d ]*\z/,
++PORT: /\A[\x09\x0a\x0c\x0d ]*+\d*[\x09\x0a\x0c\x0d ]*\z/,
+   }
+ end
+ 
+diff --git a/test/uri/test_parser.rb b/test/uri/test_parser.rb
+index 721e05e..cee0acb 100644
+--- a/test/uri/test_parser.rb
 b/test/uri/test_parser.rb
+@@ -91,4 +91,14 @@ class URI::TestParser < Test::Unit::TestCase
+   end
+ end
+   end
++
++  def test_rfc3986_port_check
++pre = ->(length) {"\t" * length + "a"}
++uri = URI.parse("http://my.example.com;)
++assert_linear_performance((1..5).map {|i| 10**i}, pre: pre) do |port|
++  assert_raise(URI::InvalidComponentError) do
++uri.port = port
++  end
++end
++  end
+ end
+-- 
+2.25.1
+
diff --git a/meta/recipes-devtools/ruby/ruby_3.2.2.bb 

Re: [OE-core] [mickledore][kirkstone][dunfell][PATCH] systemd-systemctl: fix errors in instance name expansion

2023-07-27 Thread Yuta Hayama
Hi Steve,

Sorry for rushing you.
If the patch obviously needs to be backported to stable branch, could I post
a backport request email right away? This issue is not listed in bugzilla, so
I was worried that the patch might have been missed.


Regards,

Yuta Hayama

On 2023/07/27 17:19, Yuta Hayama via lists.openembedded.org wrote:
> If the instance name indicated by %i begins with a number, the meaning of the
> replacement string "\\1{}".format(instance) is ambiguous.
> 
> To indicate group number 1 regardless of the instance name, use "\g<1>".
> 
> (From OE-Core rev: d18b939fb08b37380ce95934da38e6522392621c)
> 
> Signed-off-by: Yuta Hayama 
> Signed-off-by: Richard Purdie 
> ---
>  meta/recipes-core/systemd/systemd-systemctl/systemctl | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/recipes-core/systemd/systemd-systemctl/systemctl 
> b/meta/recipes-core/systemd/systemd-systemctl/systemctl
> index 514f747fe6..7fe751b397 100755
> --- a/meta/recipes-core/systemd/systemd-systemctl/systemctl
> +++ b/meta/recipes-core/systemd/systemd-systemctl/systemctl
> @@ -202,7 +202,7 @@ class SystemdUnit():
>  try:
>  for dependent in config.get('Install', prop):
>  # expand any %i to instance (ignoring escape sequence %%)
> -dependent = re.sub("([^%](%%)*)%i", 
> "\\1{}".format(instance), dependent)
> +dependent = re.sub("([^%](%%)*)%i", 
> "\\g<1>{}".format(instance), dependent)
>  wants = systemdir / "{}.{}".format(dependent, dirstem) / 
> service
>  add_link(wants, target)
>  
> 
> 
> 
> 
> 

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



[OE-core] [mickledore][kirkstone][dunfell][PATCH] systemd-systemctl: fix errors in instance name expansion

2023-07-27 Thread Yuta Hayama
If the instance name indicated by %i begins with a number, the meaning of the
replacement string "\\1{}".format(instance) is ambiguous.

To indicate group number 1 regardless of the instance name, use "\g<1>".

(From OE-Core rev: d18b939fb08b37380ce95934da38e6522392621c)

Signed-off-by: Yuta Hayama 
Signed-off-by: Richard Purdie 
---
 meta/recipes-core/systemd/systemd-systemctl/systemctl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/systemd/systemd-systemctl/systemctl 
b/meta/recipes-core/systemd/systemd-systemctl/systemctl
index 514f747fe6..7fe751b397 100755
--- a/meta/recipes-core/systemd/systemd-systemctl/systemctl
+++ b/meta/recipes-core/systemd/systemd-systemctl/systemctl
@@ -202,7 +202,7 @@ class SystemdUnit():
 try:
 for dependent in config.get('Install', prop):
 # expand any %i to instance (ignoring escape sequence %%)
-dependent = re.sub("([^%](%%)*)%i", "\\1{}".format(instance), 
dependent)
+dependent = re.sub("([^%](%%)*)%i", 
"\\g<1>{}".format(instance), dependent)
 wants = systemdir / "{}.{}".format(dependent, dirstem) / 
service
 add_link(wants, target)
 
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#184918): 
https://lists.openembedded.org/g/openembedded-core/message/184918
Mute This Topic: https://lists.openembedded.org/mt/100386774/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] ltp: Use bfd linker when lld is distro linker default

2023-07-27 Thread Khem Raj
Signed-off-by: Khem Raj 
---
v2: Also fix KVM_LD and remove -fuse-ld=lld

 meta/recipes-extended/ltp/ltp_20230516.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-extended/ltp/ltp_20230516.bb 
b/meta/recipes-extended/ltp/ltp_20230516.bb
index e9407d3148e..1efb7637dcf 100644
--- a/meta/recipes-extended/ltp/ltp_20230516.bb
+++ b/meta/recipes-extended/ltp/ltp_20230516.bb
@@ -41,13 +41,15 @@ inherit autotools-brokensep pkgconfig
 # https://sourceware.org/bugzilla/show_bug.cgi?id=18097
 # 
https://github.com/linux-test-project/ltp/commit/3fce2064b54843218d085aae326c8f7ecf3a8c41#diff-39268f0855c634ca48c8993fcd2c95b12a65b79e8d9fa5ccd6b0f5a8785c0dd6R36
 LDFLAGS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' 
-fuse-ld=bfd', '', d)}"
+LDFLAGS:remove = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', 
'-fuse-ld=lld', '', d)}"
+LDFLAGS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' 
-fuse-ld=bfd', '', d)}"
 
 # After 0002-kvm-use-LD-instead-of-hardcoding-ld.patch
 # 
https://github.com/linux-test-project/ltp/commit/f94e0ef3b7280f886384703ef9019aaf2f2dfebb
 # it fails with gold also a bit later when trying to use *-payload.bin
 # http://errors.yoctoproject.org/Errors/Details/663094/
 # work around this by forcing .bfd linked in LD when ld-is-gold is in 
DISTRO_FEATURES
-KVM_LD = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', 
'${HOST_PREFIX}ld.bfd${TOOLCHAIN_OPTIONS} ${HOST_LD_ARCH}', '${LD}', d)}"
+KVM_LD = "${@bb.utils.contains_any('DISTRO_FEATURES', 'ld-is-gold ld-is-lld', 
'${HOST_PREFIX}ld.bfd${TOOLCHAIN_OPTIONS} ${HOST_LD_ARCH}', '${LD}', d)}"
 
 TARGET_CC_ARCH += "${LDFLAGS}"
 
-- 
2.41.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#184917): 
https://lists.openembedded.org/g/openembedded-core/message/184917
Mute This Topic: https://lists.openembedded.org/mt/100386590/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] rpm: Allow setting platform macro settings externally

2023-07-27 Thread Zoltan Boszormenyi
Feed platform settings to installplatform externally. Based on the patch
submitted under https://github.com/rpm-software-management/rpm/pull/2585

Patch against INSTALL was backported for rpm 4.18.1

Signed-off-by: Zoltán Böszörményi 
---
 ...g-platform-macro-settings-externally.patch | 107 ++
 meta/recipes-devtools/rpm/rpm_4.18.1.bb   |  20 
 2 files changed, 127 insertions(+)
 create mode 100644 
meta/recipes-devtools/rpm/files/0001-Allow-setting-platform-macro-settings-externally.patch

diff --git 
a/meta/recipes-devtools/rpm/files/0001-Allow-setting-platform-macro-settings-externally.patch
 
b/meta/recipes-devtools/rpm/files/0001-Allow-setting-platform-macro-settings-externally.patch
new file mode 100644
index 00..86d357a4e8
--- /dev/null
+++ 
b/meta/recipes-devtools/rpm/files/0001-Allow-setting-platform-macro-settings-externally.patch
@@ -0,0 +1,107 @@
+From 12ae0bf5d1540695af0a3499fc88698c48bc20d3 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Zolt=C3=A1n=20B=C3=B6sz=C3=B6rm=C3=A9nyi?=
+ 
+Date: Tue, 25 Jul 2023 10:56:44 +0200
+Subject: [PATCH] Allow setting platform macro settings externally
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+By default, rpm installs a series of default platforms based on
+the CPU architecture names in subdirectories called
+
+/usr/lib/platform/-linux
+
+This is enough for regular Linux distributions. However, some
+distributions may use more specific platform names that refer to
+particular computer systems, like SBCs or specific CPU tuning when
+compiling.
+
+If the platform subdirectory does not exist in /usr/lib/platform
+then rpmbuild does not work.
+
+Allow creating such custom platform subdirectory with feeding
+the necessary data using external variables: RPM_CUSTOM_ARCH,
+RPM_CUSTOM_ISANAME, RPM_CUSTOM_ISABITS, RPM_CUSTOM_CANONARCH
+and RPM_CUSTOM_CANONCOLOR
+
+Signed-off-by: Zoltán Böszörményi 
+Upstream-Status: Submitted 
[https://github.com/rpm-software-management/rpm/pull/2585]
+---
+ INSTALL | 32 
+ installplatform |  9 -
+ 2 files changed, 40 insertions(+), 1 deletion(-)
+
+diff --git a/INSTALL b/INSTALL
+index 13d0d8a83..35ad10793 100644
+--- a/INSTALL
 b/INSTALL
+@@ -148,6 +148,38 @@ and then install with:
+ 
+ make install
+ 
++By default, rpm installs a series of default platforms based on the CPU
++architecture names in subdirectories called
++
++/usr/lib/platform/-linux
++
++This is enough for regular Linux distributions. However, some distributions
++may use more specific platform names that refer to particular computer
++systems, like SBCs or specific CPU tuning when compiling. Examples of such
++platform names are: "genericx86_64", "intel_skylake_64", "raspberrypi_armv7",
++"raspberrypi_armv8", etc.
++
++If the platform name is put into /etc/rpm/platform, then rpmbuild uses it
++and the only macros file rpmbuild looks for is
++
++/usr/lib/platform/`cat /etc/rpm/platform`-linux/macros
++
++If this file does not exist, many rpm macros will not have their expected
++values set and e.g. %configure will fail when trying to run rpmbuild.
++
++To allow creating the macros file for such a custom platform, the shell
++variables listed below must be set. If RPM_CUSTOM_ARCH is not set, the rest
++is ignored.
++
++export RPM_CUSTOM_ARCH=genericx86_64
++export RPM_CUSTOM_ISANAME=x86
++export RPM_CUSTOM_ISABITS=64
++export RPM_CUSTOM_CANONARCH=x86_64
++export RPM_CUSTOM_CANONCOLOR=0 # to use /usr/lib for %_libdir
++export RPM_CUSTOM_CANONCOLOR=3 # to use /usr/lib64 for %_libdir
++
++make install # this also installs 
/usr/lib/platform/genericx86_64-linux/macros
++
+ Rpm comes with an automated self-test suite. The test-suite relies heavily
+ on fakechroot (https://github.com/dex4er/fakechroot/) and cannot be executed
+ without it. Provided that fakechroot was found during configure,
+diff --git a/installplatform b/installplatform
+index a5ad7c5b8..59f57697b 100755
+--- a/installplatform
 b/installplatform
+@@ -11,7 +11,7 @@ VENDOR="${4}"
+ OS="${5}"
+ RPMRC_GNU="${6}"
+ 
+-for ARCH in noarch `grep ^arch_canon $RPMRC | cut -d: -f2`; do
++for ARCH in noarch `grep ^arch_canon $RPMRC | cut -d: -f2` 
${RPM_CUSTOM_ARCH:+custom}; do
+   RPMRC_OPTFLAGS="`sed -n 's/^optflags: '$ARCH' //p' $RPMRC`"
+   RPMRC_OPTFLAGS="`echo $RPMRC_OPTFLAGS | sed -e 's, ,\ ,g'`"
+   case $RPMRC_OPTFLAGS in
+@@ -30,6 +30,13 @@ for ARCH in noarch `grep ^arch_canon $RPMRC | cut -d: -f2`; 
do
+   CANONCOLOR=
+   FILTER=cat
+   case "${ARCH}" in
++custom)
++  ARCH=$RPM_CUSTOM_ARCH
++  ISANAME=$RPM_CUSTOM_ISANAME
++  ISABITS=$RPM_CUSTOM_ISABITS
++  CANONARCH=$RPM_CUSTOM_CANONARCH
++  CANONCOLOR=$RPM_CUSTOM_CANONCOLOR
++;;
+ sparc64*) 
+   ISANAME=sparc
+   ISABITS=64
+-- 
+2.41.0
+
diff --git a/meta/recipes-devtools/rpm/rpm_4.18.1.bb 
b/meta/recipes-devtools/rpm/rpm_4.18.1.bb
index 

Re: [OE-core] [PATCH] rpm: Allow setting platform macro settings externally

2023-07-27 Thread Zoltan Boszormenyi

Patch approved with the requested changes.

I sent a v2 with using the approved patch and adding
the exports only to do_install:class-target because
that's where it's needed.

2023. 07. 26. 15:05 keltezéssel, Zoltan Boszormenyi via lists.openembedded.org 
írta:

2023. 07. 25. 18:30 keltezéssel, Alexander Kanavin írta:

I would want to hold this until we have a reaction from upstream.


Now we have reaction. Both PRs were closed because they were not
against master, my bad. Now reopened against master as
https://github.com/rpm-software-management/rpm/pull/2585

But there was some real comment here:
https://github.com/rpm-software-management/rpm/pull/2580#issuecomment-1651647277

The discussion may/should be taken to the issue at
https://github.com/rpm-software-management/rpm/issues/2578


RPM_CUSTOM_* exports should go to specific tasks where they are needed.

Alex

On Tue, 25 Jul 2023 at 15:57, Zoltán Böszörményi  wrote:

Feed platform settings to installplatform externally. Based on the patch
submitted under https://github.com/rpm-software-management/rpm/pull/2579

Signed-off-by: Zoltán Böszörményi 
---
  ...ng-plaform-macro-settings-externally.patch | 56 +++
  meta/recipes-devtools/rpm/rpm_4.18.1.bb   | 17 ++
  2 files changed, 73 insertions(+)
  create mode 100644 
meta/recipes-devtools/rpm/files/0001-Allow-setting-plaform-macro-settings-externally.patch


diff --git 
a/meta/recipes-devtools/rpm/files/0001-Allow-setting-plaform-macro-settings-externally.patch 
b/meta/recipes-devtools/rpm/files/0001-Allow-setting-plaform-macro-settings-externally.patch 


new file mode 100644
index 00..8b3220f114
--- /dev/null
+++ 
b/meta/recipes-devtools/rpm/files/0001-Allow-setting-plaform-macro-settings-externally.patch

@@ -0,0 +1,56 @@
+From 320f4f3861dad70342f065004311eac143d6522d Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Zolt=C3=A1n=20B=C3=B6sz=C3=B6rm=C3=A9nyi?=
+ 
+Date: Tue, 25 Jul 2023 10:56:44 +0200
+Subject: [PATCH] Allow setting plaform macro settings externally
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Yocto has their own way to set the platform names via BSPs
+(Board Support Packages). These names are more specific than
+basic CPU architectures, and such a platform name ends up in
+/etc/rpm/platform but the corresponding subdirectory under
+/usr/lib/rpm/platform does not exist.
+
+Allow creating such custom platform subdirectory with feeding
+the necessary data using external variables: RPM_CUSTOM_ARCH,
+RPM_CUSTOM_ISANAME, RPM_CUSTOM_ISABITS, RPM_CUSTOM_CANONARCH
+and RPM_CUSTOM_CANONCOLOR
+
+Signed-off-by: Zoltán Böszörményi 
+Upstream-Status: Submitted 
[https://github.com/rpm-software-management/rpm/pull/2579]
+---
+ installplatform | 9 -
+ 1 file changed, 8 insertions(+), 1 deletion(-)
+
+diff --git a/installplatform b/installplatform
+index a5ad7c5b8..59f57697b 100755
+--- a/installplatform
 b/installplatform
+@@ -11,7 +11,7 @@ VENDOR="${4}"
+ OS="${5}"
+ RPMRC_GNU="${6}"
+
+-for ARCH in noarch `grep ^arch_canon $RPMRC | cut -d: -f2`; do
++for ARCH in noarch `grep ^arch_canon $RPMRC | cut -d: -f2` 
${RPM_CUSTOM_ARCH:+custom}; do

+   RPMRC_OPTFLAGS="`sed -n 's/^optflags: '$ARCH' //p' $RPMRC`"
+   RPMRC_OPTFLAGS="`echo $RPMRC_OPTFLAGS | sed -e 's, ,\ ,g'`"
+   case $RPMRC_OPTFLAGS in
+@@ -30,6 +30,13 @@ for ARCH in noarch `grep ^arch_canon $RPMRC | cut -d: -f2`; 
do
+   CANONCOLOR=
+   FILTER=cat
+   case "${ARCH}" in
++    custom)
++  ARCH=$RPM_CUSTOM_ARCH
++  ISANAME=$RPM_CUSTOM_ISANAME
++  ISABITS=$RPM_CUSTOM_ISABITS
++  CANONARCH=$RPM_CUSTOM_CANONARCH
++  CANONCOLOR=$RPM_CUSTOM_CANONCOLOR
++    ;;
+ sparc64*)
+   ISANAME=sparc
+   ISABITS=64
+--
+2.41.0
+
diff --git a/meta/recipes-devtools/rpm/rpm_4.18.1.bb 
b/meta/recipes-devtools/rpm/rpm_4.18.1.bb

index 95a9e92f96..bc036fc843 100644
--- a/meta/recipes-devtools/rpm/rpm_4.18.1.bb
+++ b/meta/recipes-devtools/rpm/rpm_4.18.1.bb
@@ -40,6 +40,7 @@ SRC_URI = 
"git://github.com/rpm-software-management/rpm;branch=rpm-4.18.x;protoc

file://0001-python-Use-Py_hash_t-instead-of-long-in-hdr_hash.patch \
 file://fix-declaration.patch \
file://ea3187cfcf9cac87e5bc5e7db79b0338da9e355e.patch \
+ file://0001-Allow-setting-plaform-macro-settings-externally.patch \
 "

  PE = "1"
@@ -103,6 +104,21 @@ WRAPPER_TOOLS = " \
 ${libdir}/rpm/rpmdeps \
  "

+def rpm_isaname(d):
+    import re
+    arch = d.getVar('TARGET_ARCH')
+    if re.match("^i.86$", arch) or re.match("^x86.*64$", arch):
+    return "x86"
+    # Add more platform tweaks for ISANAME as needed
+    return arch
+
+export RPM_CUSTOM_ARCH = "${MACHINE_ARCH}"
+export RPM_CUSTOM_ISANAME = "${@rpm_isaname(d)}"
+export RPM_CUSTOM_ISABITS = "${SITEINFO_BITS}"
+export RPM_CUSTOM_CANONARCH = "${TARGET_ARCH}"
+# CANONCOLOR determines whether /usr/lib or /usr/lib64 is used for a 64-bit 
platform
+export RPM_CUSTOM_CANONCOLOR = 

[OE-core] [PATCH v2] rpm: Allow setting platform macro settings externally

2023-07-27 Thread Zoltan Boszormenyi
Feed platform settings to installplatform externally. Based on the patch
submitted under https://github.com/rpm-software-management/rpm/pull/2585

Signed-off-by: Zoltán Böszörményi 
---
 ...g-platform-macro-settings-externally.patch | 107 ++
 meta/recipes-devtools/rpm/rpm_4.18.1.bb   |  20 
 2 files changed, 127 insertions(+)
 create mode 100644 
meta/recipes-devtools/rpm/files/0001-Allow-setting-platform-macro-settings-externally.patch

diff --git 
a/meta/recipes-devtools/rpm/files/0001-Allow-setting-platform-macro-settings-externally.patch
 
b/meta/recipes-devtools/rpm/files/0001-Allow-setting-platform-macro-settings-externally.patch
new file mode 100644
index 00..0e5f9e3af1
--- /dev/null
+++ 
b/meta/recipes-devtools/rpm/files/0001-Allow-setting-platform-macro-settings-externally.patch
@@ -0,0 +1,107 @@
+From 98a7615d9db2d43126c453b9bd0f4cc5006c18b7 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Zolt=C3=A1n=20B=C3=B6sz=C3=B6rm=C3=A9nyi?=
+ 
+Date: Tue, 25 Jul 2023 10:56:44 +0200
+Subject: [PATCH] Allow setting platform macro settings externally
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+By default, rpm installs a series of default platforms based on
+the CPU architecture names in subdirectories called
+
+/usr/lib/platform/-linux
+
+This is enough for regular Linux distributions. However, some
+distributions may use more specific platform names that refer to
+particular computer systems, like SBCs or specific CPU tuning when
+compiling.
+
+If the platform subdirectory does not exist in /usr/lib/platform
+then rpmbuild does not work.
+
+Allow creating such custom platform subdirectory with feeding
+the necessary data using external variables: RPM_CUSTOM_ARCH,
+RPM_CUSTOM_ISANAME, RPM_CUSTOM_ISABITS, RPM_CUSTOM_CANONARCH
+and RPM_CUSTOM_CANONCOLOR
+
+Signed-off-by: Zoltán Böszörményi 
+Upstream-Status: Submitted 
[https://github.com/rpm-software-management/rpm/pull/2585]
+---
+ INSTALL | 32 
+ installplatform |  9 -
+ 2 files changed, 40 insertions(+), 1 deletion(-)
+
+diff --git a/INSTALL b/INSTALL
+index 0edbc32e7..163b93ff0 100644
+--- a/INSTALL
 b/INSTALL
+@@ -143,6 +143,38 @@ and then install with:
+ 
+ make install
+ 
++By default, rpm installs a series of default platforms based on the CPU
++architecture names in subdirectories called
++
++/usr/lib/platform/-linux
++
++This is enough for regular Linux distributions. However, some distributions
++may use more specific platform names that refer to particular computer
++systems, like SBCs or specific CPU tuning when compiling. Examples of such
++platform names are: "genericx86_64", "intel_skylake_64", "raspberrypi_armv7",
++"raspberrypi_armv8", etc.
++
++If the platform name is put into /etc/rpm/platform, then rpmbuild uses it
++and the only macros file rpmbuild looks for is
++
++/usr/lib/platform/`cat /etc/rpm/platform`-linux/macros
++
++If this file does not exist, many rpm macros will not have their expected
++values set and e.g. %configure will fail when trying to run rpmbuild.
++
++To allow creating the macros file for such a custom platform, the shell
++variables listed below must be set. If RPM_CUSTOM_ARCH is not set, the rest
++is ignored.
++
++export RPM_CUSTOM_ARCH=genericx86_64
++export RPM_CUSTOM_ISANAME=x86
++export RPM_CUSTOM_ISABITS=64
++export RPM_CUSTOM_CANONARCH=x86_64
++export RPM_CUSTOM_CANONCOLOR=0 # to use /usr/lib for %_libdir
++export RPM_CUSTOM_CANONCOLOR=3 # to use /usr/lib64 for %_libdir
++
++make install # this also installs 
/usr/lib/platform/genericx86_64-linux/macros
++
+ Rpm comes with an automated self-test suite. The test-suite requires
+ autom4te from autoconf (https://www.gnu.org/software/autoconf/) and
+ bwrap (https://github.com/containers/bubblewrap/). It is enabled by
+diff --git a/installplatform b/installplatform
+index c44055d9f..ac9b61643 100755
+--- a/installplatform
 b/installplatform
+@@ -11,7 +11,7 @@ VENDOR="${4}"
+ OS="${5}"
+ RPMRC_GNU="${6}"
+ 
+-for ARCH in noarch `grep ^arch_canon $RPMRC | cut -d: -f2`; do
++for ARCH in noarch `grep ^arch_canon $RPMRC | cut -d: -f2` 
${RPM_CUSTOM_ARCH:+custom}; do
+   RPMRC_OPTFLAGS="`sed -n 's/^optflags: '$ARCH' //p' $RPMRC`"
+   RPMRC_OPTFLAGS="`echo $RPMRC_OPTFLAGS | sed -e 's, ,\ ,g'`"
+   case $RPMRC_OPTFLAGS in
+@@ -30,6 +30,13 @@ for ARCH in noarch `grep ^arch_canon $RPMRC | cut -d: -f2`; 
do
+   CANONCOLOR=
+   FILTER=cat
+   case "${ARCH}" in
++custom)
++  ARCH=$RPM_CUSTOM_ARCH
++  ISANAME=$RPM_CUSTOM_ISANAME
++  ISABITS=$RPM_CUSTOM_ISABITS
++  CANONARCH=$RPM_CUSTOM_CANONARCH
++  CANONCOLOR=$RPM_CUSTOM_CANONCOLOR
++;;
+ sparc64*) 
+   ISANAME=sparc
+   ISABITS=64
+-- 
+2.41.0
+
diff --git a/meta/recipes-devtools/rpm/rpm_4.18.1.bb 
b/meta/recipes-devtools/rpm/rpm_4.18.1.bb
index 95a9e92f96..97dd843e56 100644
--- 

  1   2   >