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 BuildRequires for RHEL compatibility (BZ 701131).
Date: Sat, 27 Jun 2026 23:55:20 GMT	[thread overview]
Message-ID: <178260452069.1.8843687847172603849.rpms-gdb-ec2642483948@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/gdb
Branch : gdb-17.2-rebase-f44
Commit : ec2642483948d911ad8473a321eb1e46d64dd0be
Author : Jan Kratochvil <jan.kratochvil@redhat.com>
Date   : 2012-01-11T17:18:28+01:00
Stats  : +18/-3 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/gdb/c/ec2642483948d911ad8473a321eb1e46d64dd0be?branch=gdb-17.2-rebase-f44

Log:
Fix BuildRequires for RHEL compatibility (BZ 701131).

---
diff --git a/gdb.spec b/gdb.spec
index a7d6c46..0623cfa 100644
--- a/gdb.spec
+++ b/gdb.spec
@@ -28,7 +28,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: 6%{?_with_upstream:.upstream}%{?dist}
+Release: 7%{?_with_upstream:.upstream}%{?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
@@ -535,11 +535,19 @@ Patch640: gdb-build-libgdb-2of3.patch
 Patch641: gdb-build-libgdb-3of3.patch
 
 # Work around readline-6.2 incompatibility not asking for --more-- (BZ 701131).
+#=fedora
 Patch642: gdb-readline62-ask-more-rh.patch
 
-BuildRequires: ncurses-devel%{?_isa} texinfo gettext flex bison expat-devel%{?_isa}
+%if 0%{!?rhel:1} || 0%{?rhel} > 6
+# RL_STATE_FEDORA_GDB would not be found for:
+# Patch642: gdb-readline62-ask-more-rh.patch
 # --with-system-readline
+BuildRequires: readline-devel%{?_isa} >= 6.2-4.fc17
+%else
 BuildRequires: readline-devel%{?_isa}
+%endif # 0%{!?rhel:1} || 0%{?rhel} > 6
+
+BuildRequires: ncurses-devel%{?_isa} texinfo gettext flex bison expat-devel%{?_isa}
 %if 0%{!?el5:1}
 # dlopen() no longer makes rpm-libs%{?_isa} (it's .so) a mandatory dependency.
 BuildRequires: rpm-devel%{?_isa}
@@ -797,7 +805,6 @@ rm -f gdb/jv-exp.c gdb/m2-exp.c gdb/objc-exp.c gdb/p-exp.c
 %patch639 -p1
 %patch640 -p1
 %patch641 -p1
-%patch642 -p1
 
 %patch393 -p1
 %patch335 -p1
@@ -808,6 +815,9 @@ rm -f gdb/jv-exp.c gdb/m2-exp.c gdb/objc-exp.c gdb/p-exp.c
 %if 0%{?rhel:1} && 0%{?rhel} <= 6
 %patch487 -p1
 %endif # 0%{?rhel:1} && 0%{?rhel} <= 6
+%if 0%{!?rhel:1} || 0%{?rhel} > 6
+%patch642 -p1
+%endif # 0%{!?rhel:1} || 0%{?rhel} > 6
 
 find -name "*.orig" | xargs rm -f
 ! find -name "*.rej" # Should not happen.
@@ -830,12 +840,14 @@ rm -f bfd/doc/*.info-*
 rm -f gdb/doc/*.info
 rm -f gdb/doc/*.info-*
 
+%if 0%{!?rhel:1} || 0%{?rhel} > 6
 # RL_STATE_FEDORA_GDB would not be found for:
 # Patch642: gdb-readline62-ask-more-rh.patch
 # --with-system-readline
 mv -f readline/doc readline-doc
 rm -rf readline/*
 mv -f readline-doc readline/doc
+%endif # 0%{!?rhel:1} || 0%{?rhel} > 6
 
 %build
 
@@ -1222,6 +1234,9 @@ fi
 %{_infodir}/gdb.info*
 
 %changelog
+* Wed Jan 11 2012 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.4.50.20120103-7.fc17
+- Fix BuildRequires for RHEL compatibility (BZ 701131).
+
 * Wed Jan 11 2012 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.4.50.20120103-6.fc17
 - Provide %%snap timestamp for: Provides: bundled(librarypackage)
 - Replace %%define by %%global.

                 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=178260452069.1.8843687847172603849.rpms-gdb-ec2642483948@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