View previous topic :: View next topic |
Author |
Message |
keymon n00b

Joined: 02 Aug 2011 Posts: 7
|
Posted: Fri Oct 21, 2011 10:41 am Post subject: Using links for gentoo prefix |
|
|
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 |
|
 |
chithanh Developer


Joined: 05 Aug 2006 Posts: 2158 Location: Berlin, Germany
|
Posted: Fri Oct 21, 2011 11:23 pm Post subject: |
|
|
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 |
|
 |
grobian Developer

Joined: 31 May 2006 Posts: 67
|
Posted: Sun Dec 04, 2011 7:34 pm Post subject: |
|
|
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 |
|
 |
|