[oe] [meta-oe][PATCH v2] lmsensors: fix building with GCC 14
GCC 14 is more strict regarding const pointers conversion. Fix conversion to let lmsensors build with GCC 14. Signed-off-by: Dmitry Baryshkov --- Changes since v1: - Submitted the patch upstream and changed the Upstream-Status tag. --- .../0001-Fix-building-with-GCC-14.patch | 36 +++ .../recipes-bsp/lm_sensors/lmsensors_3.6.0.bb | 1 + 2 files changed, 37 insertions(+) create mode 100644 meta-oe/recipes-bsp/lm_sensors/lmsensors/0001-Fix-building-with-GCC-14.patch diff --git a/meta-oe/recipes-bsp/lm_sensors/lmsensors/0001-Fix-building-with-GCC-14.patch b/meta-oe/recipes-bsp/lm_sensors/lmsensors/0001-Fix-building-with-GCC-14.patch new file mode 100644 index ..0ff8b3801b95 --- /dev/null +++ b/meta-oe/recipes-bsp/lm_sensors/lmsensors/0001-Fix-building-with-GCC-14.patch @@ -0,0 +1,36 @@ +From fd49cbcb7f3402e1a4a99b71b901a564060039b4 Mon Sep 17 00:00:00 2001 +From: Dmitry Baryshkov +Date: Fri, 24 May 2024 14:16:21 +0300 +Subject: [PATCH] Fix building with GCC 14 + +Signed-off-by: Dmitry Baryshkov +Upstream-Status: Submitted [https://github.com/lm-sensors/lm-sensors/pull/497] +--- + prog/sensord/rrd.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/prog/sensord/rrd.c b/prog/sensord/rrd.c +index a531362bddd5..36d685fce514 100644 +--- a/prog/sensord/rrd.c b/prog/sensord/rrd.c +@@ -299,7 +299,7 @@ int rrdInit(void) + argv[argc++] = rraBuff; + argv[argc] = NULL; + +- ret = rrd_create(argc, (char**) argv); ++ ret = rrd_create(argc, (const char**) argv); + if (ret == -1) { + sensorLog(LOG_ERR, "Error creating RRD file: %s: %s", + sensord_args.rrdFile, rrd_get_error()); +@@ -455,7 +455,7 @@ int rrdUpdate(void) + const char *argv[] = { + "sensord", sensord_args.rrdFile, rrdBuff, NULL + }; +- if ((ret = rrd_update(3, (char **) /* WEAK */ argv))) { ++ if ((ret = rrd_update(3, (const char **) /* WEAK */ argv))) { + sensorLog(LOG_ERR, "Error updating RRD file: %s: %s", + sensord_args.rrdFile, rrd_get_error()); + } +-- +2.39.2 + diff --git a/meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb b/meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb index f956224e1820..07027225c58b 100644 --- a/meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb +++ b/meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb @@ -14,6 +14,7 @@ SRC_URI = "git://github.com/lm-sensors/lm-sensors.git;protocol=https;branch=mast file://fancontrol.init \ file://sensord.init \ file://0001-Change-PIDFile-path-from-var-run-to-run.patch \ + file://0001-Fix-building-with-GCC-14.patch \ " SRCREV = "1667b850a1ce38151dae17156276f981be6fb557" -- 2.39.2 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#110527): https://lists.openembedded.org/g/openembedded-devel/message/110527 Mute This Topic: https://lists.openembedded.org/mt/106294826/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [meta-oe][PATCH] lmsensors: fix building with GCC 14
On Fri, May 24, 2024 at 7:10 AM Khem Raj wrote: > > On Fri, May 24, 2024 at 4:58 AM Dmitry Baryshkov via > lists.openembedded.org > wrote: > > > > GCC 14 is more strict regarding const pointers conversion. Fix > > conversion to let lmsensors build with GCC 14. Well it now fails with GCC14 itself so I wonder https://autobuilder.yoctoproject.org/typhoon/#/builders/88/builds/3879/steps/14/logs/stdio > > > > Signed-off-by: Dmitry Baryshkov > > --- > > .../0001-Fix-building-with-GCC-14.patch | 36 +++ > > .../recipes-bsp/lm_sensors/lmsensors_3.6.0.bb | 1 + > > 2 files changed, 37 insertions(+) > > create mode 100644 > > meta-oe/recipes-bsp/lm_sensors/lmsensors/0001-Fix-building-with-GCC-14.patch > > > > diff --git > > a/meta-oe/recipes-bsp/lm_sensors/lmsensors/0001-Fix-building-with-GCC-14.patch > > > > b/meta-oe/recipes-bsp/lm_sensors/lmsensors/0001-Fix-building-with-GCC-14.patch > > new file mode 100644 > > index ..73938e257708 > > --- /dev/null > > +++ > > b/meta-oe/recipes-bsp/lm_sensors/lmsensors/0001-Fix-building-with-GCC-14.patch > > @@ -0,0 +1,36 @@ > > +From fd49cbcb7f3402e1a4a99b71b901a564060039b4 Mon Sep 17 00:00:00 2001 > > +From: Dmitry Baryshkov > > +Date: Fri, 24 May 2024 14:16:21 +0300 > > +Subject: [PATCH] Fix building with GCC 14 > > + > > +Signed-off-by: Dmitry Baryshkov > > +Upstream-Status: Pending > > This is a good patch to submit upstream as well please open a PR at > https://github.com/lm-sensors/lm-sensors/pulls > > > +--- > > + prog/sensord/rrd.c | 4 ++-- > > + 1 file changed, 2 insertions(+), 2 deletions(-) > > + > > +diff --git a/prog/sensord/rrd.c b/prog/sensord/rrd.c > > +index a531362bddd5..36d685fce514 100644 > > +--- a/prog/sensord/rrd.c > > b/prog/sensord/rrd.c > > +@@ -299,7 +299,7 @@ int rrdInit(void) > > + argv[argc++] = rraBuff; > > + argv[argc] = NULL; > > + > > +- ret = rrd_create(argc, (char**) argv); > > ++ ret = rrd_create(argc, (const char**) argv); > > + if (ret == -1) { > > + sensorLog(LOG_ERR, "Error creating RRD file: %s: > > %s", > > + sensord_args.rrdFile, rrd_get_error()); > > +@@ -455,7 +455,7 @@ int rrdUpdate(void) > > + const char *argv[] = { > > + "sensord", sensord_args.rrdFile, rrdBuff, NULL > > + }; > > +- if ((ret = rrd_update(3, (char **) /* WEAK */ argv))) { > > ++ if ((ret = rrd_update(3, (const char **) /* WEAK */ argv))) > > { > > + sensorLog(LOG_ERR, "Error updating RRD file: %s: > > %s", > > + sensord_args.rrdFile, rrd_get_error()); > > + } > > +-- > > +2.39.2 > > + > > diff --git a/meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb > > b/meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb > > index f956224e1820..07027225c58b 100644 > > --- a/meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb > > +++ b/meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb > > @@ -14,6 +14,7 @@ SRC_URI = > > "git://github.com/lm-sensors/lm-sensors.git;protocol=https;branch=mast > > file://fancontrol.init \ > > file://sensord.init \ > > file://0001-Change-PIDFile-path-from-var-run-to-run.patch \ > > + file://0001-Fix-building-with-GCC-14.patch \ > > " > > SRCREV = "1667b850a1ce38151dae17156276f981be6fb557" > > > > -- > > 2.39.2 > > > > > > > > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#110526): https://lists.openembedded.org/g/openembedded-devel/message/110526 Mute This Topic: https://lists.openembedded.org/mt/106279990/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-oe][PATCH] liburing: Use libc on rv64/clang18
clang18 generates memset call which demands linking with libc Signed-off-by: Khem Raj --- meta-oe/recipes-support/liburing/liburing_2.6.bb | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/meta-oe/recipes-support/liburing/liburing_2.6.bb b/meta-oe/recipes-support/liburing/liburing_2.6.bb index b892ce4ac2..fc3fe1cac1 100644 --- a/meta-oe/recipes-support/liburing/liburing_2.6.bb +++ b/meta-oe/recipes-support/liburing/liburing_2.6.bb @@ -18,9 +18,14 @@ DEPENDS:append:libc-musl = " libucontext" XCFLAGS = "-pthread" XCFLAGS:append:libc-musl = " -lucontext" +USELIBC = "" +# clang-18 on RV64 emits memset for arch/riscv64/syscall.h provided __do_syscall4 macro +# this does not happen for gcc or older clang, so link with libc since we need memset API +# -fno-builtin-memset does not help +USELIBC:riscv64:toolchain-clang = "--use-libc" EXTRA_OEMAKE = "'CC=${CC}' 'RANLIB=${RANLIB}' 'AR=${AR}' 'CFLAGS=${CFLAGS} -I${S}/include -DWITHOUT_XATTR' 'LDFLAGS=${LDFLAGS}' 'XCFLAGS=${XCFLAGS}' 'BUILDDIR=${S}'" do_configure() { -${S}/configure --prefix=${prefix} --libdir=${libdir} --libdevdir=${libdir} --mandir=${mandir} --datadir=${datadir} --includedir=${includedir} +${S}/configure --prefix=${prefix} --libdir=${libdir} --libdevdir=${libdir} --mandir=${mandir} --datadir=${datadir} --includedir=${includedir} ${USELIBC} } do_install () { oe_runmake install DESTDIR=${D} -- 2.45.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#110525): https://lists.openembedded.org/g/openembedded-devel/message/110525 Mute This Topic: https://lists.openembedded.org/mt/106289699/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-oe][PATCH] libwebsockets: remove STAGING_LIBDIR with /
* after buildpath warnings fix from: https://git.openembedded.org/meta-openembedded/commit/?id=eeef1fddd9052bed4b1a91565260518eb042fed2 the LibwebsocketsTargets.cmake ends with: INTERFACE_LINK_LIBRARIES "ssl;crypto;ssl;crypto;/libcap.so;-lpthread" instead of: INTERFACE_LINK_LIBRARIES "ssl;crypto;ssl;crypto;/OE/build/.../libwebsockets/4.3.3/lib32-recipe-sysroot/usr/lib/libcap.so;-lpthread" which causes e.g. mosquitto to fail in do_compile with: ninja: error: '/libcap.so', needed by 'src/mosquitto', missing and no known rule to make it * this happens only when libwebsocket is built with libcap enabled (by libcap in DEPENDS) Signed-off-by: Martin Jansa --- .../recipes-connectivity/libwebsockets/libwebsockets_4.3.3.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.3.3.bb b/meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.3.3.bb index 8f8b70421c..3170d37f5b 100644 --- a/meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.3.3.bb +++ b/meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.3.3.bb @@ -42,8 +42,8 @@ do_install:append() { sed -i -e 's|${STAGING_LIBDIR}/libuv.so|uv|g' ${D}${libdir}/cmake/libwebsockets/LibwebsocketsTargets.cmake sed -i -e 's|${STAGING_INCDIR}||g' ${D}${libdir}/cmake/libwebsockets/LibwebsocketsTargets.cmake \ ${D}${libdir}/cmake/libwebsockets/libwebsockets-config.cmake -sed -i -e 's|${STAGING_LIBDIR}||g' ${D}${libdir}/cmake/libwebsockets/LibwebsocketsTargets.cmake \ - ${D}${libdir}/cmake/libwebsockets/libwebsockets-config.cmake +sed -i -e 's|${STAGING_LIBDIR}/||g' ${D}${libdir}/cmake/libwebsockets/LibwebsocketsTargets.cmake \ + ${D}${libdir}/cmake/libwebsockets/libwebsockets-config.cmake } PACKAGES =+ "${PN}-testapps ${PN}-evlib-event ${PN}-evlib-uv ${PN}-evlib-ev ${PN}-evlib-sd" -- 2.45.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#110524): https://lists.openembedded.org/g/openembedded-devel/message/110524 Mute This Topic: https://lists.openembedded.org/mt/106286777/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [meta-oe][PATCH] libwebsockets: fix buildpath warnings
This breaks libcap dependency when libwebsocket is built with libcap in DEPENDS. mosquitto fails with: ninja: error: '/libcap.so', needed by 'src/mosquitto', missing and no known rule to make it because this change caused this diff: +++ 4.3.3/image/usr/lib/cmake/libwebsockets/LibwebsocketsTargets.cmake 2024-05-24 20:16:49.448901228 +0200 @@ -69,7 +69,7 @@ set_target_properties(websockets_shared PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;" - INTERFACE_LINK_LIBRARIES "ssl;crypto;ssl;crypto;/OE/lge/build/starfish/styhead/BUILD/work/o22-webosmllib32-linux-gnueabi/lib32-libwebsockets/4.3.3/lib32-recipe-sysroot/usr/lib/libcap.so;-lpthread" + INTERFACE_LINK_LIBRARIES "ssl;crypto;ssl;crypto;/libcap.so;-lpthread" ) if(CMAKE_VERSION VERSION_LESS 2.8.12) I don't see libz there, but /libcap.so is surely wrong, removing the / fixes the mosquitto build for me (I'm not using it, it just started to fail in world builds now), will send the fix shortly. On Thu, May 16, 2024 at 6:30 PM Gerard Salvatella via lists.openembedded.org wrote: > > From: Gerard Salvatella > > In order to remove absolute paths from the cmake artifacts, paths from > the `$lib` folder should also be stripped off, otherwise internally > linked libraries (e.g. libz) may appear. > --- > .../recipes-connectivity/libwebsockets/libwebsockets_4.3.3.bb | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git > a/meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.3.3.bb > b/meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.3.3.bb > index 4518e2faa..8f8b70421 100644 > --- a/meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.3.3.bb > +++ b/meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.3.3.bb > @@ -42,6 +42,8 @@ do_install:append() { > sed -i -e 's|${STAGING_LIBDIR}/libuv.so|uv|g' > ${D}${libdir}/cmake/libwebsockets/LibwebsocketsTargets.cmake > sed -i -e 's|${STAGING_INCDIR}||g' > ${D}${libdir}/cmake/libwebsockets/LibwebsocketsTargets.cmake \ > > ${D}${libdir}/cmake/libwebsockets/libwebsockets-config.cmake > +sed -i -e 's|${STAGING_LIBDIR}||g' > ${D}${libdir}/cmake/libwebsockets/LibwebsocketsTargets.cmake \ > + > ${D}${libdir}/cmake/libwebsockets/libwebsockets-config.cmake > } > > PACKAGES =+ "${PN}-testapps ${PN}-evlib-event ${PN}-evlib-uv ${PN}-evlib-ev > ${PN}-evlib-sd" > -- > 2.44.0 > > > > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#110523): https://lists.openembedded.org/g/openembedded-devel/message/110523 Mute This Topic: https://lists.openembedded.org/mt/106138059/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 4/4] python3-requests-mock: new recipe
Mocked responses for the requests library --- .../python/python3-requests-mock_1.12.1.bb | 9 + 1 file changed, 9 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-requests-mock_1.12.1.bb diff --git a/meta-python/recipes-devtools/python/python3-requests-mock_1.12.1.bb b/meta-python/recipes-devtools/python/python3-requests-mock_1.12.1.bb new file mode 100644 index 0..248526b00 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-requests-mock_1.12.1.bb @@ -0,0 +1,9 @@ +SUMMARY = "Mocked responses for the requests library" +HOMEPAGE = "https://github.com/jamielennox/requests-mock; +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=3b2eea41aec0f2973a45e1e45f28aa32" + +DEPENDS = "python3-setuptools-scm-native" +SRC_URI[sha256sum] = "e9e12e333b525156e82a3c852f22016b9158220d2f47454de9cae8a77d371401" + +inherit pypi python_setuptools_build_meta -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#110522): https://lists.openembedded.org/g/openembedded-devel/message/110522 Mute This Topic: https://lists.openembedded.org/mt/106286043/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 3/4] python3-pytest-unordered: new recipe
pytest plugin to Test equality of unordered sequences --- .../python/python3-pytest-unordered_0.6.0.bb | 12 1 file changed, 12 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-pytest-unordered_0.6.0.bb diff --git a/meta-python/recipes-devtools/python/python3-pytest-unordered_0.6.0.bb b/meta-python/recipes-devtools/python/python3-pytest-unordered_0.6.0.bb new file mode 100644 index 0..bf1420cf9 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pytest-unordered_0.6.0.bb @@ -0,0 +1,12 @@ +SUMMARY = "Test equality of unordered collections in pytest" +HOMEPAGE = "https://github.com/utapyngo/pytest-unordered; +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=fcd3af2d38a4d4dfd5138c6f163dbe2e" + +SRC_URI[sha256sum] = "f61b4f6e06a60a92db50968954efac93e2f584290a49f53ad135e3f32f57e02a" + +inherit pypi setuptools3 + +RDEPENDS:${PN} += "python3-pytest" + +BBCLASSEXTEND = "native nativesdk" -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#110521): https://lists.openembedded.org/g/openembedded-devel/message/110521 Mute This Topic: https://lists.openembedded.org/mt/106286041/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 2/4] python3-pytest-socket: new recipe
Pytest Plugin to disable socket calls during tests --- .../python/python3-pytest-socket_0.7.0.bb | 14 ++ 1 file changed, 14 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-pytest-socket_0.7.0.bb diff --git a/meta-python/recipes-devtools/python/python3-pytest-socket_0.7.0.bb b/meta-python/recipes-devtools/python/python3-pytest-socket_0.7.0.bb new file mode 100644 index 0..86b03724a --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pytest-socket_0.7.0.bb @@ -0,0 +1,14 @@ +SUMMARY = "Pytest Plugin to disable socket calls during tests" +HOMEPAGE = "https://github.com/miketheman/pytest-socket; +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=1752f63a3a8a02fed42e580e9b94a081" + +SRC_URI[sha256sum] = "71ab048cbbcb085c15a4423b73b619a8b35d6a307f46f78ea46be51b1b7e11b3" + +inherit pypi python_poetry_core + +RDEPENDS:${PN} = "python3-pytest" + +BBCLASSEXTEND = "native nativesdk" + +PYPI_PACKAGE = "pytest_socket" -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#110520): https://lists.openembedded.org/g/openembedded-devel/message/110520 Mute This Topic: https://lists.openembedded.org/mt/106286039/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [meta-oe][PATCH] libcamera: update to 0.3.0
On Fri, 24 May 2024 at 20:40, Khem Raj wrote: > > fails to patch, I have to evict the whole CI pipeline, > https://errors.yoctoproject.org/Errors/Details/772780/ Hmm, true. It makes me wonder how I tested it... > > On Fri, May 24, 2024 at 4:59 AM Dmitry Baryshkov via > lists.openembedded.org > wrote: > > > > Upgrade libcamera to version 0.3.0, gaining support for SoftISP. > > > > Signed-off-by: Dmitry Baryshkov > > --- > > .../libcamera/{libcamera_0.2.0.bb => libcamera_0.3.0.bb}| 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > rename meta-multimedia/recipes-multimedia/libcamera/{libcamera_0.2.0.bb => > > libcamera_0.3.0.bb} (97%) > > > > diff --git > > a/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.2.0.bb > > b/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.3.0.bb > > similarity index 97% > > rename from meta-multimedia/recipes-multimedia/libcamera/libcamera_0.2.0.bb > > rename to meta-multimedia/recipes-multimedia/libcamera/libcamera_0.3.0.bb > > index 45d6be31ec95..11dd2ba56910 100644 > > --- a/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.2.0.bb > > +++ b/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.3.0.bb > > @@ -16,7 +16,7 @@ SRC_URI = " \ > > file://0001-ipu3-Use-posix-basename.patch \ > > " > > > > -SRCREV = "89227a428a82e724548399d35c98ea89566f9045" > > +SRCREV = "aee16c06913422a0ac84ee3217f87a9795e3c2d9" > > > > PE = "1" > > > > -- > > 2.39.2 > > > > > > > > -- With best wishes Dmitry -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#110519): https://lists.openembedded.org/g/openembedded-devel/message/110519 Mute This Topic: https://lists.openembedded.org/mt/106279998/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 1/4] python3-pytest-freezer: new recipe
Pytest plugin providing a fixture interface for spulec/freezegun --- .../python/python3-pytest-freezer_0.4.8.bb| 15 +++ 1 file changed, 15 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-pytest-freezer_0.4.8.bb diff --git a/meta-python/recipes-devtools/python/python3-pytest-freezer_0.4.8.bb b/meta-python/recipes-devtools/python/python3-pytest-freezer_0.4.8.bb new file mode 100644 index 0..6ff69a396 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pytest-freezer_0.4.8.bb @@ -0,0 +1,15 @@ +SUMMARY = "Pytest plugin providing a fixture interface for spulec/freezegun" +HOMEPAGE = "https://github.com/pytest-dev/pytest-freezer; +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=1661a0f2b9b83ed73b8e05b5683b10d0" + +SRC_URI[sha256sum] = "8ee2f724b3ff3540523fa355958a22e6f4c1c819928b78a7a183ae4248ce6ee6" + +inherit pypi python_flit_core + +RDEPENDS:${PN} = "\ +python3-freezegun (>=1.0) \ +python3-pytest (>=3.6) \ +" + +PYPI_PACKAGE = "pytest_freezer" -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#110518): https://lists.openembedded.org/g/openembedded-devel/message/110518 Mute This Topic: https://lists.openembedded.org/mt/106286037/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [meta-oe][PATCH] libcamera: update to 0.3.0
fails to patch, I have to evict the whole CI pipeline, https://errors.yoctoproject.org/Errors/Details/772780/ On Fri, May 24, 2024 at 4:59 AM Dmitry Baryshkov via lists.openembedded.org wrote: > > Upgrade libcamera to version 0.3.0, gaining support for SoftISP. > > Signed-off-by: Dmitry Baryshkov > --- > .../libcamera/{libcamera_0.2.0.bb => libcamera_0.3.0.bb}| 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > rename meta-multimedia/recipes-multimedia/libcamera/{libcamera_0.2.0.bb => > libcamera_0.3.0.bb} (97%) > > diff --git a/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.2.0.bb > b/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.3.0.bb > similarity index 97% > rename from meta-multimedia/recipes-multimedia/libcamera/libcamera_0.2.0.bb > rename to meta-multimedia/recipes-multimedia/libcamera/libcamera_0.3.0.bb > index 45d6be31ec95..11dd2ba56910 100644 > --- a/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.2.0.bb > +++ b/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.3.0.bb > @@ -16,7 +16,7 @@ SRC_URI = " \ > file://0001-ipu3-Use-posix-basename.patch \ > " > > -SRCREV = "89227a428a82e724548399d35c98ea89566f9045" > +SRCREV = "aee16c06913422a0ac84ee3217f87a9795e3c2d9" > > PE = "1" > > -- > 2.39.2 > > > > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#110517): https://lists.openembedded.org/g/openembedded-devel/message/110517 Mute This Topic: https://lists.openembedded.org/mt/106279998/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [meta-oe][PATCH 1/2] android-tools: fix building with GCC 14
On Fri, 24 May 2024 at 20:34, Khem Raj wrote: > > On Fri, May 24, 2024 at 4:57 AM Dmitry Baryshkov via > lists.openembedded.org > wrote: > > > > libstdc++ in GCC 14 has dropped several nested includes. Include the > > header to fix build error: > > > > system/core/fs_mgr/liblp/utility.cpp: In function 'bool > > android::fs_mgr::UpdateMetadataForInPlaceSnapshot(LpMetadata*, uint32_t, > > uint32_t)': > > system/core/fs_mgr/liblp/utility.cpp:264:28: error: no matching function > > for call to 'find(std::vector::iterator, > > std::vector::iterator, > > __gnu_cxx::__alloc_traits, > > LpMetadataPartitionGroup>::value_type*)' > > 264 | auto it = std::find(new_group_ptrs.begin(), > > new_group_ptrs.end(), > > | > > ~^~ > > 265 | > > >groups[partition.group_index]); > > | > > ~ > > > > Signed-off-by: Dmitry Baryshkov > > --- > > .../0001-liblp-fix-building-with-GCC-14.patch | 26 +++ > > .../android-tools/android-tools_29.0.6.r14.bb | 1 + > > 2 files changed, 27 insertions(+) > > create mode 100644 > > meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/0001-liblp-fix-building-with-GCC-14.patch > > > > diff --git > > a/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/0001-liblp-fix-building-with-GCC-14.patch > > > > b/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/0001-liblp-fix-building-with-GCC-14.patch > > new file mode 100644 > > index ..ccd289c81ba9 > > --- /dev/null > > +++ > > b/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/0001-liblp-fix-building-with-GCC-14.patch > > @@ -0,0 +1,26 @@ > > +From 9f4d839847666019cadf57aa34fd366801c11a44 Mon Sep 17 00:00:00 2001 > > +From: Dmitry Baryshkov > > +Date: Fri, 24 May 2024 14:13:35 +0300 > > +Subject: [PATCH] liblp: fix building with GCC 14 > > + > > +Upstream-Status: Pending > > This is worth upstreaming. I'll see what can be done, but no promises with AOSP. > > > +Signed-off-by: Dmitry Baryshkov > > +--- -- With best wishes Dmitry -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#110516): https://lists.openembedded.org/g/openembedded-devel/message/110516 Mute This Topic: https://lists.openembedded.org/mt/106279982/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [meta-oe][PATCH 1/2] android-tools: fix building with GCC 14
On Fri, May 24, 2024 at 4:57 AM Dmitry Baryshkov via lists.openembedded.org wrote: > > libstdc++ in GCC 14 has dropped several nested includes. Include the > header to fix build error: > > system/core/fs_mgr/liblp/utility.cpp: In function 'bool > android::fs_mgr::UpdateMetadataForInPlaceSnapshot(LpMetadata*, uint32_t, > uint32_t)': > system/core/fs_mgr/liblp/utility.cpp:264:28: error: no matching function for > call to 'find(std::vector::iterator, > std::vector::iterator, > __gnu_cxx::__alloc_traits, > LpMetadataPartitionGroup>::value_type*)' > 264 | auto it = std::find(new_group_ptrs.begin(), > new_group_ptrs.end(), > | > ~^~ > 265 | >groups[partition.group_index]); > | ~ > > Signed-off-by: Dmitry Baryshkov > --- > .../0001-liblp-fix-building-with-GCC-14.patch | 26 +++ > .../android-tools/android-tools_29.0.6.r14.bb | 1 + > 2 files changed, 27 insertions(+) > create mode 100644 > meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/0001-liblp-fix-building-with-GCC-14.patch > > diff --git > a/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/0001-liblp-fix-building-with-GCC-14.patch > > b/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/0001-liblp-fix-building-with-GCC-14.patch > new file mode 100644 > index ..ccd289c81ba9 > --- /dev/null > +++ > b/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/0001-liblp-fix-building-with-GCC-14.patch > @@ -0,0 +1,26 @@ > +From 9f4d839847666019cadf57aa34fd366801c11a44 Mon Sep 17 00:00:00 2001 > +From: Dmitry Baryshkov > +Date: Fri, 24 May 2024 14:13:35 +0300 > +Subject: [PATCH] liblp: fix building with GCC 14 > + > +Upstream-Status: Pending This is worth upstreaming. > +Signed-off-by: Dmitry Baryshkov > +--- > + system/core/fs_mgr/liblp/utility.cpp | 1 + > + 1 file changed, 1 insertion(+) > + > +diff --git a/system/core/fs_mgr/liblp/utility.cpp > b/system/core/fs_mgr/liblp/utility.cpp > +index 48c5c8318d99..0aa8023aa87d 100644 > +--- a/system/core/fs_mgr/liblp/utility.cpp > b/system/core/fs_mgr/liblp/utility.cpp > +@@ -24,6 +24,7 @@ > + #include > + #endif > + > ++#include > + #include > + #include > + #include > +-- > +2.39.2 > + > diff --git > a/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools_29.0.6.r14.bb > > b/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools_29.0.6.r14.bb > index f63b5c04b364..176107f2a7e2 100644 > --- > a/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools_29.0.6.r14.bb > +++ > b/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools_29.0.6.r14.bb > @@ -52,6 +52,7 @@ SRC_URI += " \ > file://0003-Update-usage-of-usbdevfs_urb-to-match-new-kernel-UAP.patch \ > file://0004-adb-Fix-build-on-big-endian-systems.patch \ > file://0005-adb-Allow-adbd-to-be-run-as-root.patch \ > +file://0001-liblp-fix-building-with-GCC-14.patch \ > " > > S = "${WORKDIR}/git" > -- > 2.39.2 > > > > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#110515): https://lists.openembedded.org/g/openembedded-devel/message/110515 Mute This Topic: https://lists.openembedded.org/mt/106279982/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [meta-oe][PATCH] lmsensors: fix building with GCC 14
On Fri, May 24, 2024 at 4:58 AM Dmitry Baryshkov via lists.openembedded.org wrote: > > GCC 14 is more strict regarding const pointers conversion. Fix > conversion to let lmsensors build with GCC 14. > > Signed-off-by: Dmitry Baryshkov > --- > .../0001-Fix-building-with-GCC-14.patch | 36 +++ > .../recipes-bsp/lm_sensors/lmsensors_3.6.0.bb | 1 + > 2 files changed, 37 insertions(+) > create mode 100644 > meta-oe/recipes-bsp/lm_sensors/lmsensors/0001-Fix-building-with-GCC-14.patch > > diff --git > a/meta-oe/recipes-bsp/lm_sensors/lmsensors/0001-Fix-building-with-GCC-14.patch > > b/meta-oe/recipes-bsp/lm_sensors/lmsensors/0001-Fix-building-with-GCC-14.patch > new file mode 100644 > index ..73938e257708 > --- /dev/null > +++ > b/meta-oe/recipes-bsp/lm_sensors/lmsensors/0001-Fix-building-with-GCC-14.patch > @@ -0,0 +1,36 @@ > +From fd49cbcb7f3402e1a4a99b71b901a564060039b4 Mon Sep 17 00:00:00 2001 > +From: Dmitry Baryshkov > +Date: Fri, 24 May 2024 14:16:21 +0300 > +Subject: [PATCH] Fix building with GCC 14 > + > +Signed-off-by: Dmitry Baryshkov > +Upstream-Status: Pending This is a good patch to submit upstream as well please open a PR at https://github.com/lm-sensors/lm-sensors/pulls > +--- > + prog/sensord/rrd.c | 4 ++-- > + 1 file changed, 2 insertions(+), 2 deletions(-) > + > +diff --git a/prog/sensord/rrd.c b/prog/sensord/rrd.c > +index a531362bddd5..36d685fce514 100644 > +--- a/prog/sensord/rrd.c > b/prog/sensord/rrd.c > +@@ -299,7 +299,7 @@ int rrdInit(void) > + argv[argc++] = rraBuff; > + argv[argc] = NULL; > + > +- ret = rrd_create(argc, (char**) argv); > ++ ret = rrd_create(argc, (const char**) argv); > + if (ret == -1) { > + sensorLog(LOG_ERR, "Error creating RRD file: %s: %s", > + sensord_args.rrdFile, rrd_get_error()); > +@@ -455,7 +455,7 @@ int rrdUpdate(void) > + const char *argv[] = { > + "sensord", sensord_args.rrdFile, rrdBuff, NULL > + }; > +- if ((ret = rrd_update(3, (char **) /* WEAK */ argv))) { > ++ if ((ret = rrd_update(3, (const char **) /* WEAK */ argv))) { > + sensorLog(LOG_ERR, "Error updating RRD file: %s: %s", > + sensord_args.rrdFile, rrd_get_error()); > + } > +-- > +2.39.2 > + > diff --git a/meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb > b/meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb > index f956224e1820..07027225c58b 100644 > --- a/meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb > +++ b/meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb > @@ -14,6 +14,7 @@ SRC_URI = > "git://github.com/lm-sensors/lm-sensors.git;protocol=https;branch=mast > file://fancontrol.init \ > file://sensord.init \ > file://0001-Change-PIDFile-path-from-var-run-to-run.patch \ > + file://0001-Fix-building-with-GCC-14.patch \ > " > SRCREV = "1667b850a1ce38151dae17156276f981be6fb557" > > -- > 2.39.2 > > > > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#110514): https://lists.openembedded.org/g/openembedded-devel/message/110514 Mute This Topic: https://lists.openembedded.org/mt/106279990/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-oe][PATCH] libcamera: update to 0.3.0
Upgrade libcamera to version 0.3.0, gaining support for SoftISP. Signed-off-by: Dmitry Baryshkov --- .../libcamera/{libcamera_0.2.0.bb => libcamera_0.3.0.bb}| 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta-multimedia/recipes-multimedia/libcamera/{libcamera_0.2.0.bb => libcamera_0.3.0.bb} (97%) diff --git a/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.2.0.bb b/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.3.0.bb similarity index 97% rename from meta-multimedia/recipes-multimedia/libcamera/libcamera_0.2.0.bb rename to meta-multimedia/recipes-multimedia/libcamera/libcamera_0.3.0.bb index 45d6be31ec95..11dd2ba56910 100644 --- a/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.2.0.bb +++ b/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.3.0.bb @@ -16,7 +16,7 @@ SRC_URI = " \ file://0001-ipu3-Use-posix-basename.patch \ " -SRCREV = "89227a428a82e724548399d35c98ea89566f9045" +SRCREV = "aee16c06913422a0ac84ee3217f87a9795e3c2d9" PE = "1" -- 2.39.2 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#110513): https://lists.openembedded.org/g/openembedded-devel/message/110513 Mute This Topic: https://lists.openembedded.org/mt/106279998/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-oe][PATCH] lmsensors: fix building with GCC 14
GCC 14 is more strict regarding const pointers conversion. Fix conversion to let lmsensors build with GCC 14. Signed-off-by: Dmitry Baryshkov --- .../0001-Fix-building-with-GCC-14.patch | 36 +++ .../recipes-bsp/lm_sensors/lmsensors_3.6.0.bb | 1 + 2 files changed, 37 insertions(+) create mode 100644 meta-oe/recipes-bsp/lm_sensors/lmsensors/0001-Fix-building-with-GCC-14.patch diff --git a/meta-oe/recipes-bsp/lm_sensors/lmsensors/0001-Fix-building-with-GCC-14.patch b/meta-oe/recipes-bsp/lm_sensors/lmsensors/0001-Fix-building-with-GCC-14.patch new file mode 100644 index ..73938e257708 --- /dev/null +++ b/meta-oe/recipes-bsp/lm_sensors/lmsensors/0001-Fix-building-with-GCC-14.patch @@ -0,0 +1,36 @@ +From fd49cbcb7f3402e1a4a99b71b901a564060039b4 Mon Sep 17 00:00:00 2001 +From: Dmitry Baryshkov +Date: Fri, 24 May 2024 14:16:21 +0300 +Subject: [PATCH] Fix building with GCC 14 + +Signed-off-by: Dmitry Baryshkov +Upstream-Status: Pending +--- + prog/sensord/rrd.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/prog/sensord/rrd.c b/prog/sensord/rrd.c +index a531362bddd5..36d685fce514 100644 +--- a/prog/sensord/rrd.c b/prog/sensord/rrd.c +@@ -299,7 +299,7 @@ int rrdInit(void) + argv[argc++] = rraBuff; + argv[argc] = NULL; + +- ret = rrd_create(argc, (char**) argv); ++ ret = rrd_create(argc, (const char**) argv); + if (ret == -1) { + sensorLog(LOG_ERR, "Error creating RRD file: %s: %s", + sensord_args.rrdFile, rrd_get_error()); +@@ -455,7 +455,7 @@ int rrdUpdate(void) + const char *argv[] = { + "sensord", sensord_args.rrdFile, rrdBuff, NULL + }; +- if ((ret = rrd_update(3, (char **) /* WEAK */ argv))) { ++ if ((ret = rrd_update(3, (const char **) /* WEAK */ argv))) { + sensorLog(LOG_ERR, "Error updating RRD file: %s: %s", + sensord_args.rrdFile, rrd_get_error()); + } +-- +2.39.2 + diff --git a/meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb b/meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb index f956224e1820..07027225c58b 100644 --- a/meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb +++ b/meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb @@ -14,6 +14,7 @@ SRC_URI = "git://github.com/lm-sensors/lm-sensors.git;protocol=https;branch=mast file://fancontrol.init \ file://sensord.init \ file://0001-Change-PIDFile-path-from-var-run-to-run.patch \ + file://0001-Fix-building-with-GCC-14.patch \ " SRCREV = "1667b850a1ce38151dae17156276f981be6fb557" -- 2.39.2 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#110512): https://lists.openembedded.org/g/openembedded-devel/message/110512 Mute This Topic: https://lists.openembedded.org/mt/106279990/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-oe][PATCH 2/2] android-tools: fix UNPACKDIR conversion leftovers
With the intruction of the UNPACKDIR the remount script is placed in the UNPACKDIR and not in S. Signed-off-by: Dmitry Baryshkov --- .../recipes-devtool/android-tools/android-tools_29.0.6.r14.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools_29.0.6.r14.bb b/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools_29.0.6.r14.bb index 176107f2a7e2..456c7400ef22 100644 --- a/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools_29.0.6.r14.bb +++ b/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools_29.0.6.r14.bb @@ -139,7 +139,7 @@ do_compile() { do_install() { install -d ${D}${base_sbindir} -install -m 0755 ${S}/../remount -D ${D}${base_sbindir}/remount +install -m 0755 ${UNPACKDIR}/remount -D ${D}${base_sbindir}/remount for tool in img2simg simg2img fastboot adbd; do if echo ${TOOLS_TO_BUILD} | grep -q "$tool" ; then -- 2.39.2 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#110511): https://lists.openembedded.org/g/openembedded-devel/message/110511 Mute This Topic: https://lists.openembedded.org/mt/106279983/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-oe][PATCH 1/2] android-tools: fix building with GCC 14
libstdc++ in GCC 14 has dropped several nested includes. Include the header to fix build error: system/core/fs_mgr/liblp/utility.cpp: In function 'bool android::fs_mgr::UpdateMetadataForInPlaceSnapshot(LpMetadata*, uint32_t, uint32_t)': system/core/fs_mgr/liblp/utility.cpp:264:28: error: no matching function for call to 'find(std::vector::iterator, std::vector::iterator, __gnu_cxx::__alloc_traits, LpMetadataPartitionGroup>::value_type*)' 264 | auto it = std::find(new_group_ptrs.begin(), new_group_ptrs.end(), | ~^~ 265 | >groups[partition.group_index]); | ~ Signed-off-by: Dmitry Baryshkov --- .../0001-liblp-fix-building-with-GCC-14.patch | 26 +++ .../android-tools/android-tools_29.0.6.r14.bb | 1 + 2 files changed, 27 insertions(+) create mode 100644 meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/0001-liblp-fix-building-with-GCC-14.patch diff --git a/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/0001-liblp-fix-building-with-GCC-14.patch b/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/0001-liblp-fix-building-with-GCC-14.patch new file mode 100644 index ..ccd289c81ba9 --- /dev/null +++ b/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/0001-liblp-fix-building-with-GCC-14.patch @@ -0,0 +1,26 @@ +From 9f4d839847666019cadf57aa34fd366801c11a44 Mon Sep 17 00:00:00 2001 +From: Dmitry Baryshkov +Date: Fri, 24 May 2024 14:13:35 +0300 +Subject: [PATCH] liblp: fix building with GCC 14 + +Upstream-Status: Pending +Signed-off-by: Dmitry Baryshkov +--- + system/core/fs_mgr/liblp/utility.cpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/system/core/fs_mgr/liblp/utility.cpp b/system/core/fs_mgr/liblp/utility.cpp +index 48c5c8318d99..0aa8023aa87d 100644 +--- a/system/core/fs_mgr/liblp/utility.cpp b/system/core/fs_mgr/liblp/utility.cpp +@@ -24,6 +24,7 @@ + #include + #endif + ++#include + #include + #include + #include +-- +2.39.2 + diff --git a/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools_29.0.6.r14.bb b/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools_29.0.6.r14.bb index f63b5c04b364..176107f2a7e2 100644 --- a/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools_29.0.6.r14.bb +++ b/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools_29.0.6.r14.bb @@ -52,6 +52,7 @@ SRC_URI += " \ file://0003-Update-usage-of-usbdevfs_urb-to-match-new-kernel-UAP.patch \ file://0004-adb-Fix-build-on-big-endian-systems.patch \ file://0005-adb-Allow-adbd-to-be-run-as-root.patch \ +file://0001-liblp-fix-building-with-GCC-14.patch \ " S = "${WORKDIR}/git" -- 2.39.2 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#110510): https://lists.openembedded.org/g/openembedded-devel/message/110510 Mute This Topic: https://lists.openembedded.org/mt/106279982/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] Build systems MC at LPC 2024, Vienna - CFP open!
In the Linux ecosystem, there are many ways to build all the software used to put together a running system. Whether it’s building all the binary packages for a binary Linux distribution, using a source-based distribution, or building an embedded system from scratch, there are a lot of shared challenges which each system solves in its own way. In the inagural Build Systems people talked about [1]: * Providing provenance of build artifacts * Checking for UAPI changes between builds * Managing Linux kernels for products * Tracking patches used in a build * Building for hardware that requires building multiple sets of firmware This microconference is a way to get people who work on disparate build systems to discuss common problems and possible shared solutions across the entire problem space. The kinds of topics we want to discuss are the following: * Bootstrapping the build system * Cross building software * Make, autoconf, and other similar software build tools * Package build systems, bitbake, emerge/portage, pacman, etc * Packaging formats * Managing software with language-specific package managers * Patch sharing * Building within a container * Build systems for building containers * License gathering and verification * Security updates * SBOMS * Software chain-of-trust * Repeatable builds * Extremely long product life cycle support * Documentation and education * Finding the next generation of maintainers * Build-system visibility within the wider Plumbers attendees. This is not a definitive list, and you are free to post abstracts for other related topics. Build Systems microconference would like to gather representatives (developers and maintainers) from all the various build systems and related technologies. This is not a definitive list of possible attendees. * Android * Arch Linux * Buildroot * ChromeOS * Debian * Fedora/Redhat * Gentoo * OpenEmbedded * OpenWRT/LEDE * Yocto Project * Other traditional Binary Packaged distributions The CFP closes on July 5 and plan to have the schedule complete by July 19. Please help us (and the plumbers organziers) by submitting topics early. For more information, feel free to contact the MC Leads: Philip Balister Josef Holzmayr Please follow the suggestions from this BLOG post when submitting a CFP for this track. [2] Submissions are made via LPC submission system, selecting Track “Build Systems MC” [3] [1] https://lpc.events/event/17/sessions/159/#20231114 [2] https://lpc.events/blog/current/index.php/2023/06/26/the-ideal-microconference-topic-session/ [3] https://lpc.events/event/18/abstracts/ -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#110509): https://lists.openembedded.org/g/openembedded-devel/message/110509 Mute This Topic: https://lists.openembedded.org/mt/106279864/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-oe][kirkstone][PATCH] nss: Backport fix CVE-2023-0767
Upstream-Status: Backport from [https://hg.mozilla.org/projects/nss/rev/684586ec163ad4fbbf15ea2cd1ee5c2da43036ad] Signed-off-by: Vivek Kumbhar --- .../nss/nss/CVE-2023-0767.patch | 102 ++ meta-oe/recipes-support/nss/nss_3.74.bb | 1 + 2 files changed, 103 insertions(+) create mode 100644 meta-oe/recipes-support/nss/nss/CVE-2023-0767.patch diff --git a/meta-oe/recipes-support/nss/nss/CVE-2023-0767.patch b/meta-oe/recipes-support/nss/nss/CVE-2023-0767.patch new file mode 100644 index 00..0e0725b5f5 --- /dev/null +++ b/meta-oe/recipes-support/nss/nss/CVE-2023-0767.patch @@ -0,0 +1,102 @@ +# HG changeset patch +# User John M. Schanck +# Date 1675974326 0 +# Node ID 684586ec163ad4fbbf15ea2cd1ee5c2da43036ad +# Parent 58d7a8a55aea6a363bb8c7a9a7752739c4d32823 +Bug 1804640 - improve handling of unknown PKCS#12 safe bag types. r=rrelyea + +Differential Revision: https://phabricator.services.mozilla.com/D167443 + +Upstream-Status: Backport [https://hg.mozilla.org/projects/nss/rev/684586ec163ad4fbbf15ea2cd1ee5c2da43036ad] +CVE: CVE-2023-0767 +Signed-off-by: Vivek Kumbhar +--- + nss/lib/pkcs12/p12d.c| 23 +++ + nss/lib/pkcs12/p12t.h| 1 + + nss/lib/pkcs12/p12tmpl.c | 4 ++-- + 3 files changed, 18 insertions(+), 10 deletions(-) + +diff --git a/nss/lib/pkcs12/p12d.c b/nss/lib/pkcs12/p12d.c +index 676f33b..decddc5 100644 +--- a/nss/lib/pkcs12/p12d.c b/nss/lib/pkcs12/p12d.c +@@ -337,31 +337,38 @@ sec_pkcs12_decoder_safe_bag_update(void *arg, const char *data, + SEC_PKCS12DecoderContext *p12dcx; + SECStatus rv; + +-/* make sure that we are not skipping the current safeBag, +- * and that there are no errors. If so, just return rather +- * than continuing to process. +- */ +-if (!safeContentsCtx || !safeContentsCtx->p12dcx || +-safeContentsCtx->p12dcx->error || safeContentsCtx->skipCurrentSafeBag) { ++if (!safeContentsCtx || !safeContentsCtx->p12dcx || !safeContentsCtx->currentSafeBagA1Dcx) { + return; + } + p12dcx = safeContentsCtx->p12dcx; + ++/* make sure that there are no errors and we are not skipping the current safeBag */ ++if (p12dcx->error || safeContentsCtx->skipCurrentSafeBag) { ++goto loser; ++} ++ + rv = SEC_ASN1DecoderUpdate(safeContentsCtx->currentSafeBagA1Dcx, data, len); + if (rv != SECSuccess) { + p12dcx->errorValue = PORT_GetError(); ++p12dcx->error = PR_TRUE; ++goto loser; ++} ++ ++/* The update may have set safeContentsCtx->skipCurrentSafeBag, and we ++ * may not get another opportunity to clean up the decoder context. ++ */ ++if (safeContentsCtx->skipCurrentSafeBag) { + goto loser; + } + + return; + + loser: +-/* set the error, and finish the decoder context. because there ++/* Finish the decoder context. Because there + * is not a way of returning an error message, it may be worth + * while to do a check higher up and finish any decoding contexts + * that are still open. + */ +-p12dcx->error = PR_TRUE; + SEC_ASN1DecoderFinish(safeContentsCtx->currentSafeBagA1Dcx); + safeContentsCtx->currentSafeBagA1Dcx = NULL; + return; +diff --git a/nss/lib/pkcs12/p12t.h b/nss/lib/pkcs12/p12t.h +index b22f0dd..d449afd 100644 +--- a/nss/lib/pkcs12/p12t.h b/nss/lib/pkcs12/p12t.h +@@ -73,6 +73,7 @@ struct sec_PKCS12SafeBagStr { + sec_PKCS12CRLBag *crlBag; + sec_PKCS12SecretBag *secretBag; + sec_PKCS12SafeContents *safeContents; ++SECItem *unknownBag; + } safeBagContent; + + sec_PKCS12Attribute **attribs; +diff --git a/nss/lib/pkcs12/p12tmpl.c b/nss/lib/pkcs12/p12tmpl.c +index 7437cbc..b08384f 100644 +--- a/nss/lib/pkcs12/p12tmpl.c b/nss/lib/pkcs12/p12tmpl.c +@@ -30,12 +30,12 @@ sec_pkcs12_choose_safe_bag_type(void *src_or_dest, PRBool encoding) + + oiddata = SECOID_FindOID(>safeBagType); + if (oiddata == NULL) { +-return SEC_ASN1_GET(SEC_AnyTemplate); ++return SEC_ASN1_GET(SEC_PointerToAnyTemplate); + } + + switch (oiddata->offset) { + default: +-theTemplate = SEC_ASN1_GET(SEC_AnyTemplate); ++theTemplate = SEC_ASN1_GET(SEC_PointerToAnyTemplate); + break; + case SEC_OID_PKCS12_V1_KEY_BAG_ID: + theTemplate = SEC_ASN1_GET(SECKEY_PointerToPrivateKeyInfoTemplate); +-- +2.34.1 diff --git a/meta-oe/recipes-support/nss/nss_3.74.bb b/meta-oe/recipes-support/nss/nss_3.74.bb index 26baf669d1..ce4137a67f 100644 --- a/meta-oe/recipes-support/nss/nss_3.74.bb +++ b/meta-oe/recipes-support/nss/nss_3.74.bb @@ -34,6 +34,7 @@ SRC_URI = "http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${VERSIO file://0001-freebl-add-a-configure-option-to-disable-ARM-HW-cryp.patch \ file://0001-Bug-1780432-CVE-2023-5388-Timing-attack-against-RSA-.patch;patchdir=nss \
[oe] [meta-oe][PATCH] hddtemp: Fix reproducibility in fr locale
hddtemp po files lack the Language header and it is derived from Language-Team header. This process fails for FR and DE locals and an empty default is used... but reproducibility test has shown that sometime it succeeds[0]. Fix this non-reproducibility by forcing the Language header to the correct value. [0]: https://autobuilder.yoctoproject.org/typhoon/#/builders/155/builds/23/steps/32/logs/stdio https://autobuilder.yocto.io/pub/repro-fail-openembedded/meta-oe/oe-reproducible-20240503-9c4hilsr/packages (no nice HTML diffoscope output) Signed-off-by: Yoann Congal Reviewed-by: Alexandre Truong --- ...Language-header-for-fr-and-de-locals.patch | 46 +++ .../hddtemp/hddtemp_0.3-beta15.bb | 1 + 2 files changed, 47 insertions(+) create mode 100644 meta-oe/recipes-support/hddtemp/hddtemp/0001-po-force-Language-header-for-fr-and-de-locals.patch diff --git a/meta-oe/recipes-support/hddtemp/hddtemp/0001-po-force-Language-header-for-fr-and-de-locals.patch b/meta-oe/recipes-support/hddtemp/hddtemp/0001-po-force-Language-header-for-fr-and-de-locals.patch new file mode 100644 index 00..38f5c88997 --- /dev/null +++ b/meta-oe/recipes-support/hddtemp/hddtemp/0001-po-force-Language-header-for-fr-and-de-locals.patch @@ -0,0 +1,46 @@ +From 04149f9ec9b37b5bb4c2b6c38d4560b2c122c483 Mon Sep 17 00:00:00 2001 +From: Yoann Congal +Date: Thu, 23 May 2024 23:28:42 +0200 +Subject: [PATCH] po: force Language: header for "fr" and "de" locals + +Language: header is "new" and used to be derived from Language-Team +header. But, for fr.po and de.po, Language can't be derived. + +Force "Language" header to avoid having a default Language header. + +Upstream-Status: Inactive-Upstream [lastrelease: 26-Apr-2006] +See: http://download.savannah.nongnu.org/releases/hddtemp/?C=M=D + +Signed-off-by: Yoann Congal +--- + po/de.po | 1 + + po/fr.po | 1 + + 2 files changed, 2 insertions(+) + +diff --git a/po/de.po b/po/de.po +index 3b79e08..d04976b 100644 +--- a/po/de.po b/po/de.po +@@ -13,6 +13,7 @@ msgstr "" + "PO-Revision-Date: 2011-08-30 16:40+0200\n" + "Last-Translator: Vinzenz Vietzke \n" + "Language-Team: \n" ++"Language: de\n" + "MIME-Version: 1.0\n" + "Content-Type: text/plain; charset=UTF-8\n" + "Content-Transfer-Encoding: 8bit" +diff --git a/po/fr.po b/po/fr.po +index 2fd97c5..0b3bf19 100644 +--- a/po/fr.po b/po/fr.po +@@ -12,6 +12,7 @@ msgstr "" + "PO-Revision-Date: 2011-08-30 16:38+0200\n" + "Last-Translator: Aurelien Jarno \n" + "Language-Team: FRANCAIS \n" ++"Language: fr\n" + "MIME-Version: 1.0\n" + "Content-Type: text/plain; charset=ISO-8859-1\n" + "Content-Transfer-Encoding: 8bit\n" +-- +2.39.2 + diff --git a/meta-oe/recipes-support/hddtemp/hddtemp_0.3-beta15.bb b/meta-oe/recipes-support/hddtemp/hddtemp_0.3-beta15.bb index b204ea4dd6..9f0d8aabcf 100644 --- a/meta-oe/recipes-support/hddtemp/hddtemp_0.3-beta15.bb +++ b/meta-oe/recipes-support/hddtemp/hddtemp_0.3-beta15.bb @@ -10,6 +10,7 @@ SRC_URI = "${SAVANNAH_NONGNU_MIRROR}/hddtemp/hddtemp-0.3-beta15.tar.bz2 \ file://0001-backtrace-Replace-struct-ucontext-with-ucontext_t.patch \ file://0001-configure.ac-Rename-to-configure.ac-and-use-external.patch \ file://0001-sata.c-Declare-ata_get_powermode-prototype.patch \ + file://0001-po-force-Language-header-for-fr-and-de-locals.patch \ file://hddtemp.db \ file://init \ " -- 2.39.2 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#110507): https://lists.openembedded.org/g/openembedded-devel/message/110507 Mute This Topic: https://lists.openembedded.org/mt/106277708/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-