@@ -1,4 +1,4 @@
-From d0fd7b4be89feb6a8809216b0dc1d84299bbad96 Mon Sep 17 00:00:00 2001
+From acbf2bfedc297118ec8c8459fd2b4c6e189c14fd Mon Sep 17 00:00:00 2001
From: Khem Raj <khem.raj@oss.qualcomm.com>
Date: Mon, 7 Sep 2026 19:27:57 -0700
Subject: [PATCH] Mark write-only real_* pointers as unused
@@ -22,19 +22,23 @@ Upstream-Status: Pending
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
- src/libfaketime.c | 20 ++++++++++----------
- 1 file changed, 10 insertions(+), 10 deletions(-)
+ src/libfaketime.c | 28 ++++++++++++++--------------
+ 1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/src/libfaketime.c b/src/libfaketime.c
-index e674883..2addaab 100644
+index f3acdbf37a42..9f783e9557e1 100644
--- a/src/libfaketime.c
+++ b/src/libfaketime.c
-@@ -337,26 +337,26 @@ static __thread bool dont_fake = false;
+@@ -355,7 +355,7 @@ static bool command_excluded = false;
/* pointers to real (not faked) functions */
static int (*real_stat) (const char *, struct stat *);
static int (*real_fstat) (int, struct stat *);
-static int (*real_lstat) (const char *, struct stat *);
+static int (*real_lstat) (const char *, struct stat *) __attribute__((unused));
+ #if defined(FAKE_STAT) && !defined(MACOS_DYLD_INTERPOSE)
+ static int (*real_nftw) (const char *,
+ int (*)(const char *, const struct stat *, int, struct FTW *),
+@@ -364,26 +364,26 @@ static int (*real_nftw) (const char *,
#ifndef __ANDROID__
static int (*real_xstat) (int, const char *, struct stat *);
static int (*real_fxstat) (int, int, struct stat *);
@@ -46,11 +50,19 @@ index e674883..2addaab 100644
#if !defined(__APPLE__) || !__DARWIN_ONLY_64_BIT_INO_T
#ifndef __ANDROID__
-static int (*real_stat64) (const char *, struct stat64 *);
+-static int (*real_lstat64) (const char *, struct stat64 *);
+-static int (*real_fstat64) (int, struct stat64 *);
+-static int (*real_fstatat) (int, const char *, struct stat *, int);
+-static int (*real_fstatat64) (int, const char *, struct stat64 *, int);
-static int (*real_xstat64) (int, const char *, struct stat64 *);
-static int (*real_fxstat64) (int, int , struct stat64 *);
-static int (*real_fxstatat64) (int, int , const char *, struct stat64 *, int);
-static int (*real_lxstat64) (int, const char *, struct stat64 *);
+static int (*real_stat64) (const char *, struct stat64 *) __attribute__((unused));
++static int (*real_lstat64) (const char *, struct stat64 *) __attribute__((unused));
++static int (*real_fstat64) (int, struct stat64 *) __attribute__((unused));
++static int (*real_fstatat) (int, const char *, struct stat *, int) __attribute__((unused));
++static int (*real_fstatat64) (int, const char *, struct stat64 *, int) __attribute__((unused));
+static int (*real_xstat64) (int, const char *, struct stat64 *) __attribute__((unused));
+static int (*real_fxstat64) (int, int , struct stat64 *) __attribute__((unused));
+static int (*real_fxstatat64) (int, int , const char *, struct stat64 *, int) __attribute__((unused));
deleted file mode 100644
@@ -1,46 +0,0 @@
-From 6288d9367a17afef395ca898844ccbf4c0b58ef7 Mon Sep 17 00:00:00 2001
-From: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
-Date: Wed, 2 Sep 2026 13:07:05 +0200
-Subject: [PATCH] libfaketime.c: do not declare __time64 when -D_TIME_BITS=64
- is used
-
-When _TIME_BITS macro is set to 64, __clock_gettime64(),
-__gettimeofday64() and __time64 will be defined in the glibc. There is
-no need to define these here.
-
-Upstream-Status: Submitted [https://github.com/wolfcw/libfaketime/pull/553]
-Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
----
- src/libfaketime.c | 4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
-
-diff --git a/src/libfaketime.c b/src/libfaketime.c
-index e6748832fecb..7f3c65bf2bc9 100644
---- a/src/libfaketime.c
-+++ b/src/libfaketime.c
-@@ -1802,11 +1802,13 @@ int __lxstat (int ver, const char *path, struct stat *buf)
- #endif
-
- #ifdef __GLIBC__
-+#if (_TIME_BITS != 64)
- int stat64 (const char *path, struct stat64 *buf)
- {
- STAT64_HANDLER(stat64, buf, path, buf);
- }
- #endif
-+#endif
-
- /* Contributed by Philipp Hachtmann in version 0.6 */
- #ifndef __ANDROID__
-@@ -3375,7 +3377,7 @@ int clock_gettime(clockid_t clk_id, struct timespec *tp)
-
- #ifdef __GLIBC__
- /* This is used by glibc 32-bit architectures only. */
--#ifndef FAKETIME_TIME64_BUILD
-+#if (_TIME_BITS != 64)
- int __clock_gettime64(clockid_t clk_id, struct __timespec64 *tp64)
- {
- struct timespec tp;
-2.47.3
-
similarity index 88%
rename from meta/recipes-support/libfaketime/libfaketime_0.9.13.bb
rename to meta/recipes-support/libfaketime/libfaketime_0.9.14.bb
@@ -4,12 +4,11 @@ HOMEPAGE = "https://github.com/wolfcw/libfaketime"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
-SRCREV = "86b37fde2fed7336ea2d0c17928e3015a55d9b4a"
+SRCREV = "c88b79b4e9cc1c94294037b4677b69185861c2a1"
SRC_URI = "git://github.com/wolfcw/libfaketime.git;branch=master;tag=v${PV};protocol=https \
- file://0001-libfaketime.c-do-not-declare-__time64-when-D_TIME_BI.patch \
file://0001-Mark-write-only-real_-pointers-as-unused.patch \
-"
+ "
# The version script names the symbols that are defined with .symver
LDFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' -Wl,--undefined-version', '', d)}"
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> --- ...-Mark-write-only-real_-pointers-as-unused.patch | 22 ++++++++--- ....c-do-not-declare-__time64-when-D_TIME_BI.patch | 46 ---------------------- ...libfaketime_0.9.13.bb => libfaketime_0.9.14.bb} | 5 +-- 3 files changed, 19 insertions(+), 54 deletions(-) --- base-commit: ea66eb396e2d3015315d5d364fe2197ab8905f63 change-id: 20261118-mathieu-libfaketime-0-9-14-440b77f13acb Best regards,