From 94b0c25e55cf4477438ddca4884589421748c428 Mon Sep 17 00:00:00 2001 From: Benda Xu Date: Sat, 18 Aug 2018 14:35:12 +0900 Subject: 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(-) (limited to 'profiles/features') 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: -- cgit v1.2.3-65-gdbad