From: Benda Xu Date: Sat, 11 Apr 2020 15:30:07 +0000 (+0800) Subject: p/f/prefix/standalone/kernel-2.6.32+/profile.bashrc: remove O_PATH X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d3d74ccb640c625de047fa8f1ee715487819c621;p=gentoo.git 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 --- 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: