public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Guinevere Larsen <guinevere@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/gdb] gdb-17.2-rebase-f44: Make gdb export %{_libdir}/gdb as a package
Date: Sun, 28 Jun 2026 00:01:53 GMT [thread overview]
Message-ID: <178260491303.1.12221979121840270991.rpms-gdb-95e70863cfca@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/gdb
Branch : gdb-17.2-rebase-f44
Commit : 95e70863cfca8d662d7de8b799ee796da0edef74
Author : Guinevere Larsen <guinevere@redhat.com>
Date : 2024-10-24T17:14:23-03:00
Stats : +9/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/gdb/c/95e70863cfca8d662d7de8b799ee796da0edef74?branch=gdb-17.2-rebase-f44
Log:
Make gdb export %{_libdir}/gdb as a package
GDB's documentation explains that JIT readers should be placed in the
folder {_libdir}/gdb to be found when a user attempts to load a reader.
However, our package never created the folder in the first place, much
less provide it. This commit updates the spec file to provide that
folder, so other packages providing JIT readers for GDB can rest assured
it exists.
This was suggested in RHBZ#2308270, an unrelated bug.
---
diff --git a/gdb.spec b/gdb.spec
index edfc8b8..5e5fe12 100644
--- a/gdb.spec
+++ b/gdb.spec
@@ -786,6 +786,9 @@ for i in `find $RPM_BUILD_ROOT%{_datadir}/gdb -name "*.py"`; do
done
%endif
+# Create the folder where GDB expects to find custom JIT readers.
+mkdir -p %{buildroot}%{_libdir}/gdb
+
# Remove the files that are part of a gdb build but that are owned and
# provided by other packages.
# These are part of binutils
@@ -847,6 +850,8 @@ rmdir $RPM_BUILD_ROOT%{_datadir}/gdb/system-gdbinit
# Provide gdb/jit-reader.h so that users are able to write their own GDB JIT
# plugins.
%{_includedir}/gdb
+# Export the folder where JIT readers should be placed.
+%dir %{_libdir}/gdb
%if 0%{!?scl:1}
%files headless
%{_prefix}/libexec/gdb
@@ -926,6 +931,10 @@ fi
# endif scl
%changelog
+* Thu Oct 24 2024 Guinevere Larsen <guinevere@redhat.com>
+- Make the GDB package provide the libdir/gdb folder, so that packages
+ that provide a JIT reader don't need to create it on their own.
+
* Fri Oct 4 2024 Alexandra Hájková <ahajkova@redhat.com> - 15.2-2
- Rebase to FSF GDB 15.2.
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=178260491303.1.12221979121840270991.rpms-gdb-95e70863cfca@fedoraproject.org \
--to=guinevere@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