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
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
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: ---


Attachments
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 (RETIRED)
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 libncurses.so and libncursesw.so, 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 libncursesw.so 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 (RETIRED) gentoo-dev 2019-10-13 10:39:43 UTC
Created attachment 592638 [details, diff]
0001-sys-libs-readline-allow-linking-to-ncursesw-tinfow-w.patch
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2019-10-13 10:41:53 UTC
Comment on attachment 592638 [details, diff]
0001-sys-libs-readline-allow-linking-to-ncursesw-tinfow-w.patch

Sorry, wrong bug.
Comment 3 Sergei Trofimovich (RETIRED) 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 (RETIRED) gentoo-dev 2019-11-19 23:30:26 UTC

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