From: Benda Xu Date: Sat, 18 Aug 2018 05:35:12 +0000 (+0900) Subject: p/f/p/s/kernel-2.6.16+/profile.bashrc: disable pipe2, utimensat X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=94b0c25e55cf4477438ddca4884589421748c428;p=gentoo.git p/f/p/s/kernel-2.6.16+/profile.bashrc: disable pipe2, utimensat qtcore incorrectly uses kernel features without testing. Fix it. --- diff --git a/profiles/features/prefix/standalone/kernel-2.6.16+/profile.bashrc b/profiles/features/prefix/standalone/kernel-2.6.16+/profile.bashrc index e537cc0fa319..fb926138685d 100644 --- a/profiles/features/prefix/standalone/kernel-2.6.16+/profile.bashrc +++ b/profiles/features/prefix/standalone/kernel-2.6.16+/profile.bashrc @@ -2,5 +2,14 @@ if [[ ${CATEGORY}/${PN} == dev-util/cmake && ${EBUILD_PHASE} == configure ]]; then einfo "Removing utimensat outputs..." - sed -i '/UTIMENSAT=/d' ${S}/Source/kwsys/CMakeLists.txt + sed -e '/UTIMENSAT=/d' -i ${S}/Source/kwsys/CMakeLists.txt || die +elif [[ ${CATEGORY}/${PN} == dev-qt/qtcore && ${EBUILD_PHASE} == configure ]]; then + einfo "Removing pipe2 definitions..." + sed -e '/define.*HAVE_PIPE2/d' -i ${S}/src/3rdparty/forkfd/forkfd.c || die + einfo "Removing utimensat calls..." + sed -e '/_POSIX_VERSION/s/defined(_POSIX_VERSION)/0/' -i ${S}/qmake/library/ioutils.cpp || die fi + +# Local Variables: +# mode: shell-script +# End: