public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Spider <spider@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: [gentoo-dev] Reverse dependency Scanning
Date: Sat, 23 Apr 2005 12:15:32 +0200	[thread overview]
Message-ID: <1114251333.619.9.camel@Darkmere> (raw)

[-- 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 --]

             reply	other threads:[~2005-04-23 10:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-23 10:15 Spider [this message]
2005-04-23 12:13 ` [gentoo-dev] Reverse dependency Scanning 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1114251333.619.9.camel@Darkmere \
    --to=spider@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox