Provenpackagers can help (was: Re: OCaml 4.01.0 coming to Fedora Rawhide this weekend)

Richard W.M. Jones rjones at redhat.com
Sat Sep 14 13:04:08 UTC 2013


For provenpackagers who want to pitch in with OCaml builds, here's a
summary of what I'm doing:

 - Check that the master branch hasn't been updated already.

 - Check if there's a new upstream version, and upgrade to it if so.

 - REMOVE any of:

   %global/%define debug_package %{nil}
   %global/%define __strip /bin/true

 - REMOVE any stripping of binaries/libraries.

 - REMOVE any prelink hacks (example [3]).

 - Ensure that the build uses 'ocamlopt -g' or 'ocamlopt.opt -g'
   option.  You may need to patch the build system (see example[1]).
   This is the hardest part because unfortunately all upstream build
   systems are a bit different and some are a bit crazy.

 - Do a local test build and check that:

   (a) It builds
   (b) ocaml-X-debuginfo is created
   (c) ocaml-X-debuginfo is not empty
   (d) ocaml-X-debuginfo looks reasonable (it should contain some
       *.c and/or *.ml source files at least)

If that works, push it and build it.

If there are any problems, you can either ask me or just leave that
package.

Here are some examples:

[1] http://pkgs.fedoraproject.org/cgit/ocaml-bitstring.git/commit/?id=e7d1babc3b1b2740f7ea8c1caf6da83ccdc969ba
[2] http://pkgs.fedoraproject.org/cgit/ocaml-pcre.git/commit/?id=448ee1c55ada7510c325a10269fe0e3f52d7af27
[3] http://pkgs.fedoraproject.org/cgit/ocaml-ocamlnet.git/commit/?id=2ce2932a81a87eb85f4b51c529de55135a99b124

Thanks,

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/


More information about the devel mailing list