jenkins-core-weekly: update to 2.491
[oi-userland.git] / components / python / python39 / patches / 44-disable_epoll.patch
blob44d8381b979b17b496ad5a45a6353441f0f01bf1
2 Without this patch, python detects and uses epoll which only exists in
3 OmniOS for lx zones and Linux compatibility. It is not quite the same as
4 the Linux implementation and can cause socket related failures in python.
6 There is no nice way to tell configure that we don't have it
7 (pkgsrc get around this by installing a broken epoll.h into the build
8 chroot area).
10 diff -wpruN '--exclude=*.orig' a~/configure.ac a/configure.ac
11 --- a~/configure.ac 1970-01-01 00:00:00
12 +++ a/configure.ac 1970-01-01 00:00:00
13 @@ -3779,7 +3779,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#in
14 [AC_MSG_RESULT(no)
16 AC_MSG_CHECKING(for epoll)
17 -AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/epoll.h>]], [[void *x=epoll_create]])],
18 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/epoll.h>]], [[void *x=NOepoll_create]])],
19 [AC_DEFINE(HAVE_EPOLL, 1, Define if you have the 'epoll' functions.)
20 AC_MSG_RESULT(yes)],
21 [AC_MSG_RESULT(no)