On Feb 8, 2010, at 17:50, Anil Madhavapeddy wrote: > OCaml ports are very sensitive to the exact version of the compiler (and > dependent libraries) used to compile them, since the type signature is a hash > over the binary output. If the compiler is upgraded, but libraries are not > recompiled, then the whole compilation fails with a slightly obscure error > like: > > File "db.ml", line 1, characters 0-1: > Error: The files /opt/local/lib/ocaml/site-lib/calendar/calendarLib.cmi > and /opt/local/lib/ocaml/printf.cmi make inconsistent assumptions > over interface Buffer > > So... I was wondering how to encode the depends_lib so that the OCaml > libraries in MacPorts depend on the *exact* version of OCaml they were > compiled with, and a subsequent upgrade of the OCaml port will also trigger a > recompile of the dependent libraries. Could someone advise me of the TCL-foo > to make this possible (if so) ?
There is no syntax in MacPorts to make that possible. So, you'll have to manually increase the revision of the ocaml ports when the compiler version increases. _______________________________________________ macports-dev mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev
