Signed-off-by: Mathieu Dubois-Briand <[email protected]> --- meta/conf/distro/include/maintainers.inc | 1 + ...onst-qualifiers-to-fix-build-with-ISO-C23.patch | 35 ++++++++++++++++++++++ .../libfaketime/libfaketime_0.9.12.bb | 31 +++++++++++++++++++ 3 files changed, 67 insertions(+)
diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc index 2966cddc0569..fc57eb1395a1 100644 --- a/meta/conf/distro/include/maintainers.inc +++ b/meta/conf/distro/include/maintainers.inc @@ -342,6 +342,7 @@ RECIPE_MAINTAINER:pn-libevdev = "Unassigned <[email protected]>" RECIPE_MAINTAINER:pn-libevent = "Unassigned <[email protected]>" RECIPE_MAINTAINER:pn-libexif = "Unassigned <[email protected]>" RECIPE_MAINTAINER:pn-libfakekey = "Unassigned <[email protected]>" +RECIPE_MAINTAINER:pn-libfaketime = "Mathieu Dubois-Briand <[email protected]>" RECIPE_MAINTAINER:pn-libffi = "Unassigned <[email protected]>" RECIPE_MAINTAINER:pn-libfm = "Unassigned <[email protected]>" RECIPE_MAINTAINER:pn-libfm-extra = "Unassigned <[email protected]>" diff --git a/meta/recipes-support/libfaketime/libfaketime/0001-Add-const-qualifiers-to-fix-build-with-ISO-C23.patch b/meta/recipes-support/libfaketime/libfaketime/0001-Add-const-qualifiers-to-fix-build-with-ISO-C23.patch new file mode 100644 index 000000000000..29c250c95308 --- /dev/null +++ b/meta/recipes-support/libfaketime/libfaketime/0001-Add-const-qualifiers-to-fix-build-with-ISO-C23.patch @@ -0,0 +1,35 @@ +From dbe865dfdba0145d993d70b7fd4ec88b2f47554b Mon Sep 17 00:00:00 2001 +From: Tomas Korbar <[email protected]> +Date: Mon, 15 Dec 2025 11:03:21 +0100 +Subject: [PATCH] Add const qualifiers to fix build with ISO C23 + +Fix https://github.com/wolfcw/libfaketime/issues/524 + +Upstream-Status: Backport [https://github.com/wolfcw/libfaketime/pull/525] +Signed-off-by: Mathieu Dubois-Briand <[email protected]> +--- + src/libfaketime.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/libfaketime.c b/src/libfaketime.c +index ef1dca9..02839c8 100644 +--- a/src/libfaketime.c ++++ b/src/libfaketime.c +@@ -2666,7 +2666,7 @@ int timespec_get(struct timespec *ts, int base) + static void parse_ft_string(const char *user_faked_time) + { + struct tm user_faked_time_tm; +- char * tmp_time_fmt; ++ const char * tmp_time_fmt; + char * nstime_str; + + if (!strncmp(user_faked_time, user_faked_time_saved, BUFFERLEN)) +@@ -3338,7 +3338,7 @@ static void prepare_config_contents(char *contents) + bool str_array_contains(const char *haystack, const char *needle) + { + size_t needle_len = strlen(needle); +- char *pos = strstr(haystack, needle); ++ const char *pos = strstr(haystack, needle); + while (pos) { + if (pos == haystack || *(pos - 1) == ',') { + char nextc = *(pos + needle_len); diff --git a/meta/recipes-support/libfaketime/libfaketime_0.9.12.bb b/meta/recipes-support/libfaketime/libfaketime_0.9.12.bb new file mode 100644 index 000000000000..89e4eebeaa46 --- /dev/null +++ b/meta/recipes-support/libfaketime/libfaketime_0.9.12.bb @@ -0,0 +1,31 @@ +SUMMARY = "A library for faking the system time in user-space programs" +SECTION = "libs" +HOMEPAGE = "https://github.com/wolfcw/libfaketime" +LICENSE = "GPL-2.0-only" +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" + +SRCREV = "3ccdd344aadf1e317156fa5fb7c881f2c4404778" + +SRC_URI = "git://github.com/wolfcw/libfaketime.git;branch=master;tag=v${PV};protocol=https \ + file://0001-Add-const-qualifiers-to-fix-build-with-ISO-C23.patch \ +" + +CFLAGS:append:libc-musl = " -D_LARGEFILE64_SOURCE" + +do_configure[noexec] = "1" + +do_compile () { + oe_runmake +} + +do_install () { + install -d ${D}${libdir}/faketime + oe_libinstall -C src libfaketime ${D}${libdir}/faketime + install -d ${D}${bindir} + install -m 0755 src/faketime ${D}${bindir} +} + +FILES:${PN} = "${bindir}/faketime ${libdir}/faketime/lib*${SOLIBS}" +FILES:${PN}-dev += "${libdir}/faketime/lib*${SOLIBSDEV}" + +BBCLASSEXTEND = "native" -- 2.47.3
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#245385): https://lists.openembedded.org/g/openembedded-core/message/245385 Mute This Topic: https://lists.openembedded.org/mt/121148363/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
