[packages/debugedit] make debuginfo extraction applicable to shared objects and executables only; rel 3
atler
atler at pld-linux.org
Tue Aug 16 22:59:55 CEST 2022
commit b2c75b425931be6e413f4c9b8dd5e291617cc73d
Author: Jan Palus <atler at pld-linux.org>
Date: Tue Aug 16 22:58:19 2022 +0200
make debuginfo extraction applicable to shared objects and executables only; rel 3
debugedit.spec | 2 +-
no-exe-for-elf-debuginfo.patch | 11 +++++++----
2 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/debugedit.spec b/debugedit.spec
index 570e3d7..d02ecae 100644
--- a/debugedit.spec
+++ b/debugedit.spec
@@ -6,7 +6,7 @@ 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: 2
+Release: 3
License: GPL v3+, GPL v2+
Group: Development/Tools
Source0: https://sourceware.org/ftp/debugedit/%{version}/%{name}-%{version}.tar.xz
diff --git a/no-exe-for-elf-debuginfo.patch b/no-exe-for-elf-debuginfo.patch
index 3c85c4f..4c99636 100644
--- a/no-exe-for-elf-debuginfo.patch
+++ b/no-exe-for-elf-debuginfo.patch
@@ -1,10 +1,13 @@
---- rpm-4.16.1.3/scripts/find-debuginfo.in.orig 2021-11-05 00:19:27.239390489 +0100
-+++ rpm-4.16.1.3/scripts/find-debuginfo.in 2021-11-05 00:21:27.102128386 +0100
-@@ -352,7 +352,6 @@
+--- 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
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.*, 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
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/debugedit.git/commitdiff/b2c75b425931be6e413f4c9b8dd5e291617cc73d
More information about the pld-cvs-commit
mailing list