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: Thu, 30 Aug 2018 23:29:31
Message-Id: 1535671696.8f5b08e5a94376b0d02238b1cd3bad035050b315.heroxbd@gentoo
1 commit: 8f5b08e5a94376b0d02238b1cd3bad035050b315
2 Author: Benda Xu <heroxbd <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 30 23:28:16 2018 +0000
4 Commit: Benda XU <heroxbd <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 30 23:28:16 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f5b08e5
7
8 p/f/p/s/kernel-2.6.16+: remove definitions of lutimes.
9
10 profiles/features/prefix/standalone/kernel-2.6.16+/make.defaults | 7 ++++++-
11 profiles/features/prefix/standalone/kernel-2.6.16+/profile.bashrc | 3 +++
12 2 files changed, 9 insertions(+), 1 deletion(-)
13
14 diff --git a/profiles/features/prefix/standalone/kernel-2.6.16+/make.defaults b/profiles/features/prefix/standalone/kernel-2.6.16+/make.defaults
15 index c64a419f389..e8e0ce1eaea 100644
16 --- a/profiles/features/prefix/standalone/kernel-2.6.16+/make.defaults
17 +++ b/profiles/features/prefix/standalone/kernel-2.6.16+/make.defaults
18 @@ -9,9 +9,14 @@
19
20 # utimensat is missing or not reliable until linux-2.6.32.
21 # needed by python-3.
22 +# lutimes requires utimensat
23 ac_cv_func_utimensat=no
24 -# pipe2 requires >=linux-2.6.27. Needed by python-3.
25 +ac_cv_func_lutimes=no
26 +# pipe2 and dup3 requires >=linux-2.6.27. Needed by python-3.
27 ac_cv_func_pipe2=no
28 +ac_cv_func_dup3=no
29 +# epoll_create1 requires >=linux-2.6.27.
30 +ac_cv_func_epoll_create1=no
31
32 # >=python-3 is masked.
33 PYTHON_TARGETS=python2_7
34
35 diff --git a/profiles/features/prefix/standalone/kernel-2.6.16+/profile.bashrc b/profiles/features/prefix/standalone/kernel-2.6.16+/profile.bashrc
36 index 0fc68db876a..c08217181df 100644
37 --- a/profiles/features/prefix/standalone/kernel-2.6.16+/profile.bashrc
38 +++ b/profiles/features/prefix/standalone/kernel-2.6.16+/profile.bashrc
39 @@ -18,6 +18,9 @@ elif [[ ${CATEGORY}/${PN} == sys-libs/glibc && ${EBUILD_PHASE} == compile ]]; th
40 sed -e '/^extern int pipe2/d' -i "${S}"/posix/unistd.h || die
41 einfo "Removing epoll_create1 definitions..."
42 sed -e '/^extern int epoll_create1/d' -i "${S}"/sysdeps/unix/sysv/linux/sys/epoll.h || die
43 + einfo "Removing lutimes and utimensat definitions..."
44 + sed -e '/^extern int lutimes/,/__THROW/d' -i "${S}"/time/sys/time.h || die
45 + sed -e '/^extern int utimensat/,/__THROW/d' -i "${S}"/io/sys/stat.h || die
46 fi
47
48 # Local Variables: