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

Re: how to build a package conditionally?



On Tue, Mar 06, 2001 at 06:54:31PM -0300, Henrique M Holschuh wrote:
> On Tue, 06 Mar 2001, Martin Bialasinski wrote:
> > * Steve M Robbins <steven.robbins@videotron.ca> wrote:
> > > What I am proposing is a source package that generates *both* a
> > > "main" and a "contrib" .deb.
> > 
> > This is not allowed.
> 
> Or rather, it is... kinda. You can have your source package generate two
> sets of .debs depending on how it is built, but you must upload it twice,
> with different names (and building different sets of debs by default) to
> every section.
> 
> See the fetchmail and fetchmail-ssl source packages for an example.
> fetchmail-ssl is an automated transform of the fetchmail source package,
> triggered by "make debian/rules select-ssl".

Ah, thanks!  I knew I couldn't be the first to run into this
situation.

> You gain nothing in upload time, but it certains give you less hassle to
> only have one single source tree in CVS, for example.

Yeah, it's a cute hack.  

Too bad that the entire source needs to be duplicated, though.

-S



Reply to: