opam 2.5.2 is released, bundling the CVE-2026-57825 symlink-escape fix. OCaml merges OCAMLRUNPARAM=S=<size> to control the stack allocated by Domain.spawn, addressing segfaults from large C stack frames; Eio changes getaddrinfo to raise Address_lookup_failed on resolution errors instead of returning an empty list.
Features
-
OCAMLRUNPARAM=S=<size>controls the stack allocated when spawning a domain viaDomain.spawn, addressing segfaults from large C stack frames. Merged. #14860 -
opam updateandopam initno longer extract HTTP repository indexes to disk; the tar.gz is stored in place, eliminating a 1+ minute delay on Windows and network filesystems. Merged. #6625 -
New
WebGL2module adds 3D textures, transform feedback, VAOs, instancing, MRT, and integer attribs. Theexamples/webgldemo now requests a WebGL2 context. Merged. #2388
Compatibility
-
Filename.concatandFilename.dirnameon Windows now treat:strictly as a volume separator. Targeted for 5.6 only. Merged. #14916 -
Eio.Net.getaddrinfoandgetaddrinfo_streamraiseAddress_lookup_failedon resolution errors instead of returning an empty list.AI_ADDRCONFIGis passed on eio_linux and eio_posix. Merged. #866 -
Five per-module
messageEventclass types in js_of_ocaml are replaced by a single polymorphic['target, 'data] Dom_html.messageEvent. Old names remain as deprecated aliases. Merged. #2390
Fixes
-
Sys.file_existson Windows now usesGetFileAttributesinstead ofGetFileInformationByName, fixing incorrect results caused by a Windows 11 24H2 kernel bug. Merged. #14919 -
Dune compiler packages with version ≥ 5.5.0 are treated as relocatable installs, bypassing the toolchain cache and fixing spurious rebuilds with OCaml 5.5. Merged. #15444
-
Fpath.existsandFpath.is_directoryreturn false on ENOTDIR, preventing a crash when~/.config/duneis a regular file. Merged. #15475 -
js_of_ocaml if-fusion now requires an effect-free condition, preventing
let a = g() in if a then g() else h()from compiling to a singleg()call. Merged. #2393 -
chmodandchownon confined paths no longer follow symlinks pointing outside the sandbox. eio_linux usesO_PATH+AT_EMPTY_PATH; eio_posix resolves symlinks manually. Merged. #872
Releases
- opam 2.5.2 released, bundling the CVE-2026-57825 symlink-escape fix, the
..re-allow in.installfiles, andreal_path/starts_withcorrections. #2.5.2