Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 349446 - app-portage/layman: support adding out-of-the-list overlays
Summary: app-portage/layman: support adding out-of-the-list overlays
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement with 2 votes (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: NeedPatch
Depends on:
Blocks:
 
Reported: 2010-12-23 09:50 UTC by Michał Górny
Modified: 2015-03-24 17:42 UTC (History)
2 users (show)

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 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2010-12-23 09:50:05 UTC
A nice feature (as a simpler alternative to layman-add) would be to add out-of-the-list overlays through the command line; e.g.:

  layman -t git -A git://example.com/myoverlay.git/

Just the simplest case, no useless details.
Comment 1 Sebastian Pipping gentoo-dev 2010-12-23 10:03:41 UTC
Honestly, I will not add this myself anytime soon.  Patches welcome.

Also, please contact <overlays@g.o.> if you need anything added to the list of public overlays.  We're open to additions.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2010-12-23 17:53:15 UTC
(In reply to comment #1)
> Honestly, I will not add this myself anytime soon.  Patches welcome.

Do you have any wishes regarding the synopsis or output code?

> Also, please contact <overlays@g.o.> if you need anything added to the list of
> public overlays.  We're open to additions.

No, I don't need anything at the moment. But I guess some users may want to add their private overlays like so.
Comment 3 Dmitry Ivankov 2010-12-24 08:04:08 UTC
For a personal overlay I put custom xml list to layman.cfg.
(http://github.com/divanorama/divan-overlay/raw/doc/divan-overlay.xml)

I suggest that layman could also generate such xml like
layman-make-xml -t git git://example.com/myoverlay.git/

And one more feature is to add such list to xml within a commandline
layman --add-list http://github.com/divanorama/divan-overlay/raw/doc/divan-overlay.xml
Comment 4 Sebastian Pipping gentoo-dev 2010-12-25 02:56:03 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > Honestly, I will not add this myself anytime soon.  Patches welcome.
> 
> Do you have any wishes regarding the synopsis or output code?

If it extends the layman command, it needs to blend in with the current interface somehow.  No concrete restrictions as of now.


> No, I don't need anything at the moment. But I guess some users may want to add
> their private overlays like so.

I'm unsure if that's actually a good thing to make easy as it may keep overlays in the dark that otherwise may get requested for public addition.
I'm not trying to argue the feature request away - just thinking loudly.


(In reply to comment #3)
> And one more feature is to add such list to xml within a commandline
> layman --add-list
> http://github.com/divanorama/divan-overlay/raw/doc/divan-overlay.xml

layman's current option "-o" does that in a way.  I'm not saying it's a full substitute, though.
Comment 5 Brian Dolbec (RETIRED) gentoo-dev 2011-08-20 17:32:30 UTC
(In reply to comment #3)
> For a personal overlay I put custom xml list to layman.cfg.
> (http://github.com/divanorama/divan-overlay/raw/doc/divan-overlay.xml)
> 
> I suggest that layman could also generate such xml like
> layman-make-xml -t git git://example.com/myoverlay.git/
> 
> And one more feature is to add such list to xml within a commandline
> layman --add-list
> http://github.com/divanorama/divan-overlay/raw/doc/divan-overlay.xml

The layman-2 api now has the ability to accept an overlay definition defined in a python dictionary.  It can then write out the xml to a file.  This ability could be used in some code (internal in layman or an external tool) to create the xml file.

Also, while not the same, it is still somewhat simpler... I have added the ability for layman to scan /etc/layman/overlays for any overlay definition xml files and add them to the layman.cfg overlays variable on initialization.  This makes them pluggable, no editing required.  Simply download a definition file to there and perform a fetch (for it to be in the cache) for it to be available.

I do not intend to add this bugs feature enhancement to layman-2.0.0.  I want to get a final release out soon.  Perhaps it could be in 2.0.1 or 2.1 after the new api is settled in.
Comment 6 Devan Franchini (RETIRED) gentoo-dev 2015-03-24 17:42:26 UTC
Layman now includes a tool called "layman-overlay-maker" which will assist the user in creating a proper overlay definition.