public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/gdb] gdb-17.2-rebase-f44: Make gdb export %{_libdir}/gdb as a package
@ 2026-06-28 0:01 Guinevere Larsen
0 siblings, 0 replies; only message in thread
From: Guinevere Larsen @ 2026-06-28 0:01 UTC (permalink / raw)
To: git-commits
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.
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-28 0:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-28 0:01 [rpms/gdb] gdb-17.2-rebase-f44: Make gdb export %{_libdir}/gdb as a package Guinevere Larsen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox