You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recipe patches are placed by their text, not their line numbers
(share/tools/patch.awk): the old text of each hunk must occur once in
the file, @@ lines need no numbers, and the context only has to tell
the place apart. A hunk matching no place, or several, stops the build
(GNU patch applied some of ours with fuzz, at the place it guessed). The ocaml patches lost their spare context, and patches/5.1/ and patches/5.2+/ became patches/5.1+/.
New recipes for packages that the default paths cannot build: mlcuddidl (CUDD configured for the target, stubs generated by camlidl
from its .idl files), hacl-star-raw (HACL*'s portable C with cmake,
ctypes stubs printed by generators run on the host, the vectorized and
Vale variants trapping) and mccs (GLPK silenced with glp_term_out:
musl writes what was written to a closed stdout once fd 1 is back).
An ocaml-lua recipe unpacks and patches the Lua it bundles, as its opam
file does before dune runs (it only built from a kept build directory).
Tests: cudd, hacl, mccs, and posix (posix-time2, -socket, -stat).
ctypes bindings are rebuilt for wasm64 too: emscripten's musl does not
lay the libc's structs out as glibc (struct stat's st_size was
glibc's st_mtime). When a package rebuilt for the target is rebuilt
again (another version), the packages depending on it are too; the
builds of versions no longer installed, or made against other versions
of their dependencies, are dropped first (ctypes 0.24's next to
ctypes-foreign 0.22: "inconsistent assumptions"); a package depending on
one that cannot be rebuilt (ctypes 0.20, built by make) keeps the host's
build, and link warns. A package that dune builds no library of
(hacl-star-raw, built by make next to hacl-star) keeps the host's build.
A recipe built from an opam package (SOURCE=opam:) is built again for
another version of it, as dune-built stub libraries already were
(recipes built before: install --force).
opam commands of the driver act on the switch being built for, not on
opam's current one; the sources of a package come from its build
directory or opam source, which applies the patches: of its opam
file (not from the archive in .opam-switch/sources, which has none).
wasm64: getaddrinfo is resolved in C (compat.c): emscripten's
JavaScript one throws on memory64 (BigInt(null)), so did Unix.getaddrinfo.
Stubs compiled blindly get the include directories of the package's
opam dependencies (ctypes before 0.21: ocaml_integers.h). The native
build behind the archives that dune -x builds with host objects is made
when _build/default lacks them (dune -x leaves only what the target
needs there). A recipe asked for a library it did not build is built
again.
mlgmpidl: its stubs regenerated with camlidl get MPFR_VERSION_MAJOR
(apron's test failed without a kept build directory). zarith: the
defines of its configure, and an empty z_features.h before 1.12.
Tests: pcre2 and lz4 dropped, clibs keeps checkseum and
bigstringaf (the others needed nothing other tests do not cover). tests/versions.sh runs tests against several versions of their
package.