Thicket thicket
ocaml
REPOS 27

W45.2024 · 4–10 NovAll

ocamlfind 1.9.7 is released, correcting the sitelib check that broke opam install ocamlfind upgrades on OCaml 5.x switches. The odoc_driver command is split into three sub-commands (dune, opam, generic), requiring updates to existing flat invocations.

Features

  • ocamlfind 1.9.7: adds -with-relative-paths-at <prefix> to ./configure, resolving $PREFIX at runtime via environment variables instead of hardcoding absolute paths. Merged in #72.
  • ocamlfind 1.9.7: Fl_dynload.load_packages now accepts an optional loader function, replacing the default Dynlink.loadfile call. Useful for JSOO Web Workers where .cma-to-.js compilation is slow. Merged in #81.
  • odoc: relaxes the disjointness constraint between -P and -L roots, allowing a page root and library root to overlap (e.g. -P pkg/ with -L pkg/lib/). Merged in #1233.
  • odoc-md (proposal): new package processing standalone Markdown files into page-*.odoc pages for odoc rendering. Based on cmarkit; requires OCaml ≥ 4.14. Opened in #1234.
  • Merlin (oxcaml): merged #116 adds -lsp-compat true, adjusting stack-or-heap location reporting to match type-enclosing ranges for consistent LSP hover display. Editors querying RPC directly without the flag retain original ranges.

Releases

  • ocamlfind 1.9.7: released via #87, closing the long-standing release request in #79.

Fixes

  • ocamlfind 1.9.7: corrects the ./configure sitelib check that broke opam install ocamlfind upgrades from 1.9.5 on OCaml 5.x switches, where a stale stdlib/META caused findlib packages to vanish. Merged in #61.
  • ocamlfind: ./configure fails with dynlink_subdir: parameter not set or null on OCaml 5.2.0 when a META file is already present. Reported in #88; a workaround patch is posted.
  • Picos: merged #328 reduces memory use in external reference counting by using try_compare_and_remove to eliminate an extra Atomic indirection.

Compatibility

  • odoc_driver: merged #1237 splits the single odoc_driver command into three sub-commands (dune, opam, generic). Existing invocations using the old flat interface require updating.
  • Saturn: merged #159 removes the Saturn_lockfree sub-package since all structures are lock-free. Future blocking structures would target a scheduler-specific package.
  • opam: issue #6291 reports opam install ocaml fails on Windows 11; the download succeeds but the resulting file is not found due to a .tar vs .tar.gz name mismatch.