Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Using links for gentoo prefix
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
keymon
n00b
n00b


Joined: 02 Aug 2011
Posts: 7

PostPosted: Fri Oct 21, 2011 10:41 am    Post subject: Using links for gentoo prefix Reply with quote

Hello,

I want to know if it is ok if I use links in one of the subdirectories of my $EPREFIX.

Something like:

/shared-nfs-location/local/solaris-i386/gentoo-prefix/ -> gentoo-prefix.prod

The reason is that I have everything on a shared NFS, for all servers (I know it is not a good idea, but it is how they have it installed) and I want to be able to compile critical stuff (like perl, gcc) in other location before apply the changes in the shared location.

My main problem is that I have already everyhing in the shared nfs location, and I do not want to recompile everything now.

My idea is do this when I need to recompile something:

/shared-nfs-location/local/solaris-i386/gentoo-prefix/ -> /local-location/gentoo-prefix
/local-location/gentoo-prefix -> /shared-nfs-location/local/solaris-i386/gentoo-prefix-testing/

Will I have problems if I use links? Maybe some packages compute their real location.
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2158
Location: Berlin, Germany

PostPosted: Fri Oct 21, 2011 11:23 pm    Post subject: Reply with quote

Some packages have hardcoded paths in their files and will break if you use symlinks.

You can use binpkgs to transfer packages between prefixes, with some restrictions (build ${EPREFIX} must be of longer or equal length to install ${EPREFIX})
Back to top
View user's profile Send private message
grobian
Developer
Developer


Joined: 31 May 2006
Posts: 67

PostPosted: Sun Dec 04, 2011 7:34 pm    Post subject: Reply with quote

also, gcc doesn't like symlinks, and will compute the real path in use (following the symlinks)
_________________
Gentoo on a different level
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum