public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/gdb] gdb-17.2-rebase-f44: Fix libinproctrace.so build on RHEL-5 i386 (disable it on RHEL-5).
@ 2026-06-27 23:55 Jan Kratochvil
0 siblings, 0 replies; only message in thread
From: Jan Kratochvil @ 2026-06-27 23:55 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/gdb
Branch : gdb-17.2-rebase-f44
Commit : 55c3b84dd7bbfb979a2a699eca64f6b8a1f7a893
Author : Jan Kratochvil <jan.kratochvil@redhat.com>
Date : 2012-02-22T23:08:37+01:00
Stats : +20/-3 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/gdb/c/55c3b84dd7bbfb979a2a699eca64f6b8a1f7a893?branch=gdb-17.2-rebase-f44
Log:
Fix libinproctrace.so build on RHEL-5 i386 (disable it on RHEL-5).
---
diff --git a/gdb.spec b/gdb.spec
index e76139a..a814908 100644
--- a/gdb.spec
+++ b/gdb.spec
@@ -33,7 +33,7 @@ Version: 7.4.50.%{snap}
# The release always contains a leading reserved number, start it at 1.
# `upstream' is not a part of `name' to stay fully rpm dependencies compatible for the testing.
-Release: 19%{?dist}
+Release: 20%{?dist}
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and BSD and Public Domain
Group: Development/Debuggers
@@ -56,6 +56,15 @@ URL: http://gnu.org/software/gdb/
Obsoletes: gdb64 < 5.3.91
%endif
+%global have_inproctrace 0
+%ifarch %{ix86} x86_64
+# RHEL-5.i386: [int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);]
+# undefined reference to `__sync_val_compare_and_swap_4'
+%if 0%{!?el5:1}
+%global have_inproctrace 1
+%endif # 0%{!?el5:1}
+%endif # %{ix86} x86_64
+
# Nobody is going to run gdb-add-index from SCL package on RHEL-5.
%if !(0%{?el5:1} && 0%{?scl:1})
# eu-strip: -g recognizes .gdb_index as a debugging section. (#631997)
@@ -892,6 +901,11 @@ $(: RHEL-5 librpm has incompatible API. ) \
--without-mmap \
%endif
--enable-64-bit-bfd \
+%if %{have_inproctrace}
+ --enable-inprocess-agent \
+%else # !%{have_inproctrace}
+ --disable-inprocess-agent \
+%endif # !%{have_inproctrace}
%ifarch sparc sparcv9
sparc-%{_vendor}-%{_target_os}%{?_gnu}
%else
@@ -1191,9 +1205,9 @@ fi
%defattr(-,root,root)
%{_bindir}/gdbserver
%{_mandir}/*/gdbserver.1*
-%ifarch %{ix86} x86_64
+%if %{have_inproctrace}
%{_libdir}/libinproctrace.so
-%endif
+%endif # %{have_inproctrace}
%endif
%files doc
@@ -1203,6 +1217,9 @@ fi
%{_infodir}/gdb.info*
%changelog
+* Wed Feb 22 2012 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.4.50.20120120-20.fc17
+- Fix libinproctrace.so build on RHEL-5 i386 (disable it on RHEL-5).
+
* Wed Feb 22 2012 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.4.50.20120120-19.fc17
- Implement SCL (scl-utils-build) macros.
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-27 23:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-27 23:55 [rpms/gdb] gdb-17.2-rebase-f44: Fix libinproctrace.so build on RHEL-5 i386 (disable it on RHEL-5) Jan Kratochvil
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox