Re: Bug#229357: Can we require build-arch/indep targets for lenny?
Bill Allombert wrote:
> On Sat, Jun 30, 2007 at 09:40:29AM +0200, Andreas Metzler wrote:
>> I think that is just wrong. sbuild should not need to know anything
>> about dpkg-buildpackage's internals and there is no need for change
>> here. The currently used and proven interface is:
>> 1. install Build-Depends for running dpkg-buildpackage -B
> The issue we are trying to fix is that the current combination of
> Debian policy and dpkg-buildpackage actually require
> Build-Depends-Indep to be installed when running dpkg-buildpackage -B.
Policy does not reflect current reality in that respect. The buildds
do run dpkg-buildpackage -B and they do not install
Build-Depends-Indep. Packages requiring Build-Depends-Indep for
dpkg-buildpackage -B will FTBFS. Since that makes the package
unreleasable there are not many packages around that work like that.
(Except for source packages that do not build any arch-any packages
and therefore are not autobuilt.)
>> 2. install Build-Depends *and* Build-Indep-Indep for running
>> dpkg-buildpackage differently (e.g without any modifier or with -b)
> If you insist to go that road, you need to:
> 1) Change policy to require build-arch is implemented anytime the field
> Build-Depends-Indep is provided.
> 2) Change dpkg-buildpackage -B to call build-arch if the field
> Build-Depends-Indep is present.
No, that is not necessary. What needs to happen is just:
Somehow make dpkg-buildpackage -B make use of the build-arch target
if present. Either by detecting it automatically or by something like
Once that happens the current wording in policy matches reality for
packages proving a build-arch target.
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'