Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 212817 | Differences between
and this patch

Collapse All | Expand All

(-)bootstrap-prefix.sh.orig (+35 lines)
Lines 347-352 Link Here
347
	S="${S}/prefix-portage-${PV}"
347
	S="${S}/prefix-portage-${PV}"
348
	cd "${S}"
348
	cd "${S}"
349
349
350
	patch -p1 < "${DISTDIR}/portage-2.2.00.14200-msb.patch"
351
350
	einfo "Compiling ${A%-*}"
352
	einfo "Compiling ${A%-*}"
351
	econf \
353
	econf \
352
		--with-offset-prefix="${ROOT}" \
354
		--with-offset-prefix="${ROOT}" \
Lines 912-917 Link Here
912
GENTOO_MIRROR=${GENTOO_MIRROR:="http://distfiles.gentoo.org/distfiles"}
914
GENTOO_MIRROR=${GENTOO_MIRROR:="http://distfiles.gentoo.org/distfiles"}
913
GCC_APPLE_URL="http://www.opensource.apple.com/darwinsource/tarballs/other"
915
GCC_APPLE_URL="http://www.opensource.apple.com/darwinsource/tarballs/other"
914
GENTOO_URL=${GENTOO_URL:="http://gentoo.osuosl.org"}
916
GENTOO_URL=${GENTOO_URL:="http://gentoo.osuosl.org"}
917
MACOSSANDBOX_BINARY="/usr/bin/sandbox-exec"
918
MACOSSANDBOX_PROFILE='(version 1)
919
920
(allow default)
921
922
(deny file-write*)
923
924
(allow file-read* file-write*
925
  (literal
926
    #"@@WRITEABLE_PREFIX@@"
927
  )
928
929
  (regex
930
    #"^@@WRITEABLE_PREFIX@@/"
931
    #"^(/private)?/var/tmp"
932
    #"^(/private)?/tmp"
933
  )
934
)
935
936
(allow file-read-data file-write-data
937
  (regex
938
    #"^/dev/null$"
939
    #"^(/private)?/var/run/syslog$"
940
  )
941
)'
942
943
if [ -x "$MACOSSANDBOX_BINARY" -a -z "$MACOSSANDBOX" ] ; then
944
	einfo "Sandboxing bootstrap to ${ROOT} using Mac OS X ${MACOSSANDBOX_BINARY}"
945
	MACOSSANDBOX=1 \
946
		exec ${MACOSSANDBOX_BINARY} -p "$(echo "${MACOSSANDBOX_PROFILE}" | \
947
		sed -e "s,@@WRITEABLE_PREFIX@@,${ROOT},g")" \
948
		$0 $@
949
fi
915
950
916
export CFLAGS CXXFLAGS MAKE
951
export CFLAGS CXXFLAGS MAKE
917
952

Return to bug 212817