[arch-general] depends vs. makedepends
Allan McRae
allan at archlinux.org
Sat May 30 06:38:05 EDT 2009
Magnus Therning wrote:
> Allan McRae wrote:
>> Magnus Therning wrote:
>>> Allan McRae wrote:
>>> [..]
>>>
>>>> As a general rule, you never should use $startdir in a PKGBUILD.
>>>
>>> Is that written down somewhere? It'd be nice to have a place to
>>> refer to when arguing some changes to PKGBUILDs.
>>
>> man PKGBUILD:
>> startdir was most often used in combination with /src or
>> /pkg postfixes, but use of the srcdir and pkgdir variables is
>> preferred.
>>
>> The wording has been made even stronger about not using $startdir for
>> the next pacman release.
>
> Ah, excellent, I wasn't aware of the existence of that man-page.
>
> Another thing that I've been wondering about is the relationship
> between 'depends' and 'makedepends'. The description in the man-page
> is fairly clear, but just to check I'm wondering if it's correct to
> say that
>
> 1. a dependency should _never_ be mentioned in both 'depends' and
> 'makedepends'?
>
> 2. the packages required to build a package is the union of 'depends'
> and 'makedepends'?
Yes. They way I think about it is "depends" are needed to run a package
and "makedepends" are extras needed to build the package.
Allan
More information about the arch-general
mailing list