Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 707824 - sys-apps/portage: support a structured configuration file format (like toml or yaml) for miscellaneous settings
Summary: sys-apps/portage: support a structured configuration file format (like toml o...
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Configuration (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 691798
  Show dependency tree
 
Reported: 2020-02-01 23:14 UTC by Zac Medico
Modified: 2020-03-14 21:47 UTC (History)
1 user (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 Zac Medico gentoo-dev 2020-02-01 23:14:26 UTC
A structured configuration file format would be useful for storing miscellaneous settings, so that we can avoid unnecessary pollution of make.conf with configuration variables. Something like toml or yaml would work. It should allow configuration to be split into multiple files in sub-directories, as usual for existing portage config file formats.
Comment 1 Zac Medico gentoo-dev 2020-02-02 03:52:47 UTC
We'll need a a plugin framework, like the ebuild cache framework, so that people can choose practically any format.
Comment 2 Michael 'veremitz' Everitt 2020-02-02 08:54:31 UTC
(In reply to Zac Medico from comment #1)
> We'll need a a plugin framework, like the ebuild cache framework, so that
> people can choose practically any format.

The true test of that, however, is that you do have multiple implementations using that framework efficiently. Whilst we did see briefly a sqlite implementation (I believe, if I'm getting the right cache), I don't believe it's any better than the in-built?

I'd like to see at least a template/reference implementation of one other format in addition to the 'preferred choice' so that contributors have a good starting point to use such a framework, otherwise it's a bit of a waste of time/effort providing for it.