ATTN: Changes to OCaml dependency generator for RPM 4.8 in Rawhide

Richard W.M. Jones rjones at
Wed Dec 16 15:47:03 UTC 2009

Since RPM 4.8 (now in Rawhide / Fedora 13), the external dependency
generator that we used to ship with OCaml has now gone upstream into
RPM.  This is a Good Thing, thanks to the RPM maintainers for adding

If you own an OCaml library package, then there are some simple
adjustments you need to make to your OCaml spec files _in Rawhide_.

First of all, remove any lines that are exactly like any of these:

  %define _use_internal_dependency_generator 0
  %global _use_internal_dependency_generator 0
  %define __find_requires /usr/lib/rpm/
  %global __find_requires /usr/lib/rpm/
  %define __find_provides /usr/lib/rpm/
  %global __find_provides /usr/lib/rpm/

Any remaining calls to ocaml-find-{requires,provides}.sh must be ones
which take parameters, and these need to be modified.


  %define __find_requires /usr/lib/rpm/ <params...>
  %global __find_requires /usr/lib/rpm/ <params...>


  %global __ocaml_requires %{_rpmconfigdir}/ <params...>

and the same for "provides" instead of "requires".

For example, if your original spec files contained this block:

  %define _use_internal_dependency_generator 0
  %define __find_requires /usr/lib/rpm/ -i Asttypes -i Parsetree
  %define __find_provides /usr/lib/rpm/

then following the rules above it would become:

  %global __ocaml_requires %{_rpmconfigdir}/ -i Asttypes -i Parsetree

If you need any help, please ask on the list or see this BZ:


Richard Jones, Virtualization Group, Red Hat
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.

More information about the fedora-devel-list mailing list