diff options
author | Khem Raj <raj.khem@gmail.com> | 2023-11-29 22:10:24 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-11-29 22:19:11 -0800 |
commit | e1eafe6d9b83ab856c4f30bb0fd92ff537a044ce (patch) | |
tree | 775334d17d4bc3c509d898bd417940af20ff34d2 /meta-oe/recipes-core/sdbus-c++/sdbus-c++-libsystemd_254.4.bb | |
parent | 41f16dc063f3aea57f3cba2d780d0327676d1e15 (diff) | |
download | meta-openembedded-e1eafe6d9b83ab856c4f30bb0fd92ff537a044ce.tar.gz |
sdbus-c++-libsystemd: Upgrade to 254
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-core/sdbus-c++/sdbus-c++-libsystemd_254.4.bb')
-rw-r--r-- | meta-oe/recipes-core/sdbus-c++/sdbus-c++-libsystemd_254.4.bb | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/meta-oe/recipes-core/sdbus-c++/sdbus-c++-libsystemd_254.4.bb b/meta-oe/recipes-core/sdbus-c++/sdbus-c++-libsystemd_254.4.bb new file mode 100644 index 000000000..0b211948c --- /dev/null +++ b/meta-oe/recipes-core/sdbus-c++/sdbus-c++-libsystemd_254.4.bb | |||
@@ -0,0 +1,74 @@ | |||
1 | SUMMARY = "libsystemd static library" | ||
2 | DESCRIPTION = "libsystemd static library built specifically as an integral component of sdbus-c++" | ||
3 | |||
4 | SECTION = "libs" | ||
5 | |||
6 | LICENSE = "LGPL-2.1-or-later" | ||
7 | LIC_FILES_CHKSUM = "file://LICENSE.LGPL2.1;md5=4fbd65380cdd255951079008b364516c" | ||
8 | |||
9 | inherit meson pkgconfig | ||
10 | |||
11 | DEPENDS += "gperf-native gettext-native util-linux libcap util-linux python3-jinja2-native" | ||
12 | |||
13 | SRCREV = "2e7504449a51fb38db9cd2da391c6434f82def51" | ||
14 | SRCBRANCH = "v254-stable" | ||
15 | SRC_URI = "git://github.com/systemd/systemd-stable.git;protocol=https;branch=${SRCBRANCH} \ | ||
16 | file://static-libsystemd-pkgconfig.patch \ | ||
17 | " | ||
18 | |||
19 | # patches needed by musl | ||
20 | SRC_URI:append:libc-musl = " ${SRC_URI_MUSL}" | ||
21 | |||
22 | SRC_URI_MUSL = "\ | ||
23 | file://0009-missing_type.h-add-comparison_fn_t.patch \ | ||
24 | file://0010-add-fallback-parse_printf_format-implementation.patch \ | ||
25 | file://0011-src-basic-missing.h-check-for-missing-strndupa.patch \ | ||
26 | file://0012-don-t-fail-if-GLOB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch \ | ||
27 | file://0013-add-missing-FTW_-macros-for-musl.patch \ | ||
28 | file://0014-Use-uintmax_t-for-handling-rlim_t.patch \ | ||
29 | file://0016-don-t-pass-AT_SYMLINK_NOFOLLOW-flag-to-faccessat.patch \ | ||
30 | file://0017-Define-glibc-compatible-basename-for-non-glibc-syste.patch \ | ||
31 | file://0018-Do-not-disable-buffering-when-writing-to-oom_score_a.patch \ | ||
32 | file://0019-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch \ | ||
33 | file://0020-avoid-redefinition-of-prctl_mm_map-structure.patch \ | ||
34 | file://0021-do-not-disable-buffer-in-writing-files.patch \ | ||
35 | file://0022-Handle-__cpu_mask-usage.patch \ | ||
36 | file://0023-Handle-missing-gshadow.patch \ | ||
37 | file://0024-missing_syscall.h-Define-MIPS-ABI-defines-for-musl.patch \ | ||
38 | file://0005-pass-correct-parameters-to-getdents64.patch \ | ||
39 | file://0001-Adjust-for-musl-headers.patch \ | ||
40 | file://0006-test-bus-error-strerror-is-assumed-to-be-GNU-specifi.patch \ | ||
41 | file://0003-errno-util-Make-STRERROR-portable-for-musl.patch \ | ||
42 | file://0028-sd-event-Make-malloc_trim-conditional-on-glibc.patch \ | ||
43 | file://0029-shared-Do-not-use-malloc_info-on-musl.patch \ | ||
44 | " | ||
45 | |||
46 | PACKAGECONFIG ??= "gshadow idn" | ||
47 | PACKAGECONFIG:remove:libc-musl = " gshadow idn" | ||
48 | PACKAGECONFIG[gshadow] = "-Dgshadow=true,-Dgshadow=false" | ||
49 | PACKAGECONFIG[idn] = "-Didn=true,-Didn=false" | ||
50 | |||
51 | CFLAGS:append:libc-musl = " -D__UAPI_DEF_ETHHDR=0 " | ||
52 | |||
53 | EXTRA_OEMESON += "-Dstatic-libsystemd=pic" | ||
54 | |||
55 | S = "${WORKDIR}/git" | ||
56 | |||
57 | RDEPENDS:${PN}-dev = "" | ||
58 | |||
59 | do_compile() { | ||
60 | ninja -v ${PARALLEL_MAKE} version.h | ||
61 | ninja -v ${PARALLEL_MAKE} libsystemd.a | ||
62 | ninja -v ${PARALLEL_MAKE} src/libsystemd/libsystemd.pc | ||
63 | } | ||
64 | |||
65 | do_install () { | ||
66 | install -d ${D}${libdir} | ||
67 | install ${B}/libsystemd.a ${D}${libdir} | ||
68 | |||
69 | install -d ${D}${includedir}/systemd | ||
70 | install ${S}/src/systemd/*.h ${D}${includedir}/systemd | ||
71 | |||
72 | install -d ${D}${libdir}/pkgconfig | ||
73 | install ${B}/src/libsystemd/libsystemd.pc ${D}${libdir}/pkgconfig | ||
74 | } | ||