aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-29 14:31:29 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-29 14:31:29 +0000
commit8bf811c09e5247e449c9b7f10c74ba6249cb93f2 (patch)
tree9f5468d2256d9d1b3c9a3393a295a7a7e607d050 /bin/prepstrip
parentAllow || ( ) deps that have no default atoms (or turn out empty). (diff)
downloadportage-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
Diffstat (limited to 'bin/prepstrip')
-rwxr-xr-xbin/prepstrip7
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