1 |
commit: 085f50f00ae2751c88eaba887e20b4e5808345f7 |
2 |
Author: Benda Xu <heroxbd <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 30 07:29:41 2018 +0000 |
4 |
Commit: Benda XU <heroxbd <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 30 07:33:37 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=085f50f0 |
7 |
|
8 |
p/f/p/s/kernel-2.6.16+/profile.bashrc: glibc to be well to linux-2.6.16. |
9 |
|
10 |
F_DUPFD_CLOEXEC is available from linux-2.6.24. |
11 |
|
12 |
pipe2 and dup3 is introduced in linux-2.6.27. |
13 |
|
14 |
.../prefix/standalone/kernel-2.6.16+/profile.bashrc | 15 +++++++++++---- |
15 |
1 file changed, 11 insertions(+), 4 deletions(-) |
16 |
|
17 |
diff --git a/profiles/features/prefix/standalone/kernel-2.6.16+/profile.bashrc b/profiles/features/prefix/standalone/kernel-2.6.16+/profile.bashrc |
18 |
index eeba17808ec..0fc68db876a 100644 |
19 |
--- a/profiles/features/prefix/standalone/kernel-2.6.16+/profile.bashrc |
20 |
+++ b/profiles/features/prefix/standalone/kernel-2.6.16+/profile.bashrc |
21 |
@@ -2,15 +2,22 @@ |
22 |
|
23 |
if [[ ${CATEGORY}/${PN} == dev-util/cmake && ${EBUILD_PHASE} == configure ]]; then |
24 |
einfo "Removing utimensat outputs..." |
25 |
- sed -e '/UTIMENSAT=/d' -i ${S}/Source/kwsys/CMakeLists.txt || die |
26 |
+ sed -e '/UTIMENSAT=/d' -i "${S}"/Source/kwsys/CMakeLists.txt || die |
27 |
elif [[ ${CATEGORY}/${PN} == dev-qt/qtcore && ${EBUILD_PHASE} == configure ]]; then |
28 |
einfo "Removing pipe2 definitions..." |
29 |
- sed -e '/define.*HAVE_PIPE2/d' -i ${S}/src/3rdparty/forkfd/forkfd.c || die |
30 |
+ sed -e '/define.*HAVE_PIPE2/d' -i "${S}"/src/3rdparty/forkfd/forkfd.c || die |
31 |
einfo "Removing utimensat calls..." |
32 |
- sed -e '/_POSIX_VERSION/s/defined(_POSIX_VERSION)/0/' -i ${S}/qmake/library/ioutils.cpp || die |
33 |
+ sed -e '/_POSIX_VERSION/s/defined(_POSIX_VERSION)/0/' -i "${S}"/qmake/library/ioutils.cpp || die |
34 |
elif [[ ${CATEGORY}/${PN} == dev-lang/ocaml && ${EBUILD_PHASE} == configure ]]; then |
35 |
einfo "Removing dup3 and pipe2 definitions..." |
36 |
- sed -e '/hasgot dup3/,/^fi/d;/hasgot pipe2/,/^fi/d' -i ${S}/configure || die |
37 |
+ sed -e '/hasgot dup3/,/^fi/d;/hasgot pipe2/,/^fi/d' -i "${S}"/configure || die |
38 |
+elif [[ ${CATEGORY}/${PN} == sys-libs/glibc && ${EBUILD_PHASE} == compile ]]; then |
39 |
+ einfo "Removing F_DUPFD_CLOEXEC definitions..." |
40 |
+ sed -e '/define.*F_DUPFD_CLOEXEC/,/*\//d' -i "${S}"/sysdeps/unix/sysv/linux/bits/fcntl-linux.h || die |
41 |
+ einfo "Removing pipe2 definitions..." |
42 |
+ sed -e '/^extern int pipe2/d' -i "${S}"/posix/unistd.h || die |
43 |
+ einfo "Removing epoll_create1 definitions..." |
44 |
+ sed -e '/^extern int epoll_create1/d' -i "${S}"/sysdeps/unix/sysv/linux/sys/epoll.h || die |
45 |
fi |
46 |
|
47 |
# Local Variables: |