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

Re: How to build flavored package if upstream doesn't grok OOT build



On Sat, Jun 23, 2012 at 03:23:03PM +0200, Arno Töll wrote:
> On 23.06.2012 15:17, Marc Haber wrote:
> > How can I build two flavors of a program with different configure
> > parameters if upstream does not properly handle out-of-tree building
> > and I do not want to ditch dh?
> 
> You copy the source tree as a preparation and recurse into all flavors
> for the configure/build/(install) stages. Take a look at the Apache 2.2
> source package for a (complex) example.

Better: link it.

If you want to be able to resume partial builds as well, the rules are:

tree-stamp:
	dh_testdir
	mkdir flavour1
	cp -ldpR dir1 dir2 dir3 flavour1/
	mkdir flavour2
	cp -ldpR dir1 dir2 dir3 flavour2/
	touch tree-stamp

-- 
I was born an ugly, dumb and work-loving child, then an evil midwife
replaced me in the crib.


Reply to: