Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40779 - /etc/make.conf: Add comment about make.profile link if moving PORTDIR
Summary: /etc/make.conf: Add comment about make.profile link if moving PORTDIR
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-02-07 19:01 UTC by FieldySnuts
Modified: 2005-07-14 06:58 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 FieldySnuts 2004-02-07 19:01:45 UTC
Due to limited space, I moved around the directories portage uses to do its business.

I did an emerge sync. I then tried to emerge openoffice, and got the following error:

!!! No profile directory; system mode unavailable.

A little digging on the forums revealed that /etc/make.profile is a symlink which points at /usr/portage/profiles/default-x86-1.4 . If you change PORTDIR , then this symlink MUST be updated.

I am proposing a small comment above PORTDIR in /etc/make.conf making a note of this. While there is already a note saying it's not reccommended, I certainly didn't expect this.
Comment 1 FieldySnuts 2004-06-01 07:47:33 UTC
Any word on this? Been four months now.
Comment 2 Petr Baudis 2005-02-04 13:55:18 UTC
Also it should be noted that you need to do <kbd>emerge metadata</kbd> after changing the PORTDIR - otherwise the next time you try to emerge something (I tried on emerge world), after an extremely slow dependencies calculation it fails with <code>portage_exception.DirectoryNotFound: '/var/cache/edb/dep//usr/share/portage/sys-apps'</code>.
Comment 3 FieldySnuts 2005-02-04 15:14:45 UTC
Hm that's a new one on me.

Too bad this has been wholly ignored.
Comment 4 Jason Stubbs (RETIRED) gentoo-dev 2005-02-13 01:31:20 UTC
Added a comment regarding make.profile, but not emerge metadata. That'll fix itself on-the-fly or at the next sync. The exception you got is more than likely due to running to emerges at concurrently while the cache was being built (on-the-fly) which should be fixed now.
Comment 5 FieldySnuts 2005-04-11 11:43:50 UTC
Nice, thanks.

It's not really covered by this bug, but it'd be nice if notices such as these, which are telling me my profile isn't supported any longer, pulled the dir variables from make.conf :

# emerge -n '>=sys-apps/portage-2.0.51'
# cd /etc/
# rm make.profile
# ln -s ../usr/portage/profiles/default-linux/x86/2005.0 make.profile


On this system my portdir is /var/portage . Could easily nail someone not familiar with this.

But anyway I imagine this specific bug can be closed?
Comment 6 Jason Stubbs (RETIRED) gentoo-dev 2005-07-14 05:47:57 UTC
Fixed on or before 2.0.51.22-r1 
Comment 7 Jason Stubbs (RETIRED) gentoo-dev 2005-07-14 06:58:41 UTC
Looking through the batch of bugs, I'm not sure that some of these are 
actually fixed in stable. Others, the requirements have possibly changed after 
the initial fix was committed. 
 
If you think this bug has been closed incorrectly, please reopen or ask that 
it be reopened.