summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenda Xu <heroxbd@gentoo.org>2020-11-22 18:35:18 +0800
committerBenda Xu <heroxbd@gentoo.org>2020-11-22 18:38:36 +0800
commit6dab4bf338cb68ba68726400eb72252bfdffcfe3 (patch)
tree5b07bf0076f7eb083a5119dd4facc06f4d8425b0 /profiles
parentsys-libs/glibc: 2.19 recognize gcc-10 as a sane compiler. (diff)
downloadgentoo-6dab4bf338cb68ba68726400eb72252bfdffcfe3.tar.gz
gentoo-6dab4bf338cb68ba68726400eb72252bfdffcfe3.tar.bz2
gentoo-6dab4bf338cb68ba68726400eb72252bfdffcfe3.zip
profiles/f/p/s/kernel-2.6.16+/p.bashrc: libmount compatibility.
Replace CLOEXEC related functions that are not introduced until linux-2.6.27 with old ones. The result is not thread safe, but compiles. Signed-off-by: Benda Xu <heroxbd@gentoo.org>
Diffstat (limited to 'profiles')
-rw-r--r--profiles/features/prefix/standalone/kernel-2.6.16+/profile.bashrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/profiles/features/prefix/standalone/kernel-2.6.16+/profile.bashrc b/profiles/features/prefix/standalone/kernel-2.6.16+/profile.bashrc
index dad9dcbc5852..ed5226a858d2 100644
--- a/profiles/features/prefix/standalone/kernel-2.6.16+/profile.bashrc
+++ b/profiles/features/prefix/standalone/kernel-2.6.16+/profile.bashrc
@@ -14,6 +14,12 @@ elif [[ ${CATEGORY}/${PN} == dev-qt/qtcore && ${EBUILD_PHASE} == configure ]]; t
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
+elif [[ ${CATEGORY}/${PN} == sys-apps/util-linux && ${EBUILD_PHASE} == configure ]]; then
+ einfo "Removing CLOEXEC related functions..."
+ sed -r -e 's/inotify_init1\(.*\)/inotify_init\(\)/' \
+ -e '/open\(/s/\| *O_CLOEXEC//' \
+ -e 's/epoll_create1\(EPOLL_CLOEXEC/epoll_create\(1/' \
+ -i "${S}"/libmount/src/monitor.c
fi
# Local Variables: