Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 10803 - portage-2.0.44 multi overlay patch
Summary: portage-2.0.44 multi overlay patch
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-15 19:01 UTC by foser (RETIRED)
Modified: 2011-10-30 22:37 UTC (History)
5 users (show)

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


Attachments
portage-2.0.44.multioverlay.patch (portage-2.0.44.multioverlay.patch,2.74 KB, patch)
2002-11-15 19:04 UTC, foser (RETIRED)
Details | Diff
Fixed the patch so it applies against 2.0.48_pre5 (patch.orig.20030504,2.45 KB, patch)
2003-05-05 00:19 UTC, Robin Johnson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description foser (RETIRED) gentoo-dev 2002-11-15 19:01:39 UTC
A small patch to support multiple overlay dirs. The PORTDIR_OVERLAY should be a
colon seperated list. Like this :
PORTDIR_OVERLAY=/usr/portage.local:/home/user/portdir .

Hm not much to it. The only thing i'm slightly worried about is the usage of
PORTDIR_OVERLAY in ebuild.sh which breaks right now i suppose if used with more
then 1 overly entry, i'm not sure of it's importance.
Comment 1 foser (RETIRED) gentoo-dev 2002-11-15 19:04:40 UTC
Created attachment 5709 [details, diff]
portage-2.0.44.multioverlay.patch

multi overlay patch , diff to portage-2.0.44/pym/portage.py
Comment 2 Zach Welch (RETIRED) gentoo-dev 2002-11-15 23:13:04 UTC
reassigning to carpaski, per seemant's irc instruction  Also, it would be nice for the system to report which ebuild is being used if PORTDIR_OVERLAY is in effect.  I just spent my evening chasing another bug that would have been obvious if emerge would just have told me.  If I actually had several overlay dirs, the nightmare would have been worse. 
Comment 3 Zach Welch (RETIRED) gentoo-dev 2002-11-15 23:14:32 UTC
sorry for that last unwrapped comment. :( 
 
Also, it would be nice for the system to report which ebuild is being used if 
PORTDIR_OVERLAY is in effect.  I just spent my evening chasing another bug 
that would have been obvious if emerge would just have told me.  If I 
actually had several overlay dirs, the nightmare would have been worse 
Comment 4 foser (RETIRED) gentoo-dev 2002-11-16 12:16:14 UTC
I think that's a task for emerge, not portage.py .
Comment 5 foser (RETIRED) gentoo-dev 2003-01-03 14:16:31 UTC
carpaski, any progress here ? It's really an easy feature (i use it all the
time) and the patch still applies to my portage (2.0.46-r4) almost perfectly.
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-02-20 20:30:39 UTC
It would be nice to have multiple sources for DISTDIR and PKGDIR as well. This would enable networks of gentoo machines to share nicely.

A vision:
DISTDIR=/usr/portage/distfiles:/mnt/portage/distfiles
use the first file available in the listed paths, if not available, download it and put it in the first path. /mnt/portage/distfiles for example could come from an NFS mount. 
PKGDIR=/usr/portage/packages:/mnt/portage/packages-pentium3:/mnt/portage/packages-pentium2
Again, check the current directory first, (assuming this machine is a pentium3) but then check a network mounted directory of pentium3 binaries, then a directory of pentium2 binaries.

It would also have some use for those people with laptops. In the above, have a check if a directory in the list exists before trying to use it. If it doesn't exist, just display a warning, but no error. But when they are plugged into a network where those paths exist (with files in them), things suddenly become much faster for them.

Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-05-05 00:19:58 UTC
Created attachment 11506 [details, diff]
Fixed the patch so it applies against 2.0.48_pre5
Comment 8 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-05-05 00:32:16 UTC
I'm improving this patch to add the same functionality for DISTDIR/PKGDIR now. I now have a very good reason.

For cvs ebuilds, portage tries to checkout to $DISTDIR/cvs-src/
if $DISTDIR is a read-only NFS mount, then it fails. Having multiple DISTDIR allows CVS checkouts to a local distdir, while still having access to large NFS distdirs.
Comment 9 foser (RETIRED) gentoo-dev 2003-07-08 10:26:35 UTC
i suppose this one can be closed now ?
Comment 10 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-07-08 13:39:02 UTC
Yup.
For multiple distfiles, see Kurt Hindenburg's ongoing work here:
http://www.cherrynebula.net/projects/portage-kvh/portage-kvh.html

I suggested a new approach to him that would avoid breakage in any of the current ebuilds.