public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libfaketime] epel10.3: Fix riscv64 build hang in check
@ 2026-11-20  7:27 U2FsdGVkX1
  0 siblings, 0 replies; only message in thread
From: U2FsdGVkX1 @ 2026-11-20  7:27 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/libfaketime
            Branch : epel10.3
            Commit : c5e2e8023ffff27d2d6013d482af8fbb33d1f086
            Author : U2FsdGVkX1 <U2FsdGVkX1@gmail.com>
            Date   : 2025-12-09T17:04:16+08:00
            Stats  : +6/-0 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/libfaketime/c/c5e2e8023ffff27d2d6013d482af8fbb33d1f086?branch=epel10.3

            Log:
            Fix riscv64 build hang in check

1. libfaketime attempts to intercept pthread_cond_timedwait by dlvsym()
   lookup for GLIBC_2.3.2 and GLIBC_2.2.5 versions. However, on riscv64
   with glibc 2.41, only pthread_cond_timedwait@@GLIBC_2.27 exists.
   This causes function interception to fail or be incomplete.
2. pthread_cond_timedwait requires proper conversion between fake time
   and real time. Without proper handling, the timeout calculation
   becomes incorrect, leading to infinite waits.

---
diff --git a/libfaketime.spec b/libfaketime.spec
index 5449932..9cbfbdd 100644
--- a/libfaketime.spec
+++ b/libfaketime.spec
@@ -30,6 +30,9 @@ system time a program sees without having to change the time system-wide.
 %ifarch ppc64le
   export FAKETIME_COMPILE_CFLAGS="-DFORCE_PTHREAD_NONVER"
 %endif
+%ifarch riscv64
+  export FAKETIME_COMPILE_CFLAGS="-DFORCE_MONOTONIC_FIX -DFORCE_PTHREAD_NONVER"
+%endif
 
 %set_build_flags
 %make_build PREFIX=%{_prefix} LIBDIRNAME=/%{_lib} all
@@ -38,6 +41,9 @@ system time a program sees without having to change the time system-wide.
 %ifarch ppc64le
   export FAKETIME_COMPILE_CFLAGS="-DFORCE_PTHREAD_NONVER"
 %endif
+%ifarch riscv64
+  export FAKETIME_COMPILE_CFLAGS="-DFORCE_MONOTONIC_FIX -DFORCE_PTHREAD_NONVER"
+%endif
 
 make PREFIX=%{_prefix} LIBDIRNAME=/%{_lib} -C test
 

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

only message in thread, other threads:[~2026-11-20  7:27 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:27 [rpms/libfaketime] epel10.3: Fix riscv64 build hang in check U2FsdGVkX1

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