diff options
author | Joshua Kinard <kumba@gentoo.org> | 2004-04-14 22:01:01 +0000 |
---|---|---|
committer | Joshua Kinard <kumba@gentoo.org> | 2004-04-14 22:01:01 +0000 |
commit | d334a0aa82064667348661848bb40734db2ddc02 (patch) | |
tree | 1f36540dec6bad6037ac141dca382da82bd0cf90 /sys-kernel/linux-headers/linux-headers-2.4.21-r1.ebuild | |
parent | Stable on sparc. (Manifest recommit) (diff) | |
download | gentoo-2-d334a0aa82064667348661848bb40734db2ddc02.tar.gz gentoo-2-d334a0aa82064667348661848bb40734db2ddc02.tar.bz2 gentoo-2-d334a0aa82064667348661848bb40734db2ddc02.zip |
Fixed up how the generate-asm-sparc script is handled. Instead of attempting to chmod it in , we copy it to first and then chmod it, incase it loses it's permissions. This avoids sandbox violations.
Diffstat (limited to 'sys-kernel/linux-headers/linux-headers-2.4.21-r1.ebuild')
-rw-r--r-- | sys-kernel/linux-headers/linux-headers-2.4.21-r1.ebuild | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/sys-kernel/linux-headers/linux-headers-2.4.21-r1.ebuild b/sys-kernel/linux-headers/linux-headers-2.4.21-r1.ebuild index f68a69fd566e..aa565a4e7fb2 100644 --- a/sys-kernel/linux-headers/linux-headers-2.4.21-r1.ebuild +++ b/sys-kernel/linux-headers/linux-headers-2.4.21-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-headers/linux-headers-2.4.21-r1.ebuild,v 1.10 2004/04/12 16:36:22 aliz Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-headers/linux-headers-2.4.21-r1.ebuild,v 1.11 2004/04/14 22:01:01 kumba Exp $ ETYPE="headers" inherit kernel eutils @@ -102,13 +102,16 @@ src_install() { # Check if generate-asm-sparc exists if [ -a "${FILESDIR}/generate-asm-sparc" ]; then - # Just incase generate-asm-sparc isn't executable, make it so - if [ ! -x "${FILESDIR}/generate-asm-sparc" ]; then - chmod +x ${FILESDIR}/generate-asm-sparc + # Copy generate-asm-sparc into the sandox + cp ${FILESDIR}/generate-asm-sparc ${WORKDIR}/generate-asm-sparc + + # Just in case generate-asm-sparc isn't executable, make it so + if [ ! -x "${WORKDIR}/generate-asm-sparc" ]; then + chmod +x ${WORKDIR}/generate-asm-sparc fi # Generate /usr/include/asm for sparc systems - ${FILESDIR}/generate-asm-sparc ${D}/usr/include + ${WORKDIR}/generate-asm-sparc ${D}/usr/include else eerror "${FILESDIR}/generate-asm-sparc doesn't exist!" die |