summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenda Xu <heroxbd@gentoo.org>2020-04-11 23:30:07 +0800
committerBenda Xu <heroxbd@gentoo.org>2020-04-11 23:34:49 +0800
commitd3d74ccb640c625de047fa8f1ee715487819c621 (patch)
tree26ae8fc73018b5cd71f645780a6675873fda1b72 /profiles/features/prefix
parentprofiles: Reorganise dev-util/geany-plugins[git] package.use.mask (diff)
downloadgentoo-d3d74ccb640c625de047fa8f1ee715487819c621.tar.gz
gentoo-d3d74ccb640c625de047fa8f1ee715487819c621.tar.bz2
gentoo-d3d74ccb640c625de047fa8f1ee715487819c621.zip
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@gentoo.org>
Diffstat (limited to 'profiles/features/prefix')
-rw-r--r--profiles/features/prefix/standalone/kernel-2.6.32+/profile.bashrc10
1 files changed, 10 insertions, 0 deletions
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 000000000000..eb05932eef74
--- /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: