Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure Ncurses_jll is new enough #913

Merged
merged 1 commit into from
Jul 13, 2023

Conversation

fingolfin
Copy link
Member

Since 6.4.1 it sets TERMINFO_DIRS automatically, so we can get rid of
our workaround for setting it before loading GAP.

That workaround was always incomplete anyway, because while it worked
for GAP's builtin GNU readline support, it is also needed for the
Browse packages. But for that it only works if Browse is loaded
during GAP startup, which is not always the case: with a fresh GAP.jl
installation, won't have been compiled yet. The user may now try to
compile/install it via GAP.Packages.install resp. GAP.Packages.load.

All kinds of things can go wrong at that point (including that it may
end up linking against the "wrong").

Note that we do not even load Ncurses_jll directly; this is done
indirectly via GAP_jll. So the only reason it now appears in
Project.toml is to ensure a "new enough" version of it is used. At
some point in the future this should probably instead be moved to
GAP_jll.

Since 6.4.1 it sets TERMINFO_DIRS automatically, so we can get rid of
our workaround for setting it before loading GAP.

That workaround was always incomplete anyway, because while it worked
for GAP's builtin GNU readline support, it is also needed for the
`Browse` packages. But for that it only works if `Browse` is loaded
during GAP startup, which is not always the case: with a fresh GAP.jl
installation, won't have been compiled yet. The user may now try to
compile/install it via `GAP.Packages.install` resp. `GAP.Packages.load`.

All kinds of things can go wrong at that point (including that it may
end up linking against the "wrong").

Note that we do not even load `Ncurses_jll` directly; this is done
indirectly via `GAP_jll`. So the only reason it now appears in
`Project.toml` is to ensure a "new enough" version of it is used. At
some point in the future this should probably instead be moved to
`GAP_jll`.
@codecov
Copy link

codecov bot commented Jul 6, 2023

Codecov Report

Merging #913 (87ca4a9) into master (43288a5) will decrease coverage by 0.03%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #913      +/-   ##
==========================================
- Coverage   75.58%   75.56%   -0.03%     
==========================================
  Files          51       51              
  Lines        4162     4162              
==========================================
- Hits         3146     3145       -1     
- Misses       1016     1017       +1     
Impacted Files Coverage Δ
src/GAP.jl 88.07% <100.00%> (-0.11%) ⬇️

... and 1 file with indirect coverage changes

@fingolfin fingolfin closed this Jul 10, 2023
@fingolfin fingolfin reopened this Jul 10, 2023
@fingolfin fingolfin merged commit cc4fa71 into oscar-system:master Jul 13, 2023
@fingolfin fingolfin deleted the mh/terminfo branch July 13, 2023 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant