Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 669488 - sys-devel/gdb: gdb needs sys-libs/ncurses to be built with unicode USE flag
Summary: sys-devel/gdb: gdb needs sys-libs/ncurses to be built with unicode USE flag
Status: RESOLVED DUPLICATE of bug 669096
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
Depends on:
Reported: 2018-10-24 09:57 UTC by Thibaut Sautereau
Modified: 2019-11-19 23:30 UTC (History)
0 users

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

0001-sys-libs-readline-allow-linking-to-ncursesw-tinfow-w.patch (0001-sys-libs-readline-allow-linking-to-ncursesw-tinfow-w.patch,1.83 KB, patch)
2019-10-13 10:39 UTC, Sergei Trofimovich
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thibaut Sautereau 2018-10-24 09:57:33 UTC
gdb links against both and, but the generation of the latter by sys-libs/ncurses is tied to the "unicode" USE flag. Thus, when using a profile disabling unicode support, gdb fails to execute due to missing library.

I think that "[unicode]" should be appended to the ncurses line in gdb's RDEPEND in order to force-enable this USE flag for sys-libs/ncurses.
Comment 1 Sergei Trofimovich gentoo-dev 2019-10-13 10:39:43 UTC
Created attachment 592638 [details, diff]
Comment 2 Sergei Trofimovich gentoo-dev 2019-10-13 10:41:53 UTC
Comment on attachment 592638 [details, diff]

Sorry, wrong bug.
Comment 3 Sergei Trofimovich gentoo-dev 2019-10-13 10:44:27 UTC
gdb should not link to libncurses directly is libncursesw is available. You can check it by running 'lddtree /usr/bin/gdb'. If some library dependency doe it then it should be fixed. Typical offender is readline: #669214.
Comment 4 Sergei Trofimovich gentoo-dev 2019-11-19 23:30:26 UTC

*** This bug has been marked as a duplicate of bug 669096 ***