diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-01-29 14:31:29 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-01-29 14:31:29 +0000 |
commit | 8bf811c09e5247e449c9b7f10c74ba6249cb93f2 (patch) | |
tree | 9f5468d2256d9d1b3c9a3393a295a7a7e607d050 | |
parent | e23ac8156f77fe5e965625c220e55c5dec2bac94 (diff) | |
download | portage-8bf811c09e5247e449c9b7f10c74ba6249cb93f2.tar.gz portage-8bf811c09e5247e449c9b7f10c74ba6249cb93f2.tar.bz2 portage-8bf811c09e5247e449c9b7f10c74ba6249cb93f2.zip |
make sure all .debug files have the executable bit cleared
svn path=/main/trunk/; revision=2605
-rwxr-xr-x | bin/prepstrip | 7 |
1 files changed, 4 insertions, 3 deletions
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 |