package/ncurses: Add option to install extra terminfo files.
PATCH 1/1 package/ncurses: Add option to install extra terminfo files.
Add an option to ncurses to install extra user-configured terminfo files. By default, only a small number of vital terminfo files are installed on the target. This allows a build to specify the terminfo files it needs.
--- package/ncurses/Config.in | 10 ++++++++++ package/ncurses/ncurses.mk | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-)
package/ncurses/Config.in +10 -0
@@ -23,4 +23,14 @@ config BR2_PACKAGE_NCURSES_TARGET_PROGS help Include ncurses programs in target (clear, reset, tput, ...) +config BR2_PACKAGE_NCURSES_ADDITIONAL_TERMINFO + string "additional terminfo files to install" + help + Whitespace separated list of terminfo files to install on the + target. A small number of vital terminfo files are always + installed. This list is in addition to the vital ones. + + The terminfo filenames should have the single letter path + prefix. e.g. t/tmux. + endif
package/ncurses/ncurses.mk +2 -1
@@ -60,7 +60,8 @@ NCURSES_TERMINFO_FILES = \ v/vt220 \ x/xterm \ x/xterm-color \ - x/xterm-xfree86 + x/xterm-xfree86 \ + $(BR2_PACKAGE_NCURSES_ADDITIONAL_TERMINFO) ifeq ($(BR2_PACKAGE_NCURSES_WCHAR),y) NCURSES_CONF_OPTS += --enable-widec
Signature · 1 line
2.11.0
PATCH 1/1 package/ncurses: Add option to install extra terminfo files.
Quoted 4 lines · Cam Hutchison
Add an option to ncurses to install extra user-configured terminfo files. By default, only a small number of vital terminfo files are installed on the target. This allows a build to specify the terminfo files it needs.
I really only needed this patch for the "tmux" terminfo file. Would it be more palatable to just add t/tmux to the list of terminfo files to install? I felt that would be a bit selfish (add a solution that works for me, but not any other terminfo files), but it would be nice to get this in for the next release.
Let me know if there's a chance to get this in the next release - if not, I'll just keep carrying a local patch.
One comment below...
Quoted 31 lines
Signed-off-by Cam Hutchison <[email protected]>--- package/ncurses/Config.in | 10 ++++++++++ package/ncurses/ncurses.mk | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-)package/ncurses/Config.in +10
-0@@ -23,4 +23,14 @@ config BR2_PACKAGE_NCURSES_TARGET_PROGS help Include ncurses programs in target (clear, reset, tput, ...) +config BR2_PACKAGE_NCURSES_ADDITIONAL_TERMINFO + string "additional terminfo files to install" + help + Whitespace separated list of terminfo files to install on the + target. A small number of vital terminfo files are always + installed. This list is in addition to the vital ones. + + The terminfo filenames should have the single letter path + prefix. e.g. t/tmux. + endifpackage/ncurses/ncurses.mk +0
-0
package/ncurses/ncurses.mk NCURSES_TERMINFO_FILES = \ · line 64
Quoted 6 lines
package/ncurses/ncurses.mk +2
-1@@ -60,7 +60,8 @@ NCURSES_TERMINFO_FILES = \ v/vt220 \ x/xterm \ x/xterm-color \ - x/xterm-xfree86 + x/xterm-xfree86 \ + $(BR2_PACKAGE_NCURSES_ADDITIONAL_TERMINFO)
Does this need a $(call qstrip,...) around it? All kconfig strings do, right?
Quoted 6 lines
package/ncurses/ncurses.mk +0
-1ifeq ($(BR2_PACKAGE_NCURSES_WCHAR),y) NCURSES_CONF_OPTS += --enable-widec --2.11.0
PATCH 1/1 package/ncurses: Add option to install extra terminfo files.
In reply to Cam HutchisonHello,
Quoted 10 lines · Cam Hutchison
Add an option to ncurses to install extra user-configured terminfo files. By default, only a small number of vital terminfo files are installed on the target. This allows a build to specify the terminfo files it needs.
Signed-off-by Cam Hutchison <[email protected]>--- package/ncurses/Config.in | 10 ++++++++++ package/ncurses/ncurses.mk | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-)
As you noted, I've changed the code to use qstrip, and then applied to next. Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com