summaryrefslogtreecommitdiff
path: root/chat
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2020-01-10 15:27:25 +0000
committernia <nia@pkgsrc.org>2020-01-10 15:27:25 +0000
commitf8fa745bd24692e44435b04ebadf402b578afb73 (patch)
tree828cc6c72c82e525e30efa1c68320f1bba6aec18 /chat
parent48efc970024cc2166d6b450f27478d8fa07da537 (diff)
downloadpkgsrc-f8fa745bd24692e44435b04ebadf402b578afb73.tar.gz
anope: Build fix: Don't check for presence of epoll header on SunOS
In file included from /home/pbulk/build/chat/anope/work/anope-2.0.7-source/src/socketengines/socketengine_epoll.cpp:18:0: /usr/include/sys/epoll.h:1:2: error: #error "This header has been disabled to stop its functionality from being used." #error "This header has been disabled to stop its functionality from being used." ^~~~~ /home/pbulk/build/chat/anope/work/anope-2.0.7-source/src/socketengines/socketengine_epoll.cpp:23:20: error: 'epoll_event' was not declared in this scope
Diffstat (limited to 'chat')
-rw-r--r--chat/anope/distinfo3
-rw-r--r--chat/anope/patches/patch-CMakeLists.txt17
2 files changed, 19 insertions, 1 deletions
diff --git a/chat/anope/distinfo b/chat/anope/distinfo
index 667457a6235..56814d8eefb 100644
--- a/chat/anope/distinfo
+++ b/chat/anope/distinfo
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.11 2019/12/08 03:55:05 nia Exp $
+$NetBSD: distinfo,v 1.12 2020/01/10 15:27:25 nia Exp $
SHA1 (anope-2.0.7-source.tar.gz) = 298c21edbff18a1d3cc711bf84b55ac06ae10d6b
RMD160 (anope-2.0.7-source.tar.gz) = fdbc31d1bcd902eddc35efbae871af2b0dddc88b
SHA512 (anope-2.0.7-source.tar.gz) = 22a9f3e0d9fe7f68304062829a19b693a3414f94c90f8da601ab98995cbff7310dc22ca40749d50d6722dfb4649817d2f4b1dbe4afa3254b28980f03a491de65
Size (anope-2.0.7-source.tar.gz) = 1817484 bytes
+SHA1 (patch-CMakeLists.txt) = 698034091457fb58de32a43fd701c7ce716f898e
SHA1 (patch-data_CMakeLists.txt) = e0d762da4345ded9a080ea6cf216db510c4c1665
SHA1 (patch-data_example.conf) = 5d239fdf2362561b860ffbd3b6dfe7a5dd177632
diff --git a/chat/anope/patches/patch-CMakeLists.txt b/chat/anope/patches/patch-CMakeLists.txt
new file mode 100644
index 00000000000..f191285ceef
--- /dev/null
+++ b/chat/anope/patches/patch-CMakeLists.txt
@@ -0,0 +1,17 @@
+$NetBSD: patch-CMakeLists.txt,v 1.1 2020/01/10 15:27:25 nia Exp $
+
+Don't try to use epoll on SunOS, causes the build to fail
+
+--- CMakeLists.txt.orig 2019-03-31 02:13:04.000000000 +0000
++++ CMakeLists.txt
+@@ -364,7 +364,9 @@ check_include_file(strings.h HAVE_STRING
+ check_function_exists(strcasecmp HAVE_STRCASECMP)
+ check_function_exists(stricmp HAVE_STRICMP)
+ check_function_exists(umask HAVE_UMASK)
+-check_function_exists(epoll_wait HAVE_EPOLL)
++if(NOT CMAKE_SYSTEM_NAME MATCHES "SunOS")
++ check_function_exists(epoll_wait HAVE_EPOLL)
++endif()
+ check_function_exists(poll HAVE_POLL)
+ check_function_exists(kqueue HAVE_KQUEUE)
+