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

Re: Build-Depends vs. Build-Depends-Indep



Cord Beermann <debian@cord.de> 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
>Debian-Architectures?

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
>
>or:
>
>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.

Cheers,

-- 
Colin Watson                                     [cjw44@flatline.org.uk]



Reply to: