sci-libs/opencascade: Drop xlocale.h include.
authorMichael Weber <xmw@gentoo.org>
Fri, 22 Dec 2017 11:35:22 +0000 (12:35 +0100)
committerMichael Weber <xmw@gentoo.org>
Fri, 22 Dec 2017 11:37:35 +0000 (12:37 +0100)
Bug: https://bugs.gentoo.org/610362
Package-Manager: Portage-2.3.19, Repoman-2.3.6

sci-libs/opencascade/opencascade-6.9.1-r2.ebuild

index 5b581add74bf649e771bc01aeb9261f51274e73d..4a855150295d8c2ce9af6dcc334567caa780ad1f 100644 (file)
@@ -117,6 +117,12 @@ TCL_LIBRARY=${my_sys_lib}/tcl$(grep TCL_VER /usr/include/tcl.h | sed 's/^.*"\(.*
                -e "/\$qt directory is not exists/s/AC_MSG_ERROR/AC_MSG_NOTICE/" \
                -i configure.ac || die
 
+       # no longer needed https://tracker.dev.opencascade.org/view.php?id=28971
+       if has_version >=sys-libs/glibc-2.26 ; then
+               sed -e '/#include <xlocale.h>/d' \
+                       -i inc/Standard_CLocaleSentry.hxx || die
+       fi
+
        eautoreconf
 }