Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 669488

Summary: sys-devel/gdb: gdb needs sys-libs/ncurses to be built with unicode USE flag
Product: Gentoo Linux Reporter: Thibaut Sautereau <thibaut.sautereau>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=669096
https://bugs.gentoo.org/show_bug.cgi?id=669214
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: 0001-sys-libs-readline-allow-linking-to-ncursesw-tinfow-w.patch

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 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 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 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.