Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 692614 - app-text/hunspell[ncurses]: Hunspell has been compiled without Ncurses user interface.
Summary: app-text/hunspell[ncurses]: Hunspell has been compiled without Ncurses user i...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: No maintainer - Look at if you want to take care of it
Whiteboard: Waiting for upstream approval
Depends on:
Blocks: tinfo
  Show dependency tree
Reported: 2019-08-20 13:37 UTC by Petr Zima
Modified: 2021-01-09 16:31 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---

Patch fixing both problems (hunspell-1.7.0-ncurses.patch,1.40 KB, patch)
2019-08-20 13:37 UTC, Petr Zima
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Zima 2019-08-20 13:37:04 UTC
Created attachment 587618 [details, diff]
Patch fixing both problems

Compiling app-text/hunspell[ncurses] fails to find libncurses[w] during configure and silently disables the ncurses UI leading to an error where running:

hunspell file

The root cause is the split libtinfo[w] in sys-libs/ncurses[tinfo]. Adding -ltinfo[w] to the check for ncurses[w] in configure fixes the problem.

After that fix it compiles, but the ncurses UI segfaults due to conflict between libncursesw and libtinfo (without w!), which is linked independently due to readline. This is a similiar issue as in #682386 and #669096. Modifying the configure to look for tinfow first also during the readline check fixes this second problem.
Comment 1 Larry the Git Cow gentoo-dev 2019-09-02 10:55:53 UTC
The bug has been referenced in the following commit(s):

commit 4b94328cd41359aa9a120a34b758e468f39849b8
Author:     Lars Wendler <>
AuthorDate: 2019-09-02 10:54:25 +0000
Commit:     Lars Wendler <>
CommitDate: 2019-09-02 10:55:47 +0000

    app-text/hunspell: Revbump fix build against sys-libs/ncurses[tinfo]
    Thanks-to: zimous <>
    Package-Manager: Portage-2.3.75, Repoman-2.3.17
    Signed-off-by: Lars Wendler <>

 app-text/hunspell/files/hunspell-1.7.0-tinfo.patch | 61 +++++++++++++++
 app-text/hunspell/hunspell-1.7.0-r1.ebuild         | 88 ++++++++++++++++++++++
 2 files changed, 149 insertions(+)
Comment 2 Lars Wendler (Polynomial-C) gentoo-dev 2021-01-09 16:31:06 UTC
Upastream appears dead and this has been fixed in Gentoo for over a year. Closing.