Created
September 20, 2011 02:10
-
-
Save oraccha/1228146 to your computer and use it in GitHub Desktop.
Gentoo Prefix bootstrap-prefix patch for a path name included spaces.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- bootstrap-prefix.sh.orig 2011-09-20 10:45:37.000000000 +0900 | |
+++ bootstrap-prefix.sh 2011-09-20 11:02:52.000000000 +0900 | |
@@ -29,7 +29,7 @@ | |
} | |
efetch() { | |
- if [[ ! -e ${DISTDIR}/${1##*/} ]] ; then | |
+ if [[ ! -e "${DISTDIR}"/${1##*/} ]] ; then | |
if [[ -z ${FETCH_COMMAND} ]] ; then | |
# Try to find a download manager, we only deal with wget, | |
# curl, FreeBSD's fetch and ftp. | |
@@ -384,12 +384,12 @@ | |
do | |
[[ -d ${ROOT}/${x} ]] || mkdir -p "${ROOT}/${x}" | |
done | |
- if [[ ! -e ${PORTDIR}/.unpacked ]]; then | |
+ if [[ ! -e "${PORTDIR}"/.unpacked ]]; then | |
efetch "$1/$2" | |
- [[ -e ${PORTDIR} ]] || mkdir -p ${PORTDIR} | |
+ [[ -e "${PORTDIR}" ]] || mkdir -p "${PORTDIR}" | |
einfo "Unpacking, this may take awhile" | |
- bzip2 -dc ${DISTDIR}/$2 | $TAR -xf - -C ${PORTDIR%portage} || exit 1 | |
- touch ${PORTDIR}/.unpacked | |
+ bzip2 -dc "${DISTDIR}"/$2 | $TAR -xf - -C "${PORTDIR%portage}" || exit 1 | |
+ touch "${PORTDIR}"/.unpacked | |
fi | |
} | |
@@ -1114,7 +1114,7 @@ | |
CXXFLAGS="${CXXFLAGS:-${CFLAGS}}" | |
PORTDIR=${PORTDIR:-"${ROOT}/usr/portage"} | |
DISTDIR=${DISTDIR:-"${PORTDIR}/distfiles"} | |
-PORTAGE_TMPDIR=${ROOT}/var/tmp | |
+PORTAGE_TMPDIR="${ROOT}"/var/tmp | |
DISTFILES_URL="http://dev.gentoo.org/~grobian/distfiles" | |
SNAPSHOT_URL="http://files.prefix.freens.org/snapshots" | |
GNU_URL=${GNU_URL:="http://ftp.gnu.org/gnu"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment