[OE-core][langdale 28/28] oeqa context.py: fix --target-ip comment to include ssh port number

2023-02-11 Thread Steve Sakoman
From: Mikko Rapeli 

Providing ssh port number is supported too with
"--target-ip 192.168.0.10:22".

Signed-off-by: Mikko Rapeli 
Signed-off-by: Richard Purdie 
(cherry picked from commit 637919b9df0abc06da5b2f9b389cf25376bd6b7c)
Signed-off-by: Steve Sakoman 
---
 meta/lib/oeqa/runtime/context.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/lib/oeqa/runtime/context.py b/meta/lib/oeqa/runtime/context.py
index 8092dd0bae..0c5d1869ab 100644
--- a/meta/lib/oeqa/runtime/context.py
+++ b/meta/lib/oeqa/runtime/context.py
@@ -67,11 +67,11 @@ class OERuntimeTestContextExecutor(OETestContextExecutor):
 % self.default_target_type)
 runtime_group.add_argument('--target-ip', action='store',
 default=self.default_target_ip,
-help="IP address of device under test, default: %s" \
+help="IP address and optionally ssh port (default 22) of 
device under test, for example '192.168.0.7:22'. Default: %s" \
 % self.default_target_ip)
 runtime_group.add_argument('--server-ip', action='store',
 default=self.default_target_ip,
-help="IP address of device under test, default: %s" \
+help="IP address of the test host from test target machine, 
default: %s" \
 % self.default_server_ip)
 
 runtime_group.add_argument('--host-dumper-dir', action='store',
-- 
2.34.1


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



[OE-core][langdale 27/28] lsof: fix old override syntax

2023-02-11 Thread Steve Sakoman
From: Ulrich Ölmann 

Signed-off-by: Ulrich Ölmann 
Signed-off-by: Richard Purdie 
(cherry picked from commit 052f767f85eddab9b6e5d78268d2732f4a65d446)
Signed-off-by: Steve Sakoman 
---
 meta/recipes-extended/lsof/lsof_4.95.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-extended/lsof/lsof_4.95.0.bb 
b/meta/recipes-extended/lsof/lsof_4.95.0.bb
index 80128369ec..f59fe009bb 100644
--- a/meta/recipes-extended/lsof/lsof_4.95.0.bb
+++ b/meta/recipes-extended/lsof/lsof_4.95.0.bb
@@ -22,7 +22,7 @@ S = "${WORKDIR}/git"
 
 inherit update-alternatives
 
-ALTERNATIVE_${PN} = "lsof"
+ALTERNATIVE:${PN} = "lsof"
 ALTERNATIVE_LINK_NAME[lsof] = "${sbindir}/lsof"
 # Make our priority higher than busybox
 ALTERNATIVE_PRIORITY = "100"
-- 
2.34.1


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



[OE-core][langdale 24/28] libc-locale: Fix on target locale generation

2023-02-11 Thread Steve Sakoman
From: Richard Purdie 

If on target locale generation is used, it fails at first boot showing
errors about a missing directory. Ensure the directory exists.

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

diff --git a/meta/classes-recipe/libc-package.bbclass 
b/meta/classes-recipe/libc-package.bbclass
index de3d4223a8..8a99f73ae7 100644
--- a/meta/classes-recipe/libc-package.bbclass
+++ b/meta/classes-recipe/libc-package.bbclass
@@ -51,6 +51,7 @@ PACKAGE_NO_GCONV ?= "0"
 OVERRIDES:append = ":${TARGET_ARCH}-${TARGET_OS}"
 
 locale_base_postinst_ontarget() {
+mkdir ${libdir}/locale
 localedef --inputfile=${datadir}/i18n/locales/%s --charmap=%s %s
 }
 
-- 
2.34.1


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



[OE-core][langdale 26/28] recipe_sanity: fix old override syntax

2023-02-11 Thread Steve Sakoman
From: Ulrich Ölmann 

Signed-off-by: Ulrich Ölmann 
Signed-off-by: Richard Purdie 
(cherry picked from commit 18eeea6fcd8ade49390a978134f51646da2f7764)
Signed-off-by: Steve Sakoman 
---
 meta/classes/recipe_sanity.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/recipe_sanity.bbclass 
b/meta/classes/recipe_sanity.bbclass
index 1c2e24c6a1..a5cc4315fb 100644
--- a/meta/classes/recipe_sanity.bbclass
+++ b/meta/classes/recipe_sanity.bbclass
@@ -16,7 +16,7 @@ def bad_runtime_vars(cfgdata, d):
 for var in d.getVar("__recipe_sanity_badruntimevars").split():
 val = d.getVar(var, False)
 if val and val != cfgdata.get(var):
-__note("%s should be %s_${PN}" % (var, var), d)
+__note("%s should be %s:${PN}" % (var, var), d)
 
 __recipe_sanity_reqvars = "DESCRIPTION"
 __recipe_sanity_reqdiffvars = ""
-- 
2.34.1


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



[OE-core][langdale 25/28] bootchart2: Fix usrmerge support

2023-02-11 Thread Steve Sakoman
From: Harald Seiler 

bootchart2 introduced a variable EARLY_PREFIX for supporting systems
with usrmerge [1].  Right now, the recipe here is sidestepping this
feature and trying to replicate it by overwriting other variables and
even patching the sources.  This wasn't enough, however, as there are
still problems:  For example, some setup code in the bootchart-collector
fails because it expects EARLY_PREFIX to be used [2].

Cleanup the recipe to set EARLY_PREFIX and remove the other workarounds.

[1]: 
https://github.com/xrmx/bootchart/commit/56a638ace1d172163b6d636c89892446b8add4b6
[2]: 
https://github.com/xrmx/bootchart/blob/3d2136d0335718fbe1a8e2370ccbc30123a6e593/collector/collector.c#L670-L672

Fixes: 4157600d3122 ("bootchart2: switch to add patch from change source in 
do_install")
Signed-off-by: Harald Seiler 
Signed-off-by: Richard Purdie 
(cherry picked from commit 7031bc65b10040877392ed774a0cdddef85c12e0)
Signed-off-by: Steve Sakoman 
---
 .../0001-bootchart2-support-usrmerge.patch| 37 ---
 .../bootchart2/bootchart2_0.14.9.bb   | 11 ++
 2 files changed, 4 insertions(+), 44 deletions(-)
 delete mode 100644 
meta/recipes-devtools/bootchart2/bootchart2/0001-bootchart2-support-usrmerge.patch

diff --git 
a/meta/recipes-devtools/bootchart2/bootchart2/0001-bootchart2-support-usrmerge.patch
 
b/meta/recipes-devtools/bootchart2/bootchart2/0001-bootchart2-support-usrmerge.patch
deleted file mode 100644
index 88597cf3a9..00
--- 
a/meta/recipes-devtools/bootchart2/bootchart2/0001-bootchart2-support-usrmerge.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From b6d1a1ff2de363b1b76c8c70f77ae56a4e4d4b56 Mon Sep 17 00:00:00 2001
-From: Changqing Li 
-Date: Thu, 5 Sep 2019 18:37:31 +0800
-Subject: [PATCH] bootchart2: support usrmerge
-
-Upstream-Status: Inappropriate [oe-specific]
-
-Signed-off-by: Changqing Li 

- Makefile | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/Makefile b/Makefile
-index 1cc2974..f988904 100644
 a/Makefile
-+++ b/Makefile
-@@ -36,7 +36,7 @@ endif
- PY_SITEDIR ?= $(PY_LIBDIR)/site-packages
- LIBC_A_PATH = /usr$(LIBDIR)
- # Always lib, even on systems that otherwise use lib64
--SYSTEMD_UNIT_DIR = $(EARLY_PREFIX)/lib/systemd/system
-+SYSTEMD_UNIT_DIR ?= $(EARLY_PREFIX)/lib/systemd/system
- COLLECTOR = \
-   collector/collector.o \
-   collector/output.o \
-@@ -99,7 +99,7 @@ install-chroot:
-   install -d $(DESTDIR)$(PKGLIBDIR)/tmpfs
- 
- install-collector: all install-chroot
--  install -m 755 -D bootchartd 
$(DESTDIR)$(EARLY_PREFIX)/sbin/$(PROGRAM_PREFIX)bootchartd$(PROGRAM_SUFFIX)
-+  install -m 755 -D bootchartd 
$(DESTDIR)${BASE_SBINDIR}/$(PROGRAM_PREFIX)bootchartd$(PROGRAM_SUFFIX)
-   install -m 644 -D bootchartd.conf 
$(DESTDIR)/etc/$(PROGRAM_PREFIX)bootchartd$(PROGRAM_SUFFIX).conf
-   install -m 755 -D bootchart-collector 
$(DESTDIR)$(PKGLIBDIR)/$(PROGRAM_PREFIX)bootchart$(PROGRAM_SUFFIX)-collector
- 
--- 
-2.7.4
-
diff --git a/meta/recipes-devtools/bootchart2/bootchart2_0.14.9.bb 
b/meta/recipes-devtools/bootchart2/bootchart2_0.14.9.bb
index b4d5b7cd9b..297dbfb578 100644
--- a/meta/recipes-devtools/bootchart2/bootchart2_0.14.9.bb
+++ b/meta/recipes-devtools/bootchart2/bootchart2_0.14.9.bb
@@ -93,7 +93,6 @@ UPSTREAM_CHECK_GITTAGREGEX = "(?P\d+\.\d+(\.\d+)*)"
 SRC_URI = "git://github.com/xrmx/bootchart.git;branch=master;protocol=https \
file://bootchartd_stop.sh \
file://0001-collector-Allocate-space-on-heap-for-chunks.patch \
-   file://0001-bootchart2-support-usrmerge.patch \

file://0001-bootchartd.in-make-sure-only-one-bootchartd-process.patch \
file://0001-Do-not-include-linux-fs.h.patch \
   "
@@ -120,12 +119,11 @@ UPDATERCPN = "bootchartd-stop-initscript"
 INITSCRIPT_NAME = "bootchartd_stop.sh"
 INITSCRIPT_PARAMS = "start 99 2 3 4 5 ."
 
-EXTRA_OEMAKE = 'BASE_SBINDIR="${base_sbindir}"'
-
 do_compile:prepend () {
 export PY_LIBDIR="${libdir}/${PYTHON_DIR}"
 export BINDIR="${bindir}"
-export LIBDIR="${base_libdir}"
+export LIBDIR="/${baselib}"
+export EARLY_PREFIX="${root_prefix}"
 }
 
 do_install () {
@@ -133,9 +131,8 @@ do_install () {
 export PY_LIBDIR="${libdir}/${PYTHON_DIR}"
 export BINDIR="${bindir}"
 export DESTDIR="${D}"
-export LIBDIR="${base_libdir}"
-export PKGLIBDIR="${base_libdir}/bootchart"
-export SYSTEMD_UNIT_DIR="${systemd_system_unitdir}"
+export LIBDIR="/${baselib}"
+export EARLY_PREFIX="${root_prefix}"
 
 oe_runmake install NO_PYTHON_COMPILE=1
 install -d ${D}${sysconfdir}/init.d
-- 
2.34.1


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

[OE-core][langdale 23/28] perf: Enable debug/source packaging

2023-02-11 Thread Steve Sakoman
From: Richard Purdie 

This was disabled in 2014[1] due to an error message which as far
as I can tell, no longer occurs.

Having debug information and source files present will make debugging
reproducibility issues much easier so remove this line as it appears
no longer needed.

Fix up a few files which have buildpaths in them to avoid QA warnings
and reproducubility issues.

[1] OE-Core revision c1b5a262c0201faf2c6bf545d6acb32dfe383ba3

Signed-off-by: Richard Purdie 
(cherry picked from commit 95983108121c8b96f5659d110498bf2afc6189d9)
Signed-off-by: Steve Sakoman 
---
 meta/recipes-kernel/perf/perf.bb | 14 --
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index c1b0bd22d8..4088c67662 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -356,6 +356,16 @@ FILES:${PN}-python = " \
"
 FILES:${PN}-perl = "${libexecdir}/perf-core/scripts/perl"
 
-
-INHIBIT_PACKAGE_DEBUG_SPLIT="1"
 DEBUG_OPTIMIZATION:append = " -Wno-error=maybe-uninitialized"
+
+PACKAGESPLITFUNCS =+ "perf_fix_sources"
+
+perf_fix_sources () {
+   for f in util/parse-events-flex.h util/parse-events-flex.c 
util/pmu-flex.c \
+   util/expr-flex.h util/expr-flex.c; do
+   f=${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/$f
+   if [ -e $f ]; then
+   sed -i -e 's#${S}/##g' $f
+   fi
+   done
+}
-- 
2.34.1


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



[OE-core][langdale 22/28] testimage: Fix error message to reflect new syntax

2023-02-11 Thread Steve Sakoman
From: Alejandro Hernandez Samaniego 

Signed-off-by: Alejandro Enedino Hernandez Samaniego 
Signed-off-by: Alexandre Belloni 
Signed-off-by: Richard Purdie 
(cherry picked from commit ec73d19d78e8f30ff9b817490c23bcdf8ea47c86)
Signed-off-by: Steve Sakoman 
---
 meta/classes-recipe/testimage.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes-recipe/testimage.bbclass 
b/meta/classes-recipe/testimage.bbclass
index 5cc408b0c4..df22bb2344 100644
--- a/meta/classes-recipe/testimage.bbclass
+++ b/meta/classes-recipe/testimage.bbclass
@@ -236,7 +236,7 @@ def testimage_main(d):
 with open(tdname, "r") as f:
 td = json.load(f)
 except FileNotFoundError as err:
-bb.fatal('File %s not found (%s).\nHave you built the image with 
INHERIT += "testimage" in the conf/local.conf?' % (tdname, err))
+bb.fatal('File %s not found (%s).\nHave you built the image with 
IMAGE_CLASSES += "testimage" in the conf/local.conf?' % (tdname, err))
 
 # Some variables need to be updates (mostly paths) with the
 # ones of the current environment because some tests require them.
-- 
2.34.1


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



[OE-core][langdale 21/28] sstate.bbclass: Fetch non-existing local .sig files if needed

2023-02-11 Thread Steve Sakoman
From: Tobias Hagelborn 

For the case of a global shared state cache and a local sstate cache
with a mix of signed and un-signed entries, there is a case where
a .sig is missing locally, but may exist in the global sstate cache.

For this case, do not just fail sstate fetch, but rather backfill
the .sig file from the global sstate cache.

If this case is detected, re-run the fetch operation to get the
global .sig file (if it exists).

Signed-off-by: Tobias Hagelborn 
Signed-off-by: Alexandre Belloni 
Signed-off-by: Richard Purdie 
(cherry picked from commit d5ea1a5396bf9fd4303cae46bc0e042be8de8d67)
Signed-off-by: Steve Sakoman 
---
 meta/classes-global/sstate.bbclass | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/meta/classes-global/sstate.bbclass 
b/meta/classes-global/sstate.bbclass
index 21959ff13b..2dd880bbab 100644
--- a/meta/classes-global/sstate.bbclass
+++ b/meta/classes-global/sstate.bbclass
@@ -365,8 +365,9 @@ def sstate_installpkg(ss, d):
 d.setVar("SSTATE_CURRTASK", ss['task'])
 sstatefetch = d.getVar('SSTATE_PKGNAME')
 sstatepkg = d.getVar('SSTATE_PKG')
+verify_sig = bb.utils.to_boolean(d.getVar("SSTATE_VERIFY_SIG"), False)
 
-if not os.path.exists(sstatepkg):
+if not os.path.exists(sstatepkg) or (verify_sig and not 
os.path.exists(sstatepkg + '.sig')):
 pstaging_fetch(sstatefetch, d)
 
 if not os.path.isfile(sstatepkg):
@@ -377,7 +378,7 @@ def sstate_installpkg(ss, d):
 
 d.setVar('SSTATE_INSTDIR', sstateinst)
 
-if bb.utils.to_boolean(d.getVar("SSTATE_VERIFY_SIG"), False):
+if verify_sig:
 if not os.path.isfile(sstatepkg + '.sig'):
 bb.warn("No signature file for sstate package %s, skipping 
acceleration..." % sstatepkg)
 return False
-- 
2.34.1


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



[OE-core][langdale 20/28] oeqa/selftest/locales: Add selftest for locale generation/presence

2023-02-11 Thread Steve Sakoman
From: Louis Rannou 

[YOCTO #9070]

Add a new selftest to validate locale generation. This selftest builds a
complete target with GLIBC_GENERATE_LOCALES, IMAGE_LINGUAS,
ENABLE_BINARY_LOCALE_GENERATION set.

Signed-off-by: Louis Rannou 
Signed-off-by: Richard Purdie 
(cherry picked from commit 53258fd810bea6475af9f908f7b712a13a02b628)
Signed-off-by: Steve Sakoman 
---
 meta/lib/oeqa/selftest/cases/locales.py | 45 +
 1 file changed, 45 insertions(+)
 create mode 100644 meta/lib/oeqa/selftest/cases/locales.py

diff --git a/meta/lib/oeqa/selftest/cases/locales.py 
b/meta/lib/oeqa/selftest/cases/locales.py
new file mode 100644
index 00..433991abf9
--- /dev/null
+++ b/meta/lib/oeqa/selftest/cases/locales.py
@@ -0,0 +1,45 @@
+#
+# SPDX-License-Identifier: MIT
+#
+
+from oeqa.selftest.case import OESelftestTestCase
+from oeqa.core.decorator import OETestTag
+from oeqa.utils.commands import bitbake, runqemu
+
+class LocalesTest(OESelftestTestCase):
+
+@OETestTag("runqemu")
+def test_locales_on(self):
+"""
+Summary: Test the locales are generated
+Expected: 1. Check the locale exist in the locale-archive
+  2. Check the locale exist for the glibc
+  3. Check the locale can be generated
+Product: oe-core
+Author: Louis Rannou 
+AutomatedBy: Louis Rannou 
+"""
+
+features = []
+features.append('EXTRA_IMAGE_FEATURES = "empty-root-password 
allow-empty-password allow-root-login"')
+features.append('IMAGE_INSTALL:append = " glibc-utils localedef"')
+features.append('GLIBC_GENERATE_LOCALES = "en_US.UTF-8 fr_FR.UTF-8"')
+features.append('IMAGE_LINGUAS:append = " en-us fr-fr"')
+features.append('ENABLE_BINARY_LOCALE_GENERATION = "1"')
+self.write_config("\n".join(features))
+
+# Build a core-image-minimal
+bitbake('core-image-minimal')
+
+with runqemu("core-image-minimal", ssh=False, 
runqemuparams='nographic') as qemu:
+cmd = "locale -a"
+status, output = qemu.run_serial(cmd)
+# output must includes fr_FR or fr_FR.UTF-8
+self.assertEqual(status, 1, msg='locale test command failed: 
output: %s' % output)
+self.assertIn("fr_FR", output, msg='locale -a test failed: output: 
%s' % output)
+
+cmd = "localedef --list-archive -v"
+status, output = qemu.run_serial(cmd)
+# output must includes fr_FR.utf8
+self.assertEqual(status, 1, msg='localedef test command failed: 
output: %s' % output)
+self.assertIn("fr_FR.utf8", output, msg='localedef test failed: 
output: %s' % output)
-- 
2.34.1


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



[OE-core][langdale 19/28] apt: fix do_package_qa failure

2023-02-11 Thread Steve Sakoman
From: Changqing Li 

bitbake nativesdk-apt failed with error:
ERROR: nativesdk-apt-2.4.5-r0 do_package_qa: QA Issue: nativesdk-apt installs 
files in 
/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/var/volatile,
 but it is expected to be empty [empty-dirs]

an empty dir apt is installed under /var/log/, fix the failure
by removing the empty dir apt as what we have done for target.
apt will create it when it does not exist.

Signed-off-by: Changqing Li 
Signed-off-by: Richard Purdie 
(cherry picked from commit 5b035a59d7915da784f1e6678ee130f30d7ceb8a)
Signed-off-by: Steve Sakoman 
---
 meta/recipes-devtools/apt/apt_2.4.5.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-devtools/apt/apt_2.4.5.bb 
b/meta/recipes-devtools/apt/apt_2.4.5.bb
index 4b9f804039..ccdbd3d652 100644
--- a/meta/recipes-devtools/apt/apt_2.4.5.bb
+++ b/meta/recipes-devtools/apt/apt_2.4.5.bb
@@ -126,6 +126,7 @@ do_install:append:class-native() {
 
 do_install:append:class-nativesdk() {
customize_apt_conf_sample
+rm -rf ${D}${localstatedir}/log
 }
 
 do_install:append:class-target() {
-- 
2.34.1


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



[OE-core][langdale 18/28] meta: remove True option to getVar and getVarFlag calls (again)

2023-02-11 Thread Steve Sakoman
From: Martin Jansa 

* True is default since 2016 and most layers were already updated
  not to pass this parameter where not necessary, e.g. oe-core was
  updated couple times, first in:
  
https://git.openembedded.org/openembedded-core/commit/?id=7c552996597faaee2fbee185b250c0ee30ea3b5f

  Updated with the same regexp as later oe-core update:
  
https://git.openembedded.org/openembedded-core/commit/?id=9f551d588693328e4d99d33be94f26684eafcaba

  with small modification to replace not only d.getVar, but also data.getVar as 
in e.g.:
  e.data.getVar('ERR_REPORT_USERNAME', True)

  and for getVarFlag:
  sed -e 's|\(d\.getVarFlag \?\)( \?\([^,()]*, \?[^,()]*\), \?True)|\1(\2)|g' \
  -i $(git grep -E 'getVarFlag ?\( ?([^,()]*), ?([^,()]*), ?True\)' \
  | cut -d':' -f1 \
  | sort -u)

Signed-off-by: Martin Jansa 
Signed-off-by: Richard Purdie 
(cherry picked from commit 26c74fd10614582e177437608908eb43688ab510)
Signed-off-by: Steve Sakoman 
---
 meta/classes-recipe/image.bbclass |  2 +-
 meta/classes-recipe/license_image.bbclass |  2 +-
 .../classes-recipe/rust-target-config.bbclass |  2 +-
 meta/lib/oe/package_manager/deb/__init__.py   |  8 +++
 meta/recipes-devtools/go/go_1.19.4.bb |  4 ++--
 meta/recipes-devtools/rust/rust.inc   | 22 +--
 scripts/contrib/image-manifest|  2 +-
 scripts/lib/devtool/menuconfig.py |  2 +-
 8 files changed, 22 insertions(+), 22 deletions(-)

diff --git a/meta/classes-recipe/image.bbclass 
b/meta/classes-recipe/image.bbclass
index d4bf02784a..e5e5274924 100644
--- a/meta/classes-recipe/image.bbclass
+++ b/meta/classes-recipe/image.bbclass
@@ -445,7 +445,7 @@ python () {
 localdata.delVar('DATE')
 localdata.delVar('TMPDIR')
 localdata.delVar('IMAGE_VERSION_SUFFIX')
-vardepsexclude = (d.getVarFlag('IMAGE_CMD:' + realt, 'vardepsexclude', 
True) or '').split()
+vardepsexclude = (d.getVarFlag('IMAGE_CMD:' + realt, 'vardepsexclude') 
or '').split()
 for dep in vardepsexclude:
 localdata.delVar(dep)
 
diff --git a/meta/classes-recipe/license_image.bbclass 
b/meta/classes-recipe/license_image.bbclass
index b60d6e44f4..8560c27e93 100644
--- a/meta/classes-recipe/license_image.bbclass
+++ b/meta/classes-recipe/license_image.bbclass
@@ -235,7 +235,7 @@ def get_deployed_dependencies(d):
 deploy = {}
 # Get all the dependencies for the current task (rootfs).
 taskdata = d.getVar("BB_TASKDEPDATA", False)
-pn = d.getVar("PN", True)
+pn = d.getVar("PN")
 depends = list(set([dep[0] for dep
 in list(taskdata.values())
 if not dep[0].endswith("-native") and not dep[0] == pn]))
diff --git a/meta/classes-recipe/rust-target-config.bbclass 
b/meta/classes-recipe/rust-target-config.bbclass
index 9158b1918e..876fe8fd9b 100644
--- a/meta/classes-recipe/rust-target-config.bbclass
+++ b/meta/classes-recipe/rust-target-config.bbclass
@@ -114,7 +114,7 @@ def llvm_features_from_target_fpu(d):
 # TARGET_FPU can be hard or soft. +soft-float tell llvm to use soft float
 # ABI. There is no option for hard.
 
-fpu = d.getVar('TARGET_FPU', True)
+fpu = d.getVar('TARGET_FPU')
 return ["+soft-float"] if fpu == "soft" else []
 
 def llvm_features(d):
diff --git a/meta/lib/oe/package_manager/deb/__init__.py 
b/meta/lib/oe/package_manager/deb/__init__.py
index c672454072..0c23c884c1 100644
--- a/meta/lib/oe/package_manager/deb/__init__.py
+++ b/meta/lib/oe/package_manager/deb/__init__.py
@@ -82,15 +82,15 @@ class DpkgIndexer(Indexer):
 return
 
 oe.utils.multiprocess_launch(create_index, index_cmds, self.d)
-if self.d.getVar('PACKAGE_FEED_SIGN', True) == '1':
-signer = get_signer(self.d, 
self.d.getVar('PACKAGE_FEED_GPG_BACKEND', True))
+if self.d.getVar('PACKAGE_FEED_SIGN') == '1':
+signer = get_signer(self.d, 
self.d.getVar('PACKAGE_FEED_GPG_BACKEND'))
 else:
 signer = None
 if signer:
 for f in index_sign_files:
 signer.detach_sign(f,
-   self.d.getVar('PACKAGE_FEED_GPG_NAME', 
True),
-   
self.d.getVar('PACKAGE_FEED_GPG_PASSPHRASE_FILE', True),
+   self.d.getVar('PACKAGE_FEED_GPG_NAME'),
+   
self.d.getVar('PACKAGE_FEED_GPG_PASSPHRASE_FILE'),
output_suffix="gpg",
use_sha256=True)
 
diff --git a/meta/recipes-devtools/go/go_1.19.4.bb 
b/meta/recipes-devtools/go/go_1.19.4.bb
index 98977673ee..587ee55944 100644
--- a/meta/recipes-devtools/go/go_1.19.4.bb
+++ b/meta/recipes-devtools/go/go_1.19.4.bb
@@ -12,7 +12,7 @@ export CXX_FOR_TARGET = "g++"
 # mips/rv64 doesn't support -buildmode=pie, so skip the QA checking for 
mips/riscv32 and its
 # variants.
 python() {
-if '

[OE-core][langdale 17/28] glslang: branch rename master -> main

2023-02-11 Thread Steve Sakoman
From: Mingli Yu 

Branch name is changed from master to main.

Signed-off-by: Mingli Yu 
Signed-off-by: Richard Purdie 
(cherry picked from commit 65ee4c1067ee5d73c198eed8ed2f1c9a60d5df96)
Signed-off-by: Steve Sakoman 
---
 meta/recipes-graphics/glslang/glslang_1.3.216.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-graphics/glslang/glslang_1.3.216.0.bb 
b/meta/recipes-graphics/glslang/glslang_1.3.216.0.bb
index 69d9a0a84e..5b3b85b4ff 100644
--- a/meta/recipes-graphics/glslang/glslang_1.3.216.0.bb
+++ b/meta/recipes-graphics/glslang/glslang_1.3.216.0.bb
@@ -9,7 +9,7 @@ LICENSE = "BSD-3-Clause & BSD-2-Clause & MIT & Apache-2.0 & 
GPL-3-with-bison-exc
 LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=2a2b5acd7bc4844964cfda45fe807dc3"
 
 SRCREV = "adbf0d3106b26daa237b10b9bf72b1af7c31092d"
-SRC_URI = 
"git://github.com/KhronosGroup/glslang.git;protocol=https;branch=master \
+SRC_URI = 
"git://github.com/KhronosGroup/glslang.git;protocol=https;branch=main \
file://0001-generate-glslang-pkg-config.patch"
 PE = "1"
 UPSTREAM_CHECK_GITTAGREGEX = "sdk-(?P\d+(\.\d+)+)"
-- 
2.34.1


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



[OE-core][langdale 16/28] httpserver: add error handler that write to the logger

2023-02-11 Thread Steve Sakoman
From: Ross Burton 

Signed-off-by: Ross Burton 
Signed-off-by: Richard Purdie 
(cherry picked from commit a4bcca3123685f410fc99e5cc23f2b8f39fd0a63)
Signed-off-by: Steve Sakoman 
---
 meta/lib/oeqa/utils/httpserver.py | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/meta/lib/oeqa/utils/httpserver.py 
b/meta/lib/oeqa/utils/httpserver.py
index 8ce1dd42f4..5860b0a383 100644
--- a/meta/lib/oeqa/utils/httpserver.py
+++ b/meta/lib/oeqa/utils/httpserver.py
@@ -40,6 +40,12 @@ class HTTPService(object):
 self.port = self.server.server_port
 self.process = 
multiprocessing.Process(target=self.server.server_start, args=[self.root_dir, 
self.logger])
 
+def handle_error(self, request, client_address):
+import traceback
+exception = traceback.format_exc()
+self.logger.warn("Exception when handling %s: %s" % (request, 
exception))
+self.server.handle_error = handle_error
+
 # The signal handler from testimage.bbclass can cause deadlocks here
 # if the HTTPServer is terminated before it can restore the standard 
 #signal behaviour
-- 
2.34.1


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



[OE-core][langdale 15/28] sdkext/cases/devtool: pass a logger to HTTPService

2023-02-11 Thread Steve Sakoman
From: Ross Burton 

Pass our logger to the HTTPService instance so we can see the requests
and any errors.

Signed-off-by: Ross Burton 
Signed-off-by: Richard Purdie 
(cherry picked from commit 3485df2ff61143aac03d92300b7bac4e5d6b2427)
Signed-off-by: Steve Sakoman 
---
 meta/lib/oeqa/sdkext/cases/devtool.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oeqa/sdkext/cases/devtool.py 
b/meta/lib/oeqa/sdkext/cases/devtool.py
index a5c6a76e02..5ffb732556 100644
--- a/meta/lib/oeqa/sdkext/cases/devtool.py
+++ b/meta/lib/oeqa/sdkext/cases/devtool.py
@@ -112,7 +112,7 @@ class SdkUpdateTest(OESDKExtTestCase):
 cmd = 'oe-publish-sdk %s %s' % (tcname_new, self.publish_dir)
 subprocess.check_output(cmd, shell=True)
 
-self.http_service = HTTPService(self.publish_dir)
+self.http_service = HTTPService(self.publish_dir, logger=self.logger)
 self.http_service.start()
 
 self.http_url = "http://127.0.0.1:%d"; % self.http_service.port
-- 
2.34.1


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



[OE-core][langdale 14/28] oeqa/qemurunner: do not use Popen.poll() when terminating runqemu with a signal

2023-02-11 Thread Steve Sakoman
From: Alexander Kanavin 

This does not actually guarantee that the child runqemu process has completely 
exited:
poll() may return prematurely while the SIGTERM handler in runqemu is still 
running.
This thwarts the rest of the processing, and may terminate the handler before
it completes.

Use Popen.communicate() instead: this is what python documentation recommends 
as well:
https://docs.python.org/3/library/subprocess.html#subprocess.Popen.communicate

Signed-off-by: Alexander Kanavin 
Signed-off-by: Richard Purdie 
(cherry picked from commit cd3e55606c427287f37585c5d7cde936471e52f4)
Signed-off-by: Steve Sakoman 
---
 meta/lib/oeqa/utils/qemurunner.py | 11 +++
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/meta/lib/oeqa/utils/qemurunner.py 
b/meta/lib/oeqa/utils/qemurunner.py
index 6a85f57e49..c68974f25c 100644
--- a/meta/lib/oeqa/utils/qemurunner.py
+++ b/meta/lib/oeqa/utils/qemurunner.py
@@ -538,10 +538,13 @@ class QemuRunner:
 except OSError as e:
 if e.errno != errno.ESRCH:
 raise
-endtime = time.time() + self.runqemutime
-while self.runqemu.poll() is None and time.time() < endtime:
-time.sleep(1)
-if self.runqemu.poll() is None:
+try:
+outs, errs = self.runqemu.communicate(timeout = 
self.runqemutime)
+if outs:
+self.logger.info("Output from runqemu:\n%s", 
outs.decode("utf-8"))
+if errs:
+self.logger.info("Stderr from runqemu:\n%s", 
errs.decode("utf-8"))
+except TimeoutExpired:
 self.logger.debug("Sending SIGKILL to runqemu")
 os.killpg(os.getpgid(self.runqemu.pid), signal.SIGKILL)
 if not self.runqemu.stdout.closed:
-- 
2.34.1


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



[OE-core][langdale 13/28] scons.bbclass: Make MAXLINELENGTH overridable

2023-02-11 Thread Steve Sakoman
From: Khem Raj 

older scons do not support MAXLINELENGTH and some packages still may be
using older scons, these recipes can clear SCONS_MAXLINELENGTH in them
and get going. Set

SCONS_MAXLINELENGTH = ""

in such recipes.

Signed-off-by: Khem Raj 
Cc: Martin Jansa 
Signed-off-by: Richard Purdie 
(cherry picked from commit 34de57d12c0a752f66c962d29e5335c1035db066)
Signed-off-by: Steve Sakoman 
---
 meta/classes-recipe/scons.bbclass | 9 +
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/meta/classes-recipe/scons.bbclass 
b/meta/classes-recipe/scons.bbclass
index d510c12b9b..d20a78dc6e 100644
--- a/meta/classes-recipe/scons.bbclass
+++ b/meta/classes-recipe/scons.bbclass
@@ -10,11 +10,12 @@ DEPENDS += "python3-scons-native"
 
 EXTRA_OESCONS ?= ""
 # This value below is derived from $(getconf ARG_MAX)
-SCONS_MAXLINELENGTH ?= "2097152"
+SCONS_MAXLINELENGTH ?= "MAXLINELENGTH=2097152"
+EXTRA_OESCONS:append = " ${SCONS_MAXLINELENGTH}"
 do_configure() {
if [ -n "${CONFIGURESTAMPFILE}" -a "${S}" = "${B}" ]; then
if [ -e "${CONFIGURESTAMPFILE}" -a "`cat 
${CONFIGURESTAMPFILE}`" != "${BB_TASKHASH}" -a "${CLEANBROKEN}" != "1" ]; then
-   ${STAGING_BINDIR_NATIVE}/scons --directory=${S} --clean 
PREFIX=${prefix} MAXLINELENGTH=${SCONS_MAXLINELENGTH} prefix=${prefix} 
${EXTRA_OESCONS}
+   ${STAGING_BINDIR_NATIVE}/scons --directory=${S} --clean 
PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS}
fi
 
mkdir -p `dirname ${CONFIGURESTAMPFILE}`
@@ -23,12 +24,12 @@ do_configure() {
 }
 
 scons_do_compile() {
-   ${STAGING_BINDIR_NATIVE}/scons --directory=${S} ${PARALLEL_MAKE} 
PREFIX=${prefix} prefix=${prefix} MAXLINELENGTH=${SCONS_MAXLINELENGTH} 
${EXTRA_OESCONS} || \
+   ${STAGING_BINDIR_NATIVE}/scons --directory=${S} ${PARALLEL_MAKE} 
PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS} || \
die "scons build execution failed."
 }
 
 scons_do_install() {
-   ${STAGING_BINDIR_NATIVE}/scons --directory=${S} 
install_root=${D}${prefix} PREFIX=${prefix} prefix=${prefix} 
MAXLINELENGTH=${SCONS_MAXLINELENGTH} ${EXTRA_OESCONS} install || \
+   ${STAGING_BINDIR_NATIVE}/scons --directory=${S} 
install_root=${D}${prefix} PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS} 
install || \
die "scons install execution failed."
 }
 
-- 
2.34.1


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



[OE-core][langdale 12/28] scons: Pass MAXLINELENGTH to scons invocation

2023-02-11 Thread Steve Sakoman
From: Khem Raj 

This helps in overcoming a problem when using scons with ccache enabled.
When commands get longer, then it resorts to using response files to do
the operations e.g. @/tmp/tmp96j6icra.lnk when this response file is
inboked by compiler it works ok, however, this does not when ccache is
used to invoke the complilation. We see errors e.g.

ccache @/tmp/tmppsyij_0v.lnk
ccache: error: execute_noreturn of @/tmp/tmppsyij_0v.lnk failed: No such file 
or directory

Using MAXLINELENGTH setting ensures that we can use ARG_MAX to extend
the length of commandline and hence avoid using response files. This
issue is also reported in mongodb [1]

[1] https://jira.mongodb.org/browse/SERVER-38389

Signed-off-by: Khem Raj 
Signed-off-by: Alexandre Belloni 
(cherry picked from commit 29558f6218f4676b459f2c78f82d245339d51c8c)
Signed-off-by: Steve Sakoman 
---
 meta/classes-recipe/scons.bbclass | 13 +
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/meta/classes-recipe/scons.bbclass 
b/meta/classes-recipe/scons.bbclass
index 5f0d4a910b..d510c12b9b 100644
--- a/meta/classes-recipe/scons.bbclass
+++ b/meta/classes-recipe/scons.bbclass
@@ -9,11 +9,12 @@ inherit python3native
 DEPENDS += "python3-scons-native"
 
 EXTRA_OESCONS ?= ""
-
+# This value below is derived from $(getconf ARG_MAX)
+SCONS_MAXLINELENGTH ?= "2097152"
 do_configure() {
if [ -n "${CONFIGURESTAMPFILE}" -a "${S}" = "${B}" ]; then
if [ -e "${CONFIGURESTAMPFILE}" -a "`cat 
${CONFIGURESTAMPFILE}`" != "${BB_TASKHASH}" -a "${CLEANBROKEN}" != "1" ]; then
-   ${STAGING_BINDIR_NATIVE}/scons --directory=${S} --clean 
PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS}
+   ${STAGING_BINDIR_NATIVE}/scons --directory=${S} --clean 
PREFIX=${prefix} MAXLINELENGTH=${SCONS_MAXLINELENGTH} prefix=${prefix} 
${EXTRA_OESCONS}
fi
 
mkdir -p `dirname ${CONFIGURESTAMPFILE}`
@@ -22,13 +23,17 @@ do_configure() {
 }
 
 scons_do_compile() {
-   ${STAGING_BINDIR_NATIVE}/scons --directory=${S} ${PARALLEL_MAKE} 
PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS} || \
+   ${STAGING_BINDIR_NATIVE}/scons --directory=${S} ${PARALLEL_MAKE} 
PREFIX=${prefix} prefix=${prefix} MAXLINELENGTH=${SCONS_MAXLINELENGTH} 
${EXTRA_OESCONS} || \
die "scons build execution failed."
 }
 
 scons_do_install() {
-   ${STAGING_BINDIR_NATIVE}/scons --directory=${S} 
install_root=${D}${prefix} PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS} 
install || \
+   ${STAGING_BINDIR_NATIVE}/scons --directory=${S} 
install_root=${D}${prefix} PREFIX=${prefix} prefix=${prefix} 
MAXLINELENGTH=${SCONS_MAXLINELENGTH} ${EXTRA_OESCONS} install || \
die "scons install execution failed."
 }
 
+do_configure[vardepsexclude] = "SCONS_MAXLINELENGTH"
+do_compile[vardepsexclude] = "SCONS_MAXLINELENGTH"
+do_install[vardepsexclude] = "SCONS_MAXLINELENGTH"
+
 EXPORT_FUNCTIONS do_compile do_install
-- 
2.34.1


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



[OE-core][langdale 11/28] make-mod-scripts: Ensure kernel build output is deterministic

2023-02-11 Thread Steve Sakoman
From: Richard Purdie 

The definitions in linux-kernel-base are needed to ensure the generated headers
are consistent. This was a small step that was missing from the previous
changes to linux-kernel-base as both kernel-devsrc and make-mod-scripts
need this information defined consistently.

Signed-off-by: Richard Purdie 
(cherry picked from commit 0d79d4883f924cef0d0ba361506ad75d441b9721)
Signed-off-by: Steve Sakoman 
---
 meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb 
b/meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb
index 9afd6714f0..38282e58f1 100644
--- a/meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb
+++ b/meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb
@@ -3,7 +3,7 @@ HOMEPAGE = "https://www.yoctoproject.org/";
 LICENSE = "GPL-2.0-only"
 LIC_FILES_CHKSUM = 
"file://${COREBASE}/meta/files/common-licenses/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6"
 
-inherit kernel-arch
+inherit kernel-arch linux-kernel-base
 inherit pkgconfig
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
-- 
2.34.1


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



[OE-core][langdale 10/28] gdk-pixbuf: do not use tools from gdk-pixbuf-native when building tests

2023-02-11 Thread Steve Sakoman
From: Alexander Kanavin 

The patch that allows to do so has not been accepted upstream, and wasn't 
correctly
working as it was running a native executable (gdk-pixbuf-query-loaders) with 
target .so plugins.

On the other hand, out of 20+ (currently 23) tests only three require
running binaries at build time to produce special test-specific input data:

cve-2015-4491
pixbuf-pixdata
pixbuf-resource

So let's simply omit these from the build: this can be done with a far
less invasive patch which has a chance of being accepted upstream.

gdk-pixbuf-print-mime-types is no longer installed
(the replaced patch was doing that).

Signed-off-by: Alexander Kanavin 
Signed-off-by: Alexandre Belloni 
(cherry picked from commit 0d926508e75095eb446699b612729d0243eacc91)
Signed-off-by: Steve Sakoman 
---
 .../0001-Add-use_prebuilt_tools-option.patch  | 173 --
 ...w-a-subset-of-tests-in-cross-compile.patch |  66 +++
 .../gdk-pixbuf/gdk-pixbuf_2.42.10.bb  |  17 +-
 3 files changed, 68 insertions(+), 188 deletions(-)
 delete mode 100644 
meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf/0001-Add-use_prebuilt_tools-option.patch
 create mode 100644 
meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf/0001-meson.build-allow-a-subset-of-tests-in-cross-compile.patch

diff --git 
a/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf/0001-Add-use_prebuilt_tools-option.patch
 
b/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf/0001-Add-use_prebuilt_tools-option.patch
deleted file mode 100644
index 02cc9a2a70..00
--- 
a/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf/0001-Add-use_prebuilt_tools-option.patch
+++ /dev/null
@@ -1,173 +0,0 @@
-From f81b60ebcbbfd9548c8aa1e388662c429068d1e3 Mon Sep 17 00:00:00 2001
-From: Alexander Kanavin 
-Date: Sat, 8 May 2021 21:58:54 +0200
-Subject: [PATCH] Add use_prebuilt_tools option
-
-This allows using the gdk-pixbuf tools from the host to
-build and install tests in a cross-compile scenarion.
-
-Upstream-Status: Submitted 
[https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/merge_requests/119]
-Signed-off-by: Alexander Kanavin 
-

- gdk-pixbuf/meson.build  | 11 +--
- meson.build |  6 +++---
- meson_options.txt   |  4 
- tests/meson.build   | 16 
- thumbnailer/meson.build | 24 ++--
- 5 files changed, 42 insertions(+), 19 deletions(-)
-
-diff --git a/gdk-pixbuf/meson.build b/gdk-pixbuf/meson.build
-index 54ff9dd..2e321cf 100644
 a/gdk-pixbuf/meson.build
-+++ b/gdk-pixbuf/meson.build
-@@ -342,13 +342,20 @@ foreach bin: gdkpixbuf_bin
-include_directories: [ root_inc, gdk_pixbuf_inc ],
-c_args: common_cflags + gdk_pixbuf_cflags,
-install: true)
--  meson.override_find_program(bin_name, bin)
-+  if not get_option('use_prebuilt_tools')
-+  meson.override_find_program(bin_name, bin)
-+  endif
- 
-   # Used in tests
-   set_variable(bin_name.underscorify(), bin)
- endforeach
- 
--if not meson.is_cross_build()
-+if get_option('use_prebuilt_tools')
-+gdk_pixbuf_query_loaders = find_program('gdk-pixbuf-query-loaders', 
required: true)
-+gdk_pixbuf_pixdata = find_program('gdk-pixbuf-pixdata', required: true)
-+endif
-+
-+if not meson.is_cross_build() or get_option('use_prebuilt_tools')
-   # The 'loaders.cache' used for testing, so we don't accidentally
-   # load the installed cache; we always build it by default
-   loaders_cache = custom_target('loaders.cache',
-diff --git a/meson.build b/meson.build
-index 813bd43..a93e6f7 100644
 a/meson.build
-+++ b/meson.build
-@@ -369,18 +369,18 @@ subdir('gdk-pixbuf')
- # i18n
- subdir('po')
- 
--if not meson.is_cross_build()
-+if not meson.is_cross_build() or get_option('use_prebuilt_tools')
-   if get_option('tests')
- subdir('tests')
-   endif
--  subdir('thumbnailer')
- endif
-+subdir('thumbnailer')
- 
- # Documentation
- build_docs = get_option('gtk_doc') or get_option('docs')
- subdir('docs')
- 
--if not meson.is_cross_build()
-+if not meson.is_cross_build() or get_option('use_prebuilt_tools')
-   meson.add_install_script('build-aux/post-install.py',
- gdk_pixbuf_bindir,
- gdk_pixbuf_libdir,
-diff --git a/meson_options.txt b/meson_options.txt
-index d198d99..1c899e9 100644
 a/meson_options.txt
-+++ b/meson_options.txt
-@@ -53,4 +53,8 @@ option('gio_sniffing',
-description: 'Perform file type detection using GIO (Unused on MacOS 
and Windows)',
-type: 'boolean',
-value: true)
-+option('use_prebuilt_tools',
-+   description: 'Use prebuilt gdk-pixbuf tools from the host for 
cross-compilation',
-+   type: 'boolean',
-+   value: false)
- 
-diff --git a/tests/meson.build b/tests/meson.build
-index 28c2525..d97c02d 100644
 a/tests/meson.build
-+++ b/tests/meson.build
-@@ -5,6 +5,12 @@
- # $PATH. Ideally we should use gnome.compile_resources() and let Meson deal 
with
- # this problem: See https://github.com/mesonbuild/meson/issues/8266.
- if enabled_loaders.contains('png') an

[OE-core][langdale 09/28] classes/fs-uuid: Fix command output decoding issue

2023-02-11 Thread Steve Sakoman
From: Pawel Zalewski 

The default return value from subprocess.check_output is an encoded byte.
The applied fix will decode the value to a string.

Signed-off-by: Pawel Zalewski 
Signed-off-by: Alexandre Belloni 
(cherry picked from commit 046769fa952a511865c416b80d10af6287147fb7)
Signed-off-by: Steve Sakoman 
---
 meta/classes-recipe/fs-uuid.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes-recipe/fs-uuid.bbclass 
b/meta/classes-recipe/fs-uuid.bbclass
index a9e7eb8c67..e215f06c80 100644
--- a/meta/classes-recipe/fs-uuid.bbclass
+++ b/meta/classes-recipe/fs-uuid.bbclass
@@ -10,7 +10,7 @@
 def get_rootfs_uuid(d):
 import subprocess
 rootfs = d.getVar('ROOTFS')
-output = subprocess.check_output(['tune2fs', '-l', rootfs])
+output = subprocess.check_output(['tune2fs', '-l', rootfs], text=True)
 for line in output.split('\n'):
 if line.startswith('Filesystem UUID:'):
 uuid = line.split()[-1]
-- 
2.34.1


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



[OE-core][langdale 07/28] vulkan-samples: branch rename master -> main

2023-02-11 Thread Steve Sakoman
From: Alexander Kanavin 

Signed-off-by: Alexander Kanavin 
Signed-off-by: Richard Purdie 
(cherry picked from commit 74bf535ca5cbcfb38c18775ece863d53dd216008)
Signed-off-by: Steve Sakoman 
---
 meta/recipes-graphics/vulkan/vulkan-samples_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-graphics/vulkan/vulkan-samples_git.bb 
b/meta/recipes-graphics/vulkan/vulkan-samples_git.bb
index d0b3458e1b..d5d285cd83 100644
--- a/meta/recipes-graphics/vulkan/vulkan-samples_git.bb
+++ b/meta/recipes-graphics/vulkan/vulkan-samples_git.bb
@@ -5,7 +5,7 @@ LICENSE = "Apache-2.0"
 
 LIC_FILES_CHKSUM = "file://LICENSE;md5=48aa35cefb768436223a6e7f18dc2a2a"
 
-SRC_URI = 
"gitsm://github.com/KhronosGroup/Vulkan-Samples.git;branch=master;protocol=https;lfs=0
 \
+SRC_URI = 
"gitsm://github.com/KhronosGroup/Vulkan-Samples.git;branch=main;protocol=https;lfs=0
 \

file://0001-CMakeLists.txt-do-not-hardcode-lib-as-installation-t.patch \
file://debugfix.patch \

file://0001-Qualify-move-as-std-move.patch;patchdir=third_party/spirv-cross \
-- 
2.34.1


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



[OE-core][langdale 08/28] buildtools-tarball: set pkg-config search path

2023-02-11 Thread Steve Sakoman
From: Ross Burton 

The buildtools-tarball includes a native sysroot with .pc files, and
in the case of buildtools-extended-tarball a pkg-config binary too.

If we're using the host pkg-config then it doesn't know to search in the
native sysroot.  If we're using our pkg-config then it searches in the
build-time prefix and not the actual SDK installation location.

Neither of these are correct, so set PKG_CONFIG_LIBDIR to search:
- The native sysroot
- The host pkg-config's default search path, if present
- Falling back to /usr/lib/pkgconfig, if not

In an ideal world this would be handled by the generic toolchain script,
but that is slightly more involved.

[ YOCTO #15007 ]

Signed-off-by: Ross Burton 
Signed-off-by: Richard Purdie 
(cherry picked from commit 8f768a3f4c7ff477e994d60800e5a1b83891615a)
Signed-off-by: Steve Sakoman 
---
 meta/recipes-core/meta/buildtools-tarball.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/recipes-core/meta/buildtools-tarball.bb 
b/meta/recipes-core/meta/buildtools-tarball.bb
index de399173ba..34f7773398 100644
--- a/meta/recipes-core/meta/buildtools-tarball.bb
+++ b/meta/recipes-core/meta/buildtools-tarball.bb
@@ -75,6 +75,9 @@ create_sdk_files:append () {
echo 'export 
REQUESTS_CA_BUNDLE="${SDKPATHNATIVE}${sysconfdir}/ssl/certs/ca-certificates.crt"'
 >>$script
echo 'export 
CURL_CA_BUNDLE="${SDKPATHNATIVE}${sysconfdir}/ssl/certs/ca-certificates.crt"' 
>>$script
fi
+   echo 'HOST_PKG_PATH=$(command -p pkg-config --variable=pc_path 
pkg-config 2>/dev/null)' >>$script
+   echo 'export 
PKG_CONFIG_LIBDIR=${SDKPATHNATIVE}/${libdir}/pkgconfig:${SDKPATHNATIVE}/${datadir}/pkgconfig:${HOST_PKG_PATH:-/usr/lib/pkgconfig:/usr/share/pkgconfig}'
 >>$script
+   echo 'unset HOST_PKG_PATH'
 
toolchain_create_sdk_version ${SDK_OUTPUT}/${SDKPATH}/version-${SDK_SYS}
 
-- 
2.34.1


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



[OE-core][langdale 06/28] python3-pytest: depend on python3-tomli instead of python3-toml

2023-02-11 Thread Steve Sakoman
From: Arnout Vandecappelle 

Since version 7.0.0 [1], pytest switched from the toml package to the
tomli package for parsing pyproject.toml configuration files [2].

This change is not immediately noticable during tests, because the
toml/tomli module is only important if a pyproject.toml is actually
present in a project.

[1] https://docs.pytest.org/en/latest/changelog.html#pytest-7-0-0rc1-2021-12-06
[2] https://github.com/pytest-dev/pytest/issues/8789

Signed-off-by: Arnout Vandecappelle 
Signed-off-by: Steve Sakoman 
---
 meta/recipes-devtools/python/python3-pytest_7.1.3.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/python/python3-pytest_7.1.3.bb 
b/meta/recipes-devtools/python/python3-pytest_7.1.3.bb
index 373f7f35fa..9710242655 100644
--- a/meta/recipes-devtools/python/python3-pytest_7.1.3.bb
+++ b/meta/recipes-devtools/python/python3-pytest_7.1.3.bb
@@ -26,7 +26,7 @@ RDEPENDS:${PN}:class-target += " \
 ${PYTHON_PN}-py \
 ${PYTHON_PN}-setuptools \
 ${PYTHON_PN}-six \
-${PYTHON_PN}-toml \
+${PYTHON_PN}-tomli \
 ${PYTHON_PN}-wcwidth \
 "
 
-- 
2.34.1


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



[OE-core][langdale 05/28] kernel/linux-kernel-base: Fix kernel build artefact determinism issues

2023-02-11 Thread Steve Sakoman
From: Richard Purdie 

With the 6.1 kernel we've seen reproducibility/determinism issues where the 
kernel
seems to rebuild headers referencing the hostname or local user. kernel-devsrc
building after the kernel seemed to trigger it in some cases.

Moving the definitions to the bbclass used by all the kernel recipe code 
including
kernel-devsrc seems to be the best way to ensure this doesn't happen.

Signed-off-by: Richard Purdie 
(cherry picked from commit 60681baa97daf4f3856453c34d6be08b6771a81b)
Signed-off-by: Steve Sakoman 
---
 meta/classes-recipe/kernel.bbclass| 3 ---
 meta/classes-recipe/linux-kernel-base.bbclass | 4 
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/meta/classes-recipe/kernel.bbclass 
b/meta/classes-recipe/kernel.bbclass
index 553e17bb4e..274d748d99 100644
--- a/meta/classes-recipe/kernel.bbclass
+++ b/meta/classes-recipe/kernel.bbclass
@@ -210,9 +210,6 @@ PACKAGES_DYNAMIC += "^${KERNEL_PACKAGE_NAME}-firmware-.*"
 
 export OS = "${TARGET_OS}"
 export CROSS_COMPILE = "${TARGET_PREFIX}"
-export KBUILD_BUILD_VERSION = "1"
-export KBUILD_BUILD_USER ?= "oe-user"
-export KBUILD_BUILD_HOST ?= "oe-host"
 
 KERNEL_RELEASE ?= "${KERNEL_VERSION}"
 
diff --git a/meta/classes-recipe/linux-kernel-base.bbclass 
b/meta/classes-recipe/linux-kernel-base.bbclass
index cb2212c948..65cc48f304 100644
--- a/meta/classes-recipe/linux-kernel-base.bbclass
+++ b/meta/classes-recipe/linux-kernel-base.bbclass
@@ -43,5 +43,9 @@ def linux_module_packages(s, d):
 suffix = ""
 return " ".join(map(lambda s: "kernel-module-%s%s" % 
(s.lower().replace('_', '-').replace('@', '+'), suffix), s.split()))
 
+export KBUILD_BUILD_VERSION = "1"
+export KBUILD_BUILD_USER ?= "oe-user"
+export KBUILD_BUILD_HOST ?= "oe-host"
+
 # that's all
 
-- 
2.34.1


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



[OE-core][langdale 04/28] linux-yocto/5.15: update to v5.15.91

2023-02-11 Thread Steve Sakoman
From: Bruce Ashfield 

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

9cf4111cdf94 Linux 5.15.91
14cc13e433e1 perf/x86/amd: fix potential integer overflow on shift of a int
033636b32258 netfilter: conntrack: unify established states for SCTP paths
0b08201158f1 x86/i8259: Mark legacy PIC interrupts with IRQ_LEVEL
b57740036792 block: fix and cleanup bio_check_ro
1d152437e46f kbuild: Allow kernel installation packaging to override 
pkg-config
a1964688582d cpufreq: governor: Use kobject release() method to free 
dbs_data
7c513ced0dec cpufreq: Move to_gov_attr_set() to cpufreq.h
cf7a08622d2b Revert "Input: synaptics - switch touchpad on HP Laptop 
15-da3001TU to RMI mode"
53c5d61198c1 tools: gpio: fix -c option of gpio-event-mon
a7d1a303ff0f treewide: fix up files incorrectly marked executable
046fe53907c5 net: mdio-mux-meson-g12a: force internal PHY off on mux switch
86bdccde7842 net/tg3: resolve deadlock in tg3_reset_task() during EEH
4364bf79d829 thermal: intel: int340x: Add locking to 
int340x_thermal_get_trip_type()
e69c3a0d9d3d net: mctp: mark socks as dead on unhash, prevent re-add
954cc215cd7a net: ravb: Fix possible hang if RIS2_QFF1 happen
0f7218bf0a00 net: ravb: Fix lack of register setting after system resumed 
for Gen3
3db4ca2938eb ravb: Rename "no_ptp_cfg_active" and "ptp_cfg_active" variables
621f296f11cf gpio: mxc: Unlock on error path in mxc_flip_edge()
071a8392869f nvme: fix passthrough csi check
614471b7f7cd riscv/kprobe: Fix instruction simulation of JALR
3391bd42351b sctp: fail if no bound addresses can be used for a given scope
b0784860e145 net/sched: sch_taprio: do not schedule in taprio_reset()
d2d3ab1b1de3 netrom: Fix use-after-free of a listening socket.
9df5ab02c65e netfilter: conntrack: fix vtag checks for 
ABORT/SHUTDOWN_COMPLETE
ca3cf947760d ipv4: prevent potential spectre v1 gadget in 
fib_metrics_match()
d50e7348b44f ipv4: prevent potential spectre v1 gadget in 
ip_metrics_convert()
ead06e3449f2 netlink: annotate data races around sk_state
c4eb423c6b9b netlink: annotate data races around dst_portid and dst_group
fac9b69a9370 netlink: annotate data races around nlk->portid
8a13595600f7 netfilter: nft_set_rbtree: skip elements in transaction from 
garbage collection
2bf1435fa19d netfilter: nft_set_rbtree: Switch to node list walk for 
overlap detection
e481654426b6 drm/i915/selftest: fix intel_selftest_modify_policy argument 
types
66689a72ba73 net: fix UaF in netns ops registration error path
41b74e95f297 netlink: prevent potential spectre v1 gadgets
2f29d780bd69 i2c: designware: use casting of u64 in clock multiplication to 
avoid overflow
b03f7ed9af6e scsi: ufs: core: Fix devfreq deadlocks
858d7e9218e1 net: mana: Fix IRQ name - add PCI and queue number
bff5243bd326 EDAC/qcom: Do not pass llcc_driv_data as 
edac_device_ctl_info's pvt_info
5eedf4568d34 EDAC/device: Respect any driver-supplied workqueue polling 
value
4b7dfd0a6811 ARM: 9280/1: mm: fix warning on phys_addr_t to void pointer 
assignment
7807871f28f8 ipv6: fix reachability confirmation with proxy_ndp
f9a22f6fa187 thermal: intel: int340x: Protect trip temperature from 
concurrent updates
036093c08d83 KVM: arm64: GICv4.1: Fix race with doorbell on VPE 
activation/deactivation
c56683c0623e KVM: x86/vmx: Do not skip segment attributes if unusable bit 
is set
e91308e63710 ovl: fail on invalid uid/gid mapping at copy up
33a9657d67a4 ksmbd: limit pdu length size according to connection status
8d83a758ee21 ksmbd: downgrade ndr version error message to debug
87a7f38a9058 ksmbd: do not sign response to session request for guest login
4210c3555db4 ksmbd: add max connections parameter
cc6742b160fa ksmbd: add smbd max io size parameter
3c8a5648a591 i2c: mv64xxx: Add atomic_xfer method to driver
e619ab4fb3e9 i2c: mv64xxx: Remove shutdown method from driver
4b83bc6f87ee cifs: Fix oops due to uncleared server->smbd_conn in reconnect
89042d3d8542 ftrace/scripts: Update the instructions for ftrace-bisect.sh
592ba7116fa6 trace_events_hist: add check for return value of 
'create_hist_field'
b0af180514ed tracing: Make sure trace_printk() can output as soon as it can 
be used
91135d723388 module: Don't wait for GOING modules
85ee9919add9 KVM: SVM: fix tsc scaling cache logic
f0227eca972c scsi: hpsa: Fix allocation size for scsi_host_alloc()
e5af9a458a13 drm/amdgpu: complete gfxoff allow signal during suspend 
without delay
62b9e9f92109 Bluetooth: hci_sync: cancel cmd_timer if hci_open failed
21998acd31fb exit: Use READ_ONCE() for all oops/warn limit reads
e82b1598eb2c docs: Fix path paste-o for /sys/kernel/warn_count
1c51698ad6f6 panic: Expose "warn_count" to sysfs
0691ddae56cd panic: Introduce warn_limit
7b98914a6c26 panic: Consolidate ope

[OE-core][langdale 03/28] linux-yocto/5.15: update to v5.15.89

2023-02-11 Thread Steve Sakoman
From: Bruce Ashfield 

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

3bcc86eb3ed9 Linux 5.15.89
37c18ef49ec3 pinctrl: amd: Add dynamic debugging for active GPIOs
a5841b81adfa Revert "usb: ulpi: defer ulpi_register on ulpi_read_id timeout"
7ec9a45fc4ee block: handle bio_split_to_limits() NULL return
ba86db02d408 io_uring/io-wq: only free worker if it was allocated for 
creation
bb135bcc9499 io_uring/io-wq: free worker if task_work creation is canceled
63c2fa09b856 scsi: mpt3sas: Remove scsi_dma_map() error messages
e2ea55564229 efi: fix NULL-deref in init error path
94b6cf84db42 arm64: cmpxchg_double*: hazard against entire exchange variable
3891fa4982b9 arm64: atomics: remove LL/SC trampolines
61e86339af2a arm64: atomics: format whitespace consistently
ed4629d1e968 io_uring: lock overflowing for IOPOLL
fbf501514182 KVM: x86: Do not return host topology information from 
KVM_GET_SUPPORTED_CPUID
ee16841134be Documentation: KVM: add API issues section
b8f3b3cffb4a mm: Always release pages to the buddy allocator in 
memblock_free_late().
d2dc110deabe platform/surface: aggregator: Add missing call to 
ssam_request_sync_free()
cfd5978411ed igc: Fix PPS delta between two synchronized end-points
0bf52601ced1 perf build: Properly guard libbpf includes
205f35eee7be net/mlx5e: Don't support encap rules with gbp option
0526fc9330fe net/mlx5: Fix ptp max frequency adjustment range
9e2c38827cdc net/sched: act_mpls: Fix warning during failed attribute 
validation
e3bb44beafde tools/nolibc: fix the O_* fcntl/open macro definitions for 
riscv
1e6ec75bb3b5 tools/nolibc: restore mips branch ordering in the _start block
bd0431a66c39 tools/nolibc: Remove .global _start from the entry point code
a77c54f5b50c tools/nolibc/arch: mark the _start symbol as weak
da51e086d154 tools/nolibc/arch: split arch-specific code into individual 
files
8591e788bea3 tools/nolibc/types: split syscall-specific definitions into 
their own files
4fceecdeaa8a tools/nolibc/std: move the standard type definitions to std.h
1792136f228e tools/nolibc: use pselect6 on RISCV
487386a49e01 tools/nolibc: x86-64: Use `mov $60,%eax` instead of `mov 
$60,%rax`
27af4f2260cd tools/nolibc: x86: Remove `r8`, `r9` and `r10` from the 
clobber list
a60b24192b1f af_unix: selftest: Fix the size of the parameter to connect()
39ae73e58111 nfc: pn533: Wait for out_urb's completion in 
pn533_usb_send_frame()
f6003784b1f6 hvc/xen: lock console list traversal
79c58b74244d octeontx2-af: Fix LMAC config in cgx_lmac_rx_tx_enable
303d06288122 tipc: fix unexpected link reset due to discovery messages
e79d0f97cc6e ALSA: usb-audio: Relax hw constraints for implicit fb sync
c9557906bd3b ALSA: usb-audio: Make sure to stop endpoints before closing EPs
83e758105bc8 ASoC: wm8904: fix wrong outputs volume after power reactivation
7c26d218729b scsi: ufs: core: WLUN suspend SSU/enter hibern8 fail recovery
513fdf0b8e20 scsi: ufs: Stop using the clock scaling lock in the error 
handler
13259b60b71b scsi: mpi3mr: Refer CONFIG_SCSI_MPI3MR in Makefile
470f6a9175f1 regulator: da9211: Use irq handler when ready
24107ad469df x86/resctrl: Fix task CLOSID/RMID update race
cd3da505fb35 EDAC/device: Fix period calculation in 
edac_device_reset_delay_period()
ab0d02c53a60 x86/boot: Avoid using Intel mnemonics in AT&T syntax asm
a90d339f1f66 powerpc/imc-pmu: Fix use of mutex in IRQs disabled section
511cf17b2447 netfilter: ipset: Fix overflow before widen in the 
bitmap_ip_create() function.
b22faa21b623 sched/core: Fix use-after-free bug in dup_user_cpus_ptr()
d766ccadbe85 iommu/mediatek-v1: Fix an error handling path in 
mtk_iommu_v1_probe()
c929a230c844 iommu/iova: Fix alloc iova overflows issue
4b51aa263ae4 usb: ulpi: defer ulpi_register on ulpi_read_id timeout
9a8bf443f6a2 bus: mhi: host: Fix race between channel preparation and M0 
event
456e3794e08a ipv6: raw: Deduct extension header length in 
rawv6_push_pending_frames
4c93422a54cd ixgbe: fix pci device refcount leak
e97da5d97a97 platform/x86: sony-laptop: Don't turn off 0x153 keyboard 
backlight during probe
f3b1e04daf86 dt-bindings: msm/dsi: Don't require vcca-supply on 14nm PHY
52a5f596c6cc dt-bindings: msm/dsi: Don't require vdds-supply on 10nm PHY
984ad875db80 drm/msm/dp: do not complete dp_aux_cmd_fifo_tx() if irq is not 
for aux transfer
92ae83665e9e platform/x86: ideapad-laptop: Add Legion 5 15ARH05 DMI id to 
set_fn_lock_led_list[]
e38b5f81dfa8 dt-bindings: msm: dsi-phy-28nm: Add missing qcom, 
dsi-phy-regulator-ldo-mode
bb32ab40cb7f dt-bindings: msm: dsi-controller-main: Fix description of core 
clock
3fb8d10beef9 dt-bindings: msm: dsi-controller-main: Fix power-domain 
constraint
dc5b651cad66 drm/msm/adreno: Make adreno quirks not overwrite each oth

[OE-core][langdale 02/28] git: upgrade to 2.37.5

2023-02-11 Thread Steve Sakoman
From: Chee Yang Lee 

upgrade include fix for CVE-2022-23521 and CVE-2022-41903

Signed-off-by: Chee Yang Lee 
Signed-off-by: Steve Sakoman 
---
 meta/recipes-devtools/git/{git_2.37.4.bb => git_2.37.5.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-devtools/git/{git_2.37.4.bb => git_2.37.5.bb} (98%)

diff --git a/meta/recipes-devtools/git/git_2.37.4.bb 
b/meta/recipes-devtools/git/git_2.37.5.bb
similarity index 98%
rename from meta/recipes-devtools/git/git_2.37.4.bb
rename to meta/recipes-devtools/git/git_2.37.5.bb
index 8342b38313..ea53cc41e4 100644
--- a/meta/recipes-devtools/git/git_2.37.4.bb
+++ b/meta/recipes-devtools/git/git_2.37.5.bb
@@ -167,4 +167,4 @@ EXTRA_OECONF += "ac_cv_snprintf_returns_bogus=no \
  "
 EXTRA_OEMAKE += "NO_GETTEXT=1"
 
-SRC_URI[tarball.sha256sum] = 
"a638c9bf9e45e8d48592076266adaa9b7aa272a99ee2aee2e166a649a9ba8a03"
+SRC_URI[tarball.sha256sum] = 
"5c11f90652afee6c77ef7ddfc672facd4bc6f2596d9627df2f1780664b058b9a"
-- 
2.34.1


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



[OE-core][langdale 01/28] git: ignore CVE-2022-41953

2023-02-11 Thread Steve Sakoman
From: Ross Burton 

This is specific to Git-for-Windows.

Signed-off-by: Ross Burton 
Signed-off-by: Richard Purdie 
(cherry picked from commit c8849af809e0213d43e18e5d01067eeeb61b330d)
Signed-off-by: Steve Sakoman 
---
 meta/recipes-devtools/git/git_2.37.4.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-devtools/git/git_2.37.4.bb 
b/meta/recipes-devtools/git/git_2.37.4.bb
index 2205a50d16..8342b38313 100644
--- a/meta/recipes-devtools/git/git_2.37.4.bb
+++ b/meta/recipes-devtools/git/git_2.37.4.bb
@@ -31,6 +31,8 @@ CVE_PRODUCT = "git-scm:git"
 # in mirrored git repos. Most OE users wouldn't build the docs and
 # we don't see this as a major issue for our general users/usecases.
 CVE_CHECK_IGNORE += "CVE-2022-24975"
+# This is specific to Git-for-Windows
+CVE_CHECK_IGNORE += "CVE-2022-41953"
 
 PACKAGECONFIG ??= "expat curl"
 PACKAGECONFIG[cvsserver] = ""
-- 
2.34.1


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



[OE-core][langdale 00/28] Patch review

2023-02-11 Thread Steve Sakoman
Please review this set of patches for langdale and have comments back by
end of day Tuesday.

Passed a-full on autobuilder:

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

The following changes since commit ab39d244cb844c9d183296945a095c17fdfef29e:

  Fix missing leading whitespace with ':append' (2023-01-31 13:15:53 -1000)

are available in the Git repository at:

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

Alejandro Hernandez Samaniego (1):
  testimage: Fix error message to reflect new syntax

Alexander Kanavin (3):
  vulkan-samples: branch rename master -> main
  gdk-pixbuf: do not use tools from gdk-pixbuf-native when building
tests
  oeqa/qemurunner: do not use Popen.poll() when terminating runqemu with
a signal

Arnout Vandecappelle (1):
  python3-pytest: depend on python3-tomli instead of python3-toml

Bruce Ashfield (2):
  linux-yocto/5.15: update to v5.15.89
  linux-yocto/5.15: update to v5.15.91

Changqing Li (1):
  apt: fix do_package_qa failure

Chee Yang Lee (1):
  git: upgrade to 2.37.5

Harald Seiler (1):
  bootchart2: Fix usrmerge support

Khem Raj (2):
  scons: Pass MAXLINELENGTH to scons invocation
  scons.bbclass: Make MAXLINELENGTH overridable

Louis Rannou (1):
  oeqa/selftest/locales: Add selftest for locale generation/presence

Martin Jansa (1):
  meta: remove True option to getVar and getVarFlag calls (again)

Mikko Rapeli (1):
  oeqa context.py: fix --target-ip comment to include ssh port number

Mingli Yu (1):
  glslang: branch rename master -> main

Pawel Zalewski (1):
  classes/fs-uuid: Fix command output decoding issue

Richard Purdie (4):
  kernel/linux-kernel-base: Fix kernel build artefact determinism issues
  make-mod-scripts: Ensure kernel build output is deterministic
  perf: Enable debug/source packaging
  libc-locale: Fix on target locale generation

Ross Burton (4):
  git: ignore CVE-2022-41953
  buildtools-tarball: set pkg-config search path
  sdkext/cases/devtool: pass a logger to HTTPService
  httpserver: add error handler that write to the logger

Tobias Hagelborn (1):
  sstate.bbclass: Fetch non-existing local .sig files if needed

Ulrich Ölmann (2):
  recipe_sanity: fix old override syntax
  lsof: fix old override syntax

 meta/classes-global/sstate.bbclass|   5 +-
 meta/classes-recipe/fs-uuid.bbclass   |   2 +-
 meta/classes-recipe/image.bbclass |   2 +-
 meta/classes-recipe/kernel.bbclass|   3 -
 meta/classes-recipe/libc-package.bbclass  |   1 +
 meta/classes-recipe/license_image.bbclass |   2 +-
 meta/classes-recipe/linux-kernel-base.bbclass |   4 +
 .../classes-recipe/rust-target-config.bbclass |   2 +-
 meta/classes-recipe/scons.bbclass |   8 +-
 meta/classes-recipe/testimage.bbclass |   2 +-
 meta/classes/recipe_sanity.bbclass|   2 +-
 meta/lib/oe/package_manager/deb/__init__.py   |   8 +-
 meta/lib/oeqa/runtime/context.py  |   4 +-
 meta/lib/oeqa/sdkext/cases/devtool.py |   2 +-
 meta/lib/oeqa/selftest/cases/locales.py   |  45 +
 meta/lib/oeqa/utils/httpserver.py |   6 +
 meta/lib/oeqa/utils/qemurunner.py |  11 +-
 meta/recipes-core/meta/buildtools-tarball.bb  |   3 +
 meta/recipes-devtools/apt/apt_2.4.5.bb|   1 +
 .../0001-bootchart2-support-usrmerge.patch|  37 
 .../bootchart2/bootchart2_0.14.9.bb   |  11 +-
 .../git/{git_2.37.4.bb => git_2.37.5.bb}  |   4 +-
 meta/recipes-devtools/go/go_1.19.4.bb |   4 +-
 .../python/python3-pytest_7.1.3.bb|   2 +-
 meta/recipes-devtools/rust/rust.inc   |  22 +--
 meta/recipes-extended/lsof/lsof_4.95.0.bb |   2 +-
 .../0001-Add-use_prebuilt_tools-option.patch  | 173 --
 ...w-a-subset-of-tests-in-cross-compile.patch |  66 +++
 .../gdk-pixbuf/gdk-pixbuf_2.42.10.bb  |  17 +-
 .../glslang/glslang_1.3.216.0.bb  |   2 +-
 .../vulkan/vulkan-samples_git.bb  |   2 +-
 .../linux/linux-yocto-rt_5.15.bb  |   6 +-
 .../linux/linux-yocto-tiny_5.15.bb|   6 +-
 meta/recipes-kernel/linux/linux-yocto_5.15.bb |  26 +--
 .../make-mod-scripts/make-mod-scripts_1.0.bb  |   2 +-
 meta/recipes-kernel/perf/perf.bb  |  14 +-
 scripts/contrib/image-manifest|   2 +-
 scripts/lib/devtool/menuconfig.py |   2 +-
 38 files changed, 216 insertions(+), 297 deletions(-)
 create mode 100644 meta/lib/oeqa/selftest/cases/locales.py
 delete mode 100644 
meta/recipes-devtools/bootchart2/bootchart2/0001-bootchart2-support-usrmerge.patch
 rename meta/recipes-devtools/git/{git_2.37.4.bb => git_2.37.5.bb} (97%)
 delete mode 100644 
meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf/0001-Add-use_prebuilt_tools-option.patch
 create mode 100644 
meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf/0001-meson.build-allow-a-subset-of-t

Re: [OE-core] [PATCH 1/2] rust-android-sparse: add lightweight simg2img/img2simg implementation

2023-02-11 Thread Alexander Kanavin
But is it necessary or desirable to have it in core? This does seem
like something that belongs in meta-oe rather.

Alex

On Sat, 11 Feb 2023 at 16:38, Dmitry Baryshkov  wrote:
>
> The Android's simg2img/img2simg comes from android-tools, which is a
> huge package with lots of dependencies on its own. It resides inside
> meta-oe rather than OE-Core. Add lightweight tool to handle sparse
> images, which is small enough to be pushed into OE-Core.
>
> Signed-off-by: Dmitry Baryshkov 
> ---
>  .../rust-android-sparse_0.6.0.bb  | 68 +++
>  1 file changed, 68 insertions(+)
>  create mode 100644 
> meta/recipes-extended/rust-android-sparse/rust-android-sparse_0.6.0.bb
>
> diff --git 
> a/meta/recipes-extended/rust-android-sparse/rust-android-sparse_0.6.0.bb 
> b/meta/recipes-extended/rust-android-sparse/rust-android-sparse_0.6.0.bb
> new file mode 100644
> index ..83652b9d452f
> --- /dev/null
> +++ b/meta/recipes-extended/rust-android-sparse/rust-android-sparse_0.6.0.bb
> @@ -0,0 +1,68 @@
> +# Auto-Generated by cargo-bitbake 0.3.16
> +#
> +inherit cargo
> +
> +# how to get android-sparse could be as easy as but default to a git 
> checkout:
> +SRC_URI += "crate://crates.io/android-sparse/0.6.0"
> +S= "${CARGO_VENDORING_DIRECTORY}/android-sparse-${PV}"
> +
> +# please note if you have entries that do not begin with crate://
> +# you must change them to how that package can be fetched
> +SRC_URI += " \
> +crate://crates.io/aho-corasick/0.7.18 \
> +crate://crates.io/assert_cmd/0.9.1 \
> +crate://crates.io/autocfg/1.0.1 \
> +crate://crates.io/bitflags/1.3.2 \
> +crate://crates.io/build_const/0.2.2 \
> +crate://crates.io/byteorder/1.4.3 \
> +crate://crates.io/cfg-if/1.0.0 \
> +crate://crates.io/clap/2.34.0 \
> +crate://crates.io/crc/1.8.1 \
> +crate://crates.io/difference/2.0.0 \
> +crate://crates.io/escargot/0.3.1 \
> +crate://crates.io/float-cmp/0.4.0 \
> +crate://crates.io/getrandom/0.2.3 \
> +crate://crates.io/itoa/0.4.8 \
> +crate://crates.io/libc/0.2.109 \
> +crate://crates.io/memchr/2.4.1 \
> +crate://crates.io/normalize-line-endings/0.2.2 \
> +crate://crates.io/num-traits/0.2.14 \
> +crate://crates.io/ppv-lite86/0.2.15 \
> +crate://crates.io/predicates-core/0.9.0 \
> +crate://crates.io/predicates-tree/0.9.0 \
> +crate://crates.io/predicates/0.9.1 \
> +crate://crates.io/proc-macro2/1.0.33 \
> +crate://crates.io/quote/1.0.10 \
> +crate://crates.io/rand/0.8.4 \
> +crate://crates.io/rand_core/0.6.3 \
> +crate://crates.io/rand_chacha/0.3.1 \
> +crate://crates.io/rand_hc/0.3.1 \
> +crate://crates.io/redox_syscall/0.2.10 \
> +crate://crates.io/regex-syntax/0.6.25 \
> +crate://crates.io/regex/1.5.4 \
> +crate://crates.io/remove_dir_all/0.5.3 \
> +crate://crates.io/ryu/1.0.6 \
> +crate://crates.io/serde/1.0.130 \
> +crate://crates.io/serde_derive/1.0.130 \
> +crate://crates.io/serde_json/1.0.72 \
> +crate://crates.io/syn/1.0.82 \
> +crate://crates.io/tempfile/3.2.0 \
> +crate://crates.io/textwrap/0.11.0 \
> +crate://crates.io/treeline/0.1.0 \
> +crate://crates.io/unicode-width/0.1.9 \
> +crate://crates.io/unicode-xid/0.2.2 \
> +crate://crates.io/wasi/0.10.2+wasi-snapshot-preview1 \
> +crate://crates.io/winapi-i686-pc-windows-gnu/0.4.0 \
> +crate://crates.io/winapi-x86_64-pc-windows-gnu/0.4.0 \
> +crate://crates.io/winapi/0.3.9 \
> +"
> +
> +LIC_FILES_CHKSUM = " \
> +file://LICENSE;md5=0ffe68749328daf57dd85d5ca6ee981f \
> +"
> +
> +SUMMARY = "An implementation of Android's sparse file format."
> +HOMEPAGE = "https://gitlab.com/ra_kete/android-sparse-rs";
> +LICENSE = "MIT"
> +
> +BBCLASSEXTEND += "native"
> --
> 2.30.2
>
>
> 
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#177009): 
https://lists.openembedded.org/g/openembedded-core/message/177009
Mute This Topic: https://lists.openembedded.org/mt/96898285/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] rust-android-sparse: add lightweight simg2img/img2simg implementation

2023-02-11 Thread Dmitry Baryshkov
The Android's simg2img/img2simg comes from android-tools, which is a
huge package with lots of dependencies on its own. It resides inside
meta-oe rather than OE-Core. Add lightweight tool to handle sparse
images, which is small enough to be pushed into OE-Core.

Signed-off-by: Dmitry Baryshkov 
---
 .../rust-android-sparse_0.6.0.bb  | 68 +++
 1 file changed, 68 insertions(+)
 create mode 100644 
meta/recipes-extended/rust-android-sparse/rust-android-sparse_0.6.0.bb

diff --git 
a/meta/recipes-extended/rust-android-sparse/rust-android-sparse_0.6.0.bb 
b/meta/recipes-extended/rust-android-sparse/rust-android-sparse_0.6.0.bb
new file mode 100644
index ..83652b9d452f
--- /dev/null
+++ b/meta/recipes-extended/rust-android-sparse/rust-android-sparse_0.6.0.bb
@@ -0,0 +1,68 @@
+# Auto-Generated by cargo-bitbake 0.3.16
+#
+inherit cargo
+
+# how to get android-sparse could be as easy as but default to a git checkout:
+SRC_URI += "crate://crates.io/android-sparse/0.6.0"
+S= "${CARGO_VENDORING_DIRECTORY}/android-sparse-${PV}"
+
+# please note if you have entries that do not begin with crate://
+# you must change them to how that package can be fetched
+SRC_URI += " \
+crate://crates.io/aho-corasick/0.7.18 \
+crate://crates.io/assert_cmd/0.9.1 \
+crate://crates.io/autocfg/1.0.1 \
+crate://crates.io/bitflags/1.3.2 \
+crate://crates.io/build_const/0.2.2 \
+crate://crates.io/byteorder/1.4.3 \
+crate://crates.io/cfg-if/1.0.0 \
+crate://crates.io/clap/2.34.0 \
+crate://crates.io/crc/1.8.1 \
+crate://crates.io/difference/2.0.0 \
+crate://crates.io/escargot/0.3.1 \
+crate://crates.io/float-cmp/0.4.0 \
+crate://crates.io/getrandom/0.2.3 \
+crate://crates.io/itoa/0.4.8 \
+crate://crates.io/libc/0.2.109 \
+crate://crates.io/memchr/2.4.1 \
+crate://crates.io/normalize-line-endings/0.2.2 \
+crate://crates.io/num-traits/0.2.14 \
+crate://crates.io/ppv-lite86/0.2.15 \
+crate://crates.io/predicates-core/0.9.0 \
+crate://crates.io/predicates-tree/0.9.0 \
+crate://crates.io/predicates/0.9.1 \
+crate://crates.io/proc-macro2/1.0.33 \
+crate://crates.io/quote/1.0.10 \
+crate://crates.io/rand/0.8.4 \
+crate://crates.io/rand_core/0.6.3 \
+crate://crates.io/rand_chacha/0.3.1 \
+crate://crates.io/rand_hc/0.3.1 \
+crate://crates.io/redox_syscall/0.2.10 \
+crate://crates.io/regex-syntax/0.6.25 \
+crate://crates.io/regex/1.5.4 \
+crate://crates.io/remove_dir_all/0.5.3 \
+crate://crates.io/ryu/1.0.6 \
+crate://crates.io/serde/1.0.130 \
+crate://crates.io/serde_derive/1.0.130 \
+crate://crates.io/serde_json/1.0.72 \
+crate://crates.io/syn/1.0.82 \
+crate://crates.io/tempfile/3.2.0 \
+crate://crates.io/textwrap/0.11.0 \
+crate://crates.io/treeline/0.1.0 \
+crate://crates.io/unicode-width/0.1.9 \
+crate://crates.io/unicode-xid/0.2.2 \
+crate://crates.io/wasi/0.10.2+wasi-snapshot-preview1 \
+crate://crates.io/winapi-i686-pc-windows-gnu/0.4.0 \
+crate://crates.io/winapi-x86_64-pc-windows-gnu/0.4.0 \
+crate://crates.io/winapi/0.3.9 \
+"
+
+LIC_FILES_CHKSUM = " \
+file://LICENSE;md5=0ffe68749328daf57dd85d5ca6ee981f \
+"
+
+SUMMARY = "An implementation of Android's sparse file format."
+HOMEPAGE = "https://gitlab.com/ra_kete/android-sparse-rs";
+LICENSE = "MIT"
+
+BBCLASSEXTEND += "native"
-- 
2.30.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#177007): 
https://lists.openembedded.org/g/openembedded-core/message/177007
Mute This Topic: https://lists.openembedded.org/mt/96898285/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] image_types.bbclass: add support for sparse images

2023-02-11 Thread Dmitry Baryshkov
Add Support for sparse conversion to be able to generate sparse images.

Signed-off-by: Dmitry Baryshkov 
---
 meta/classes-recipe/image_types.bbclass | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/classes-recipe/image_types.bbclass 
b/meta/classes-recipe/image_types.bbclass
index ae00728a74da..cf8cc27e87e7 100644
--- a/meta/classes-recipe/image_types.bbclass
+++ b/meta/classes-recipe/image_types.bbclass
@@ -308,7 +308,7 @@ IMAGE_TYPES:append:x86-64 = " hddimg iso"
 # CONVERSION_CMD/DEPENDS.
 COMPRESSIONTYPES ?= ""
 
-CONVERSIONTYPES = "gz bz2 lzma xz lz4 lzo zip 7zip zst sum md5sum sha1sum 
sha224sum sha256sum sha384sum sha512sum bmap u-boot vmdk vhd vhdx vdi qcow2 
base64 gzsync zsync ${COMPRESSIONTYPES}"
+CONVERSIONTYPES = "gz bz2 lzma xz lz4 lzo zip 7zip zst sum md5sum sha1sum 
sha224sum sha256sum sha384sum sha512sum bmap u-boot vmdk vhd vhdx vdi qcow2 
base64 gzsync zsync sparse ${COMPRESSIONTYPES}"
 CONVERSION_CMD:lzma = "lzma -k -f -7 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}"
 CONVERSION_CMD:gz = "gzip -f -9 -n -c --rsyncable 
${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} > 
${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.gz"
 CONVERSION_CMD:bz2 = "pbzip2 -f -k ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}"
@@ -335,6 +335,7 @@ CONVERSION_CMD:qcow2 = "qemu-img convert -O qcow2 
${IMAGE_NAME}${IMAGE_NAME_SUFF
 CONVERSION_CMD:base64 = "base64 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} > 
${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.base64"
 CONVERSION_CMD:zsync = "zsyncmake_curl 
${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}"
 CONVERSION_CMD:gzsync = "zsyncmake_curl -z 
${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}"
+CONVERSION_CMD:sparse = "img2simg -c ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} 
${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.sparse"
 CONVERSION_DEPENDS_lzma = "xz-native"
 CONVERSION_DEPENDS_gz = "pigz-native"
 CONVERSION_DEPENDS_bz2 = "pbzip2-native"
@@ -355,6 +356,7 @@ CONVERSION_DEPENDS_vhdx = "qemu-system-native"
 CONVERSION_DEPENDS_vhd = "qemu-system-native"
 CONVERSION_DEPENDS_zsync = "zsync-curl-native"
 CONVERSION_DEPENDS_gzsync = "zsync-curl-native"
+CONVERSION_DEPENDS_sparse = "rust-android-sparse-native"
 
 RUNNABLE_IMAGE_TYPES ?= "ext2 ext3 ext4"
 RUNNABLE_MACHINE_PATTERNS ?= "qemu"
-- 
2.30.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#177008): 
https://lists.openembedded.org/g/openembedded-core/message/177008
Mute This Topic: https://lists.openembedded.org/mt/96898286/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] linux-firmware: add yamato fw files to qcom-adreno-a2xx package

2023-02-11 Thread Dmitry Baryshkov
Newest linux-firmware release got firmware for Adreno A200. Add these
two files to the ${PN}-qcom-adreno-a2xx package. As these files are
licensed under a separate BSD-3-Clause license, add separate license
package too.

Signed-off-by: Dmitry Baryshkov 
---
 .../linux-firmware/linux-firmware_20230117.bb  | 14 ++
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/meta/recipes-kernel/linux-firmware/linux-firmware_20230117.bb 
b/meta/recipes-kernel/linux-firmware/linux-firmware_20230117.bb
index 9ae0b2be13e4..fa9e6f604b3f 100644
--- a/meta/recipes-kernel/linux-firmware/linux-firmware_20230117.bb
+++ b/meta/recipes-kernel/linux-firmware/linux-firmware_20230117.bb
@@ -45,6 +45,7 @@ LICENSE = "\
 & Firmware-phanfw \
 & Firmware-qat \
 & Firmware-qcom \
+& Firmware-qcom-yamato \
 & Firmware-qla1280 \
 & Firmware-qla2xxx \
 & Firmware-qualcommAthos_ar3k \
@@ -109,6 +110,7 @@ LIC_FILES_CHKSUM = 
"file://LICENCE.Abilis;md5=b5ee3f410780e56711ad48eadc22b8bc \
 file://LICENCE.phanfw;md5=954dcec0e051f9409812b561ea743bfa 
\
 
file://LICENCE.qat_firmware;md5=9e7d8bea77612d7cc7d9e9b54b623062 \
 file://LICENSE.qcom;md5=164e3362a538eb11d3ac51e8e134294b \
+
file://LICENSE.qcom_yamato;md5=d0de0eeccaf1843a850bf7a6777eec5c \
 
file://LICENCE.qla1280;md5=d6895732e622d950609093223a2c4f5d \
 
file://LICENCE.qla2xxx;md5=505855e921b75f1be4a437ad9b79dff0 \
 
file://LICENSE.QualcommAtheros_ar3k;md5=b5fe244fb2b532311de1472a3bc06da5 \
@@ -177,6 +179,7 @@ NO_GENERIC_LICENSE[Firmware-ath9k-htc] = 
"LICENCE.open-ath9k-htc-firmware"
 NO_GENERIC_LICENSE[Firmware-phanfw] = "LICENCE.phanfw"
 NO_GENERIC_LICENSE[Firmware-qat] = "LICENCE.qat_firmware"
 NO_GENERIC_LICENSE[Firmware-qcom] = "LICENSE.qcom"
+NO_GENERIC_LICENSE[Firmware-qcom-yamato] = "LICENSE.qcom_yamato"
 NO_GENERIC_LICENSE[Firmware-qla1280] = "LICENCE.qla1280"
 NO_GENERIC_LICENSE[Firmware-qla2xxx] = "LICENCE.qla2xxx"
 NO_GENERIC_LICENSE[Firmware-qualcommAthos_ar3k] = 
"LICENSE.QualcommAtheros_ar3k"
@@ -307,7 +310,7 @@ PACKAGES =+ "${PN}-ralink-license ${PN}-ralink \
  ${PN}-nvidia-gpu \
  ${PN}-netronome-license ${PN}-netronome \
  ${PN}-qat ${PN}-qat-license \
- ${PN}-qcom-license \
+ ${PN}-qcom-license ${PN}-qcom-yamato-license \
  ${PN}-qcom-venus-1.8 ${PN}-qcom-venus-4.2 ${PN}-qcom-venus-5.2 
${PN}-qcom-venus-5.4 \
  ${PN}-qcom-vpu-1.0 ${PN}-qcom-vpu-2.0 \
  ${PN}-qcom-adreno-a2xx ${PN}-qcom-adreno-a3xx 
${PN}-qcom-adreno-a4xx ${PN}-qcom-adreno-a530 \
@@ -983,13 +986,14 @@ RDEPENDS:${PN}-qat= "${PN}-qat-license"
 
 # For QCOM VPU/GPU and SDM845
 LICENSE:${PN}-qcom-license = "Firmware-qcom"
+LICENSE:${PN}-qcom-yamato-license = "Firmware-qcom-yamato"
 LICENSE:${PN}-qcom-venus-1.8 = "Firmware-qcom"
 LICENSE:${PN}-qcom-venus-4.2 = "Firmware-qcom"
 LICENSE:${PN}-qcom-venus-5.2 = "Firmware-qcom"
 LICENSE:${PN}-qcom-venus-5.4 = "Firmware-qcom"
 LICENSE:${PN}-qcom-vpu-1.0 = "Firmware-qcom"
 LICENSE:${PN}-qcom-vpu-2.0 = "Firmware-qcom"
-LICENSE:${PN}-qcom-adreno-a2xx = "Firmware-qcom"
+LICENSE:${PN}-qcom-adreno-a2xx = "Firmware-qcom Firmware-qcom-yamato"
 LICENSE:${PN}-qcom-adreno-a3xx = "Firmware-qcom"
 LICENSE:${PN}-qcom-adreno-a4xx = "Firmware-qcom"
 LICENSE:${PN}-qcom-adreno-a530 = "Firmware-qcom"
@@ -1009,13 +1013,14 @@ LICENSE:${PN}-qcom-sm8250-audio = "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"
+FILES:${PN}-qcom-yamato-license = 
"${nonarch_base_libdir}/firmware/LICENSE.qcom_yamato"
 FILES:${PN}-qcom-venus-1.8 = "${nonarch_base_libdir}/firmware/qcom/venus-1.8/*"
 FILES:${PN}-qcom-venus-4.2 = "${nonarch_base_libdir}/firmware/qcom/venus-4.2/*"
 FILES:${PN}-qcom-venus-5.2 = "${nonarch_base_libdir}/firmware/qcom/venus-5.2/*"
 FILES:${PN}-qcom-venus-5.4 = "${nonarch_base_libdir}/firmware/qcom/venus-5.4/*"
 FILES:${PN}-qcom-vpu-1.0 = "${nonarch_base_libdir}/firmware/qcom/vpu-1.0/*"
 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"
+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*.*"
@@ -1034,13 +1039,14 @@ FILES:${PN}-qcom-sdm845-compute = 
"${nonarch_base_libdir}/firmware/qcom/sdm845/c
 FILES:${PN}-qcom-sdm845-modem = 
"${nonarch

[OE-core] [PATCH 1/2] linux-firmware: properly set license for all Qualcomm firmware

2023-02-11 Thread Dmitry Baryshkov
It is not enough to depend on the ${PN}-qcom-license package. Set
LICENSE variable for all the qcom packages to point to the proper
license.

Signed-off-by: Dmitry Baryshkov 
---
 .../linux-firmware/linux-firmware_20230117.bb | 25 +++
 1 file changed, 25 insertions(+)

diff --git a/meta/recipes-kernel/linux-firmware/linux-firmware_20230117.bb 
b/meta/recipes-kernel/linux-firmware/linux-firmware_20230117.bb
index 1dce06c8f599..9ae0b2be13e4 100644
--- a/meta/recipes-kernel/linux-firmware/linux-firmware_20230117.bb
+++ b/meta/recipes-kernel/linux-firmware/linux-firmware_20230117.bb
@@ -983,6 +983,31 @@ RDEPENDS:${PN}-qat= "${PN}-qat-license"
 
 # For QCOM VPU/GPU and SDM845
 LICENSE:${PN}-qcom-license = "Firmware-qcom"
+LICENSE:${PN}-qcom-venus-1.8 = "Firmware-qcom"
+LICENSE:${PN}-qcom-venus-4.2 = "Firmware-qcom"
+LICENSE:${PN}-qcom-venus-5.2 = "Firmware-qcom"
+LICENSE:${PN}-qcom-venus-5.4 = "Firmware-qcom"
+LICENSE:${PN}-qcom-vpu-1.0 = "Firmware-qcom"
+LICENSE:${PN}-qcom-vpu-2.0 = "Firmware-qcom"
+LICENSE:${PN}-qcom-adreno-a2xx = "Firmware-qcom"
+LICENSE:${PN}-qcom-adreno-a3xx = "Firmware-qcom"
+LICENSE:${PN}-qcom-adreno-a4xx = "Firmware-qcom"
+LICENSE:${PN}-qcom-adreno-a530 = "Firmware-qcom"
+LICENSE:${PN}-qcom-adreno-a630 = "Firmware-qcom"
+LICENSE:${PN}-qcom-adreno-a650 = "Firmware-qcom"
+LICENSE:${PN}-qcom-adreno-a660 = "Firmware-qcom"
+LICENSE:${PN}-qcom-apq8096-audio = "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-compute = "Firmware-qcom"
+LICENSE:${PN}-qcom-sdm845-modem = "Firmware-qcom"
+LICENSE:${PN}-qcom-sm8250-audio = "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"
 FILES:${PN}-qcom-venus-1.8 = "${nonarch_base_libdir}/firmware/qcom/venus-1.8/*"
 FILES:${PN}-qcom-venus-4.2 = "${nonarch_base_libdir}/firmware/qcom/venus-4.2/*"
-- 
2.30.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#177005): 
https://lists.openembedded.org/g/openembedded-core/message/177005
Mute This Topic: https://lists.openembedded.org/mt/96898246/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] scons.bbclass: Make MAXLINELENGTH overridable

2023-02-11 Thread Steve Sakoman
On Fri, Feb 10, 2023 at 11:22 PM Martin Jansa  wrote:
>
> Steve,
>
> I've noticed that you have:
> b0ea91 scons: Pass MAXLINELENGTH to scons invocation
> in contrib/stable/kirkstone-nut, but not this follow-up fix.

Got it!

Thanks,

Steve

> On Thu, Feb 2, 2023 at 9:41 AM Khem Raj  wrote:
>>
>> older scons do not support MAXLINELENGTH and some packages still may be
>> using older scons, these recipes can clear SCONS_MAXLINELENGTH in them
>> and get going. Set
>>
>> SCONS_MAXLINELENGTH = ""
>>
>> in such recipes.
>>
>> Signed-off-by: Khem Raj 
>> Cc: Martin Jansa 
>> ---
>>  meta/classes-recipe/scons.bbclass | 9 +
>>  1 file changed, 5 insertions(+), 4 deletions(-)
>>
>> diff --git a/meta/classes-recipe/scons.bbclass 
>> b/meta/classes-recipe/scons.bbclass
>> index d510c12b9b..d20a78dc6e 100644
>> --- a/meta/classes-recipe/scons.bbclass
>> +++ b/meta/classes-recipe/scons.bbclass
>> @@ -10,11 +10,12 @@ DEPENDS += "python3-scons-native"
>>
>>  EXTRA_OESCONS ?= ""
>>  # This value below is derived from $(getconf ARG_MAX)
>> -SCONS_MAXLINELENGTH ?= "2097152"
>> +SCONS_MAXLINELENGTH ?= "MAXLINELENGTH=2097152"
>> +EXTRA_OESCONS:append = " ${SCONS_MAXLINELENGTH}"
>>  do_configure() {
>> if [ -n "${CONFIGURESTAMPFILE}" -a "${S}" = "${B}" ]; then
>> if [ -e "${CONFIGURESTAMPFILE}" -a "`cat 
>> ${CONFIGURESTAMPFILE}`" != "${BB_TASKHASH}" -a "${CLEANBROKEN}" != "1" ]; 
>> then
>> -   ${STAGING_BINDIR_NATIVE}/scons --directory=${S} 
>> --clean PREFIX=${prefix} MAXLINELENGTH=${SCONS_MAXLINELENGTH} 
>> prefix=${prefix} ${EXTRA_OESCONS}
>> +   ${STAGING_BINDIR_NATIVE}/scons --directory=${S} 
>> --clean PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS}
>> fi
>>
>> mkdir -p `dirname ${CONFIGURESTAMPFILE}`
>> @@ -23,12 +24,12 @@ do_configure() {
>>  }
>>
>>  scons_do_compile() {
>> -   ${STAGING_BINDIR_NATIVE}/scons --directory=${S} ${PARALLEL_MAKE} 
>> PREFIX=${prefix} prefix=${prefix} MAXLINELENGTH=${SCONS_MAXLINELENGTH} 
>> ${EXTRA_OESCONS} || \
>> +   ${STAGING_BINDIR_NATIVE}/scons --directory=${S} ${PARALLEL_MAKE} 
>> PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS} || \
>> die "scons build execution failed."
>>  }
>>
>>  scons_do_install() {
>> -   ${STAGING_BINDIR_NATIVE}/scons --directory=${S} 
>> install_root=${D}${prefix} PREFIX=${prefix} prefix=${prefix} 
>> MAXLINELENGTH=${SCONS_MAXLINELENGTH} ${EXTRA_OESCONS} install || \
>> +   ${STAGING_BINDIR_NATIVE}/scons --directory=${S} 
>> install_root=${D}${prefix} PREFIX=${prefix} prefix=${prefix} 
>> ${EXTRA_OESCONS} install || \
>> die "scons install execution failed."
>>  }
>>
>> --
>> 2.39.1
>>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#177004): 
https://lists.openembedded.org/g/openembedded-core/message/177004
Mute This Topic: https://lists.openembedded.org/mt/96696439/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] scons.bbclass: Make MAXLINELENGTH overridable

2023-02-11 Thread Martin Jansa
Steve,

I've noticed that you have:
b0ea91 scons: Pass MAXLINELENGTH to scons invocation
in contrib/stable/kirkstone-nut, but not this follow-up fix.

Please either take both of them or neither.

Cheers,

On Thu, Feb 2, 2023 at 9:41 AM Khem Raj  wrote:

> older scons do not support MAXLINELENGTH and some packages still may be
> using older scons, these recipes can clear SCONS_MAXLINELENGTH in them
> and get going. Set
>
> SCONS_MAXLINELENGTH = ""
>
> in such recipes.
>
> Signed-off-by: Khem Raj 
> Cc: Martin Jansa 
> ---
>  meta/classes-recipe/scons.bbclass | 9 +
>  1 file changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/meta/classes-recipe/scons.bbclass
> b/meta/classes-recipe/scons.bbclass
> index d510c12b9b..d20a78dc6e 100644
> --- a/meta/classes-recipe/scons.bbclass
> +++ b/meta/classes-recipe/scons.bbclass
> @@ -10,11 +10,12 @@ DEPENDS += "python3-scons-native"
>
>  EXTRA_OESCONS ?= ""
>  # This value below is derived from $(getconf ARG_MAX)
> -SCONS_MAXLINELENGTH ?= "2097152"
> +SCONS_MAXLINELENGTH ?= "MAXLINELENGTH=2097152"
> +EXTRA_OESCONS:append = " ${SCONS_MAXLINELENGTH}"
>  do_configure() {
> if [ -n "${CONFIGURESTAMPFILE}" -a "${S}" = "${B}" ]; then
> if [ -e "${CONFIGURESTAMPFILE}" -a "`cat
> ${CONFIGURESTAMPFILE}`" != "${BB_TASKHASH}" -a "${CLEANBROKEN}" != "1" ];
> then
> -   ${STAGING_BINDIR_NATIVE}/scons --directory=${S}
> --clean PREFIX=${prefix} MAXLINELENGTH=${SCONS_MAXLINELENGTH}
> prefix=${prefix} ${EXTRA_OESCONS}
> +   ${STAGING_BINDIR_NATIVE}/scons --directory=${S}
> --clean PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS}
> fi
>
> mkdir -p `dirname ${CONFIGURESTAMPFILE}`
> @@ -23,12 +24,12 @@ do_configure() {
>  }
>
>  scons_do_compile() {
> -   ${STAGING_BINDIR_NATIVE}/scons --directory=${S} ${PARALLEL_MAKE}
> PREFIX=${prefix} prefix=${prefix} MAXLINELENGTH=${SCONS_MAXLINELENGTH}
> ${EXTRA_OESCONS} || \
> +   ${STAGING_BINDIR_NATIVE}/scons --directory=${S} ${PARALLEL_MAKE}
> PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS} || \
> die "scons build execution failed."
>  }
>
>  scons_do_install() {
> -   ${STAGING_BINDIR_NATIVE}/scons --directory=${S}
> install_root=${D}${prefix} PREFIX=${prefix} prefix=${prefix}
> MAXLINELENGTH=${SCONS_MAXLINELENGTH} ${EXTRA_OESCONS} install || \
> +   ${STAGING_BINDIR_NATIVE}/scons --directory=${S}
> install_root=${D}${prefix} PREFIX=${prefix} prefix=${prefix}
> ${EXTRA_OESCONS} install || \
> die "scons install execution failed."
>  }
>
> --
> 2.39.1
>
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#177003): 
https://lists.openembedded.org/g/openembedded-core/message/177003
Mute This Topic: https://lists.openembedded.org/mt/96696439/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] graphene: disable neon support on arm 32bits

2023-02-11 Thread Richard Purdie
On Sat, 2023-02-11 at 09:26 +0100, Markus Volk wrote:
> From: Pablo Saavedra 
> 
> This disables neon support on arm devices only because it crashes otherwise.
> 
> Upstream-status: Reported [https://github.com/ebassi/graphene/issues/215]
> Signed-off-by: Khem Raj 
> ---
>  meta/recipes-graphics/graphene/graphene_1.10.8.bb | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/meta/recipes-graphics/graphene/graphene_1.10.8.bb 
> b/meta/recipes-graphics/graphene/graphene_1.10.8.bb
> index 813ff74adf..1bbe7ecca1 100644
> --- a/meta/recipes-graphics/graphene/graphene_1.10.8.bb
> +++ b/meta/recipes-graphics/graphene/graphene_1.10.8.bb
> @@ -17,6 +17,9 @@ GTKDOC_MESON_OPTION = "gtk_doc"
>  
>  EXTRA_OEMESON = "-Dinstalled_tests=false"
>  
> +# Disable ARM NEON support
> +EXTRA_OEMESON:append:arm = " -Darm_neon=false"
> +
>  FILES:${PN} += "${libdir}/graphene-1.0"
>  
>  BBCLASSEXTEND = "native nativesdk"

Can we tweak the comment to say why? Saying what it does isn't that
useful, saying why it does it helps to understand when it may be
removed in future. An example of how to crash it would be even better.
Was this just some some subset of 32 bit arm or all 32 bit arm?

Cheers,

Richard

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#177002): 
https://lists.openembedded.org/g/openembedded-core/message/177002
Mute This Topic: https://lists.openembedded.org/mt/96893757/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] graphene: disable neon support on arm 32bits

2023-02-11 Thread Markus Volk
This fix was recently added to meta-oe. Move the patch to oe-core, 
because graphene is needed here to build gtk4.

I also sent a patch to remove graphene from meta-oe.

Am Sa, 11. Feb 2023 um 09:26:09 +0100 schrieb Markus Volk 
:
From: Pablo Saavedra >


This disables neon support on arm devices only because it crashes 
otherwise.


Upstream-status: Reported 
[]
Signed-off-by: Khem Raj >

---
 meta/recipes-graphics/graphene/graphene_1.10.8.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/recipes-graphics/graphene/graphene_1.10.8.bb 
b/meta/recipes-graphics/graphene/graphene_1.10.8.bb

index 813ff74adf..1bbe7ecca1 100644
--- a/meta/recipes-graphics/graphene/graphene_1.10.8.bb
+++ b/meta/recipes-graphics/graphene/graphene_1.10.8.bb
@@ -17,6 +17,9 @@ GTKDOC_MESON_OPTION = "gtk_doc"

 EXTRA_OEMESON = "-Dinstalled_tests=false"

+# Disable ARM NEON support
+EXTRA_OEMESON:append:arm = " -Darm_neon=false"
+
 FILES:${PN} += "${libdir}/graphene-1.0"

 BBCLASSEXTEND = "native nativesdk"
--
2.34.1







-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#177001): 
https://lists.openembedded.org/g/openembedded-core/message/177001
Mute This Topic: https://lists.openembedded.org/mt/96893757/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] graphene: disable neon support on arm 32bits

2023-02-11 Thread Markus Volk
From: Pablo Saavedra 

This disables neon support on arm devices only because it crashes otherwise.

Upstream-status: Reported [https://github.com/ebassi/graphene/issues/215]
Signed-off-by: Khem Raj 
---
 meta/recipes-graphics/graphene/graphene_1.10.8.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/recipes-graphics/graphene/graphene_1.10.8.bb 
b/meta/recipes-graphics/graphene/graphene_1.10.8.bb
index 813ff74adf..1bbe7ecca1 100644
--- a/meta/recipes-graphics/graphene/graphene_1.10.8.bb
+++ b/meta/recipes-graphics/graphene/graphene_1.10.8.bb
@@ -17,6 +17,9 @@ GTKDOC_MESON_OPTION = "gtk_doc"
 
 EXTRA_OEMESON = "-Dinstalled_tests=false"
 
+# Disable ARM NEON support
+EXTRA_OEMESON:append:arm = " -Darm_neon=false"
+
 FILES:${PN} += "${libdir}/graphene-1.0"
 
 BBCLASSEXTEND = "native nativesdk"
-- 
2.34.1


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