%bcond_with is backwards?

Richard W.M. Jones rjones at redhat.com
Thu Dec 8 18:10:17 UTC 2011

I've got a specfile (hivex.spec) which has this:

# conditionalize Ocaml support
%ifarch sparc64 s390 s390x
%bcond_with ocaml
%bcond_without ocaml


%if %{with ocaml}
BuildRequires:  ocaml
BuildRequires:  ocaml-findlib-devel

This code correctly disables OCaml support on architectures where we
don't bother to compile OCaml (sparc64 s390 s390x).  But the
conditional code looks backwards to me.  Does this make sense to


Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)

More information about the devel mailing list