- 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
22 lines
622 B
Diff
22 lines
622 B
Diff
Index: scripts/find-debuginfo.in
|
|
===================================================================
|
|
--- a/scripts/find-debuginfo.in
|
|
+++ b/scripts/find-debuginfo.in
|
|
@@ -434,6 +434,16 @@ while read nlinks inum f; do
|
|
;;
|
|
*) continue ;;
|
|
esac
|
|
+ # double check that we really have an ELF file,
|
|
+ # to handle monodevelop-debugger-gdb and monodevelop-debugger-mdb
|
|
+ ftype=`/usr/bin/file $f | cut -d: -f2-`
|
|
+ case $ftype in
|
|
+ *ELF*) ;;
|
|
+ *)
|
|
+ echo "$f is not an ELF file, skipping"
|
|
+ continue
|
|
+ ;;
|
|
+ esac
|
|
if [ $nlinks -gt 1 ]; then
|
|
var=seen_$inum
|
|
if test -n "${!var}"; then
|