Mailinglist Archive: opensuse-packaging (106 mails)

< Previous Next >
Re: [opensuse-packaging] Leap, %bcond_with and python?

Note that with:

%bcond_with protobuf_python

no python binding subpackage is built.

bcond_with => conditionally build WITH support - condition being:
specified using --with on the command line (or prj conf overrides)

While with:

%bcond_without protobuf_python

bcond_without ==> conditionally build WITHOUT support - condition, as

As they are nicely if'ed, only one should be ever used to declare the
default behaviou

Is this a specific double negative logic implementation in
protobuf.spec, or is bcond always used with a double negative type

bcond_* is generally misunderstood. *_with does not mean DEFAULT WITH,
but on CONDITIONALLY_WITH (as said: conditions can come from CLI, see
osc build --with/--without) or could be overruled by prjconf in OBS

It's messy - but once you get your head around it it's not that bad

To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups