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 gdb-readline62-ask-more-rh.patch for Rawhide readline-7.0.
Date: Sat, 27 Jun 2026 23:58:04 GMT	[thread overview]
Message-ID: <178260468454.1.13186002987108555303.rpms-gdb-194c0860de73@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/gdb
Branch : gdb-17.2-rebase-f44
Commit : 194c0860de7383cb82bbc6d28c64ba07bb5bea72
Author : Jan Kratochvil <jan.kratochvil@redhat.com>
Date   : 2017-01-13T11:27:14+01:00
Stats  : +9/-3 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/gdb/c/194c0860de7383cb82bbc6d28c64ba07bb5bea72?branch=gdb-17.2-rebase-f44

Log:
Fix gdb-readline62-ask-more-rh.patch for Rawhide readline-7.0.

---
diff --git a/gdb.spec b/gdb.spec
index a4ba44a..701115a 100644
--- a/gdb.spec
+++ b/gdb.spec
@@ -26,7 +26,7 @@ Version: 7.12
 
 # 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: 38%{?dist}
+Release: 39%{?dist}
 
 License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and BSD and Public Domain and GFDL
 Group: Development/Debuggers
@@ -1092,8 +1092,11 @@ CFLAGS="$CFLAGS -DPERF_ATTR_SIZE_VER5_BUNDLE"
 %endif
 
 # Patch642: gdb-readline62-ask-more-rh.patch
-%if 0%{!?rhel:1} || 0%{?rhel} > 6
+%if 0%{?rhel} == 7
 CFLAGS="$CFLAGS -DNEED_RL_STATE_FEDORA_GDB"
+%else
+# FIXME: Why not just: ! grep -w ...
+if grep -w RL_STATE_FEDORA_GDB %{_includedir}/readline/readline.h;then false;fi
 %endif
 
 # Patch337: gdb-6.8-attach-signalled-detach-stopped.patch
@@ -1583,7 +1586,10 @@ then
 fi
 
 %changelog
-* Thu Jan 12 2017 Igor Gnatenko <ignatenko@redhat.com> - 7.12-38
+* Thu Jan 12 2017 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.12-39.fc26
+- Fix gdb-readline62-ask-more-rh.patch for Rawhide readline-7.0.
+
+* Thu Jan 12 2017 Igor Gnatenko <ignatenko@redhat.com> - 7.12-38.fc26
 - Rebuild for readline 7.x
 
 * Thu Jan 12 2017 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.12-37.fc25

                 reply	other threads:[~2026-06-27 23:58 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=178260468454.1.13186002987108555303.rpms-gdb-194c0860de73@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