Repository navigation
Integrate develop into develop-compile (all tests green) - #523
Merged
Merged
Conversation
* Makefile: use portable "command -v" instead of the "which" command Signed-off-by: Maciej Barć <[email protected]> * Makefile: split DESTDIR and PREFIX * Use DESTDIR as the output directory, default to /. Normally it would be used like so: make DESTDIR="$(pwd)/image/" install * Run MANDB only if DESTDIR is /, so only when we install onto the system root. Signed-off-by: Maciej Barć <[email protected]> --------- Signed-off-by: Maciej Barć <[email protected]>
* Added failing tests for issue #517. See: #517 * Fix for OTP 28 user_drv behaviour change. Three-branch version dispatch using list_to_integer(OTPRelease) instead of string comparison: - OTP 28+: user_drv:start(#{initial_shell => noshell, input => cooked}) — provides the required input key - OTP 26-27: user_drv:start(#{initial_shell => noshell}) — unchanged, input defaults to true - OTP <26: user:start() — the legacy API * Updated OTP versions for CI. * Implement this less awkwardly. * We need the full build for the new CT test. * Addressed review feedback.
this happend when integrating with a mix project.
* Added tests for new clj print macros. * Implemented clj print functions. * Updated docs.
* Added implementations for update, update-in, assoc, assoc-in. * Updated docs for new clj functions/macros.
# Conflicts: # rebar.config.script # src/lfe_comp.erl
The suite spawns bin/lfe and set ERL_LIBS to the repo root, which is
not a valid OTP library directory for the lfe app: the compiled beams
(including lfe_init.beam) live in _build/<profile>/lib/lfe/ebin, while
the root ebin/ holds only lfe.app. bin/lfe could therefore only find
lfe_init via its fallback rebar3 path, which defaults to the `default`
profile.
CI stayed green because the builds job runs `rebar3 compile` (populating
_build/default/lib/lfe/ebin) before `make ct`. A bare `rebar3 ct` -- or
`make tests`, which cleans _build and builds only the test profile --
never populates the default profile, so lfe_init was absent from the
resolved code path and the kernel user child failed with
{undef,[{lfe_init,start,[],[]}...]}.
Derive ERL_LIBS from the running app instead: the parent of
code:lib_dir('lfe') is the actual _build/<profile>/lib dir containing
the compiled lfe app, making the suite independent of which rebar3
profile happens to be pre-built. bin/lfe is still located from the repo
root as before.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Member
Author
|
Some notes on the I took both changes, since they're orthogonal and both wanted:
The decisive constraint is the caller. On the compile branch, Conversely, the helper functions (ensure_path_exists, ensure_dir) are new and self-contained — the compile branch has no opinion about them, so they come across untouched. In summary, the merged function has the compiler rework's name and the bugfix's body. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this is
Brings the
develop-compilecompiler-rework branch up to date withdevelop, so the remaining integration work is done and the branch builds green. Intended to save @rvirding the pain of a manual reconciliation of 12 commits.Base:
develop-compile• Head:integrate/develop-into-compileThis is a merge, not a rebase —
develop-compile's history is untouched and nothing is force-pushed. Merging this PR simply fast-forwardsdevelop-compilewith everything fromdevelopalready integrated.What it contains
develop(12 commitsdevelop-compilewas missing): cljassoc/update-in(Feature/277/clj update in #520), clj print macros (Feature/271/clj prints #519), beam-output-dir fix (Ensure directory exists before writing the beam file... #508), OTP 28user_drvsupport (Bug/517/otp 28 user drv #518), Makefile DESTDIR/PREFIX split (Makefile: split DESTDIR and PREFIX #513),#Esymbolreader support, examples suite, CI updates.lfe_init_SUITEERL_LIBS fix (cherry-picked from Fix lfe_init_SUITE ERL_LIBS to target the compiled lfe app #522) so CT is fully green — the OTP-28lfe_init_SUITEarrives via Bug/517/otp 28 user drv #518 during this merge and would otherwise carry the harness bug.Conflicts resolved (2, both mechanical)
rebar.config.script— unioned the OTP compile-flag list: keptOTP27_MAYBE+OTP27_DOCS(compile branch) and addedHAS_ENSURE_DIR(develop).src/lfe_comp.erl— combined develop'sensure_path_exists/1beam-dir helper (from Ensure directory exists before writing the beam file... #508) with the compile branch'sbeam_write_module→do_beam_write_modulerename. Kept the new function name (matches its caller) and the ensure-dir wrapping.Everything else — including
clj.lfe,Makefile, examples, and docs — auto-merged.Verification
rebar3 compile→ cleanrebar3 eunit→ 95 tests, 0 failuresrebar3 ct→ all 112 tests passedNotes for review
lfe_comp.erl, since both branches changed that function.develop. If Fix lfe_init_SUITE ERL_LIBS to target the compiled lfe app #522 lands ondevelopfirst, that's fine — the change is identical, so a laterdevelop→develop-compilesync dedupes cleanly.🤖 Generated with Claude Code