summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Ludd <solar@gentoo.org>2006-04-30 14:16:37 +0000
committerNed Ludd <solar@gentoo.org>2006-04-30 14:16:37 +0000
commit9152bcd2a2d0b1f79b9afed4e51970c6badc70a0 (patch)
treef790fcc1579af49f1c95fdc8ce52dcd3832cc895 /bin/prepstrip
parentPass a vartree instance into portage.unmerge() to avoid globals. (diff)
downloadportage-multirepo-9152bcd2a2d0b1f79b9afed4e51970c6badc70a0.tar.gz
portage-multirepo-9152bcd2a2d0b1f79b9afed4e51970c6badc70a0.tar.bz2
portage-multirepo-9152bcd2a2d0b1f79b9afed4e51970c6badc70a0.zip
- be sure to remove o+w bits on debug files
svn path=/main/trunk/; revision=3288
Diffstat (limited to 'bin/prepstrip')
-rwxr-xr-xbin/prepstrip4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/prepstrip b/bin/prepstrip
index c8a648a3..a837d0a1 100755
--- a/bin/prepstrip
+++ b/bin/prepstrip
@@ -15,7 +15,7 @@ type -p -- ${STRIP} > /dev/null || STRIP=strip
OBJCOPY=${OBJCOPY:-${CHOST}-objcopy}
type -p -- ${OBJCOPY} > /dev/null || OBJCOPY=objcopy
-PORTAGE_STRIP_FLAGS=${PORTAGE_STRIP_FLAGS:---strip-unneeded}
+export PORTAGE_STRIP_FLAGS=${PORTAGE_STRIP_FLAGS:---strip-unneeded}
banner=1
@@ -31,7 +31,7 @@ save_elf_debug() {
mkdir -p $(dirname "${y}")
${OBJCOPY} --only-keep-debug "${x}" "${y}"
${OBJCOPY} --add-gnu-debuglink="${y}" "${x}"
- chmod a-x "${y}"
+ chmod a-x,o-w "${y}"
[[ " ${FEATURES} " != *" installsources "* ]] && return 0