similarity index 78%
rename from meta-oe/recipes-core/sdbus-c++/sdbus-c++-libsystemd_259.8.bb
rename to meta-oe/recipes-core/sdbus-c++/sdbus-c++-libsystemd_262.bb
@@ -1,3 +1,5 @@
+require recipes-core/systemd/systemd.inc
+
SUMMARY = "libsystemd static library"
DESCRIPTION = "libsystemd static library built specifically as an integral component of sdbus-c++"
@@ -10,17 +12,14 @@ inherit meson pkgconfig
DEPENDS += "gperf-native gettext-native util-linux libcap util-linux python3-jinja2-native"
-SRCREV = "6576434737de042cdd0f6e62f34f04818306c73b"
-SRCBRANCH = "v259-stable"
-SRC_URI = "git://github.com/systemd/systemd.git;protocol=https;branch=${SRCBRANCH};tag=v${PV} \
- file://static-libsystemd-pkgconfig.patch \
- "
+SRC_URI += "file://static-libsystemd-pkgconfig.patch"
PACKAGECONFIG ??= "gshadow idn"
PACKAGECONFIG:remove:libc-musl = " gshadow idn"
PACKAGECONFIG[gshadow] = "-Dgshadow=true,-Dgshadow=false"
PACKAGECONFIG[idn] = "-Didn=true,-Didn=false"
+DEPENDS:append:libc-musl = " libucontext"
CFLAGS:append:libc-musl = " -D__UAPI_DEF_ETHHDR=0 "
# Enable systemd's in-tree musl support (mirrors oe-core's systemd recipe).
@@ -46,3 +45,8 @@ do_install () {
install -d ${D}${libdir}/pkgconfig
install ${B}/src/libsystemd/libsystemd.pc ${D}${libdir}/pkgconfig
}
+
+# The static libsystemd uses getcontext/makecontext/swapcontext from libucontext on musl
+do_install:append:libc-musl () {
+ sed -i -e '/^Libs:/s/$/ -lucontext/' ${D}${libdir}/pkgconfig/libsystemd.pc
+}
- libsystemd: new sd-varlink protocol-upgrade helpers, SD_ELF_NOTE_DLOPEN_ANCHORED() in sd-dlopen.h, and sd_id128_from_string() accepts urn:uuid: strings - libsystemd no longer links against libgcrypt; journal sealing moved to OpenSSL - systemd-repart: supports Encrypt= combined with Verity=data, honors $SOURCE_DATE_EPOCH for reproducible images, and gains --cow= and -n for --dry-run - systemd-repart: MakeSymlinks= expands specifiers in the target, and the legacy FactoryReset EFI variable is no longer honored (use FactoryResetRequest) Require oe-core's systemd.inc so the recipe follows oe-core's systemd version and sources instead of carrying copies. systemd 262 needs libucontext on musl (as in oe-core's systemd recipe), so add it to DEPENDS for libc-musl. The static libsystemd then needs -lucontext on its users' link line, so add it to libsystemd.pc. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com> --- ...ystemd_259.8.bb => sdbus-c++-libsystemd_262.bb} | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) rename meta-oe/recipes-core/sdbus-c++/{sdbus-c++-libsystemd_259.8.bb => sdbus-c++-libsystemd_262.bb} (78%)