Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 244671
Collapse All | Expand All

(-)emerge-wrapper.old (+4 lines)
Lines 25-30 Link Here
25
	[[ $ARCH != "" ]] && sed -i -e s/__ARCH__/${ARCH}/g ${conf}
25
	[[ $ARCH != "" ]] && sed -i -e s/__ARCH__/${ARCH}/g ${conf}
26
	sed -i -e s/__CHOST__/${chost}/g -e s/__CBUILD__/${CBUILD}/g ${conf}
26
	sed -i -e s/__CHOST__/${chost}/g -e s/__CBUILD__/${CBUILD}/g ${conf}
27
	echo MAKEOPTS=-j$(cat /proc/cpuinfo | grep processor| wc -l) >> ${conf}
27
	echo MAKEOPTS=-j$(cat /proc/cpuinfo | grep processor| wc -l) >> ${conf}
28
	[[ ${portdir} != "" ]] && echo PORTDIR=\"${portdir}\" >> ${conf}
29
	[[ ${distdir} != "" ]] && echo DISTDIR=\"${distdir}\" >> ${conf}
28
	[[ ${overlay} != "" ]] && echo PORTDIR_OVERLAY=\"${overlay}\" >> ${conf}
30
	[[ ${overlay} != "" ]] && echo PORTDIR_OVERLAY=\"${overlay}\" >> ${conf}
29
}
31
}
30
32
Lines 35-40 Link Here
35
	chosts=$(gcc-config -l | awk '{print $2}'| grep -- -| cut -d '-' -f 1-4| sort -u)
37
	chosts=$(gcc-config -l | awk '{print $2}'| grep -- -| cut -d '-' -f 1-4| sort -u)
36
	cd $dn || { echo "Failed to cd to $dn" ; exit 1; }
38
	cd $dn || { echo "Failed to cd to $dn" ; exit 1; }
37
	export overlay=$(portageq envvar PORTDIR_OVERLAY)
39
	export overlay=$(portageq envvar PORTDIR_OVERLAY)
40
	export portdir=$(portageq envvar PORTDIR)
41
	export distdir=$(portageq envvar DISTDIR)
38
42
39
	for chost in $chosts; do
43
	for chost in $chosts; do
40
		[[ $chost == $CBUILD ]] && continue
44
		[[ $chost == $CBUILD ]] && continue

Return to bug 244671