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

Bug#218893: Autodetecting existence of build-arch target



On Wed, May 05, 2004 at 11:46:20AM +0200, Andreas Metzler wrote:
> Hello,
> I have recently asked Scott James Remnant[1] on IRC for comments on this
> problem and the proposed solution (#229357), to add Build-Options:
> build-arch' to debian/control if the package supported this target.

I've been wondering... why bother? Why can't we just make build-arch and
build-indep mandatory, and make stuff such as

build-indep: build-stamp
build-arch: build-stamp
build: build-stamp
build-stamp: 
	[whatever is necessary]
	touch build-stamp

legal if splitting out build-indep and/or build-arch is impossible or
infeasible? That way, dpkg-buildpackage could assume that all three
targets are available, and just run the build-arch, build-indep, or
build targets, as necessary, without any risk for breakage.

Of course, doing so will need a long and painful transition plan, but I
think this would end us up with something not as kludgy as having to add
a field somewhere that would advertise the availability of certain
options.

Comments?

-- 
         EARTH
     smog  |   bricks
 AIR  --  mud  -- FIRE
soda water |   tequila
         WATER
 -- with thanks to fortune

Attachment: signature.asc
Description: Digital signature


Reply to: