commit: d095e517c36eda7dd2954d914a9d577c455c7566
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Fri May 31 14:34:21 2019 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Fri May 31 14:34:21 2019 +0000
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=d095e517
scripts/bootstrap-prefix: add workaround for Darwin9 in bootstrap_python
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
scripts/bootstrap-prefix.sh | 28 ++++++++++++++++------------
1 file changed, 16 insertions(+), 12 deletions(-)
diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index 23b3ec412c..d5bfd04ca8 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -945,18 +945,6 @@ bootstrap_python() {
patch -p0 <
"${DISTDIR}"/python-3.6-02_all_disable_modules_and_ssl.patch
fi
- # Solaris' host compiler (if old -- 3.4.3) doesn't grok HUGE_VAL,
- # and barfs on isnan() so patch it out
- case ${CHOST} in
- (*-solaris*)
- sed -i \
- -e '/^#define
Py_HUGE_VAL/s/HUGE_VAL$/(__builtin_huge_val())/' \
- -e '/defined HAVE_DECL_ISNAN/s/ISNAN/USE_FALLBACK/' \
- Include/pymath.h
- ;;
- esac
-
-
case ${CHOST} in
(*-*-cygwin*)
# apply patches from cygwinports much like the ebuild does
@@ -983,6 +971,22 @@ bootstrap_python() {
done
done
;;
+ (*-solaris*)
+ # Solaris' host compiler (if old -- 3.4.3) doesn't grok
HUGE_VAL,
+ # and barfs on isnan() so patch it out
+ sed -i \
+ -e '/^#define
Py_HUGE_VAL/s/HUGE_VAL$/(__builtin_huge_val())/' \
+ -e '/defined HAVE_DECL_ISNAN/s/ISNAN/USE_FALLBACK/' \
+ Include/pymath.h
+ ;;
+ (*-darwin9)
+ # Darwin 9's kqueue seems to act up (at least at this stage), so
+ # make Python's selectors resort to poll() or select() for the
+ # time being
+ sed -i \
+ -e 's/KQUEUE/KQUEUE_DISABLED/' \
+ configure
+ ;;
esac
local myconf=""