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

Re: Bug#216492: FTBFS (unstable/all) missing build-dep



On Wed, Oct 22, 2003 at 06:22:38AM +0100, Andrew Suffield wrote:
> > Here a refinement the proposal in <nkDa6B.A.CvH.1lmk_@murphy>:
> > 
> > Add at the top of debian/rules
> > 
> >   BUILD=build-arch build-indep
> > 
> > and changes build target to depend on
> > 
> >   build: $(BUILD)
> > 
> > At this point build-arch is emulated by runinng 
> > 
> >   debian/rules build BUILD=build-arch
> > 
> > and build-indep by
> > 
> >   debian/rules build BUILD=build-indep
> > 
> > so far it is the cleanest solution.
> 
> Aside from anything else, the people who want debian/rules to be
> something other than a makefile will object.

Why ? it is a trivial matter to parse the command line for an
option like BUILD=binary-arch.

> I also fail to see how it is any way superior to adding build-arch and
> build-indep to all remaining rules files and then switching

By any chances, do you offer to do that ?

> dpkg-buildpackage and policy over. Note that it will break in pretty
> much the same way as #216492 (subject of this thread) if the rules
> file has not been converted to your scheme.

It will not break anything:

1) old debian/rules, new dpkg-buildpackages:

debian/rules build BUILD=build-arch

since BUILD is not used in debian/rules, this is equivalent to
debian/rules build
which is OK.

2) new debian/rules, old dpkg-buildpackages:

debian/rules build

Since BUILD is not overriden, its default value is used
and then
build: build-arch build-indep
which is OK.

Cheers,
-- 
Bill. <ballombe@debian.org>

Imagine a large red swirl here. 



Reply to: