public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libfaketime] f43: 0.9.14 bump
@ 2026-11-20  7:28 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-11-20  7:28 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/libfaketime
Branch : f43
Commit : ef82d8a012155fa6945712764d0d6048b2a60cce
Author : Petr Písař <ppisar@redhat.com>
Date   : 2026-11-19T19:15:12+01:00
Stats  : +6/-441 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/libfaketime/c/ef82d8a012155fa6945712764d0d6048b2a60cce?branch=f43

Log:
0.9.14 bump

---
diff --git a/libfaketime-0.9.13-Adapt-symbol-versioning-to-LTO.patch b/libfaketime-0.9.13-Adapt-symbol-versioning-to-LTO.patch
deleted file mode 100644
index 9520f50..0000000
--- a/libfaketime-0.9.13-Adapt-symbol-versioning-to-LTO.patch
+++ /dev/null
@@ -1,214 +0,0 @@
-From 6a729b7deaf94bb4b8526614190b61472d8b9c87 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
-Date: Fri, 4 Sep 2026 14:57:54 +0200
-Subject: [PATCH] Adapt symbol versioning to LTO
-
-If link-time-optimization is requested, the compiler cannot see the
-versioned symbols created with an in-line assembler and optimizes out
-the unversioned function, resulting into a link-time error:
-
-    $ CFLAGS='-O2 -flto=2' make
-    make  -C src all
-    make[1]: Entering directory '/tmp/libfaketime/src'
-    cc -o libfaketime.o -c -O2 -flto=2 -std=gnu99 -Wall -Wextra -Werror -DFAKE_PTHREAD -DFAKE_STAT -DFAKE_UTIME -DFAKE_SLEEP -DFAKE_TIMERS -DFAKE_INTERNAL_CALLS -fPIC -DPREFIX='"'/usr/local'"' -DLIBDIRNAME='"'/lib/faketime'"'  -Wno-nonnull-compare   libfaketime.c
-    cc -o ft_sem.o -c -O2 -flto=2 -std=gnu99 -Wall -Wextra -Werror -DFAKE_PTHREAD -DFAKE_STAT -DFAKE_UTIME -DFAKE_SLEEP -DFAKE_TIMERS -DFAKE_INTERNAL_CALLS -fPIC -DPREFIX='"'/usr/local'"' -DLIBDIRNAME='"'/lib/faketime'"'  -Wno-nonnull-compare  ft_sem.c
-    cc -o libfaketime.so.1 -Wl,-soname,libfaketime.so.1  -Wl,--version-script=libfaketime.map -shared libfaketime.o ft_sem.o -ldl -lm -lrt -lpthread
-    /tmp/ccxGFQ2F.s: Assembler messages:
-    /tmp/ccxGFQ2F.s: Error: invalid attempt to declare external version name as default in symbol `timer_gettime@@GLIBC_2.3.3'
-
-This patch changes the assembler code into compiler attributes, if
-available (from GCC 10), so that the compiler knows about the
-symbols. A function attribute needs to be directly precede a function
-it binds to, so this patch moves the versioning to the functinon
-definitions. The result is that libfaketime can now be compiled with
-LTO.
----
- src/libfaketime.c | 64 +++++++++++++++++++++++++++++++----------------
- 1 file changed, 42 insertions(+), 22 deletions(-)
-
-diff --git a/src/libfaketime.c b/src/libfaketime.c
-index e674883..fbd00f1 100644
---- a/src/libfaketime.c
-+++ b/src/libfaketime.c
-@@ -132,6 +132,14 @@ struct timeb {
- 
- #define BUFFERLEN   256
- 
-+#ifdef __has_attribute
-+#if __has_attribute (__symver__)
-+#define SYMVER(FUNCTION_NAME, EXPORTED_SYMBOL) __attribute__ (( __symver__ (#EXPORTED_SYMBOL)))
-+#else
-+#define SYMVER(FUNCTION_NAME, EXPORTED_SYMBOL) __asm__(".symver " #FUNCTION_NAME ", " #EXPORTED_SYMBOL);
-+#endif
-+#endif
-+
- static long stat_mtime_nsec(const struct stat *st);
- 
- static long parse_long_setting(const char *name, const char *value)
-@@ -2693,20 +2701,20 @@ static int sem_clockwait_common(sem_t *sem, clockid_t clockid,
- }
- 
- #ifdef __GLIBC__
-+SYMVER(sem_clockwait_230, sem_clockwait@GLIBC_2.30)
- int sem_clockwait_230(sem_t *sem, clockid_t clockid,
-                       const struct timespec *abstime)
- {
-   return sem_clockwait_common(sem, clockid, abstime);
- }
- 
-+SYMVER(sem_clockwait_234, sem_clockwait@@GLIBC_2.34)
- int sem_clockwait_234(sem_t *sem, clockid_t clockid,
-                       const struct timespec *abstime)
- {
-   return sem_clockwait_common(sem, clockid, abstime);
- }
- 
--__asm__(".symver sem_clockwait_230, sem_clockwait@GLIBC_2.30");
--__asm__(".symver sem_clockwait_234, sem_clockwait@@GLIBC_2.34");
- #else
- int sem_clockwait(sem_t *sem, clockid_t clockid,
-                   const struct timespec *abstime)
-@@ -3044,6 +3052,7 @@ int timer_gettime(timer_t timerid, struct itimerspec *curr_value)
- /*
-  * Faked timer_settime() compatible with implementation in GLIBC 2.2
-  */
-+SYMVER(timer_settime_22, timer_settime@GLIBC_2.2)
- int timer_settime_22(int timerid, int flags,
-          const struct itimerspec *new_value,
-          struct itimerspec *old_value)
-@@ -3066,6 +3075,7 @@ int timer_settime_22(int timerid, int flags,
- /*
-  * Faked timer_settime() compatible with implementation in GLIBC 2.3.3
-  */
-+SYMVER(timer_settime_233, timer_settime@@GLIBC_2.3.3)
- int timer_settime_233(timer_t timerid, int flags,
-       const struct itimerspec *new_value,
-       struct itimerspec *old_value)
-@@ -3088,6 +3098,7 @@ int timer_settime_233(timer_t timerid, int flags,
- /*
-  * Faked timer_gettime() compatible with implementation in GLIBC 2.2
-  */
-+SYMVER(timer_gettime_22, timer_gettime@GLIBC_2.2)
- int timer_gettime_22(timer_t timerid, struct itimerspec *curr_value)
- {
-   ftpl_init();
-@@ -3107,6 +3118,7 @@ int timer_gettime_22(timer_t timerid, struct itimerspec *curr_value)
- /*
-  * Faked timer_gettime() compatible with implementation in GLIBC 2.3.3
-  */
-+SYMVER(timer_gettime_233, timer_gettime@@GLIBC_2.3.3)
- int timer_gettime_233(timer_t timerid, struct itimerspec *curr_value)
- {
-   ftpl_init();
-@@ -3122,11 +3134,6 @@ int timer_gettime_233(timer_t timerid, struct itimerspec *curr_value)
-             FT_COMPAT_GLIBC_2_3_3));
-   }
- }
--
--__asm__(".symver timer_gettime_22, timer_gettime@GLIBC_2.2");
--__asm__(".symver timer_gettime_233, timer_gettime@@GLIBC_2.3.3");
--__asm__(".symver timer_settime_22, timer_settime@GLIBC_2.2");
--__asm__(".symver timer_settime_233, timer_settime@@GLIBC_2.3.3");
- #endif /* __ANDROID__ */
- 
- #ifdef __linux__
-@@ -3376,6 +3383,8 @@ 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
-+/* glibc's 32-bit time64 ABI references these symbols with GLIBC_2.34. */
-+SYMVER(__clock_gettime64, __clock_gettime64@GLIBC_2.34)
- int __clock_gettime64(clockid_t clk_id, struct __timespec64 *tp64)
- {
-   struct timespec tp;
-@@ -3406,6 +3415,8 @@ int __gettimeofday64(struct __timeval64 *tv64, void *tz)
- }
- 
- /* This is used by glibc 32-bit architectures only. */
-+/* glibc's 32-bit time64 ABI references these symbols with GLIBC_2.34. */
-+SYMVER(__time64, __time64@GLIBC_2.34)
- uint64_t __time64(uint64_t *write_out)
- {
-   struct timespec tp;
-@@ -3425,10 +3436,6 @@ uint64_t __time64(uint64_t *write_out)
-   }
-   return output;
- }
--
--/* glibc's 32-bit time64 ABI references these symbols with GLIBC_2.34. */
--__asm__(".symver __clock_gettime64, __clock_gettime64@GLIBC_2.34");
--__asm__(".symver __time64, __time64@GLIBC_2.34");
- #endif
- #endif
- 
-@@ -4967,6 +4974,13 @@ struct pthread_cond_monotonic {
- 
- static struct pthread_cond_monotonic *monotonic_conds = NULL;
- 
-+#ifndef __ANDROID__
-+#if defined __ARM_ARCH || defined FORCE_PTHREAD_NONVER
-+SYMVER(pthread_cond_init_232, pthread_cond_init@@)
-+#else
-+SYMVER(pthread_cond_init_232, pthread_cond_init@@GLIBC_2.3.2)
-+#endif
-+#endif /* __ANDROID__ */
- int pthread_cond_init_232(pthread_cond_t *restrict cond, const pthread_condattr_t *restrict attr)
- {
-   clockid_t clock_id;
-@@ -5012,6 +5026,13 @@ int pthread_cond_init_232(pthread_cond_t *restrict cond, const pthread_condattr_
-   return result;
- }
- 
-+#ifndef __ANDROID__
-+#if defined __ARM_ARCH || defined FORCE_PTHREAD_NONVER
-+SYMVER(pthread_cond_destroy_232, pthread_cond_destroy@@)
-+#else
-+SYMVER(pthread_cond_destroy_232, pthread_cond_destroy@@GLIBC_2.3.2)
-+#endif
-+#endif /* __ANDROID__ */
- int pthread_cond_destroy_232(pthread_cond_t *cond)
- {
-   struct pthread_cond_monotonic* e;
-@@ -5216,11 +5237,21 @@ int pthread_cond_timedwait_common(pthread_cond_t *cond, pthread_mutex_t *mutex,
-   return result;
- }
- 
-+#ifndef __ANDROID__
-+SYMVER(pthread_cond_timedwait_225, pthread_cond_timedwait@GLIBC_2.2.5)
-+#endif
- int pthread_cond_timedwait_225(pthread_cond_t *cond, pthread_mutex_t *mutex, const struct timespec *abstime)
- {
-   return pthread_cond_timedwait_common(cond, mutex, abstime, FT_COMPAT_GLIBC_2_2_5);
- }
- 
-+#ifndef __ANDROID__
-+#if defined __ARM_ARCH || defined FORCE_PTHREAD_NONVER
-+SYMVER(pthread_cond_timedwait_232, pthread_cond_timedwait@@)
-+#else
-+SYMVER(pthread_cond_timedwait_232, pthread_cond_timedwait@@GLIBC_2.3.2)
-+#endif
-+#endif /* __ANDROID__ */
- int pthread_cond_timedwait_232(pthread_cond_t *cond, pthread_mutex_t *mutex, const struct timespec *abstime)
- {
-   return pthread_cond_timedwait_common(cond, mutex, abstime, FT_COMPAT_GLIBC_2_3_2);
-@@ -5231,17 +5262,6 @@ int pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex, const s
- {
-   return pthread_cond_timedwait_common(cond, mutex, abstime, FT_COMPAT_GLIBC_2_3_2);
- }
--#else
--__asm__(".symver pthread_cond_timedwait_225, pthread_cond_timedwait@GLIBC_2.2.5");
--#if defined __ARM_ARCH || defined FORCE_PTHREAD_NONVER
--__asm__(".symver pthread_cond_timedwait_232, pthread_cond_timedwait@@");
--__asm__(".symver pthread_cond_init_232, pthread_cond_init@@");
--__asm__(".symver pthread_cond_destroy_232, pthread_cond_destroy@@");
--#else
--__asm__(".symver pthread_cond_timedwait_232, pthread_cond_timedwait@@GLIBC_2.3.2");
--__asm__(".symver pthread_cond_init_232, pthread_cond_init@@GLIBC_2.3.2");
--__asm__(".symver pthread_cond_destroy_232, pthread_cond_destroy@@GLIBC_2.3.2");
--#endif
- #endif /* __ANDROID__ */
- 
- #endif
--- 
-2.55.0
-

diff --git a/libfaketime-0.9.13-Remove-tests-passing-NULL-to-sem_timedwait-and-clock.patch b/libfaketime-0.9.13-Remove-tests-passing-NULL-to-sem_timedwait-and-clock.patch
deleted file mode 100644
index f641472..0000000
--- a/libfaketime-0.9.13-Remove-tests-passing-NULL-to-sem_timedwait-and-clock.patch
+++ /dev/null
@@ -1,218 +0,0 @@
-From 79aaa421ff8a6beb339ddc4e8c0e1dec65c27f9a Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
-Date: Thu, 3 Sep 2026 13:40:41 +0200
-Subject: [PATCH] Remove tests passing NULL to sem_timedwait() and
- clock_gettime()
-
-Some functests/test_clock_contract.sh tests failed with glibc on
-x86_64 Linux:
-
-    Begin functests/test_clock_contract.sh
-    # PLATFORM=linuxlike
-    out=2020-06-15 12:00:00 realtime clock should honor absolute configuration - ok
-    out=2020 fractional realtime values should retain the calendar second - ok
-    out=ok monotonic clock should not move backwards - ok
-    out=ok short relative sleep should return - ok
-    out=ok invalid clock id should fail - ok
-    out= null clock output should fail with EFAULT expected=clock_gettime(NULL) returned EFAULT - bad
-    out=realtime and monotonic past deadlines returned ETIMEDOUT past realtime and monotonic deadlines should time out - ok
-    out= semaphore timed-wait contract should be preserved expected=semaphore realtime, monotonic, and null handling passed - bad
-    out= semaphore timed-wait contract should be preserved expected=semaphore realtime, monotonic, and null handling passed - bad
-    out= semaphore timed-wait contract should be preserved expected=semaphore realtime, monotonic, and null handling passed - bad
-    out=positive poll timeout was preserved positive poll timeout should not be truncated to zero - ok
-    out=select, pselect, and ppoll timeout contracts passed select, pselect, and ppoll timeout contracts should be preserved - ok
-    # functests/test_clock_contract.sh summary: 8 succeeded, 4 failed
-    # End functests/test_clock_contract.sh - BAD
-
-These 4 tests pass a NULL pointer to a syscall and expect that -1 with
-an approriate errno is returned. But that's not true for glibc on
-x86_64 Linux: clock_gettime() is implemented as VDSO and segfaults
-instead, sem_timedwait() also segfaults.
-
-This patch removes the affected tests.
-
-Resolve: #554
----
- test/Makefile                         |  9 +++------
- test/Makefile.OSX                     |  9 +++------
- test/clock_error_test.c               | 28 ---------------------------
- test/functests/test_clock_contract.sh |  9 ---------
- test/sem_contract_test.c              | 11 -----------
- 5 files changed, 6 insertions(+), 60 deletions(-)
- delete mode 100644 test/clock_error_test.c
-
-diff --git a/test/Makefile b/test/Makefile
-index 87530b6..c1314df 100644
---- a/test/Makefile
-+++ b/test/Makefile
-@@ -10,7 +10,7 @@ OBJ = ${SRC:.c=.o}
- TEST_SNIPPETS = $(notdir $(basename $(wildcard snippets/*.c)))
- EXPECTATIONS = $(notdir $(basename $(wildcard snippets/*.variable)))
- 
--ALL_TESTS = timetest test shm_layout_test abi_info_test set_mtime time_ops_test clock_consistency_test clock_error_test wait_contract_test wait_api_contract_test sem_contract_test wait_timeout_contract_test timerfd_contract_test asan_preload_test fd_leak_test fd_liveness_test emfile_clock_test timezone_contract_test
-+ALL_TESTS = timetest test shm_layout_test abi_info_test set_mtime time_ops_test clock_consistency_test wait_contract_test wait_api_contract_test sem_contract_test wait_timeout_contract_test timerfd_contract_test asan_preload_test fd_leak_test fd_liveness_test emfile_clock_test timezone_contract_test
- 
- TIME64_CFLAGS = -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64
- IS_GLIBC := $(shell if $(CC) -dM -E -include features.h - < /dev/null 2>/dev/null | grep -q '^#define __GLIBC__ '; then echo 1; else echo 0; fi)
-@@ -90,9 +90,6 @@ time_ops_test: time_ops_test.c ../src/time_ops.h
- clock_consistency_test: clock_consistency_test.c
- 	${CC} -o $@ ${CFLAGS} $<
- 
--clock_error_test: clock_error_test.c
--	${CC} -o $@ ${CFLAGS} $<
--
- wait_contract_test: wait_contract_test.c
- 	${CC} -o $@ ${CFLAGS} $< ${LDFLAGS}
- 
-@@ -129,7 +126,7 @@ syscall_contract_test: syscall_contract_test.c
- futex_contract_test: futex_contract_test.c
- 	${CC} -o $@ ${CFLAGS} $<
- 
--test: timetest abi_info_test shm_layout_test time64_contract_test time_ops_test clock_consistency_test set_mtime clock_error_test wait_contract_test wait_api_contract_test sem_contract_test wait_timeout_contract_test timerfd_contract_test asan_preload_test fd_leak_test fd_liveness_test emfile_clock_test timezone_contract_test init_reentry.so ${RANDOM_TEST_DEP} ${FILE_TIMESTAMP_TEST_DEP} ${FAKE_PID_TEST_DEP} ${SYSCALL_TEST_DEP} ${FUTEX_TEST_DEP} functest
-+test: timetest abi_info_test shm_layout_test time64_contract_test time_ops_test clock_consistency_test set_mtime wait_contract_test wait_api_contract_test sem_contract_test wait_timeout_contract_test timerfd_contract_test asan_preload_test fd_leak_test fd_liveness_test emfile_clock_test timezone_contract_test init_reentry.so ${RANDOM_TEST_DEP} ${FILE_TIMESTAMP_TEST_DEP} ${FAKE_PID_TEST_DEP} ${SYSCALL_TEST_DEP} ${FUTEX_TEST_DEP} functest
- 	@echo
- 	@./abi_info_test
- 	@./time64_contract_test
-@@ -179,7 +176,7 @@ use_lib_%: _use_lib_test.c snippets/%.c lib%.so
- ## cleanup and metainformation
- 
- clean:
--	@rm -f ${OBJ} timetest shm_layout_test abi_info_test time64_contract_test set_mtime time_ops_test clock_consistency_test clock_error_test wait_contract_test wait_api_contract_test sem_contract_test wait_timeout_contract_test timerfd_contract_test asan_preload_test fd_leak_test fd_liveness_test emfile_clock_test timezone_contract_test futex_contract_test init_reentry.so fake_pid_test fake_pid_contract_test random_test file_timestamp_test syscall_contract_test getrandom_test syscall_test $(foreach f,${TEST_SNIPPETS},use_lib_${f} lib${f}.so run_${f}) variadic_promotion variadic/*.o repeat_random libmallocintercept.so
-+	@rm -f ${OBJ} timetest shm_layout_test abi_info_test time64_contract_test set_mtime time_ops_test clock_consistency_test wait_contract_test wait_api_contract_test sem_contract_test wait_timeout_contract_test timerfd_contract_test asan_preload_test fd_leak_test fd_liveness_test emfile_clock_test timezone_contract_test futex_contract_test init_reentry.so fake_pid_test fake_pid_contract_test random_test file_timestamp_test syscall_contract_test getrandom_test syscall_test $(foreach f,${TEST_SNIPPETS},use_lib_${f} lib${f}.so run_${f}) variadic_promotion variadic/*.o repeat_random libmallocintercept.so
- 
- distclean: clean
- 	@echo
-diff --git a/test/Makefile.OSX b/test/Makefile.OSX
-index 30341a7..39b0d11 100644
---- a/test/Makefile.OSX
-+++ b/test/Makefile.OSX
-@@ -14,7 +14,7 @@ ifneq ($(filter -DFAKE_PID,${CFLAGS}),)
- FAKE_PID_TEST_DEP = fake_pid_contract_test
- endif
- 
--all: timetest abi_info_test shm_layout_test set_mtime time_ops_test clock_consistency_test macos_clock_test clock_error_test wait_contract_test wait_api_contract_test sem_contract_test wait_timeout_contract_test fd_leak_test fd_liveness_test emfile_clock_test timezone_contract_test init_reentry.dylib ${FILE_TIMESTAMP_TEST_DEP} ${FAKE_PID_TEST_DEP} test
-+all: timetest abi_info_test shm_layout_test set_mtime time_ops_test clock_consistency_test macos_clock_test wait_contract_test wait_api_contract_test sem_contract_test wait_timeout_contract_test fd_leak_test fd_liveness_test emfile_clock_test timezone_contract_test init_reentry.dylib ${FILE_TIMESTAMP_TEST_DEP} ${FAKE_PID_TEST_DEP} test
- 
- .c.o:
- 	${CC} -c ${CFLAGS} $<
-@@ -37,9 +37,6 @@ time_ops_test: time_ops_test.c ../src/time_ops.h
- clock_consistency_test: clock_consistency_test.c
- 	${CC} -o $@ ${CFLAGS} $<
- 
--clock_error_test: clock_error_test.c
--	${CC} -o $@ ${CFLAGS} $< ../src/libfaketime.1.dylib
--
- wait_contract_test: wait_contract_test.c
- 	${CC} -o $@ ${CFLAGS} $<
- 
-@@ -76,7 +73,7 @@ fake_pid_contract_test: fake_pid_contract_test.c
- macos_clock_test: macos_clock_test.c
- 	${CC} -o $@ ${CFLAGS} $< ../src/libfaketime.1.dylib
- 
--test: timetest abi_info_test shm_layout_test time_ops_test clock_consistency_test set_mtime macos_clock_test clock_error_test wait_contract_test wait_api_contract_test sem_contract_test wait_timeout_contract_test fd_leak_test fd_liveness_test emfile_clock_test timezone_contract_test init_reentry.dylib ${RANDOM_TEST_DEP} ${FILE_TIMESTAMP_TEST_DEP} ${FAKE_PID_TEST_DEP} functest
-+test: timetest abi_info_test shm_layout_test time_ops_test clock_consistency_test set_mtime macos_clock_test wait_contract_test wait_api_contract_test sem_contract_test wait_timeout_contract_test fd_leak_test fd_liveness_test emfile_clock_test timezone_contract_test init_reentry.dylib ${RANDOM_TEST_DEP} ${FILE_TIMESTAMP_TEST_DEP} ${FAKE_PID_TEST_DEP} functest
- 	@echo
- 	@./abi_info_test
- 	@./time_ops_test
-@@ -87,7 +84,7 @@ functest:
- 	./testframe.sh functests
- 
- clean:
--	@rm -f ${OBJ} timetest abi_info_test shm_layout_test set_mtime time_ops_test clock_consistency_test macos_clock_test clock_error_test wait_contract_test wait_api_contract_test sem_contract_test wait_timeout_contract_test fd_leak_test fd_liveness_test emfile_clock_test timezone_contract_test init_reentry.dylib file_timestamp_test fake_pid_contract_test
-+	@rm -f ${OBJ} timetest abi_info_test shm_layout_test set_mtime time_ops_test clock_consistency_test macos_clock_test wait_contract_test wait_api_contract_test sem_contract_test wait_timeout_contract_test fd_leak_test fd_liveness_test emfile_clock_test timezone_contract_test init_reentry.dylib file_timestamp_test fake_pid_contract_test
- 
- distclean: clean
- 	@echo
-diff --git a/test/clock_error_test.c b/test/clock_error_test.c
-deleted file mode 100644
-index 43842a0..0000000
---- a/test/clock_error_test.c
-+++ /dev/null
-@@ -1,28 +0,0 @@
--#include <errno.h>
--#include <stdint.h>
--#include <stdio.h>
--#include <stdlib.h>
--#include <time.h>
--
--#ifdef __APPLE__
--int macos_clock_gettime(clockid_t clk_id, struct timespec *tp);
--#define test_clock_gettime macos_clock_gettime
--#else
--#define test_clock_gettime clock_gettime
--#endif
--
--int main(void)
--{
--  int (*clock_gettime_fn)(clockid_t, struct timespec *) = test_clock_gettime;
--  struct timespec *output = (struct timespec *)(uintptr_t)0;
--
--  errno = 0;
--  if (clock_gettime_fn(CLOCK_REALTIME, output) != -1 || errno != EFAULT)
--  {
--    fprintf(stderr, "clock_gettime(NULL) returned errno %d\n", errno);
--    return EXIT_FAILURE;
--  }
--
--  puts("clock_gettime(NULL) returned EFAULT");
--  return EXIT_SUCCESS;
--}
-diff --git a/test/functests/test_clock_contract.sh b/test/functests/test_clock_contract.sh
-index 1425889..e7afe02 100644
---- a/test/functests/test_clock_contract.sh
-+++ b/test/functests/test_clock_contract.sh
-@@ -20,7 +20,6 @@ run()
- 	run_testcase monotonic_is_non_decreasing
- 	run_testcase sleep_returns
- 	run_testcase invalid_clock_id_fails
--	run_testcase null_clock_output_fails
- 	run_testcase past_wait_deadlines_timeout
- 	run_testcase semaphore_deadlines
- 	run_testcase semaphore_deadlines_absolute
-@@ -118,14 +117,6 @@ invalid_clock_id_fails()
- 	asserteq "$result" "ok" "invalid clock id should fail"
- }
- 
--null_clock_output_fails()
--{
--	typeset result
--	result=$(fakecmd "+0" ./clock_error_test)
--	asserteq "$result" "clock_gettime(NULL) returned EFAULT" \
--		"null clock output should fail with EFAULT"
--}
--
- past_wait_deadlines_timeout()
- {
- 	typeset result
-diff --git a/test/sem_contract_test.c b/test/sem_contract_test.c
-index e72f00f..6d20102 100644
---- a/test/sem_contract_test.c
-+++ b/test/sem_contract_test.c
-@@ -87,7 +87,6 @@ int main(void)
-   char name[64];
-   sem_t *semaphore;
-   struct timespec deadline;
--  int (*sem_timedwait_fn)(sem_t *, const struct timespec *) = sem_timedwait;
- 
-   (void)snprintf(name, sizeof(name), "/libfaketime-sem-%ld", (long)getpid());
-   sem_unlink(name);
-@@ -117,16 +116,6 @@ int main(void)
-     return EXIT_FAILURE;
-   }
- 
--  report_case("null-deadline");
--  errno = 0;
--  if (sem_timedwait_fn(semaphore, NULL) != -1 || errno != EINVAL)
--  {
--    fprintf(stderr, "null semaphore deadline returned errno %d\n", errno);
--    sem_close(semaphore);
--    sem_unlink(name);
--    return EXIT_FAILURE;
--  }
--
-   report_case("realtime-future");
-   if (check_future_realtime_wait(semaphore) != EXIT_SUCCESS)
-   {
--- 
-2.55.0
-

diff --git a/libfaketime.spec b/libfaketime.spec
index 7fe078e..8968e0f 100644
--- a/libfaketime.spec
+++ b/libfaketime.spec
@@ -1,6 +1,6 @@
 Name:       libfaketime
-Version:    0.9.13
-Release:    5%{?dist}
+Version:    0.9.14
+Release:    1%{?dist}
 Summary:    Manipulate system time per process for testing purposes
 # COPYING:                  GPLv2 text
 # man/faketime.1:           "GNU General Public License, see COPYING"
@@ -22,12 +22,6 @@ Source:     %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
 # Make the libraries executable, needed for stripping them. Not suitable for
 # upstream, e.g. Debian does not like it.
 Patch0:     libfaketime-0.9.12-Dynamic-libraries-are-expected-to-be-executable-on-F.patch
-# Remove tests which pass NULL to syscalls and are surprised with a segfault,
-# in upstream after 0.9.13, <https://github.com/wolfcw/libfaketime/issues/554>
-Patch1:     libfaketime-0.9.13-Remove-tests-passing-NULL-to-sem_timedwait-and-clock.patch
-# Enable LTO, in upstream after 0.9.13,
-# <https://github.com/wolfcw/libfaketime/pull/557>
-Patch2:     libfaketime-0.9.13-Adapt-symbol-versioning-to-LTO.patch
 BuildRequires:  coreutils
 BuildRequires:  gcc
 BuildRequires:  make
@@ -82,6 +76,9 @@ rm -fr %{buildroot}/%{_docdir}/faketime
 %{_mandir}/man1/faketime.1*
 
 %changelog
+* Thu Nov 19 2026 Petr Pisar <ppisar@redhat.com> - 0.9.14-1
+- 0.9.14 bump
+
 * Fri Sep 11 2026 Petr Pisar <ppisar@redhat.com> - 0.9.13-5
 - Move from automatic release numbering to manual one
 

diff --git a/sources b/sources
index 37274f5..b81a804 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (libfaketime-0.9.13.tar.gz) = 0116e40310684d02dc1af6691e09c001e2b0a692baf0bdcba23d5693faa1874d34b1dd6391f01ccfb1edced2c6317734335f643103887445372c355e1656e664
+SHA512 (libfaketime-0.9.14.tar.gz) = 0ed2b6de1efb21b1041e338aff8b7b6a93b4c471a6fa496446d0a692d74557ca1aa2011cfd62fe3ea7ed945181249c5feff02b7d9bbca0b76d97200ce7a954f3

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-20  7:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-20  7:28 [rpms/libfaketime] f43: 0.9.14 bump 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox