[packages/debugedit] up to 5.2

atler atler at pld-linux.org
Fri Sep 5 01:05:52 CEST 2025


commit d3bc84e623adbbeac52786dbae244c60dc5b8460
Author: Jan Palus <atler at pld-linux.org>
Date:   Fri Sep 5 01:05:18 2025 +0200

    up to 5.2

 builddir-readlink.patch        |  6 +++---
 debugedit.spec                 |  7 ++++---
 no-exe-for-elf-debuginfo.patch | 25 +++++++++++++------------
 3 files changed, 20 insertions(+), 18 deletions(-)
---
diff --git a/debugedit.spec b/debugedit.spec
index 55b97c4..3d2028c 100644
--- a/debugedit.spec
+++ b/debugedit.spec
@@ -5,12 +5,12 @@
 Summary:	Tools for debuginfo creation
 Summary(pl.UTF-8):	Narzędzia do tworzenia plików z danymi dla debuggerów
 Name:		debugedit
-Version:	5.1
-Release:	2
+Version:	5.2
+Release:	1
 License:	GPL v3+, GPL v2+
 Group:		Development/Tools
 Source0:	https://sourceware.org/pub/debugedit/%{version}/%{name}-%{version}.tar.xz
-# Source0-md5:	25b796b3998d3c33aedcac2216f34dd9
+# Source0-md5:	203f134fff592d80c413ed74b087b5c6
 Patch0:		hardlinks-outside-buildroot.patch
 Patch1:		no-exe-for-elf-debuginfo.patch
 Patch2:		builddir-readlink.patch
@@ -18,6 +18,7 @@ URL:		https://sourceware.org/debugedit/
 BuildRequires:	autoconf >= 1.69
 BuildRequires:	automake >= 1:1.11
 BuildRequires:	elfutils-devel
+%{?with_tests:BuildRequires:	gdb}
 BuildRequires:	help2man
 BuildRequires:	pkgconfig
 BuildRequires:	tar >= 1:1.22
diff --git a/builddir-readlink.patch b/builddir-readlink.patch
index 4fdcc19..06645a7 100644
--- a/builddir-readlink.patch
+++ b/builddir-readlink.patch
@@ -19,6 +19,6 @@
 +    $strict && exit 2
 +  fi
 +
-   # Add .gdb_index if requested.
-   if $include_gdb_index; then
-     if type gdb-add-index >/dev/null 2>&1; then
+   $verbose && echo found $(tr -dc '\0' < "$SOURCEFILE" | wc -c) source files
+   
+   # debugedit makes sure to to get write permission to the file and
diff --git a/no-exe-for-elf-debuginfo.patch b/no-exe-for-elf-debuginfo.patch
index 4c99636..e503ac7 100644
--- a/no-exe-for-elf-debuginfo.patch
+++ b/no-exe-for-elf-debuginfo.patch
@@ -1,13 +1,14 @@
---- debugedit-5.0/scripts/find-debuginfo.in.orig	2021-07-27 01:05:31.867817624 +0200
-+++ debugedit-5.0/scripts/find-debuginfo.in	2022-08-16 21:51:22.254424409 +0200
-@@ -413,9 +413,8 @@
- # Build a list of unstripped ELF files and their hardlinks
+--- debugedit-5.2/scripts/find-debuginfo.in.orig	2025-09-05 00:27:53.611458082 +0200
++++ debugedit-5.2/scripts/find-debuginfo.in	2025-09-05 00:31:29.180856030 +0200
+@@ -462,9 +462,9 @@
  touch "$temp/primary"
- find "$RPM_BUILD_ROOT" ! -path "${debugdir}/*.debug" -type f \
--     		     \( -perm -0100 -or -perm -0010 -or -perm -0001 \) \
- 		     -print | LC_ALL=C sort |
--file -N -f - | sed -n -e 's/^\(.*\):[ 	]*.*ELF.*, not stripped.*/\1/p' |
-+file -N -f - | sed -n -e 's/^\(.*\):[ 	]*.*ELF.*\(executable\|shared object\).*, not stripped.*/\1/p' |
- xargs --no-run-if-empty stat -c '%h %D_%i %n' |
- while read nlinks inum f; do
-   if [ $nlinks -gt 1 ]; then
+ touch "$temp/linked"
+ (
+-    find "$RPM_BUILD_ROOT" ! -path "${debugdir}/*.debug" -type f \( -perm -0100 -or -perm -0010 -or -perm -0001 \) -print |
++    find "$RPM_BUILD_ROOT" ! -path "${debugdir}/*.debug" -type f -print |
+         file -N -f - |
+-        sed -n -e 's/^\(.*\):[     ]*.*ELF.*, not stripped.*/\1/p';
++        sed -n -e 's/^\(.*\):[     ]*.*ELF.*\(executable\|shared object\).*, not stripped.*/\1/p';
+ 
+     # plus static libraries
+     $process_ar && find "$RPM_BUILD_ROOT" -type f -name '*.a' -print |
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/debugedit.git/commitdiff/d3bc84e623adbbeac52786dbae244c60dc5b8460



More information about the pld-cvs-commit mailing list