Overlay a site recipe¶
Use this when a site needs a small, durable difference from an upstream easyconfig and copying the file would block upstream fixes from flowing.
Pin the upstream digest¶
Take the upstream easyconfig from your easyconfigs tree.
Compute its SHA-256 (for example
sha256sum OpenMPI.eb).Write an overlay file with
base_digestset to that value and arationalethat explains the site change.
Materialize¶
Preview the output paths and validate the overlay against the current easyconfig:
eb-local overlay materialize --overlay site/OpenMPI.overlay.toml --base easyconfigs/OpenMPI-4.1.6.eb --dry-run
The preview does not create the output directory or either output file. Then materialize:
eb-local overlay materialize --overlay site/OpenMPI.overlay.toml --base easyconfigs/OpenMPI-4.1.6.eb
When the digest still matches, this writes materialized-OpenMPI-4.1.6.eb and provenance.toml beside the overlay (or under --out-dir).
When upstream changed, it exits 2 and tells you to refresh using eb-stack.
Check whether the materialized recipe and provenance on disk are still current without writing anything:
eb-local overlay materialize --overlay site/OpenMPI.overlay.toml --base easyconfigs/OpenMPI-4.1.6.eb --check
This prints up to date and exits 0 when both files match, or prints would update and exits 1 when either is missing or drifted.
Rebase after upstream moves¶
Run eb-stack through eb-local so this repository does not duplicate its logic:
eb-local overlay bump -- --easyconfig easyconfigs/OpenMPI-4.1.6.eb --easyconfigs /path/to/tree
eb-local overlay plan -- --source OpenMPI-4.1.6.eb --format easyconfig --out-dir /tmp/plan
Update base_digest in the overlay to match the bumped recipe, re-run materialize, and build the materialized file with eb-local as usual.