ncurses: include terminfo database in package #1452
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.
This modifies the
ncurses
recipe to include terminal database information, in other words runtime configuration files, in theshare
directory. This is needed for the upcomingvim
recipe which needs to use theterminfo/x/xterm-256color
to operate correctly. Rather than just building and shipping that one file, I'm including all of the database files as I expect more will be needed at some point in the future.The changes to the recipe are at the
configure
stage, removing the--disable-database
flag and specifying the--build
and--host
platforms. The latter are needed to ensure that it knows it is cross-compiling so that it uses the build platform's tool (calledtic
) to build theterminfo
rather than the host's.The packages
bin
directory now includes a couple more utilities and a newshare
directory which is 7.2 MB.As far as I can tell
ncurses
is only used in thelua
recipe so I don't think the additions here will affect any other recipes. But it would be good to get a second opinion that these changes are OK.