Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28796 - Multiple sync repositories
Summary: Multiple sync repositories
Status: RESOLVED DUPLICATE of bug 56485
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - External Interaction (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
: 11165 (view as bug list)
Depends on: 26241 35535
Blocks:
  Show dependency tree
 
Reported: 2003-09-15 08:57 UTC by Charles Goodwin
Modified: 2005-11-02 12:38 UTC (History)
4 users (show)

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


Attachments
patch for syncing PORTDIR_OVERLAY directories (overlay-sync.patch,12.55 KB, patch)
2003-09-24 02:53 UTC, Marius Mauch (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Charles Goodwin 2003-09-15 08:57:54 UTC
In Debian, you can give apt-get additional sources from which to check for
applications to install.

In a similar manner, why not have the same for Gentoo?

The only essential feature needed are already there; overlay directories.

Code:
# vim /etc/make.conf
-----------------------------------------------------
# alternate rsync servers
bmg rsync.breakmygentoo.net /usr/portage/local/bmg/
-----------------------------------------------------

# emerge --sync bmg

Much easier than having to download stuff manually from BMG or indeed anywhere
else. It would also make it really simple for the Gentoo devs to have an
automatic 'development' repository that people could delve into.

Further discussion available in the forums:
http://forums.gentoo.org/viewtopic.php?t=84478
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2003-09-18 22:10:00 UTC
Ok, I looked a bit into it and my approach is a bit different:
a) instead of a paramter for the --sync action use a new --ovsync action to sync overlay directories
b) introduce a new SYNC_OVERLAY variable that corresponds to PORTDIR_OVERLAY, where the special values "none" and "local" disable any sync actions for the overlays
c) use the existing sync code for this feature

little example:
in make.conf I have
PORTDIR_OVERLAY="/usr/local/portage/cvs /usr/local/portage/bmg /usr/local/portage/test"
SYNC_OVERLAY="cvs://user@server:/cvsroot:module rsync://rsync.breakmygentoo.net local"

- emerge --sync works as normal
- on emerge --ovsync /usr/local/portage/cvs and /usr/local/portage/bmg get synced with the specified cvs and rsync servers

This approach has several advantages:
- syntax is better suited for make.conf / bash
- most of the code already exists
- easier to implement
- support for cvs repositories
- is backwards compatible to the existing OVERLAY stuff

It also has some disadvantages:
- needs an overhaul of the cvs sync code (but that looks broken to me anyway)
- syncs all overlays
- you have to maintain two variables for each overlay

Comments welcome.
Comment 2 Marius Mauch (RETIRED) gentoo-dev 2003-09-19 20:36:58 UTC
*** Bug 11165 has been marked as a duplicate of this bug. ***
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2003-09-23 04:30:45 UTC
No comments, so I guess everyone likes it ;) Will do it this way then (already had it working with cvs but lost the patch when upgrading to -r5 :( )
Comment 4 Bjorn 2003-09-23 06:11:31 UTC
Ya, i wondered about that for a second because i did remember searching for something like this when i posted it. after readin the other bug report though, seems like more was going on there so i didnt worry about it anymore :)
Comment 5 Marius Mauch (RETIRED) gentoo-dev 2003-09-24 02:53:45 UTC
Created attachment 18255 [details, diff]
patch for syncing PORTDIR_OVERLAY directories

set variables in make.conf:
PORTDIR_OVERLAY="/usr/local/portage-local /usr/local/portage-bmg"
SYNC_OVERLAY="local rsync://rsync.breakmygentoo.net/portage"
(of course this will only work if the remote location exists)

You can also use the cvs://user@server:cvsroot:module syntax.
Comment 6 Masatomo Nakano (RETIRED) gentoo-dev 2003-11-02 13:09:10 UTC
I like this feature. :) I'd like to distribute my ebuilds for test.

But I like simple setting for user.
My idea is ...

PORTDIR_OVERLAY="/usr/local/portage/cvs|cvs://user@server:/cvsroot:module
/usr/local/portage/bmg|rsync://rsync.breakmygentoo.net /usr/local/portage/test"

You would do:
# emerge sync /usr/local/portage/cvs
# emerge sync /usr/local/portage/bmg

What do you think?
Comment 7 Marius Mauch (RETIRED) gentoo-dev 2003-12-11 12:38:02 UTC
ok, I'm currenty rewriting the complete emerge sync code (as I'm adding
a bunch of other features as well), I'll likely end up with a auxiliary
file in /etc/portage that describes the relations between servers and 
overlays. That way we can keep the current PORTDIR_OVERLAY syntax (the 
variable is also used by several external tools) and support 
emerge --sync bla
where bla is an identifier for the overlay-server relation.
Comment 8 Nicholas Jones (RETIRED) gentoo-dev 2003-12-24 16:25:34 UTC
I'd greatly prefer a config file residing in /etc/portage/overlays

The format being something like this:
</path/to/overlay/basedir> <LOCAL|SERVER_URI> [option1=value1]


Or something to that effect... The first two fields being required...
The 3rd field being something that might become useful later. Make
sure that there is no special-case syntax -- aim for extendable
without breaking "older" code.
Comment 9 Marius Mauch (RETIRED) gentoo-dev 2004-01-08 12:17:26 UTC
Nick: see the emerge patch on #35535, that's how you'd like it ?
Comment 10 Jason Stubbs (RETIRED) gentoo-dev 2005-07-28 07:25:03 UTC
Putting a hold on feature requests for portage as they are drowning out the 
bugs. Most of these features should be available in the next major version of 
portage. But for the time being, they are just drowning out the major bugs and 
delaying the next version's progress. 
 
Any bugs that contain patches and any bugs for etc-update or dispatch-conf can 
be reopened. Sorry, I'm just not good enough with bugzilla. ;) 
Comment 11 Alec Warner (RETIRED) archtester gentoo-dev Security 2005-11-02 12:38:23 UTC
Sorry for the bugspam
Comment 12 Alec Warner (RETIRED) archtester gentoo-dev Security 2005-11-02 12:38:39 UTC

*** This bug has been marked as a duplicate of 56485 ***