Sigil 0.23.3
A build environment release. Channel packages now build in a complete, predictable environment, and a new sigil channel build command builds packages straight from a channel working tree, with no signing or registry involved. Static Linux programs also start correctly before /proc is mounted, so a Sigil program can now run as a system's /init!
This release also carries the 0.23.1 and 0.23.2 fixes.
Channel builds
sigil channel build NAME... evaluates a channel working tree and builds the named bindings locally. It applies the same field checks as sigil channel publish, so a package that builds here is ready to publish.
The external builder now gives every phase what a typical C or C++ build expects:
out,DESTDIRandJOBSare exported to every phase, and make phases runmake -j"$JOBS".JOBScomes fromSIGIL_JOBS, or the sandbox's CPU count, and does not change the package's identity.CXXis set from the toolchain alongsideCC. A toolchain without a C++ compiler fails only C++ builds.- A package's indirect dependencies are available too. They are bound into the sandbox and their pkg-config directories join
PKG_CONFIG_PATH, sopkg-config --libs cairofinds everything cairo needs. Header and library flags still come from direct dependencies only. - Each phase prints
==> phase 2/5: configureto the log before it runs, and all build output goes to stderr. - After a build, the output is scanned for store references. A reference to anything outside the package's own dependencies fails the build and names the file.
search-paths: entries can now carry a scope: build, runtime or both. Runtime-scoped paths are written to env.lock, so an environment that installs Python and its packages sets PYTHONPATH for every member that needs it. Existing build-scoped entries keep their identities.
The external build format moved to version 4, so channel packages rebuild once after upgrading.
Fixes
- Static Linux programs found their own path through
/proc/self/exe, which does not exist before procfs is mounted. Early-boot programs failed to locate their bundled files. They now fall back to the path the kernel passes at startup, including for relative and symlinked launches. - The garbage collector could miss live objects held only in a native callee-saved register, or on the stack when it could not allocate its object index under memory pressure. Both cases now keep those objects alive.
- Two packages that differed only in their
search-paths:lost one set of paths when both appeared in a dependency closure. Every path is now kept.