>>>>> "buchan" == Buchan Milne <[EMAIL PROTECTED]> writes:

buchan> Luca Berra wrote:
>> On Mon, Aug 25, 2003 at 11:38:42PM +0200, Guillaume Rousse wrote:
>> 
>>> Conditional build in package is often defined using
>>> %define build_foo 0
>>> %{?_with_foo: %{expand: %define build_foo 1}}
>>> this way, to allow condition foo, you can either edit the spec file
>>> and change its value to 1, or use --with foo on command line when
>>> building the package.
>>> 
>>> However, it seems rpm 4.2 has a bug processing ?_with directive, or at
>>> least changed behaviour since latest version. It is now only local to
>>> current rpm section.
>> 
>> 
>> it should be written:
>> %define build_foo 0
>> %{?_with_foo: %{expand: %%global build_foo 1}}
>> ^^^^^^^^

buchan> Dump the %expand, it's not necessary:
buchan> %{?_with_foo: %global build_foo 1}

Didn't knew :(

kernel uses old form and it is working well here (changing to new form
anyways).

Later, Juan.


-- 
In theory, practice and theory are the same, but in practice they 
are different -- Larry McVoy

Reply via email to