dev-lang/python: Fix implicit ncurses declarations in 3.7.3
authorJames Le Cuirot <chewi@gentoo.org>
Thu, 2 May 2019 20:53:17 +0000 (21:53 +0100)
committerJames Le Cuirot <chewi@gentoo.org>
Thu, 2 May 2019 20:54:34 +0000 (21:54 +0100)
Closes: https://bugs.gentoo.org/674070
Package-Manager: Portage-2.3.66, Repoman-2.3.12
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
dev-lang/python/python-3.7.3.ebuild

index afdbc6cebb1107be339cf2d030666ffa66e83564..8a1933e1bb96b34574fd1f88a1c58c4cf0767f1c 100644 (file)
@@ -120,6 +120,9 @@ src_configure() {
        # Please query BSD team before removing this!
        append-ldflags "-L."
 
+       # Fix implicit declarations on cross and prefix builds. Bug #674070.
+       use ncurses && append-cppflags -I"${ESYSROOT}"/usr/include/ncursesw
+
        local dbmliborder
        if use gdbm; then
                dbmliborder+="${dbmliborder:+:}gdbm"