public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: U2FsdGVkX1 <U2FsdGVkX1@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/libfaketime] epel10.3: Fix riscv64 build hang in check
Date: Fri, 20 Nov 2026 07:27:27 GMT [thread overview]
Message-ID: <179515964797.1.10672315058744971080.rpms-libfaketime-c5e2e8023fff@fedoraproject.org> (raw)
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
reply other threads:[~2026-11-20 7:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179515964797.1.10672315058744971080.rpms-libfaketime-c5e2e8023fff@fedoraproject.org \
--to=u2fsdgvkx1@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox