pkgsrc/net/samba4/patches/patch-lib_replace_wscript
jperkin 5d124a4d96 Attempt to fix various build issues:
- Explicitly disable samba-regedit for now, it is built depending on
   various curses characteristics that we do not currently support.

 - Avoid epoll implementation on SmartOS.

 - Pull in Active Directory and LDAP options from net/samba, LDAP support
   is dynamically configured and we need to ensure that, if enabled, we
   correctly pull in openldap.  The SunOS native LDAP is missing some TLS
   functions that Samba depends upon.

Tested with various PKG_OPTIONS combinations, fixes build on SmartOS.
2015-06-26 16:09:49 +00:00

17 lines
794 B
Text

$NetBSD: patch-lib_replace_wscript,v 1.1 2015/06/26 16:09:49 jperkin Exp $
Skip epoll tests on SunOS, implementation is Linux-specific.
--- lib/replace/wscript.orig 2015-04-15 18:00:13.000000000 +0000
+++ lib/replace/wscript
@@ -283,7 +283,9 @@ def configure(conf):
conf.CHECK_FUNCS('gai_strerror get_current_dir_name')
conf.CHECK_FUNCS('timegm getifaddrs freeifaddrs mmap setgroups syscall setsid')
conf.CHECK_FUNCS('getgrent_r getgrgid_r getgrnam_r getgrouplist getpagesize')
- conf.CHECK_FUNCS('getpwent_r getpwnam_r getpwuid_r epoll_create')
+ conf.CHECK_FUNCS('getpwent_r getpwnam_r getpwuid_r')
+ if not sys.platform.startswith('sunos'):
+ conf.CHECK_FUNCS('epoll_create')
conf.CHECK_FUNCS('port_create')
conf.SET_TARGET_TYPE('attr', 'EMPTY')