2021-09-24 10:49:04 +02:00
|
|
|
--- ./scripts/find-debuginfo.in.orig 2021-09-23 20:23:21.967469723 +0000
|
|
|
|
+++ ./scripts/find-debuginfo.in 2021-09-23 20:24:51.623286108 +0000
|
|
|
|
@@ -391,7 +391,17 @@ debug_link()
|
2008-11-21 15:08:47 +01:00
|
|
|
local l="/usr/lib/debug$2"
|
|
|
|
local t="$1"
|
|
|
|
echo >> "$LINKSFILE" "$l $t"
|
|
|
|
- link_relative "$t" "$l" "$RPM_BUILD_ROOT"
|
|
|
|
+
|
|
|
|
+ # this should correspond to what brp-symlink is doing
|
|
|
|
+ case $t in
|
|
|
|
+ /usr*)
|
|
|
|
+ link_relative "$t" "$l" "$RPM_BUILD_ROOT"
|
|
|
|
+ ;;
|
|
|
|
+ *)
|
|
|
|
+ mkdir -p "$(dirname "$RPM_BUILD_ROOT$l")" && \
|
|
|
|
+ ln -snf "$t" "$RPM_BUILD_ROOT$l"
|
|
|
|
+ ;;
|
|
|
|
+ esac
|
|
|
|
}
|
|
|
|
|
2017-12-05 11:46:24 +01:00
|
|
|
get_debugfn()
|