commit: d3d74ccb640c625de047fa8f1ee715487819c621
Author: Benda Xu <heroxbd <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 11 15:30:07 2020 +0000
Commit: Benda XU <heroxbd <AT> gentoo <DOT> org>
CommitDate: Sat Apr 11 15:34:49 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3d74ccb
p/f/prefix/standalone/kernel-2.6.32+/profile.bashrc: remove O_PATH
O_PATH is not available until Linux-2.6.39.
Reported-By: Harry Chen, Yiqun Hui
Suggested-by: Pengcheng Xu
Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org>
.../features/prefix/standalone/kernel-2.6.32+/profile.bashrc | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/profiles/features/prefix/standalone/kernel-2.6.32+/profile.bashrc
b/profiles/features/prefix/standalone/kernel-2.6.32+/profile.bashrc
new file mode 100644
index 00000000000..eb05932eef7
--- /dev/null
+++ b/profiles/features/prefix/standalone/kernel-2.6.32+/profile.bashrc
@@ -0,0 +1,10 @@
+# tricks to circumvent false positive checks of old kernel
+
+if [[ ${CATEGORY}/${PN} == sys-libs/glibc && ${EBUILD_PHASE} == configure ]];
then
+ einfo "Removing O_PATH definitions..."
+ sed -e '/define.*O_PATH/d' -i
"${S}"/sysdeps/unix/sysv/linux/bits/fcntl-linux.h || die
+fi
+
+# Local Variables:
+# mode: shell-script
+# End: