From: Mike Frysinger Date: Sun, 29 Jan 2006 14:31:29 +0000 (-0000) Subject: make sure all .debug files have the executable bit cleared X-Git-Tag: v2.1_pre5_2760~123 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8bf811c09e5247e449c9b7f10c74ba6249cb93f2;p=portage.git make sure all .debug files have the executable bit cleared svn path=/main/trunk/; revision=2605 --- diff --git a/bin/prepstrip b/bin/prepstrip index b480cffa1..c8a648a36 100755 --- a/bin/prepstrip +++ b/bin/prepstrip @@ -21,7 +21,7 @@ banner=1 save_elf_debug() { local x=$1 - local y="${D}/usr/lib/debug/${x:${#D}:${#x}}" + local y="${D}/usr/lib/debug/${x:${#D}:${#x}}.debug" [[ " ${FEATURES} " != *" splitdebug "* ]] && return 0 @@ -29,8 +29,9 @@ save_elf_debug() { [[ ${x:7} == ".debug" ]] && return 0 mkdir -p $(dirname "${y}") - ${OBJCOPY} --only-keep-debug ${x} ${y}.debug - ${OBJCOPY} --add-gnu-debuglink=${y}.debug ${x} + ${OBJCOPY} --only-keep-debug "${x}" "${y}" + ${OBJCOPY} --add-gnu-debuglink="${y}" "${x}" + chmod a-x "${y}" [[ " ${FEATURES} " != *" installsources "* ]] && return 0