Lines 112-118
Link Here
|
112 |
export BOOTSTRAP_STAGE=0 |
112 |
export BOOTSTRAP_STAGE=0 |
113 |
fi |
113 |
fi |
114 |
|
114 |
|
115 |
MYPROFILEDIR=$(readlink -f /etc/make.profile) |
115 |
if [[ -n $(type -p realpath) ]]; then |
|
|
116 |
MYPROFILEDIR=$(realpath /etc/make.profile) |
117 |
else |
118 |
MYPROFILEDIR=$(readlink -f /etc/make.profile) |
119 |
fi |
116 |
if [[ ! -d ${MYPROFILEDIR} ]] ; then |
120 |
if [[ ! -d ${MYPROFILEDIR} ]] ; then |
117 |
eerror "Error: '${MYPROFILEDIR}' does not exist. Exiting." |
121 |
eerror "Error: '${MYPROFILEDIR}' does not exist. Exiting." |
118 |
exit 1 |
122 |
exit 1 |
Lines 256-262
Link Here
|
256 |
# that into a variable. |
260 |
# that into a variable. |
257 |
|
261 |
|
258 |
eval $(pycmd 'import portage; print portage.settings.packages;' | |
262 |
eval $(pycmd 'import portage; print portage.settings.packages;' | |
259 |
sed 's/[][,]//g; s/ /\n/g; s/\*//g' | while read p; do n=${p##*/}; n=${n%\'}; |
263 |
sed 's/[][,]//g; s/\*//g' | tr ' ' '\n' | while read p; do n=${p##*/}; n=${n%\'}; |
260 |
n=${n%%-[0-9]*}; echo "my$(tr a-z- A-Z_ <<<$n)=$p; "; done) |
264 |
n=${n%%-[0-9]*}; echo "my$(tr a-z- A-Z_ <<<$n)=$p; "; done) |
261 |
|
265 |
|
262 |
# This stuff should never fail but will if not enough is installed. |
266 |
# This stuff should never fail but will if not enough is installed. |