p/f/prefix/standalone/kernel-2.6.16+/profile.bashrc: hack qtcore to compile.
authorBenda Xu <heroxbd@gentoo.org>
Mon, 23 Dec 2019 02:46:03 +0000 (10:46 +0800)
committerBenda Xu <heroxbd@gentoo.org>
Mon, 23 Dec 2019 02:47:44 +0000 (10:47 +0800)
  Lower the minimal version of Linux to 2.6.18.

Signed-off-by: Benda Xu <heroxbd@gentoo.org>
profiles/features/prefix/standalone/kernel-2.6.16+/profile.bashrc

index 049bbfe48ee6b3c2d3f39f1b6d05f2536b5244ab..dad9dcbc585249c058169107322f7dc80c301787 100644 (file)
@@ -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