Skip to content
This repository has been archived by the owner on Dec 25, 2024. It is now read-only.

ncurses requires a proper TERM env variable to compile, and fails on docs.rs #221

Open
gyscos opened this issue Aug 3, 2024 · 0 comments

Comments

@gyscos
Copy link
Collaborator

gyscos commented Aug 3, 2024

With the big 6.0 refactor, the constants generation done at build time now requires a proper TERM variable at compile time. While this is generally available when building from a terminal, a lot of building happens without a terminal (from an IDE, in CI, ...). In these environment, ncurses currently fails to build properly.

Builds on github CI require manually injecting TERM=xterm in the builder environment for all users of this library.
For other environments like docs.rs, there is no clear way to make it build (which is why https://docs.rs/ncurses still shows the last version that still built, 5.101.0).

It would be a good idea to inject this TERM=xterm during the build process if no TERM is set.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant