Line 2631 of portage.py: mysettings["PROFILE_PATHS"] = "'"+PROFILE_PATH+"/' '"+CUSTOM_PROFILE_PATH+"/'" my modified ebuild.sh (around line 52): echo Sourcing profile.bashrc from paths: ${PROFILE_PATHS} for dir in ${PROFILE_PATHS}; do echo Looking for ${dir}/profile.bashrc if [ -f "${dir}/profile.bashrc" ]; then source "${dir}/profile.bashrc" echo Sourced ${dir}/profile.bashrc fi done the output: Sourcing profile.bashrc from paths: '/etc/make.profile/' '/etc/portage/profile/' Looking for '/etc/make.profile/'/profile.bashrc Looking for '/etc/portage/profile/'/profile.bashrc The problem is obvious -- the ' marks are not removed from the variable. Escaping spaces would probably need to be done as well.
This has been corrected InCVS; waiting for nick to do a pre18 release.
pre18 is out.