public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Reverse dependency Scanning
@ 2005-04-23 10:15 Spider
  2005-04-23 12:13 ` Juergen Hoetzel
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Spider @ 2005-04-23 10:15 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1434 bytes --]

Well,  this is something I spent quite a bit of time on yesterday, with
some help from bonsaikitten on figuring out the python madness.


Before ferringb tells it again, no, I know this isn't foolproof, cannot
be 100% in coverage, won't cover dlopen, conditional includes, bash
source inherit or other such fancy things that people do :)

However, it somewhat works ;)
What it does :
 given a list of files ( `etcat files category/package`  generates a
nice one ) it scans them, classifies into "scripts, perl, python,
libraries, executables" ,  then does its best to parse theese into
generating a list of -needed- files.

This means that it outputs a list of shared libraries linked against,
python modules imported, perl modules,  and script interpreters
( #!/bin/bash ...)

So,  taking that list you can then play around a bit with `qpkg -f` and
you'll end up with a nice list of packages that are actually used.


So, I know it isn't foolproof, don't expect it to be.  However, feedback
would be nice, patches and so on.   

oh, where it lives?  cvs : gentoo/users/spider/depreverse  , expects to
be ran from the current directory as it calls "./..."  for the included
scripts.

http://www.gentoo.org/cgi-bin/viewcvs.cgi/users/spider/depreverse/?root=gentoo


//Spider


-- 
begin  .signature
Tortured users / Laughing in pain
See Microsoft KB Article Q265230 for more information.
end


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-04-25 19:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-23 10:15 [gentoo-dev] Reverse dependency Scanning Spider
2005-04-23 12:13 ` Juergen Hoetzel
2005-04-23 12:21 ` Thomas de Grenier de Latour
2005-04-23 20:36   ` Spider
2005-04-25  1:51 ` Thomas de Grenier de Latour
2005-04-25  9:29   ` Spider
2005-04-25 12:52     ` Paul de Vrieze
2005-04-25 19:11       ` Thomas de Grenier de Latour

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox