summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-12-10 12:34:17 -0500
committerMike Frysinger <vapier@gentoo.org>2016-12-10 12:34:48 -0500
commit4069d08937d971ffc25446db46c326192937ebe0 (patch)
tree17b253f3e7fda7d8b02b49d3173c0e985db8ae01 /sys-apps
parentdepend.apache.eclass: Restructure pkg_setup so in_iuse is used from EAPI=6 on (diff)
downloadgentoo-4069d08937d971ffc25446db46c326192937ebe0.tar.gz
gentoo-4069d08937d971ffc25446db46c326192937ebe0.tar.bz2
gentoo-4069d08937d971ffc25446db46c326192937ebe0.zip
sys-apps/util-linux: fix ncurses detection to use pkg-config #601530
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/util-linux/util-linux-2.29.ebuild5
1 files changed, 5 insertions, 0 deletions
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
}