On 03.03.2013 09:59, Daniel Micay wrote:
On Sat, Mar 2, 2013 at 5:35 PM, oliver <oliver@first.in-berlin.de> wrote:
Hello,
is there an easy way to find out, which package dependencies a package has?
Say, i want to write the PKGBUILD for a package, and the compilation on my system (.7configure/cmake and make) does work without problems.
Then I don't get a message about missing libraries. So, it's easy to compile the stuff, but needs some effort to find out the dependencies.
Possibly with ldd the linked stuff can be found out, but the library names not necessarily are the same as the names of the package that provide these libraries.
So, it may need some effort to find out the packages.
Is there an easy way to find out the package names?
Maybe someone already has written a script that reverse-lookups the package names from ldd-output?
Any ideas on that?
Ciao, Oliver
You can install devtools and use extra-{x86_64,i686}-build instead of directly using makepkg, which will build in a Linux container and won't let you miss any dependencies.
This would only work if there is some kind of already existing PGKBUILD, but I think he tries to write one from scratch for a software not yet in the official repos or the AUR. Using namcap and elf2pkgs is then the best solution to figure out the corresponding packages in the repos. HTH, Christoph