[packages/debugedit] - rel 2, check if the list of hardlinks exist before grepping it
baggins
baggins at pld-linux.org
Fri Apr 18 13:55:53 CEST 2025
commit 0d47962635cb922593af5524b2be3cee936acf4e
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Fri Apr 18 15:03:27 2025 +0200
- rel 2, check if the list of hardlinks exist before grepping it
Some packages install files by hardlinking them if the destination
install diris on the same filesystem as source dir (e.g. VirtualBox).
The confuses find-debuginfo, because it sees hardlinks, but can't
find any files with the same inodes.
debugedit.spec | 4 +++-
hardlinks-outside-buildroot.patch | 11 +++++++++++
2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/debugedit.spec b/debugedit.spec
index 2dfaf2d..55b97c4 100644
--- a/debugedit.spec
+++ b/debugedit.spec
@@ -6,11 +6,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: 1
+Release: 2
License: GPL v3+, GPL v2+
Group: Development/Tools
Source0: https://sourceware.org/pub/debugedit/%{version}/%{name}-%{version}.tar.xz
# Source0-md5: 25b796b3998d3c33aedcac2216f34dd9
+Patch0: hardlinks-outside-buildroot.patch
Patch1: no-exe-for-elf-debuginfo.patch
Patch2: builddir-readlink.patch
URL: https://sourceware.org/debugedit/
@@ -47,6 +48,7 @@ profilowania oprogramowania.
%prep
%setup -q
+%patch -P 0 -p1
%patch -P 1 -p1
%patch -P 2 -p1
diff --git a/hardlinks-outside-buildroot.patch b/hardlinks-outside-buildroot.patch
new file mode 100644
index 0000000..a22a5c2
--- /dev/null
+++ b/hardlinks-outside-buildroot.patch
@@ -0,0 +1,11 @@
+--- debugedit-5.1/scripts/find-debuginfo.in.orig 2025-04-18 15:00:26.896666412 +0200
++++ debugedit-5.1/scripts/find-debuginfo.in 2025-04-18 15:01:48.086666415 +0200
+@@ -543,7 +543,7 @@
+
+ # If this file has multiple links, make the corresponding .debug files
+ # all links to one file too.
+- if [ $nlinks -gt 1 ]; then
++ if [ $nlinks -gt 1 ] && [ -f "$temp/linked" ]; then
+ grep "^$inum " "$temp/linked" | while read inum linked; do
+ link=$debugfn
+ get_debugfn "$linked"
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/debugedit.git/commitdiff/0d47962635cb922593af5524b2be3cee936acf4e
More information about the pld-cvs-commit
mailing list