View previous topic :: View next topic |
Author |
Message |
McLink Apprentice
Joined: 02 Feb 2008 Posts: 181 Location: /dev/chair
|
Posted: Sat Oct 11, 2008 3:21 pm Post subject: [idea] package.overlays |
|
|
I know the issue itself has been raised before, but I'm not sure if anyone has ever posted a possible solution. The issue: if an overlay has the same version of a package as the main tree, a normal "emerge =package-version" will attempt to merge the version from the overlay. This behaviour, however, isn't always favourable.
My idea for improvement: since GLEP 42 forces overlays to include a profiles/repo_name, it is now possible to effectively distinguish between overlays. I propose the introduction of a new file to /etc/portage - namely, package.overlays. It will take a syntax similar to package.use, but specifying overlay names instead of USE-flags. By using -[overlay-name], one can prevent the given package atom from being merged from that overlay. -* would block all overlays as well as the main tree (somewhat the same effect as adding the atom to package.mask). Using an overlay name without a "-" will override -* and allow one to merge from that overlay specifically.
For example, suppose the package =foo/bar-42.0 exists in the main tree and one or more overlays, but you only want to merge it from the main tree, you could add this to /etc/portage/package.overlays: Code: | =foo/bar-42.0 -* gentoo | ...Or if you specifically do NOT want to merge it from the overlay "quux", you could do this: Code: | =foo/bar-42.0 -quux | To block all versions of foo/bar not in the overlays "voom" or "ponies": Code: | foo/bar -* voom ponies | ...and so on.
Comments welcome . _________________
Mc'abit wrote: | Islam isn't the problem, religion is. |
|
|
Back to top |
|
|
tanderson Retired Dev
Joined: 11 Apr 2007 Posts: 193
|
Posted: Sat Oct 11, 2008 4:52 pm Post subject: |
|
|
With Paludis you can already do that. You do it with package.mask and package.unmask using things like:
foo/bar::gentoo
foo/bar::vroom _________________ No Man is Just a Number!
--The Prisoner |
|
Back to top |
|
|
McLink Apprentice
Joined: 02 Feb 2008 Posts: 181 Location: /dev/chair
|
Posted: Sat Oct 11, 2008 4:57 pm Post subject: |
|
|
Hrmmh, Paludis. Frankly, I'd prefer to stick with Portage, though it's good to see it's at least possible. Do you know if there are any plans to implement it in Portage? _________________
Mc'abit wrote: | Islam isn't the problem, religion is. |
|
|
Back to top |
|
|
tanderson Retired Dev
Joined: 11 Apr 2007 Posts: 193
|
Posted: Sat Oct 11, 2008 8:14 pm Post subject: |
|
|
Sir Link wrote: | Hrmmh, Paludis. Frankly, I'd prefer to stick with Portage, though it's good to see it's at least possible. Do you know if there are any plans to implement it in Portage? |
I've not heard of any. I believe, but am not sure, that this would require portage to have repository support, which it doesn't currently have. A few other features require it. I'm going to talk to Zac, the portage dev, about it. _________________ No Man is Just a Number!
--The Prisoner |
|
Back to top |
|
|
McLink Apprentice
Joined: 02 Feb 2008 Posts: 181 Location: /dev/chair
|
Posted: Sat Oct 11, 2008 8:16 pm Post subject: |
|
|
gentoofan23 wrote: | I've not heard of any. I believe, but am not sure, that this would require portage to have repository support, which it doesn't currently have. A few other features require it. I'm going to talk to Zac, the portage dev, about it. | Sweet. Thanks! _________________
Mc'abit wrote: | Islam isn't the problem, religion is. |
|
|
Back to top |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6053 Location: Removed by Neddy
|
Posted: Sat Oct 11, 2008 8:19 pm Post subject: |
|
|
This is something I have wanted for quite some time from portage, and the primary reason I have trimmed down my overlays I use (and the moment an overlay starts adding extra stuff I fork the overlay).
If I could set a priority that would be great _________________
Quote: | Removed by Chiitoo |
|
|
Back to top |
|
|
tanderson Retired Dev
Joined: 11 Apr 2007 Posts: 193
|
Posted: Sat Oct 11, 2008 8:23 pm Post subject: |
|
|
Ok, I talked to Zac, and he says it won't happen until portage-2.2 final is out(he says that'll take about a month). After that, it'll be his top priority. To quote(I'm tanderson):
Quote: | 16:14 < tanderson> zmedico: ping
16:14 < zmedico> pong
16:15 < tanderson> how close are we to repository support? I just ran along another user asking for something that would be provided by repository support
16:16 < zmedico> won't happen until after 2.2 final since we need to get that stabilized asap
16:16 < tanderson> right.
16:16 < zmedico> 2.2 final is expected in about 1 month or so
16:17 < zmedico> repository stuff is high priority though
16:17 < zmedico> that is my top priority after 2.2. final
16:17 < tanderson> ok, that's good to know. I'll let the user know
16:17 < zmedico> thanks
16:19 < tanderson> just to make sure, are you going to use '::' in atoms for repositories?
16:19 < leio-dl> zmedico: aww, no 2.1.5 or newer for automatic blocker handling for two more months
16:20 < zmedico> tanderson: yeah, probably
16:20 < tanderson> k, ta
|
_________________ No Man is Just a Number!
--The Prisoner |
|
Back to top |
|
|
|
|
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
|
|