From patchwork Tue Sep 8 17:06:07 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Dubois-Briand X-Patchwork-Id: 97633 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 278A8C79F99 for ; Tue, 8 Sep 2026 17:06:38 +0000 (UTC) Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.333.1788887193193682956 for ; Tue, 08 Sep 2026 10:06:34 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=tjB/Hn2i; spf=pass (domain: bootlin.com, ip: 185.246.85.4, mailfrom: mathieu.dubois-briand@bootlin.com) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 826094E4159B for ; Tue, 8 Sep 2026 17:06:31 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 5823A6031F for ; Tue, 8 Sep 2026 17:06:31 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 6186A11C7AF40; Tue, 8 Sep 2026 19:06:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1788887190; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=1R3zCvKI1etKNOQWIIoOhPUdlDyn5pGMy6XAlQ55gOs=; b=tjB/Hn2iPfr9Lxnr/5fC1WT10ifpx/Fi35UR+rF/JCgJqZrww6atzxwwLGn+zeqYLo6tnI lJYudqSV/MMgaBqUqZ5jaL4Xb27WzvjpT4UWhaD7xMsV1p7zRxzNtRgFR6cgjokucjrEHG eTd21QcjDUpxLSaTaWPSt7btGpHGl3T7c6dzktKirOoGMlGEsKGPPYIPvwsOOshBrtrL9j wnJR4FxZpCxRG+fv4epX/557w53uHZudQSgHrMoAjFINXiLVKQJTPsfsJ0X6wMtzK7Z+PJ 3koM+BlyvCuDEp2dIVCrgU9B0dnwP5cauHYUE77lNSBzVwg0THq9L8rJYms0Qw== From: Mathieu Dubois-Briand Date: Tue, 08 Sep 2026 19:06:07 +0200 Subject: [PATCH v3 1/4] libfaketime: Import recipe from meta-oe MIME-Version: 1.0 Message-Id: <20260908-mathieu-reproducible-faketime-v3-1-03a856c33239@bootlin.com> References: <20260908-mathieu-reproducible-faketime-v3-0-03a856c33239@bootlin.com> In-Reply-To: <20260908-mathieu-reproducible-faketime-v3-0-03a856c33239@bootlin.com> To: openembedded-core@lists.openembedded.org Cc: Thomas Petazzoni , Mathieu Dubois-Briand X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1788887187; l=4308; i=mathieu.dubois-briand@bootlin.com; s=20241219; h=from:subject:message-id; bh=nZVUCK6uFVMW2+gITpd76pqN2lCP2ISktBx4IEhT1Hw=; b=NLmpKZhhNOisIAapQcf1cBISkosvXPTTl+G8PGpxoOpNLNMj+Q0a/TBcIUzGB7/MzHPiI6rfs 9RaRP0NlFEhCjQDy5rstNUWkU0V0LX/M2zpZ9ADc2c52lVzkJ+YfsBT X-Developer-Key: i=mathieu.dubois-briand@bootlin.com; a=ed25519; pk=1PVTmzPXfKvDwcPUzG0aqdGoKZJA3b9s+3DqRlm0Lww= X-Last-TLS-Session-Version: TLSv1.3 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 08 Sep 2026 17:06:38 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/245385 Signed-off-by: Mathieu Dubois-Briand --- 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 " RECIPE_MAINTAINER:pn-libevent = "Unassigned " RECIPE_MAINTAINER:pn-libexif = "Unassigned " RECIPE_MAINTAINER:pn-libfakekey = "Unassigned " +RECIPE_MAINTAINER:pn-libfaketime = "Mathieu Dubois-Briand " RECIPE_MAINTAINER:pn-libffi = "Unassigned " RECIPE_MAINTAINER:pn-libfm = "Unassigned " RECIPE_MAINTAINER:pn-libfm-extra = "Unassigned " 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 +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 +--- + 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"