commit: 94b0c25e55cf4477438ddca4884589421748c428
Author: Benda Xu <heroxbd <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 18 05:35:12 2018 +0000
Commit: Benda XU <heroxbd <AT> gentoo <DOT> org>
CommitDate: Sat Aug 18 05:37:23 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94b0c25e
p/f/p/s/kernel-2.6.16+/profile.bashrc: disable pipe2, utimensat
qtcore incorrectly uses kernel features without testing. Fix it.
.../features/prefix/standalone/kernel-2.6.16+/profile.bashrc | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
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 e537cc0fa31..fb926138685 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: