Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 59749 - profile.bashrc is not sourced properly.
Summary: profile.bashrc is not sourced properly.
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All All
: High blocker (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 57596 58290
  Show dependency tree
 
Reported: 2004-08-07 22:27 UTC by Hasan Khalil (RETIRED)
Modified: 2004-08-16 10:32 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hasan Khalil (RETIRED) gentoo-dev 2004-08-07 22:27:50 UTC
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.
Comment 1 Brian Harring (RETIRED) gentoo-dev 2004-08-11 16:47:49 UTC
This has been corrected InCVS; waiting for nick to do a pre18 release.
Comment 2 Brian Harring (RETIRED) gentoo-dev 2004-08-16 10:32:14 UTC
pre18 is out.