From: Kito Date: Mon, 27 Feb 2006 17:20:39 +0000 (-0000) Subject: Add space between the mode and the 'm' switch when passed to install(1) for compatibi... X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=d9c87fa5d6fbe89281576187532bb4581d9591dd;p=portage.git Add space between the mode and the 'm' switch when passed to install(1) for compatibility with solaris and andrew-linux svn path=/main/branches/prefix/; revision=2796 --- diff --git a/bin/dobin b/bin/dobin index 71374d781..bd57cb340 100755 --- a/bin/dobin +++ b/bin/dobin @@ -16,7 +16,7 @@ ret=0 for x in "$@" ; do if [[ -e ${x} ]] ; then - install -m0755 -o @rootuser@ -g @wheelgroup@ "${x}" "${D}${DESTTREE}/bin" + install -m 0755 -o @rootuser@ -g @wheelgroup@ "${x}" "${D}${DESTTREE}/bin" else echo "!!! ${0##*/}: ${x} does not exist" 1>&2 false diff --git a/bin/dohtml b/bin/dohtml index 05f04bcce..c6b712d4e 100755 --- a/bin/dohtml +++ b/bin/dohtml @@ -39,7 +39,7 @@ def dodir(path): def dofile(src,dst): - os.system("install -m0644 '%s' '%s'" % (src, dst)) + os.system("install -m 0644 '%s' '%s'" % (src, dst)) def install(basename, dirname, options, prefix=""): diff --git a/bin/doinfo b/bin/doinfo index 497ee3144..7b7c9cd52 100755 --- a/bin/doinfo +++ b/bin/doinfo @@ -13,7 +13,7 @@ fi for x in "$@" ; do if [ -e "${x}" ] ; then - install -m0644 "${x}" "${D}/usr/share/info" + install -m 0644 "${x}" "${D}/usr/share/info" gzip -f -9 "${D}/usr/share/info/${x##*/}" else echo "doinfo: ${x} does not exist" diff --git a/bin/dolib.a b/bin/dolib.a index 839fad811..ffe0c9afa 100755 --- a/bin/dolib.a +++ b/bin/dolib.a @@ -3,5 +3,5 @@ # Distributed under the terms of the GNU General Public License v2 # $Id: /var/cvsroot/gentoo-src/portage/bin/dolib.a,v 1.8 2004/10/10 10:07:20 carpaski Exp $ -exec env LIBOPTIONS="-m0644" \ +exec env LIBOPTIONS="-m 0644" \ dolib "$@" diff --git a/bin/dolib.so b/bin/dolib.so index 4c3401c2e..bb7ece710 100755 --- a/bin/dolib.so +++ b/bin/dolib.so @@ -3,5 +3,5 @@ # Distributed under the terms of the GNU General Public License v2 # $Id: /var/cvsroot/gentoo-src/portage/bin/dolib.so,v 1.12 2004/10/10 10:07:20 carpaski Exp $ -exec env LIBOPTIONS="-m0755" \ +exec env LIBOPTIONS="-m 0755" \ dolib "$@" diff --git a/bin/doman b/bin/doman index 665e7fdc2..410a67fb3 100755 --- a/bin/doman +++ b/bin/doman @@ -37,7 +37,7 @@ for x in "$@" ; do install -d "${D}/usr/share/man/${mandir}" fi - install -m0644 "${x}" "${D}/usr/share/man/${mandir}" + install -m 0644 "${x}" "${D}/usr/share/man/${mandir}" ((ret+=$?)) elif [[ ! -e ${x} ]] ; then echo "doman: ${x} does not exist" 1>&2 diff --git a/bin/dosbin b/bin/dosbin index b294114b5..811e51031 100755 --- a/bin/dosbin +++ b/bin/dosbin @@ -16,7 +16,7 @@ ret=0 for x in "$@" ; do if [[ -e ${x} ]] ; then - install -m0755 -o @rootuser@ -g @wheelgroup@ "${x}" "${D}${DESTTREE}/sbin" + install -m 0755 -o @rootuser@ -g @wheelgroup@ "${x}" "${D}${DESTTREE}/sbin" else echo "!!! ${0##*/}: ${x} does not exist" 1>&2 false diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 69917e7ff..5fe63a6c1 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -459,10 +459,10 @@ export DESTTREE=/usr export INSDESTTREE="" export EXEDESTTREE="" export DOCDESTTREE="" -export INSOPTIONS="-m0644" -export EXEOPTIONS="-m0755" -export LIBOPTIONS="-m0644" -export DIROPTIONS="-m0755" +export INSOPTIONS="-m 0644" +export EXEOPTIONS="-m 0755" +export LIBOPTIONS="-m 0644" +export DIROPTIONS="-m 0755" export MOPREFIX=${PN} check_KV() { @@ -847,7 +847,7 @@ dyn_unpack() { fi fi - install -m0700 -d "${WORKDIR}" || die "Failed to create dir '${WORKDIR}'" + install -m 0700 -d "${WORKDIR}" || die "Failed to create dir '${WORKDIR}'" [ -d "$WORKDIR" ] && cd "${WORKDIR}" echo ">>> Unpacking source..." src_unpack @@ -2100,7 +2100,7 @@ for myarg in $*; do #dbkey=${PORTAGE_CACHEDIR}/${CATEGORY}/${PF} if [ ! -d "${dbkey%/*}" ]; then - install -d -g ${PORTAGE_GID} -m2775 "${dbkey%/*}" + install -d -g ${PORTAGE_GID} -m 2775 "${dbkey%/*}" fi # Make it group writable. 666&~002==664 @@ -2151,7 +2151,7 @@ if [ "$myarg" != "clean" ]; then # Save current environment and touch a success file. (echo for success) umask 002 set | @EGREP@ -v "^SANDBOX_" > "${T}/environment" 2>/dev/null - chown portage:portage "${T}/environment" &>/dev/null + chown @portageuser@:@portagegroup@ "${T}/environment" &>/dev/null chmod g+w "${T}/environment" &>/dev/null fi