Dependency discovery

Per Øyvind Karlsen peroyvind at mandriva.org
Fri Apr 1 14:44:12 PDT 2011


2011/4/1 Donnie Berkholz <dberkholz at gentoo.org>:
> Do any of you have useful software that scans source code to determine
> its dependencies? We're considering a Google Summer of Code project that
> would include this as one aspect of a semi-automated package generator,
> but I'd hate to see us duplicating effort.
>
> The basic idea I had in mind is a set of plugins, one per language, with
> a sufficient understanding of that language's syntax to determine the
> external files a given piece of code depends on. We'd then couple that
> with a tool like distromatch to figure out which packages the files came
> from.
You'll find several such scripts at:
http://rpm5.org/cvs/dir?d=rpm/scripts

Of recent additions, you'll probably find these two the most interesting:
I've recently written a dependency generator for ruby & ruby gems (ruby code
quality is awful though, not my cup of tea for what conding languages go:p
patches cleaning it up are more than welcome!):
http://rpm5.org/cvs/rlog?f=rpm/scripts/rubygems.rb

And also one for python & python eggs:
http://rpm5.org/cvs/rlog?f=rpm/scripts/pythoneggs.py

--
Regards,
Per Øyvind


More information about the Distributions mailing list