commit:     7d8fcc89055a18b03552f6acb20221426abd89c3
Author:     Benda Xu <heroxbd <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 23 02:46:03 2019 +0000
Commit:     Benda XU <heroxbd <AT> gentoo <DOT> org>
CommitDate: Mon Dec 23 02:47:44 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d8fcc89

p/f/prefix/standalone/kernel-2.6.16+/profile.bashrc: hack qtcore to compile.

  Lower the minimal version of Linux to 2.6.18.

Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org>

 profiles/features/prefix/standalone/kernel-2.6.16+/profile.bashrc | 3 +++
 1 file changed, 3 insertions(+)

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 049bbfe48ee..dad9dcbc585 100644
--- a/profiles/features/prefix/standalone/kernel-2.6.16+/profile.bashrc
+++ b/profiles/features/prefix/standalone/kernel-2.6.16+/profile.bashrc
@@ -8,6 +8,9 @@ elif [[ ${CATEGORY}/${PN} == dev-qt/qtcore && ${EBUILD_PHASE} 
== configure ]]; t
     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
+    einfo "Lower the minimal version of Linux..."
+    sed -r -e 's/MINLINUX_PATCH[[:space:]]+28/MINLINUX_PATCH 18/' \
+        -i "${S}"/src/corelib/global/minimum-linux_p.h || die
 elif [[ ${CATEGORY}/${PN} == dev-lang/ocaml && ${EBUILD_PHASE} == configure 
]]; then
     einfo "Removing dup3 and pipe2 definitions..."
     sed -e '/hasgot dup3/,/^fi/d;/hasgot pipe2/,/^fi/d' -i "${S}"/configure || 
die

Reply via email to