public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rpm] pmatilai-v6: - create gdb index on debuginfo generation (#617166)
@ 2026-11-23  9:26 Panu Matilainen
  0 siblings, 0 replies; only message in thread
From: Panu Matilainen @ 2026-11-23  9:26 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/rpm
            Branch : pmatilai-v6
            Commit : 5e5b68f3e772eeafd2d5d90efaa73e9680e2c4ec
            Author : Panu Matilainen <pmatilai@redhat.com>
            Date   : 2010-08-10T10:09:03+03:00
            Stats  : +28/-1 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/rpm/c/5e5b68f3e772eeafd2d5d90efaa73e9680e2c4ec?branch=pmatilai-v6

            Log:
            - create gdb index on debuginfo generation (#617166)
- rpm-build now requires /usr/bin/gdb-add-index for consistent index creation

---
diff --git a/rpm-4.8.1-find-debuginfo-gdb-index.patch b/rpm-4.8.1-find-debuginfo-gdb-index.patch
new file mode 100644
index 0000000..4ec8985
--- /dev/null
+++ b/rpm-4.8.1-find-debuginfo-gdb-index.patch
@@ -0,0 +1,20 @@
+commit 9570a7f6af152e2f1e63181ad8a20d12a10e3c5b
+Author: Tom Tromey <tromey@redhat.com>
+Date:   Mon Aug 9 15:22:51 2010 +0300
+
+    Create GDB index from find-debuginfo if possible (RhBug:617166)
+    - Details in https://fedoraproject.org/wiki/Features/GdbIndex
+
+diff --git a/scripts/find-debuginfo.sh b/scripts/find-debuginfo.sh
+index 01456da..3ada962 100644
+--- a/scripts/find-debuginfo.sh
++++ b/scripts/find-debuginfo.sh
+@@ -207,6 +207,8 @@ while read nlinks inum f; do
+     $strict && exit 2
+   fi
+ 
++  [ -x /usr/bin/gdb-add-index ] && /usr/bin/gdb-add-index "$f" > /dev/null 2>&1
++
+   # A binary already copied into /usr/lib/debug doesn't get stripped,
+   # just has its file names collected and adjusted.
+   case "$dn" in

diff --git a/rpm.spec b/rpm.spec
index 425fd56..40e9a28 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -21,7 +21,7 @@
 Summary: The RPM package management system
 Name: rpm
 Version: %{rpmver}
-Release: 4%{?dist}
+Release: 5%{?dist}
 Group: System Environment/Base
 Url: http://www.rpm.org/
 Source0: http://rpm.org/releases/rpm-4.8.x/%{name}-%{srcver}.tar.bz2
@@ -46,6 +46,7 @@ Patch201: rpm-4.8.0-python-bytecompile.patch
 Patch202: rpm-4.8.0-findlang-localedirs.patch
 Patch203: rpm-4.8.1-eat-stdin.patch
 Patch204: rpm-4.8.1-getoutput-emsg.patch
+Patch205: rpm-4.8.1-find-debuginfo-gdb-index.patch
 
 # These are not yet upstream
 Patch301: rpm-4.6.0-niagara.patch
@@ -146,6 +147,7 @@ Requires: elfutils >= 0.128 binutils
 Requires: findutils sed grep gawk diffutils file patch >= 2.5
 Requires: unzip gzip bzip2 cpio xz
 Requires: pkgconfig >= 1:0.24
+Requires: /usr/bin/gdb-add-index
 Conflicts: ocaml-runtime < 3.11.1-7
 
 %description build
@@ -198,6 +200,7 @@ packages on a system.
 %patch202 -p1 -b .findlang-localedirs
 %patch203 -p1 -b .eat-stdin
 %patch204 -p1 -b .getoutput-emsg
+%patch205 -p1 -b .find-debuginfo-gdb-index
 
 %patch301 -p1 -b .niagara
 %patch302 -p1 -b .geode
@@ -414,6 +417,10 @@ exit 0
 %doc doc/librpm/html/*
 
 %changelog
+* Tue Aug 10 2010 Panu Matilainen <pmatilai@redhat.com> - 4.8.1-5
+- create gdb index on debuginfo generation (#617166)
+- rpm-build now requires /usr/bin/gdb-add-index for consistent index creation
+
 * Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 4.8.1-4
 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-23  9:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23  9:26 [rpms/rpm] pmatilai-v6: - create gdb index on debuginfo generation (#617166) Panu Matilainen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox