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

Bug 464336

Summary: media-sound/mp3info-0.8.5a fails with sys-libs/ncurses[tinfo]
Product: Gentoo Linux Reporter: Gary Macindoe <gary>
Component: Current packagesAssignee: Gentoo Sound Team <sound>
Severity: normal CC: jer
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 457530    
Attachments: Patch for existing mp3info-0.8.5a.ebuild
New ebuild
Fixed patch for existing mp3info-0.8.5a.ebuild as per comment 2
New ebuild

Description Gary Macindoe 2013-04-03 12:13:36 UTC
Created attachment 344206 [details]
Patch for existing mp3info-0.8.5a.ebuild

media-sound/mp3info-0.8.5a has -lncurses hard-coded into the Makefile causing it to fail when libncurses is split into and  This happens when sys-libs/ncurses is emerged with the tinfo USE flag set.

A trivial solution is to use sed and pkg-config in src_prepare to change the LIBS variable to include -ltinfo when necessary.
Comment 1 Gary Macindoe 2013-04-03 12:15:35 UTC
Created attachment 344208 [details]
New ebuild
Comment 2 Samuli Suominen gentoo-dev 2013-04-03 13:19:41 UTC
pkg-config can't be called directly like that because it will override $PKG_CONFIG (and thus, $CHOST) and cause cross-compilers to fail

look at the /usr/portage/eclass/toolchain-funcs.eclass and the tc-getPKG_CONFIG function

inherit toolchain-funcs

$($(tc-getPKG_CONFIG) --libs-only-L ncurses)
Comment 3 Gary Macindoe 2013-04-03 13:45:02 UTC
Created attachment 344220 [details, diff]
Fixed patch for existing mp3info-0.8.5a.ebuild as per comment 2
Comment 4 Gary Macindoe 2013-04-03 13:45:26 UTC
Created attachment 344222 [details]
New ebuild
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-28 11:28:23 UTC
Fixed without revision bump.