Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 512186 - sys-apps/portage: CONTENTS: add new object type
Summary: sys-apps/portage: CONTENTS: add new object type
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - External Interaction (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Portage team
Depends on:
Blocks: 193766
  Show dependency tree
Reported: 2014-06-02 18:10 UTC by SpanKY
Modified: 2020-04-11 20:32 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2014-06-02 18:10:31 UTC
we have tools that often generate symlinks or helper files that are then, from the perspective of portage, orphaned.  if we extended the CONTENTS file slightly, and added an API with portageq for updating that file, it'd lead to much better tracking of these various files.

we have symlinks in /usr/bin/, /usr/include/, /usr/lib/, /usr/share/doc/man/, etc... that'd all benefit.  just run:
 qfile -o /bin/* /usr/bin/*
to see all the orphaned files.

i'd propose the new keyword "gen" and it'd just have one value -- the path that is being tracked.  no mtime, hash, etc...

tooling would use it for informational purposes, but they would not get picked up when e.g. creating binary packages.

portageq would then have a simple API like:
 contents_gen <eroot> <category/package> <add|del|set> <paths>