public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/btop] f43: fix build on epel9 due to non-standard functions in older glibc
@ 2026-05-31 13:31 Jonathan Wright
  0 siblings, 0 replies; only message in thread
From: Jonathan Wright @ 2026-05-31 13:31 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/btop
Branch : f43
Commit : 5adebfc63dba4439d642d71bcb6d242c1c78778b
Author : Jonathan Wright <jonathan@almalinux.org>
Date   : 2026-01-15T09:27:48-06:00
Stats  : +11/-4 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/btop/c/5adebfc63dba4439d642d71bcb6d242c1c78778b?branch=f43

Log:
fix build on epel9 due to non-standard functions in older glibc

---
diff --git a/btop.spec b/btop.spec
index 81c6a0b..02c86f0 100644
--- a/btop.spec
+++ b/btop.spec
@@ -29,9 +29,9 @@ BuildRequires:  gcc-toolset-12-annobin-plugin-gcc
 BuildRequires:  gcc-toolset-12-binutils
 %endif
 %if 0%{?el9}
-BuildRequires:  gcc-toolset-13-gcc-c++
-BuildRequires:  gcc-toolset-13-annobin-plugin-gcc
-BuildRequires:  gcc-toolset-13-binutils
+BuildRequires:  gcc-toolset-14-gcc-c++
+BuildRequires:  gcc-toolset-14-gcc-plugin-annobin
+BuildRequires:  gcc-toolset-14-binutils
 %endif
 
 # AMD GPU support
@@ -63,10 +63,14 @@ C++ version and continuation of bashtop and bpytop.
 
 %build
 %{?el8:. /opt/rh/gcc-toolset-12/enable}
-%{?el9:. /opt/rh/gcc-toolset-13/enable}
+%{?el9:. /opt/rh/gcc-toolset-14/enable}
 
 # to build debuginfo
 export CXXFLAGS="${CXXFLAGS} -g"
+# fix build error on epel9 using non-standard functions in older glibc
+%if 0%{?el9}
+sed -i '1i #define _GNU_SOURCE' src/linux/intel_gpu_top/intel_gpu_top.c
+%endif
 %make_build
 
 
@@ -87,6 +91,9 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/btop.desktop
 
 
 %changelog
+* Thu Jan 15 2026 Jonathan Wright <jonathan@almalinux.org> - 1.4.6-2
+- fix build on EL9
+
 * Thu Jan 15 2026 Jonathan Wright <jonathan@almalinux.org> - 1.4.6-1
 - update to 1.4.6 rhbz#2397033
 

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

only message in thread, other threads:[~2026-05-31 13:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-31 13:31 [rpms/btop] f43: fix build on epel9 due to non-standard functions in older glibc Jonathan Wright

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