[packages/debugedit] - add patch from rpm package, rel 5
baggins
baggins at pld-linux.org
Sat Nov 23 11:18:37 CET 2024
commit 3eecc43a489f00ba38d60b6d643f7e18b7873841
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sat Nov 23 10:13:27 2024 +0100
- add patch from rpm package, rel 5
builddir-readlink.patch | 24 ++++++++++++++++++++++++
debugedit.spec | 4 +++-
2 files changed, 27 insertions(+), 1 deletion(-)
---
diff --git a/debugedit.spec b/debugedit.spec
index d41d92a..d449a8c 100644
--- a/debugedit.spec
+++ b/debugedit.spec
@@ -6,13 +6,14 @@ Summary: Tools for debuginfo creation
Summary(pl.UTF-8): Narzędzia do tworzenia plików z danymi dla debuggerów
Name: debugedit
Version: 5.0
-Release: 4
+Release: 5
License: GPL v3+, GPL v2+
Group: Development/Tools
Source0: https://sourceware.org/ftp/debugedit/%{version}/%{name}-%{version}.tar.xz
# Source0-md5: 9961a1ae59b6417d27e3a646dc4078b7
Patch0: 0001-tests-Handle-zero-directory-entry-in-.debug_line-DWA.patch
Patch1: no-exe-for-elf-debuginfo.patch
+Patch2: builddir-readlink.patch
URL: https://sourceware.org/debugedit/
BuildRequires: autoconf >= 1.69
BuildRequires: automake >= 1:1.11
@@ -48,6 +49,7 @@ profilowania oprogramowania.
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
%{__aclocal}
diff --git a/builddir-readlink.patch b/builddir-readlink.patch
new file mode 100644
index 0000000..3eac9ff
--- /dev/null
+++ b/builddir-readlink.patch
@@ -0,0 +1,24 @@
+--- rpm-4.5/scripts/find-debuginfo.in~ 2010-01-27 19:25:48.000000000 +0200
++++ rpm-4.5/scripts/find-debuginfo.in 2010-01-27 20:23:37.279516094 +0200
+@@ -385,6 +385,9 @@
+ debug_base_name="$BUILDDIR"
+ debug_dest_name="/usr/src/debug/${unique_debug_src_base}"
+ fi
++# canon debug_base_name, the DW_AT_comp_dir in ELF objects is real a real path
++# and debugedit will ignore them as they are out of build dir.
++ debug_base_name=$(readlink -f "$debug_base_name")
+ no_recompute=
+ if [ "$no_recompute_build_id" = "true" ]; then
+ no_recompute="-n"
+@@ -398,6 +400,11 @@
+ $strict && exit 2
+ fi
+
++ if [ ! -s "$SOURCEFILE" ]; then
++ echo >&2 "*** ${strict_error}: no sources found for $f (stripped without sourcefile information?)"
++ $strict && exit 2
++ fi
++
+ # Add .gdb_index if requested.
+ if $include_gdb_index; then
+ if type gdb-add-index >/dev/null 2>&1; then
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/debugedit.git/commitdiff/3eecc43a489f00ba38d60b6d643f7e18b7873841
More information about the pld-cvs-commit
mailing list