public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/gdb] gdb-17.2-rebase-f44: Fix libinproctrace.so build on RHEL-5 i386 (disable it on RHEL-5).
Date: Sat, 27 Jun 2026 23:55:26 GMT	[thread overview]
Message-ID: <178260452682.1.10626240509075490951.rpms-gdb-55c3b84dd7bb@fedoraproject.org> (raw)

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.
 

                 reply	other threads:[~2026-06-27 23:55 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=178260452682.1.10626240509075490951.rpms-gdb-55c3b84dd7bb@fedoraproject.org \
    --to=jan.kratochvil@redhat.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