pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/chat/anope anope: Build fix: Don't check for presence ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7e0e8b600b21
branches:  trunk
changeset: 420988:7e0e8b600b21
user:      nia <nia%pkgsrc.org@localhost>
date:      Fri Jan 10 15:27:25 2020 +0000

description:
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:

 chat/anope/distinfo                     |   3 ++-
 chat/anope/patches/patch-CMakeLists.txt |  17 +++++++++++++++++
 2 files changed, 19 insertions(+), 1 deletions(-)

diffs (35 lines):

diff -r b90091f93c80 -r 7e0e8b600b21 chat/anope/distinfo
--- a/chat/anope/distinfo       Fri Jan 10 13:32:09 2020 +0000
+++ b/chat/anope/distinfo       Fri Jan 10 15:27:25 2020 +0000
@@ -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 -r b90091f93c80 -r 7e0e8b600b21 chat/anope/patches/patch-CMakeLists.txt
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/anope/patches/patch-CMakeLists.txt   Fri Jan 10 15:27:25 2020 +0000
@@ -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)
+ 



Home | Main Index | Thread Index | Old Index