debugedit/debugsubpkg.patch
Marcus Meissner c287d004e0 * debugedit now handles DWARF5
- Add workaround-missing-linked-file.patch (boo#1233368)
- Use -p1 with autosetup

OBS-URL: https://build.opensuse.org/package/show/Base:System/debugedit?expand=0&rev=12
2024-11-21 08:40:35 +00:00

46 lines
1.6 KiB
Diff

Index: scripts/find-debuginfo.in
===================================================================
--- a/scripts/find-debuginfo.in
+++ b/scripts/find-debuginfo.in
@@ -684,20 +684,26 @@ if $run_dwz \
fi
fi
-# For each symlink whose target has a .debug file,
-# make a .debug symlink to that file.
-$quiet || echo "Creating .debug symlinks for symlinks to ELF files" 2>&1
-find "$RPM_BUILD_ROOT" ! -path "${debugdir}/*" -type l -print |
-while read f
-do
- t=$(readlink -m "$f").debug
- f=${f#$RPM_BUILD_ROOT}
- t=${t#$RPM_BUILD_ROOT}
- if [ -f "$debugdir$t" ]; then
- $verbose && echo "symlinked /usr/lib/debug$t to /usr/lib/debug${f}.debug"
- debug_link "/usr/lib/debug$t" "${f}.debug"
- fi
-done
+# We used to make a .debug symlink for each symlink whose target
+# has a .debug file to that file. This is not necessary because
+# the debuglink section contains only the destination of those links.
+# Creating those links anyway results in debuginfo packages for
+# devel packages just because of the .so symlinks in them.
+
+## For each symlink whose target has a .debug file,
+## make a .debug symlink to that file.
+#$quiet || echo "Creating .debug symlinks for symlinks to ELF files" 2>&1
+#find "$RPM_BUILD_ROOT" ! -path "${debugdir}/*" -type l -print |
+#while read f
+#do
+# t=$(readlink -m "$f").debug
+# f=${f#$RPM_BUILD_ROOT}
+# t=${t#$RPM_BUILD_ROOT}
+# if [ -f "$debugdir$t" ]; then
+# $verbose && echo "symlinked /usr/lib/debug$t to /usr/lib/debug${f}.debug"
+# debug_link "/usr/lib/debug$t" "${f}.debug"
+# fi
+#done
if [ -s "$SOURCEFILE" ]; then
# See also debugedit invocation. Directories must match up.