Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 159695 - app-portage/layman - configurable overlays order
Summary: app-portage/layman - configurable overlays order
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gunnar Wrobel (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-02 02:16 UTC by Maciej Piechotka
Modified: 2007-01-10 08:23 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej Piechotka 2007-01-02 02:16:38 UTC
I'd like to edit layman. ie. I have overlay1, overlay2 & overlay 3 and make from it overlay1, overlay3 & overlay2 without need od modification of files.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-01-02 02:53:27 UTC
Reopen once you've clarified what are you requesting, the above is about as clear as mud; sorry.
Comment 2 Maciej Piechotka 2007-01-02 03:10:05 UTC
I have, for example such overlays:
- java-experimental
- java-gcj
- gnome-experimental
- break-my-gentoo
I'd like to have break-my-gentoo before gnome-experimental in PORTDIR_OVERLAY.
- java-experimental
- java-gcj
- break-my-gentoo
- gnome-experimental
And editing by adding/deleting when you have more then few overlays is terrible...
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-01-02 03:13:29 UTC
And the point of having one overlay before another would be exactly what?
Comment 4 Maciej Piechotka 2007-01-02 03:16:53 UTC
That the ebuild in one overlay is 'broken'. For example gcj overlays provides eclipse ebuild. Other ebuilds are broken when you build it with gcj.
Portage choose newest ebuild (in terms of version noumber). When it find few with the same noumber it choose from the last overlay.
Comment 5 Gunnar Wrobel (RETIRED) gentoo-dev 2007-01-04 03:01:30 UTC
This is possible by building your own list of overlays. 

Look at the global list for layman, copy the entries you need and provide each <overlay>...</overlay> entry with a "priority" argument (<overlay name="java-experimental" priority=10>...</overlay>). The lowest priorities will get sorted to the top of the list in make.conf. Overlays without a priority will have a default value of "50".

This in combination with the possibility to use "package.mask" should allow you to solve conflicts between overlays.

The "priority" feature in layman has not been used so far and I never documented it. So I'll leave this bug open as a reminder for myself to add the necessary comments in the documentation.
Comment 6 Maciej Piechotka 2007-01-04 04:14:58 UTC
I'd be very glad if you add as well:
- Changing piority during adding
layman -a <repository> [-p <priority>]
- Changing piority locally
layman -p <prioity> <repository>

Regards
Comment 7 Gunnar Wrobel (RETIRED) gentoo-dev 2007-01-04 04:27:04 UTC
Hm, that is indeed a useful suggestion. Much better than creating a manual overlay list. I'll add that in the next release. Thanks!
Comment 8 Maciej Piechotka 2007-01-04 05:33:08 UTC
I ask about something like that...
Comment 9 Gunnar Wrobel (RETIRED) gentoo-dev 2007-01-10 08:23:22 UTC
The -p switch has been added for this in layman-1.0.10