Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 292847 - Add ebuild metadata so it is possible to check for orphaned files in $FILESDIR
Summary: Add ebuild metadata so it is possible to check for orphaned files in $FILESDIR
Status: CONFIRMED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: PMS/EAPI (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: PMS/EAPI
URL:
Whiteboard:
Keywords:
: 343657 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-11-11 21:28 UTC by Daniel Pielmeier
Modified: 2021-07-21 01:21 UTC (History)
4 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 Daniel Pielmeier gentoo-dev 2009-11-11 21:28:45 UTC
This is just an idea which come to mind. Such a check would be quite useful.

If I remember right there was a file cleaning effort some time ago, so a script probably already exists.
Comment 1 Christian Ruppert (idl0r) gentoo-dev 2009-11-12 21:16:43 UTC
http://qasl.de/~idl0r/gentoo_unused_files-beta.pl

But I think it is nearly impossible to cover all and esp. without false-positives.
Comment 2 SpanKY gentoo-dev 2009-11-13 03:47:45 UTC
try running it in binutils/gcc/glibc dirs.  files are used in tricky ways, and sometimes only referred to by eclasses/eblits ...
Comment 3 Daniel Pielmeier gentoo-dev 2010-03-05 14:52:59 UTC
The check does not need to be 100% correct as this seems to be impossible or only doable with a huge effort. An option to turn on which shows possible unused files would be nice though.
Comment 4 Zac Medico gentoo-dev 2010-03-06 00:57:07 UTC
Maybe we should add a new metadata variable for declaring which files are used inside $FILESDIR. We could make this variable retroactive for all EAPIs like we did with PROPERTIES. In addition to QA, this new variable would be useful for things like bug 303403.
Comment 5 SpanKY gentoo-dev 2012-08-20 02:57:46 UTC
it's hard to say how useful this is
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-02-04 13:07:41 UTC
*** Bug 343657 has been marked as a duplicate of this bug. ***