p/f/p/s/kernel-2.6.16+/profile.bashrc: no dup3 or pipe2 for ocaml.
authorBenda Xu <heroxbd@gentoo.org>
Tue, 28 Aug 2018 13:07:01 +0000 (21:07 +0800)
committerBenda Xu <heroxbd@gentoo.org>
Tue, 28 Aug 2018 13:08:23 +0000 (21:08 +0800)
  They are not defined by kernel-2.6.16.

profiles/features/prefix/standalone/kernel-2.6.16+/profile.bashrc

index 2a505554239011a60ddaef8ee9c209dea2e09af1..eeba17808ecec02f91b57301bee77c8133b657d3 100644 (file)
@@ -8,9 +8,9 @@ elif [[ ${CATEGORY}/${PN} == dev-qt/qtcore && ${EBUILD_PHASE} == configure ]]; t
     sed -e '/define.*HAVE_PIPE2/d' -i ${S}/src/3rdparty/forkfd/forkfd.c || die
     einfo "Removing utimensat calls..."
     sed -e '/_POSIX_VERSION/s/defined(_POSIX_VERSION)/0/' -i ${S}/qmake/library/ioutils.cpp || die
-elif [[ ${CATEGORY}/${PN} == dev-lang/ocaml && ${EBUILD_PHASE} == compile ]]; then
-    einfo "Removing dup3 definitions..."
-    sed -e '/define.*HAS_DUP3/d' -i ${S}/config/s.h || die
+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
 fi
 
 # Local Variables: