Re: Build-depends for arch independent files
Simon McVittie <firstname.lastname@example.org> writes:
> On Sun, 22 Aug 2010 at 20:22:17 +0200, Sebastian Andrzej Siewior wrote:
>> I have a question about packages like antelope. Its dependency line
>> Build-Depends: debhelper (>= 7), cdbs, default-jdk, maven-repo-helper,
>> ant, docbook-xsl, xsltproc
> Strictly speaking, the packages that are needed for the build (only)
> should be moved to Build-Depends-Indep. Packages that are needed for
> clean, like debheper and cdbs, have to stay in Build-Depends in any case.
If it's an architecture: all package (in other words, if it doesn't build
any architecture-dependent packages), though, it's pointless to separate,
since no one is going to build the package unless they want to build the
arch: all portions.
>> In theory an arch-all rebuild of this package should fail.
> dpkg-buildpackage -A (arch-independent-only) requires both Build-Depends
> and Build-Depends-Indep, like a normal build; dpkg-buildpackage -B
> (arch-dependent-only, as used on buildds) requires only Build-Depends.
That's the theory, but unfortunately the buildds still call the build
target, so in practice the split is mostly pointless at the moment.
Russ Allbery (email@example.com) <http://www.eyrie.org/~eagle/>