Let's suppose you downloaded a source code folder, that contains an existing /debian/
folder as well as /debian/control
file.
Let's suppose the package in question is not in Debian official repository, so apt-get build-dep
cannot be used.
How to parse the Build-Depends:
line?
For example, if the line would read Build-Depends: debhelper (>= 8), faketime
, is there some tool control-parse debian/control build-depends
that would echo debhelper faketime
?
Especially when it's multi line?
Are there existing Debian tools or has one to write its own code to parse this?
Best Answer
You could use
dpkg-checkbuilddeps
. The man page saysFor example:
However, you could also just try building the package, using (for example)
debuild
, e.g.Which gives the same information (since it uses
dpkg-checkbuilddeps
), but is a little noisier.