public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jonathan Wright <jonathan@almalinux.org>
To: git-commits@fedoraproject.org
Subject: [rpms/btop] f43: fix build on epel9 due to non-standard functions in older glibc
Date: Sun, 31 May 2026 13:31:27 GMT [thread overview]
Message-ID: <178023428768.1.14570507216046076786.rpms-btop-5adebfc63dba@fedoraproject.org> (raw)
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
reply other threads:[~2026-05-31 13:31 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=178023428768.1.14570507216046076786.rpms-btop-5adebfc63dba@fedoraproject.org \
--to=jonathan@almalinux.org \
--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