Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 292847

Summary: Add ebuild metadata so it is possible to check for orphaned files in $FILESDIR
Product: Gentoo Hosted Projects Reporter: Daniel Pielmeier <billie>
Component: PMS/EAPIAssignee: PMS/EAPI <pms>
Status: CONFIRMED ---    
Severity: enhancement CC: idl0r, jlec, pacho, qa
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=431196
Whiteboard:
Package list:
Runtime testing required: ---

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. ***