[aur-general] PKGBUILD: depends vs. makedepends and namcap warning

Jan Alexander Steffens jan.steffens at gmail.com
Mon Jul 11 08:37:37 UTC 2016


On Mon, Jul 11, 2016, 10:18 Lukas Böger <dev at lboeger.de> wrote:

> Dear AUR list,
>
> simple question about dependencies in PKGBUILDs:
>
> Package A provides some header files and build scripts. Package B
> provides additional headers, and their usage only work out if A's
> headers are in place. Additionaly, package B can only be compiled using
> A's build scripts.
>
> 1) Is it correct to have package A in B's depends AND makedepends arrays?
>
> 2) Am I supposed to ignore namcap's warning 'Dependency included and not
> neede' because it doesn't take header dependencies into account?
>
> Thanks in advance for clarification,
> Lukas
>

1) No, depends is enough. Unlike e.g. debian, the depends you declare are
implicitly part of the makedepends.
2) Yes, namcap is dumb and can only detect some dependencies, like dynamic
links.

>


More information about the aur-general mailing list