Gentoo Archives: gentoo-commits

From: Benda XU <heroxbd@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: profiles/features/prefix/standalone/kernel-2.6.16+/
Date: Sun, 22 Nov 2020 10:38:47
Message-Id: 1606041516.6dab4bf338cb68ba68726400eb72252bfdffcfe3.heroxbd@gentoo
1 commit: 6dab4bf338cb68ba68726400eb72252bfdffcfe3
2 Author: Benda Xu <heroxbd <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 22 10:35:18 2020 +0000
4 Commit: Benda XU <heroxbd <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 22 10:38:36 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6dab4bf3
7
8 profiles/f/p/s/kernel-2.6.16+/p.bashrc: libmount compatibility.
9
10 Replace CLOEXEC related functions that are not introduced until
11 linux-2.6.27 with old ones. The result is not thread safe, but
12 compiles.
13
14 Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org>
15
16 profiles/features/prefix/standalone/kernel-2.6.16+/profile.bashrc | 6 ++++++
17 1 file changed, 6 insertions(+)
18
19 diff --git a/profiles/features/prefix/standalone/kernel-2.6.16+/profile.bashrc b/profiles/features/prefix/standalone/kernel-2.6.16+/profile.bashrc
20 index dad9dcbc585..ed5226a858d 100644
21 --- a/profiles/features/prefix/standalone/kernel-2.6.16+/profile.bashrc
22 +++ b/profiles/features/prefix/standalone/kernel-2.6.16+/profile.bashrc
23 @@ -14,6 +14,12 @@ elif [[ ${CATEGORY}/${PN} == dev-qt/qtcore && ${EBUILD_PHASE} == configure ]]; t
24 elif [[ ${CATEGORY}/${PN} == dev-lang/ocaml && ${EBUILD_PHASE} == configure ]]; then
25 einfo "Removing dup3 and pipe2 definitions..."
26 sed -e '/hasgot dup3/,/^fi/d;/hasgot pipe2/,/^fi/d' -i "${S}"/configure || die
27 +elif [[ ${CATEGORY}/${PN} == sys-apps/util-linux && ${EBUILD_PHASE} == configure ]]; then
28 + einfo "Removing CLOEXEC related functions..."
29 + sed -r -e 's/inotify_init1\(.*\)/inotify_init\(\)/' \
30 + -e '/open\(/s/\| *O_CLOEXEC//' \
31 + -e 's/epoll_create1\(EPOLL_CLOEXEC/epoll_create\(1/' \
32 + -i "${S}"/libmount/src/monitor.c
33 fi
34
35 # Local Variables: