* [Buildroot] [PATCH] ncurses: disable terminfo database install for host-ncurses
@ 2018-08-09 14:57 Peter Korsgaard
2018-08-09 15:16 ` Hollis Blanchard
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Peter Korsgaard @ 2018-08-09 14:57 UTC (permalink / raw)
To: buildroot
Since commit b35ad5d0b45e (ncurses: make host-ncurses use host terminfo), we
are now pointing host-ncurses to the host terminfo (typically) located in
/usr/share/terminfo.
With this change we are reusing the existing host terminfo database, so
there is no point in trying to install our own on top. The user running
buildroot typically will have no write access to /usr/share/terminfo, but
tic in that case falls back to writing the database to $HOME/.terminfo.
Neither of which are desirable.
In case $HOME/.terminfo also isn't writable, tic fails, breaking the install
step for host-ncurses:
** Building terminfo database, please wait...
Running sh ./shlib tic to install /usr/share/terminfo ...
You may see messages regarding extended capabilities, e.g., AX.
These are extended terminal capabilities which are compiled
using
tic -x
If you have ncurses 4.2 applications, you should read the INSTALL
document, and install the terminfo without the -x option.
"terminfo.tmp", line 21272, terminal 'v3220': /home/peko/.terminfo: permission denied (errno 30)
To fix all of this, simply disable the terminfo database install.
Suggested-by: Arnout Vandecappelle <arnout@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
package/ncurses/ncurses.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/ncurses/ncurses.mk b/package/ncurses/ncurses.mk
index 5b36df564c..e27598bd42 100644
--- a/package/ncurses/ncurses.mk
+++ b/package/ncurses/ncurses.mk
@@ -154,6 +154,7 @@ HOST_NCURSES_CONF_OPTS = \
--without-cxx-binding \
--without-ada \
--with-default-terminfo-dir=/usr/share/terminfo \
+ --disable-db-install \
--without-normal
$(eval $(autotools-package))
--
2.11.0
^ permalink raw reply related [flat|nested] 6+ messages in thread* [Buildroot] [PATCH] ncurses: disable terminfo database install for host-ncurses
2018-08-09 14:57 [Buildroot] [PATCH] ncurses: disable terminfo database install for host-ncurses Peter Korsgaard
@ 2018-08-09 15:16 ` Hollis Blanchard
2018-08-09 20:12 ` Thomas Petazzoni
2018-08-24 7:35 ` Peter Korsgaard
2 siblings, 0 replies; 6+ messages in thread
From: Hollis Blanchard @ 2018-08-09 15:16 UTC (permalink / raw)
To: buildroot
On 08/09/2018 07:57 AM, Peter Korsgaard wrote:
> diff --git a/package/ncurses/ncurses.mk b/package/ncurses/ncurses.mk
> index 5b36df564c..e27598bd42 100644
> --- a/package/ncurses/ncurses.mk
> +++ b/package/ncurses/ncurses.mk
> @@ -154,6 +154,7 @@ HOST_NCURSES_CONF_OPTS = \
> --without-cxx-binding \
> --without-ada \
> --with-default-terminfo-dir=/usr/share/terminfo \
> + --disable-db-install \
> --without-normal
>
> $(eval $(autotools-package))
Acked-by: Hollis Blanchard <hollis_blanchard@mentor.com>
--
Hollis Blanchard
Mentor Graphics Emulation Division
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH] ncurses: disable terminfo database install for host-ncurses
2018-08-09 14:57 [Buildroot] [PATCH] ncurses: disable terminfo database install for host-ncurses Peter Korsgaard
2018-08-09 15:16 ` Hollis Blanchard
@ 2018-08-09 20:12 ` Thomas Petazzoni
2018-08-10 17:41 ` Thomas De Schampheleire
2018-08-24 7:35 ` Peter Korsgaard
2 siblings, 1 reply; 6+ messages in thread
From: Thomas Petazzoni @ 2018-08-09 20:12 UTC (permalink / raw)
To: buildroot
Hello,
On Thu, 9 Aug 2018 16:57:22 +0200, Peter Korsgaard wrote:
> Since commit b35ad5d0b45e (ncurses: make host-ncurses use host terminfo), we
> are now pointing host-ncurses to the host terminfo (typically) located in
> /usr/share/terminfo.
>
> With this change we are reusing the existing host terminfo database, so
> there is no point in trying to install our own on top. The user running
> buildroot typically will have no write access to /usr/share/terminfo, but
> tic in that case falls back to writing the database to $HOME/.terminfo.
> Neither of which are desirable.
>
> In case $HOME/.terminfo also isn't writable, tic fails, breaking the install
> step for host-ncurses:
>
> ** Building terminfo database, please wait...
> Running sh ./shlib tic to install /usr/share/terminfo ...
>
> You may see messages regarding extended capabilities, e.g., AX.
> These are extended terminal capabilities which are compiled
> using
> tic -x
> If you have ncurses 4.2 applications, you should read the INSTALL
> document, and install the terminfo without the -x option.
>
> "terminfo.tmp", line 21272, terminal 'v3220': /home/peko/.terminfo: permission denied (errno 30)
>
> To fix all of this, simply disable the terminfo database install.
>
> Suggested-by: Arnout Vandecappelle <arnout@mind.be>
> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
> ---
> package/ncurses/ncurses.mk | 1 +
> 1 file changed, 1 insertion(+)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH] ncurses: disable terminfo database install for host-ncurses
2018-08-09 20:12 ` Thomas Petazzoni
@ 2018-08-10 17:41 ` Thomas De Schampheleire
2018-08-24 7:35 ` Peter Korsgaard
0 siblings, 1 reply; 6+ messages in thread
From: Thomas De Schampheleire @ 2018-08-10 17:41 UTC (permalink / raw)
To: buildroot
Hi,
On Thu, Aug 09, 2018 at 10:12:10PM +0200, Thomas Petazzoni wrote:
> Hello,
>
> On Thu, 9 Aug 2018 16:57:22 +0200, Peter Korsgaard wrote:
> > Since commit b35ad5d0b45e (ncurses: make host-ncurses use host terminfo), we
> > are now pointing host-ncurses to the host terminfo (typically) located in
> > /usr/share/terminfo.
> >
> > With this change we are reusing the existing host terminfo database, so
> > there is no point in trying to install our own on top. The user running
> > buildroot typically will have no write access to /usr/share/terminfo, but
> > tic in that case falls back to writing the database to $HOME/.terminfo.
> > Neither of which are desirable.
> >
> > In case $HOME/.terminfo also isn't writable, tic fails, breaking the install
> > step for host-ncurses:
> >
> > ** Building terminfo database, please wait...
> > Running sh ./shlib tic to install /usr/share/terminfo ...
> >
> > You may see messages regarding extended capabilities, e.g., AX.
> > These are extended terminal capabilities which are compiled
> > using
> > tic -x
> > If you have ncurses 4.2 applications, you should read the INSTALL
> > document, and install the terminfo without the -x option.
> >
> > "terminfo.tmp", line 21272, terminal 'v3220': /home/peko/.terminfo: permission denied (errno 30)
> >
> > To fix all of this, simply disable the terminfo database install.
> >
> > Suggested-by: Arnout Vandecappelle <arnout@mind.be>
> > Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
> > ---
> > package/ncurses/ncurses.mk | 1 +
> > 1 file changed, 1 insertion(+)
>
> Applied to master, thanks.
As the breaking commit b35ad5d0b45e went onto the 2018.02.x branch (as
00e775b76cfb), I think the fix should be applied there as well.
Similarly for 2018.05.x if any more releases are planned from that branch.
Thanks,
Thomas
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH] ncurses: disable terminfo database install for host-ncurses
2018-08-10 17:41 ` Thomas De Schampheleire
@ 2018-08-24 7:35 ` Peter Korsgaard
0 siblings, 0 replies; 6+ messages in thread
From: Peter Korsgaard @ 2018-08-24 7:35 UTC (permalink / raw)
To: buildroot
>>>>> "Thomas" == Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> writes:
Hi,
>> > ** Building terminfo database, please wait...
>> > Running sh ./shlib tic to install /usr/share/terminfo ...
>> >
>> > You may see messages regarding extended capabilities, e.g., AX.
>> > These are extended terminal capabilities which are compiled
>> > using
>> > tic -x
>> > If you have ncurses 4.2 applications, you should read the INSTALL
>> > document, and install the terminfo without the -x option.
>> >
>> > "terminfo.tmp", line 21272, terminal 'v3220': /home/peko/.terminfo: permission denied (errno 30)
>> >
>> > To fix all of this, simply disable the terminfo database install.
>> >
>> > Suggested-by: Arnout Vandecappelle <arnout@mind.be>
>> > Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
>> > ---
>> > package/ncurses/ncurses.mk | 1 +
>> > 1 file changed, 1 insertion(+)
>>
>> Applied to master, thanks.
> As the breaking commit b35ad5d0b45e went onto the 2018.02.x branch (as
> 00e775b76cfb), I think the fix should be applied there as well.
> Similarly for 2018.05.x if any more releases are planned from that branch.
Yes, I'll take care or that.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH] ncurses: disable terminfo database install for host-ncurses
2018-08-09 14:57 [Buildroot] [PATCH] ncurses: disable terminfo database install for host-ncurses Peter Korsgaard
2018-08-09 15:16 ` Hollis Blanchard
2018-08-09 20:12 ` Thomas Petazzoni
@ 2018-08-24 7:35 ` Peter Korsgaard
2 siblings, 0 replies; 6+ messages in thread
From: Peter Korsgaard @ 2018-08-24 7:35 UTC (permalink / raw)
To: buildroot
>>>>> "Peter" == Peter Korsgaard <peter@korsgaard.com> writes:
> Since commit b35ad5d0b45e (ncurses: make host-ncurses use host terminfo), we
> are now pointing host-ncurses to the host terminfo (typically) located in
> /usr/share/terminfo.
> With this change we are reusing the existing host terminfo database, so
> there is no point in trying to install our own on top. The user running
> buildroot typically will have no write access to /usr/share/terminfo, but
> tic in that case falls back to writing the database to $HOME/.terminfo.
> Neither of which are desirable.
> In case $HOME/.terminfo also isn't writable, tic fails, breaking the install
> step for host-ncurses:
> ** Building terminfo database, please wait...
> Running sh ./shlib tic to install /usr/share/terminfo ...
> You may see messages regarding extended capabilities, e.g., AX.
> These are extended terminal capabilities which are compiled
> using
> tic -x
> If you have ncurses 4.2 applications, you should read the INSTALL
> document, and install the terminfo without the -x option.
> "terminfo.tmp", line 21272, terminal 'v3220': /home/peko/.terminfo: permission denied (errno 30)
> To fix all of this, simply disable the terminfo database install.
> Suggested-by: Arnout Vandecappelle <arnout@mind.be>
> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Committed to 2018.02.x and 2018.05.x, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2018-08-24 7:35 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-09 14:57 [Buildroot] [PATCH] ncurses: disable terminfo database install for host-ncurses Peter Korsgaard
2018-08-09 15:16 ` Hollis Blanchard
2018-08-09 20:12 ` Thomas Petazzoni
2018-08-10 17:41 ` Thomas De Schampheleire
2018-08-24 7:35 ` Peter Korsgaard
2018-08-24 7:35 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox