Re: Build-Depends vs. Build-Depends-Indep
Cord Beermann <firstname.lastname@example.org> wrote:
>When should i use 'Build-Depends-Indep' instead of 'Build-Depends'?
>should Build-Depends-Indep be used for Dependencies on
>*_all.deb-Packages, or for Dependencies which were the same on all
Build-Depends-Indep should be used for packages which must be installed
when running the 'binary' and 'binary-indep' rules in debian/rules, that
is, when building your own architecture-independent packages. So if I
have packages foo (Architecture: any) and foo-doc (Architecture: all),
and the latter requires, say, a DocBook translator, I'd have
Build-Depends-Indep: docbook-to-man - packages which only foo requires
don't need to be mentioned.
>should i set:
>Build-Depends: debhelper (>= 2), libncurses-dev, xlib6g-dev
> [!hurd-i386], xviewg-dev [!hurd-i386], groff
>Build-Depends-Indep: debhelper (>= 2), libncurses-dev, xlib6g-dev, groff
>Build-Depends: xlib6g-dev [!hurd-i386], xviewg-dev [!hurd-i386]
The former looks more appropriate.
Colin Watson [email@example.com]