From d3d74ccb640c625de047fa8f1ee715487819c621 Mon Sep 17 00:00:00 2001 From: Benda Xu Date: Sat, 11 Apr 2020 23:30:07 +0800 Subject: [PATCH] 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 --- .../prefix/standalone/kernel-2.6.32+/profile.bashrc | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 profiles/features/prefix/standalone/kernel-2.6.32+/profile.bashrc 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: -- 2.26.2