[Omake] ocamldep-omake, ocamldep -modules and ocamlfind revisited.

Aleksey Nogin anogin at hrl.com
Mon Aug 20 15:09:34 PDT 2007


In 0.9.8.5-3 bug-fix release, Jason chose to disable the usage of 
ocamlfind if OCAMLDEP_MODULES is enabled, but the only ocamldep 
supporting the -modules switch is the ocamldep-omake.

There is a significant problem with this choice - sometimes ocamlfind is 
_required_ (which is why I've added it to "ocamldep -modules" command 
line in the first place). In particular, Martin Jambon have reported 
(http://lists.metaprl.org/pipermail/omake/2007-August/001786.html) that 
he needs to run "ocamlfind ocamldep -syntax ..." in order to get the 
right preprocessor to filter the code being fed to ocamldep.

I see the following options for addressing this:

1) When the native ocamldep does not understand -modules, but 
ocamldep-omake is available, then set the OCAMLDEP_MODULES_AVAILABLE to 
$`(not $(USE_OCAMLFIND))

In other words, when the user wants ocamlfind, then give up on using the 
custom ocamldep instead of giving up on using the ocamlfind.

2) Give up on the ocamldep-omake completely, remove it from the OMake 
distribution and have the OCAMLDEP_MODULES functionality require OCaml 3.10

The latter choice would probably be a lot more robust, while the former 
one would be more pleasant for the OCaml 3.09 users who do not care 
about ocamlfind.

Jason, what do you think?

Aleksey

-- 
Aleksey Nogin, Research Scientist
Advanced Technologies Department, Information & System Sciences Lab
HRL Laboratories, LLC, Malibu, CA


More information about the Omake mailing list