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

configure.ac: Check for tinfow before tinfo #403

Merged
merged 1 commit into from
Jul 20, 2023

Conversation

thesamesam
Copy link
Contributor

We currently check for ncursesw > ncurses and then tinfo > tinfow. This means we can get a mismatch of ncursesw + tinfo, instead of the correct ncursesw + tinfow.

Swap the order so we check for ncursesw first (before other ncurses variants) and then tinfow first (before other tinfo variants).

This is needed anyway for correctness, but also needed for certain terminfos to work correctly with recent ncurses.

A better fix would be to use pkg-config first which handles this correctly and would include the appropriate -ltinfo* in the libraries list for -lncurses*, but not doing that for now.

Bug: https://bugs.gentoo.org/910430

We currently check for ncursesw > ncurses and then tinfo > tinfow. This means
we can get a mismatch of ncursesw + tinfo, instead of the correct ncursesw + tinfow.

Swap the order so we check for ncursesw first (before other ncurses variants)
and then tinfow first (before other tinfo variants).

This is needed anyway for correctness, but also needed for certain terminfos
to work correctly with recent ncurses.

A better fix would be to use pkg-config first which handles this correctly
and would include the appropriate -ltinfo* in the libraries list for -lncurses*,
but not doing that for now.

Bug: https://bugs.gentoo.org/910430
@gwsw gwsw merged commit d46f289 into gwsw:master Jul 20, 2023
@thesamesam thesamesam deleted the ncurses-tinfow-search branch July 20, 2023 20:16
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.

None yet

2 participants