From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j3NAFTgI007802 for ; Sat, 23 Apr 2005 10:15:29 GMT Received: from [213.134.113.127] (helo=[10.122.0.61]) by smtp.gentoo.org with esmtpa (Exim 4.43) id 1DPHfF-0001vL-Uk for gentoo-dev@lists.gentoo.org; Sat, 23 Apr 2005 10:15:06 +0000 Subject: [gentoo-dev] Reverse dependency Scanning From: Spider To: gentoo-dev@lists.gentoo.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-AIHPjTFhzKHF24eVeIM/" Organization: Gentoo Date: Sat, 23 Apr 2005 12:15:32 +0200 Message-Id: <1114251333.619.9.camel@Darkmere> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 X-Archives-Salt: 0adad5d5-ac04-4649-af39-95a304ea1ebf X-Archives-Hash: 3b68f86acdf716b1d6b49017ca915bb9 --=-AIHPjTFhzKHF24eVeIM/ Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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. =20 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=3Dg= entoo //Spider --=20 begin .signature Tortured users / Laughing in pain See Microsoft KB Article Q265230 for more information. end --=-AIHPjTFhzKHF24eVeIM/ Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBCaiBEZS9CZTi033kRAukwAJ917FftAzetd0UCIAmJXbU/jlRhmwCeNbX2 Rigmn0E0UxHUAnb+Zwt4xIk= =U1qA -----END PGP SIGNATURE----- --=-AIHPjTFhzKHF24eVeIM/-- -- gentoo-dev@gentoo.org mailing list