Skip to contentSkip to conversation

backports from master

PATCH Superseded Peter Marko 2 participants 8 messages Jun 16, 2024

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover backports from master

Some backports I'm interested in to have already in LTS.
All applied without conflicts.
The last one was is not merged yet is it was submitted only couple minutes ago.

Bartosz Golaszewski (1):
libgpiod: update to v2.1.2

Gerard Salvatella (1):
libwebsockets: fix buildpath warnings

Martin Jansa (1):
libwebsockets: remove STAGING_LIBDIR with /

Peter Marko (2):
re2: remove dev dependencies from main package
re2: rework solibs handling

Wang Mingyu (1):
uriparser: upgrade 0.9.7 -> 0.9.8

 .../libwebsockets/libwebsockets_4.3.3.bb                  | 2 ++
 .../libgpiod/{libgpiod_2.1.1.bb => libgpiod_2.1.2.bb}     | 2 +-
 meta-oe/recipes-support/re2/re2_2024.03.01.bb             | 8 +++-----
 .../uriparser/{uriparser_0.9.7.bb => uriparser_0.9.8.bb}  | 2 +-
 4 files changed, 7 insertions(+), 7 deletions(-)
 rename meta-oe/recipes-support/libgpiod/{libgpiod_2.1.1.bb => libgpiod_2.1.2.bb} (93%)
 rename meta-oe/recipes-support/uriparser/{uriparser_0.9.7.bb => uriparser_0.9.8.bb} (84%)
Signature · 1 line
2.30.2
#1 lore raw

PATCH 1/6 libgpiod: update to v2.1.2

From: Bartosz Golaszewski <[email protected]>

From: Bartosz Golaszewski <[email protected]>

This is a small bugfix release that fixes a build issue with slibtool (not relevant to meta-oe ATM), makes the licensing of C++ bindings less restrictive and preemptively fixes an issue that will be triggered with linux v6.9 when running gpio-tools ptest suite.

---
 .../libgpiod/{libgpiod_2.1.1.bb => libgpiod_2.1.2.bb}           | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-oe/recipes-support/libgpiod/{libgpiod_2.1.1.bb => libgpiod_2.1.2.bb} (93%)
meta-oe/recipes-support/libgpiod/libgpiod_2.1.2.bb renamed from meta-oe/recipes-support/libgpiod/libgpiod_2.1.1.bb +1 -1
similarity index 93%
rename from meta-oe/recipes-support/libgpiod/libgpiod_2.1.1.bb
rename to meta-oe/recipes-support/libgpiod/libgpiod_2.1.2.bb
index 4c13d67eba..6e4fbd2a3b 100644
@@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = " \
 
 FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-2.x:"
 
-SRC_URI[sha256sum] = "b21913f469d3135680d5516f00fdf9f81d5e564e19ffb690927ea7f1d7e312cb"
+SRC_URI[sha256sum] = "7a148a5a7d1c97a1abb40474b9a392b6edd7a42fe077dfd7ff42cfba24308548"
 
 # Enable all project features for ptest
 PACKAGECONFIG[tests] = "--enable-tests --enable-tools --enable-bindings-cxx --enable-gpioset-interactive,--disable-tests,kmod util-linux glib-2.0 catch2 libedit"
Signature · 1 line
2.30.2
#2 lore raw

PATCH 2/6 uriparser: upgrade 0.9.7 -> 0.9.8

In reply to Peter Marko

From: Wang Mingyu <[email protected]>

From: Wang Mingyu <[email protected]>

Changelog:
===========
* Protect against integer overflow in ComposeQueryEngine
* Protect against integer overflow in ComposeQueryMallocExMm
* Require CMake >=3.5.0
* CMake option URIPARSER_SHARED_LIBS=(ON|OFF) to control, whether to produce a shared or static library for uriparser and that alone, falls back to standard BUILD_SHARED_LIBS if available, else defaults to "ON"
* Document that scheme-based normalization a la section 6.2.3 of RFC 3986 is a responsibility of the application using uriparser
* Document supported code points for functions uriEscape(Ex)W
* Update Clang from 15 to 18
* Adapt to breaking changes in Clang packaging
* Get sanitizer CFLAGS and LDFLAGS back in sync
* Pin GitHub Actions to specific commits for security

---
 .../uriparser/{uriparser_0.9.7.bb => uriparser_0.9.8.bb}        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-oe/recipes-support/uriparser/{uriparser_0.9.7.bb => uriparser_0.9.8.bb} (84%)
meta-oe/recipes-support/uriparser/uriparser_0.9.8.bb renamed from meta-oe/recipes-support/uriparser/uriparser_0.9.7.bb +1 -1
similarity index 84%
rename from meta-oe/recipes-support/uriparser/uriparser_0.9.7.bb
rename to meta-oe/recipes-support/uriparser/uriparser_0.9.8.bb
index 421263e62b..3d76190d39 100644
@@ -5,7 +5,7 @@ LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://COPYING;md5=fcc5a53146c2401f4b4f6a3bdf3f0168"
 
 SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/${BP}/${BP}.tar.gz"
-SRC_URI[sha256sum] = "11553b2abd2b5728a6c88e35ab08e807d0a0f23c44920df937778ce8cc4d40ff"
+SRC_URI[sha256sum] = "4cd0e4f93b477272fabceeb0202f269169fe6ec3044e10fac6acbcdf354bb080"
 
 inherit cmake github-releases
 
Signature · 1 line
2.30.2
#3 lore raw

PATCH 3/6 libwebsockets: fix buildpath warnings

In reply to Peter Marko

From: Gerard Salvatella <[email protected]>

From: Gerard Salvatella <[email protected]>

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(+)
meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.3.3.bb +2 -0
index 4518e2faaa..8f8b70421c 100644
@@ -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"
Signature · 1 line
2.30.2
#4 lore raw

Re: [oe] [meta-oe][scarthgap][PATCH 3/6] libwebsockets: fix buildpath warnings

Quoted 4 lines · Peter Marko via lists.openembedded.org

From: Gerard Salvatella <[email protected]>

From: Gerard Salvatella <[email protected]>

Duplicated From line.

#5 lore raw

PATCH 4/6 libwebsockets: remove STAGING_LIBDIR with /

In reply to Peter Marko

From: Martin Jansa <[email protected]>

From: Martin Jansa <[email protected]>

* 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)

---
 .../recipes-connectivity/libwebsockets/libwebsockets_4.3.3.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.3.3.bb +2 -2
index 8f8b70421c..3170d37f5b 100644
@@ -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"
Signature · 1 line
2.30.2
#6 lore raw

PATCH 5/6 re2: remove dev dependencies from main package

In reply to Peter Marko

From: Peter Marko <[email protected]>

It's a bad idea to add dev dependencies to main package. It's pulling build dependencies including toolchain items.

The dependencies "were needed" because main package contains packageconfig file.
This can be fixed by correct packaging.

---
 meta-oe/recipes-support/re2/re2_2024.03.01.bb | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
meta-oe/recipes-support/re2/re2_2024.03.01.bb +1 -4
index 192fe265f1..6e5b32a945 100644
@@ -16,9 +16,6 @@ DEPENDS = "abseil-cpp ${@bb.utils.contains('PTEST_ENABLED', '1', 'gtest googlebe
 
 inherit cmake ptest
 RDEPENDS:${PN}-ptest += "cmake sed"
-RDEPENDS:${PN} += "abseil-cpp-dev"
-
-INSANE_SKIP:${PN} += "dev-deps"
 
 EXTRA_OECMAKE += " \
 	-DBUILD_SHARED_LIBS=ON \
@@ -39,6 +36,6 @@ FILES:${PN} = "${libdir}"
 INSANE_SKIP:${PN} += "dev-so"
 
 # Don't include so files in dev package
-FILES:${PN}-dev = "${includedir} ${libdir}/cmake"
+FILES:${PN}-dev = "${includedir} ${libdir}/cmake ${libdir}/pkgconfig"
 
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.30.2
#7 lore raw

PATCH 6/6 re2: rework solibs handling

In reply to Peter Marko

From: Peter Marko <[email protected]>

This is cleaner way how to package unversioned libraries which was suggested during review of the last commit.

---
 meta-oe/recipes-support/re2/re2_2024.03.01.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-oe/recipes-support/re2/re2_2024.03.01.bb +2 -1
index 6e5b32a945..76d6f0c7a9 100644
@@ -32,7 +32,8 @@ do_install_ptest () {
 }
 
 # ignore .so in /usr/lib64
-FILES:${PN} = "${libdir}"
+SOLIBS = ".so*"
+FILES_SOLIBSDEV = ""
 INSANE_SKIP:${PN} += "dev-so"
 
 # Don't include so files in dev package
Signature · 1 line
2.30.2