public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Mark Wielaard <mark@klomp.org>
To: git-commits@fedoraproject.org
Subject: [rpms/gdb] gdb-17.2-rebase-f44: Adjust gdb-add-index.patch to be silent about which gdb
Date: Sun, 28 Jun 2026 00:01:15 GMT [thread overview]
Message-ID: <178260487579.1.9516288105649788866.rpms-gdb-2b402b25f459@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/gdb
Branch : gdb-17.2-rebase-f44
Commit : 2b402b25f45937bd25331859a08225d4233c383d
Author : Mark Wielaard <mark@klomp.org>
Date : 2023-07-01T18:31:16+02:00
Stats : +5/-2 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/gdb/c/2b402b25f45937bd25331859a08225d4233c383d?branch=gdb-17.2-rebase-f44
Log:
Adjust gdb-add-index.patch to be silent about which gdb
Every invocation of gdb-add-index will print which possible
gdb command will be used. This is because the which command
always prints the name of the command found. Redirect both
stdout and stderr to /dev/null to suppress this when the
output isn't needed.
---
diff --git a/gdb-add-index.patch b/gdb-add-index.patch
index b95e06f..5039172 100644
--- a/gdb-add-index.patch
+++ b/gdb-add-index.patch
@@ -52,7 +52,7 @@ diff --git a/gdb/contrib/gdb-add-index.sh b/gdb/contrib/gdb-add-index.sh
+# exit.
+if test -z "$GDB"; then
+ for possible_gdb in /usr/bin/gdb.minimal gdb /usr/libexec/gdb; do
-+ if ! which "$possible_gdb" 2>/dev/null; then
++ if ! which "$possible_gdb" >/dev/null 2>&1; then
+ continue
+ fi
+
diff --git a/gdb.spec b/gdb.spec
index 13e4f89..2142369 100644
--- a/gdb.spec
+++ b/gdb.spec
@@ -57,7 +57,7 @@ Version: 13.2
# 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: 3%{?dist}
+Release: 4%{?dist}
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and LGPLv3+ and BSD and Public Domain and GFDL
# Do not provide URL for snapshots as the file lasts there only for 2 days.
@@ -1252,6 +1252,9 @@ fi
%endif
%changelog
+* Sat Jul 1 2023 Mark Wielaard <mjw@fedoraproject.org> - 13.2-4
+- Adjust gdb-add-index.patch to be silent about which gdb.
+
* Fri Jun 30 2023 Kevin Buettner <kevinb@redhat.com> - 13.2-3
- Backport upstream changes which prevent repeated warnings from being
printed when loading a core file (RHBZ 2160211, Lancelot SIX).
reply other threads:[~2026-06-28 0:01 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=178260487579.1.9516288105649788866.rpms-gdb-2b402b25f459@fedoraproject.org \
--to=mark@klomp.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