I've been working on the first Gentoo-specific data collecting bytes
today. As smolt is written in Python using Portage's Python API was an
easy choice. Here's an excerpt of data sets and their status of
processing that I've been working with today:
Collected and auto-filtered:
- gentoo_overlays
list of installed overlays
- gentoo_global_use
- gentoo_global_keywords
i.e. ACCEPT_KEYWORDS
Collected, auto-filtering to be done:
- gentoo_compile_flags
i.e. CXXFLAGS + CFLAGS + LDFLAGS
- gentoo_mirrors
What do I mean by auto-filtering? Auto-filtering works to protect the
user's privacy. It's the process of comparing his local settings
against the knowledge base of the Gentoo system: Every part of his
config that's outside of that larger set is stripped away, because
publishing that information could hurt his privacy. To make this more
concrete:
For Overlays ..
we filter out overlays not located below /usr/local/portage/layman/.
For global use flags ..
we filter out stuff that's not described in
/usr/portage/profiles/use.desc or
/usr/portage/profiles/use.local.desc
If you would like to see the code of today in action grab gentoo.py from
http://git.goodpoint.de/?p=smolt-gentoo.git;a=blob_plain;f=client/distros/gentoo/gentoo.py;hb=b9742d88c8216b2989fba327bd2e34972c68dcb5
and run it through "python gentoo.py"
Sebastian