Summary: | media-sound/mp3info-0.8.5a fails with sys-libs/ncurses[tinfo] | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Gary Macindoe <gary> |
Component: | Current packages | Assignee: | Gentoo Sound Team <sound> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jer |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
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 |
Created attachment 344208 [details]
New ebuild
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) Created attachment 344220 [details, diff] Fixed patch for existing mp3info-0.8.5a.ebuild as per comment 2 Created attachment 344222 [details]
New ebuild
Fixed without revision bump. |
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 libncurses.so and libtinfo.so. 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.