Re: depends vs. makedepends

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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





[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux