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=e7d1bab...
[2]
http://pkgs.fedoraproject.org/cgit/ocaml-pcre.git/commit/?id=448ee1c55ada...
[3]
http://pkgs.fedoraproject.org/cgit/ocaml-ocamlnet.git/commit/?id=2ce2932a...
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/