similarity index 58%
rename from meta-oe/recipes-core/systemd/systemd-repart-native_257.6.bb
rename to meta-oe/recipes-core/systemd/systemd-repart-native_262.bb
@@ -3,19 +3,12 @@
# Copyright Leica Geosystems AG
#
+require recipes-core/systemd/systemd.inc
+
SUMMARY = "systemd-repart"
DESCRIPTION = "systemd-repart grows and adds partitions to a partition table, based on the configuration files described in repart.d(5), or generates a Discoverable Disk Image (DDI) for a system extension (sysext, see systemd-sysext(8))."
HOMEPAGE = "http://www.freedesktop.org/wiki/Software/systemd"
-LICENSE = "GPL-2.0-only AND LGPL-2.1-or-later"
-LICENSE:libsystemd = "LGPL-2.1-or-later"
-LIC_FILES_CHKSUM = "file://LICENSE.GPL2;md5=751419260aa954499f7abaabaa882bbe \
- file://LICENSE.LGPL2.1;md5=4fbd65380cdd255951079008b364516c"
-
-SRCREV = "00a12c234e2506f5cab683460199575f13c454db"
-SRCBRANCH = "v257-stable"
-SRC_URI = "git://github.com/systemd/systemd.git;protocol=https;branch=${SRCBRANCH}"
-
DEPENDS = " \
cryptsetup-native \
gperf-native \
@@ -28,16 +21,10 @@ inherit meson pkgconfig gettext native
MESON_TARGET = "systemd-repart"
-# Helper variables to clarify locations. This mirrors the logic in systemd's
-# build system.
-rootprefix ?= "${root_prefix}"
-rootlibdir ?= "${base_libdir}"
-rootlibexecdir = "${rootprefix}/lib"
+SYSTEMD_MAJOR = "${@d.getVar('PV').split('.')[0]}"
EXTRA_OEMESON += "-Dnobody-user=nobody \
-Dnobody-group=nogroup \
- -Drootlibdir=${rootlibdir} \
- -Drootprefix=${rootprefix} \
-Ddefault-locale=C \
-Dmode=release \
-Dsystem-alloc-uid-min=101 \
@@ -50,7 +37,7 @@ do_install() {
install -d ${D}${bindir}/
install -m 0755 ${B}/systemd-repart ${D}${bindir}/systemd-repart
install -d ${D}${libdir}/
- install -m 0644 ${B}/src/shared/libsystemd-shared-257.so ${D}${libdir}/libsystemd-shared-257.so
+ install -m 0644 ${B}/src/shared/libsystemd-shared-${SYSTEMD_MAJOR}.so ${D}${libdir}/libsystemd-shared-${SYSTEMD_MAJOR}.so
install -d ${D}${libdir}/systemd/repart/
cp -r ${S}/src/repart/definitions ${D}${libdir}/systemd/repart/
- 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, sources and license files. systemd 262 removed the rootlibdir and rootprefix meson options, and the libsystemd-shared name is now derived from PV. License-Update: license files now come from systemd.inc; the systemd 262 copies carry the older FSF postal address, terms unchanged AI-Generated: Uses Claude Code Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com> --- ..._257.6.bb => systemd-repart-native_262.bb} | 21 ++++--------------- 1 file changed, 4 insertions(+), 17 deletions(-) rename meta-oe/recipes-core/systemd/{systemd-repart-native_257.6.bb => systemd-repart-native_262.bb} (58%)