[SCM] Samba Shared Repository - branch master updated
Kai Blin
kai at samba.org
Thu Jun 17 00:10:54 MDT 2010
The branch, master has been updated
via 9328097... s3-waf: Fix the OSX 10.4 build by adding an explicit resolv dep on smbclient
via 83ad437... s3-waf: Add check for iconv
via 7a1c247... s3-waf: Work around missing *netgrent prototypes on OSX 10.4
from d9c81e3... s4:dcesrv_netr_DsRAddressToSitenamesExW - fix the read of the IP packet version
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 93280974b8fb236b212b9116a1d8921329e5e1d8
Author: Kai Blin <kai at samba.org>
Date: Thu Jun 17 08:09:41 2010 +0200
s3-waf: Fix the OSX 10.4 build by adding an explicit resolv dep on smbclient
commit 83ad437a9cf9f0ed36ea0e72282020e9330f8c88
Author: Kai Blin <kai at samba.org>
Date: Tue Jun 15 06:53:11 2010 +0200
s3-waf: Add check for iconv
commit 7a1c24705dba06753a693a3dbee93d473726d05a
Author: Kai Blin <kai at samba.org>
Date: Tue Jun 15 06:52:42 2010 +0200
s3-waf: Work around missing *netgrent prototypes on OSX 10.4
-----------------------------------------------------------------------
Summary of changes:
source3/smbd/password.c | 11 +++++++++++
source3/wscript | 29 ++++++++++++++++++++++++-----
source3/wscript_build | 4 ++--
3 files changed, 37 insertions(+), 7 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source3/smbd/password.c b/source3/smbd/password.c
index b1fd4b8..1a55a39 100644
--- a/source3/smbd/password.c
+++ b/source3/smbd/password.c
@@ -21,6 +21,17 @@
#include "includes.h"
#include "smbd/globals.h"
+/* Fix up prototypes for OSX 10.4, where they're missing */
+#ifndef HAVE_SETNETGRENT_PROTOTYPE
+extern int setnetgrent(const char* netgroup);
+#endif
+#ifndef HAVE_GETNETGRENT_PROTOTYPE
+extern int getnetgrent(char **host, char **user, char **domain);
+#endif
+#ifndef HAVE_ENDNETGRENT_PROTOTYPE
+extern void endnetgrent(void);
+#endif
+
enum server_allocated_state { SERVER_ALLOCATED_REQUIRED_YES,
SERVER_ALLOCATED_REQUIRED_NO,
SERVER_ALLOCATED_REQUIRED_ANY};
diff --git a/source3/wscript b/source3/wscript
index 0a4dc37..9bbedea 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -49,6 +49,7 @@ def set_options(opt):
opt.SAMBA3_ADD_OPTION('utmp')
opt.SAMBA3_ADD_OPTION('pthreadpool', with_name="enable", without_name="disable")
opt.SAMBA3_ADD_OPTION('avahi', with_name="enable", without_name="disable")
+ opt.SAMBA3_ADD_OPTION('iconv')
def configure(conf):
@@ -88,13 +89,13 @@ def configure(conf):
conf.RECURSE('../lib/socket_wrapper')
conf.RECURSE('../lib/zlib')
- conf.CHECK_HEADERS('execinfo.h libexc.h libunwind.h')
+ conf.CHECK_HEADERS('execinfo.h libexc.h libunwind.h netdb.h')
conf.CHECK_FUNCS('getcwd fchown chmod fchmod mknod mknod64')
conf.CHECK_FUNCS('strtol strchr strupr chflags')
conf.CHECK_FUNCS('getrlimit fsync fdatasync setpgid')
conf.CHECK_FUNCS('setsid glob strpbrk crypt16 getauthuid')
- conf.CHECK_FUNCS('sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent')
+ conf.CHECK_FUNCS('sigprocmask sigblock sigaction sigset innetgr')
conf.CHECK_FUNCS('initgroups select poll rdchk getgrnam getgrent pathconf')
conf.CHECK_FUNCS('setpriv setgidx setuidx setgroups sysconf stat64 fstat64')
conf.CHECK_FUNCS('lstat64 fopen64 atexit grantpt lseek64 ftruncate64 posix_fallocate posix_fallocate64')
@@ -226,7 +227,7 @@ _acl __acl add_proplist_entry atexit attr_getf attr_list attr_listf
attropen attr_remove attr_removef attr_set attr_setf backtrace_symbols
bindtextdomain _chdir __chdir chflags chmod _close __close _closedir
__closedir closedir64 creat64 crypt16 delproplist devnm dgettext dirfd
-DNSServiceRegister _dup __dup _dup2 __dup2 endmntent endnetgrent execl
+DNSServiceRegister _dup __dup _dup2 __dup2 endmntent execl
extattr_delete_fd extattr_delete_link extattr_get_fd extattr_get_file
extattr_get_link extattr_list_fd extattr_list_file extattr_list_link
extattr_set_fd extattr_set_file extattr_set_link _facl __facl _fchdir
@@ -236,7 +237,7 @@ _fork __fork fremoveea fremovexattr fseek64 fseeko64 fsetea
fsetproplist fsetxattr _fstat __fstat fstat64 _fstat64 __fstat64 fsync
ftell64 ftello64 ftruncate64 futimens futimes __fxstat getauthuid
getcwd _getcwd __getcwd getdents __getdents getdents64 getdirentries
-getgrent getgrnam getgrouplist getmntent getnetgrent getpagesize
+getgrent getgrnam getgrouplist getmntent getpagesize
getproplist get_proplist_entry getpwanam getpwent_r getrlimit gettext
glob grantpt hstrerror initgroups innetgr
inotify_init lgetea lgetxattr listea listxattr llistea llistxattr
@@ -250,7 +251,7 @@ pwrite _pwrite __pwrite pwrite64 _pwrite64
__pwrite64 rdchk _read __read _readdir __readdir readdir64 _readdir64
__readdir64 removeea removexattr rewinddir64 _seekdir __seekdir
seekdir64 select setea setenv setgidx setgroups setlocale setluid
-setmntent setnetgrent setpgid setpriv setproplist setsid setuidx
+setmntent setpgid setpriv setproplist setsid setuidx
setxattr shmget shm_open sigaction sigblock sigprocmask sigset
sizeof_proplist_entry _stat __stat stat64 _stat64 __stat64 statvfs
strcasecmp strchr strpbrk strsignal strtol strupr sysconf sysctlbyname
@@ -360,6 +361,17 @@ utimensat vsyslog _write __write __xstat
headers='unistd.h sys/types.h dirent.h',
define='HAVE_DIRENT_D_OFF')
+ conf.CHECK_FUNCS('setnetgrent getnetgrent endnetgrent')
+ conf.CHECK_C_PROTOTYPE('setnetgrent',
+ 'extern int setnetgrent(const char* netgroup)',
+ define='HAVE_SETNETGRENT_PROTOTYPE', headers='netdb.h')
+ conf.CHECK_C_PROTOTYPE('getnetgrent',
+ 'extern int getnetgrent(char **host, char **user, char **domain)',
+ define='HAVE_GETNETGRENT_PROTOTYPE', headers='netdb.h')
+ conf.CHECK_C_PROTOTYPE('endnetgrent',
+ 'extern void endnetgrent(void)',
+ define='HAVE_ENDNETGRENT_PROTOTYPE', headers='netdb.h')
+
#FIXME: Should just be set when krb5 and ldap requirements are fulfilled
if Options.options.with_ads:
conf.DEFINE('WITH_ADS', '1')
@@ -567,6 +579,13 @@ return 0;
conf.SET_TARGET_TYPE('avahi-common', 'EMPTY')
conf.SET_TARGET_TYPE('avahi-client', 'EMPTY')
+ if Options.options.with_iconv:
+ conf.env.with_iconv = True
+ if not conf.CHECK_FUNCS_IN('iconv_open', 'iconv', headers='iconv.h'):
+ conf.env.with_iconv = False
+ if conf.env.with_iconv:
+ conf.DEFINE('HAVE_ICONV', 1)
+
# FIXME: these should be tests for features, but the old build system just
# checks for OSes.
import sys
diff --git a/source3/wscript_build b/source3/wscript_build
index 47a330a..d91d2be 100644
--- a/source3/wscript_build
+++ b/source3/wscript_build
@@ -891,7 +891,7 @@ bld.SAMBA_SUBSYSTEM('KRBCLIENT',
bld.SAMBA_SUBSYSTEM('LIBS',
source=LIB_SRC,
- deps='NSS_WRAPPER',
+ deps='NSS_WRAPPER iconv',
vars=locals())
bld.SAMBA_SUBSYSTEM('LIB_NONSMBD',
@@ -960,7 +960,7 @@ bld.SAMBA_BINARY('web/swat',
bld.SAMBA_BINARY('smbclient',
source=CLIENT_SRC,
- deps='''talloc tdb cap POPT_SAMBA PASSDB LIBSMB LIB_NONSMBD
+ deps='''talloc tdb cap resolv POPT_SAMBA PASSDB LIBSMB LIB_NONSMBD
PARAM_WITHOUT_REG LIBWBCLIENT DYNCONFIG PARAM KRBCLIENT''',
vars=locals())
--
Samba Shared Repository
More information about the samba-cvs
mailing list