From: Mike Frysinger Date: Sat, 10 Dec 2016 17:34:17 +0000 (-0500) Subject: sys-apps/util-linux: fix ncurses detection to use pkg-config #601530 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=4069d08937d971ffc25446db46c326192937ebe0;p=gentoo.git sys-apps/util-linux: fix ncurses detection to use pkg-config #601530 --- diff --git a/sys-apps/util-linux/util-linux-2.29.ebuild b/sys-apps/util-linux/util-linux-2.29.ebuild index d168cff4ef00..c531a56f3ec2 100644 --- a/sys-apps/util-linux/util-linux-2.29.ebuild +++ b/sys-apps/util-linux/util-linux-2.29.ebuild @@ -69,6 +69,11 @@ src_prepare() { po/update-potfiles eautoreconf fi + # Undo bad ncurses handling by upstream. #601530 + sed -i -E \ + -e '/NCURSES_/s:(ncursesw?)[56]-config:$PKG_CONFIG \1:' \ + -e 's:(ncursesw?)[56]-config --version:$PKG_CONFIG --exists --print-errors \1:' \ + configure || die elibtoolize }