[Frugalware-devel] build-time options

Gabriel C crazy at frugalware.org
Tue Sep 4 18:06:25 CEST 2007


Miklos Vajna wrote:
> hi,

Hi,

> 
> i know we are not gentoo, but sometimes it's nice to have buildtime
> options in the FB. i think it was originally slin's idea. see the
> postfix pkg:
> 

What for ? 

The _only_ option may make sense is the DEVEL one. So one can 
merge his devel FB in the repo and use USE_DEVEL or something.

Everything else doesn't make _any_ sense for a 'not-source' based distro.



> repoman merge postfix # this builds and installs postfix
> 
> USE_BACKEND_LDAP=1 repoman merge postfix # this adds ldap support

Yepp an of course you can set to 0 and you broke everything needed while users think is
*like* gentoo.

Really if you start that you mess up the repo while you are forced to fix what foo's FB introduced in
other FB's and so on..

In other words these stuff has to be 'exactly' like gentoo or forget it. That can't be a 'command line' thing
but USE_FLAGS 'a la' gentoo which you have to add somewhere and source / export that file / USE_*.

Why ?

Simply ... See that example ( which is a foo one nothing complicated )

FOO:

	- can have $USE_{BAR,BAZ,BLUBB}
	- if you can set those to y/n you end up in a possible 
		: FOO has everything ON
		: FOO has everything OFF
		: FOO has 2 features OFF and one ON
		: FOO has 1 features ON and 2 OFF 
		< some more >
BAR: 
	- need FOO
	- and need FOO with _all_ 3 features while
	  - BAZ: need BAR which is needed for some DE to get 3 features.
	- and worse : and need all 3 while FOO has 3 plugins need these and the plugins are 'subpkgs' 

Not we build FOO without and feature , and we broke BAR and we broke BAZ and we broke the DE and possible everything need BAR , BAZ and the DE.

To solve that not we have to add some checks to the other FB's for that and at this point it cannot be a 'command line' anymore.

( I'm a bit in rush while got to go but I hope you get that )


crazy



More information about the Frugalware-devel mailing list