make sure all .debug files have the executable bit cleared
authorMike Frysinger <vapier@gentoo.org>
Sun, 29 Jan 2006 14:31:29 +0000 (14:31 -0000)
committerMike Frysinger <vapier@gentoo.org>
Sun, 29 Jan 2006 14:31:29 +0000 (14:31 -0000)
svn path=/main/trunk/; revision=2605

bin/prepstrip

index b480cffa1f02cd457cb5e9995954399bd9e24a17..c8a648a3636c3e4dec874d97d5816b51312009de 100755 (executable)
@@ -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