libwebsockets: Support building for native
PATCH v2 1/2 libwebsockets: Support building for native
This is needed to be able to build mosquitto-native.
The dependency on libcap when building for native is needed because cmake will pick up the existence of libcap from the host, but then the build fails if it is not available in the sysroot. Unfortunately, there does not seem to be any way to explicitly tell cmake to not build with libcap.
---
PATCHv2: Depend on libcap-native instead of libcap.
.../recipes-connectivity/libwebsockets/libwebsockets_4.3.2.bb | 3 +++ 1 file changed, 3 insertions(+)
meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.3.2.bb +3 -0
@@ -4,6 +4,7 @@ LICENSE = "MIT & Zlib & BSD-3-Clause & Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=382bfdf329e774859fd401eaf850d29b" DEPENDS = "zlib" +DEPENDS:append:class-native = " libcap-native" S = "${WORKDIR}/git" SRCREV = "b0a749c8e7a8294b68581ce4feac0e55045eb00b"
@@ -61,3 +62,5 @@ RDEPENDS:${PN}-dev += " ${@bb.utils.contains('PACKAGECONFIG', 'static', '${PN}-s # Avoid absolute paths to end up in the sysroot. SSTATE_SCAN_FILES += "*.cmake" + +BBCLASSEXTEND = "native"
PATCH v2 2/2 mosquitto: Support building for native again
Support for building from native was removed in commit e1b332f2e (meta-networking: Drop broken BBCLASSEXTEND variants), most likely due to no support for building libwebsockets-native. That support has now been added, so it is now possible to build mosquitto-native again.
---
PATCHv2: No changes.
.../recipes-connectivity/mosquitto/mosquitto_2.0.18.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-networking/recipes-connectivity/mosquitto/mosquitto_2.0.18.bb +2 -0
@@ -88,3 +88,5 @@ INITSCRIPT_PARAMS = "defaults 30" USERADD_PACKAGES = "${PN}" USERADD_PARAM:${PN} = "--system --no-create-home --shell /bin/false \ --user-group mosquitto" + +BBCLASSEXTEND = "native"