On Tue, Jan 23, 2007 at 02:17:15PM -0500, Mike Erdely wrote:
> I'm working on porting bacula.  I have some design questions.
> 
> I envision having the following packages when I'm done:
> bacula-fd-$V
> bacula-gconsole-$V
> bacula-wxconsole-$V
> bacula-sd-$V
> bacula-dir-$V-mysql
> bacula-dir-$V-pgsql
> bacula-dir-$V-sqlite
> 
> I see having MULTI_PACKAGES=-main -gconsole -wxconsole -sd -dir
> I see having FLAVORS=mysql pgsql sqlite
> 
> What I'm unclear about is how to require a flavor for -dir SUBPACKAGE and 
> to not allow flavors for other SUBPACKAGES.
> 
> I believe you require a flavor (more or less) by FLAVOR?=sqlite (or 
> something similar).
> 
> Am I on the right track?

Typically we only use FLAVORS when a port has very large dependencies
that fundamentally change the final build's binaries. If the various db 
backends are easily SUBPACKAGEable, ie. each database backend is a shared 
that gets loaded at runtime and all of the files needed for this support
are easily identified and isolated, then I say do away with the extra 
complexity of FLAVORS alltogether and just go with SUBPACKAGES. 

-- 
Mathieu Sauve-Frankel

Reply via email to