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...
Status: IN_PROGRESS
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 https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard: Waiting for upstream approval
Keywords:
Depends on:
Blocks: tinfo
  Show dependency tree
 
Reported: 2019-08-20 13:37 UTC by Petr Zima
Modified: 2019-09-03 11:10 UTC (History)
2 users (show)

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


Attachments
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):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b94328cd41359aa9a120a34b758e468f39849b8

commit 4b94328cd41359aa9a120a34b758e468f39849b8
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2019-09-02 10:54:25 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2019-09-02 10:55:47 +0000

    app-text/hunspell: Revbump fix build against sys-libs/ncurses[tinfo]
    
    Thanks-to: zimous <zimous@matfyz.cz>
    Bug: https://bugs.gentoo.org/692614
    Package-Manager: Portage-2.3.75, Repoman-2.3.17
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 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(+)