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
When using curses, look for libterminfo as well. #9794
Conversation
cmake/ConfigureChecks.cmake
Outdated
@@ -80,6 +80,11 @@ find_library(CURSES_TINFO tinfo) | |||
if (CURSES_TINFO) | |||
set(CURSES_LIBRARY ${CURSES_LIBRARY} ${CURSES_TINFO}) | |||
endif() | |||
# on some systems, libterminfo has a longer name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please mention NetBSD here, so we aren't wondering down the line if this was in error or is no longer applicable.
Perhaps "On NetBSD, libtinfo has a longer name (libterminfo)"
(also it's libtinfo that has the longer name, and libterminfo is that longer name)
Thanks for the review, I've updated the comment as suggested! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I didn't catch this earlier, but this block should be in the else()
for if (CURSES_TINFO)
so that we aren't checking if we already found libtinfo.
Adapted, anything else? |
If you've tested it and it still works on NetBSD with these changes then I think it LGTM. |
I think it's correct, but building git head currently fails for me with:
|
That's some awkward static_assert: Line 101 in dec3976
It can just be removed. Tho I have no idea why that would fail for you, or why it would fail now - that hasn't changed in 4 years. Possibly corrosion/cxx weirdness. |
Yeah, I'll tag your change for 3.6.2 which is a hypothetical patch release of the latest C++ version. You can check out |
Yeah, I get similar but different hard errors that prevent me from compiling on an old macOS install because autocxx apparently consumes headers with |
Supports NetBSD, where libtinfo isn't available but libterminfo is. (cherry picked from commit 67d1d80)
Description
fish uses the
cur_term
symbol itself. On NetBSD (which has its own curses implementation) this is provided by libterminfo. The curses checks already look for libtinfo, extend this to look in libterminfo as well.Fixes build failures like this: