[SCM] Samba Shared Repository - branch master updated

Günther Deschner gd at samba.org
Wed May 9 09:39:03 MDT 2012


The branch, master has been updated
       via  5f05eac allow to use system iniparser library.
      from  67adda0 waf: remove pointless WINBIND_KRB5_LOCATOR env.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 5f05eacd27f0dc512748c14cac5f4d6afb327f99
Author: Günther Deschner <gd at samba.org>
Date:   Wed May 9 15:33:04 2012 +0200

    allow to use system iniparser library.
    
    Guenther
    
    Autobuild-User: Günther Deschner <gd at samba.org>
    Autobuild-Date: Wed May  9 17:38:33 CEST 2012 on sn-devel-104

-----------------------------------------------------------------------

Summary of changes:
 buildtools/wafsamba/samba3.py   |    6 ++++++
 lib/iniparser/src/wscript       |   21 +++++++++++++++++++++
 lib/iniparser/src/wscript_build |    7 -------
 nsswitch/wscript_build          |    2 +-
 source3/wscript_build           |    2 +-
 wscript                         |    1 +
 wscript_build                   |    2 +-
 7 files changed, 31 insertions(+), 10 deletions(-)
 create mode 100644 lib/iniparser/src/wscript
 delete mode 100644 lib/iniparser/src/wscript_build


Changeset truncated at 500 lines:

diff --git a/buildtools/wafsamba/samba3.py b/buildtools/wafsamba/samba3.py
index 7f05ffe..b6a9f1b 100644
--- a/buildtools/wafsamba/samba3.py
+++ b/buildtools/wafsamba/samba3.py
@@ -92,6 +92,12 @@ def s3_fix_kwargs(bld, kwargs):
     else:
         extra_includes += [ '../lib/popt' ]
 
+    if bld.CONFIG_SET('USING_SYSTEM_INIPARSER'):
+        (iniparser_includes, iniparser_ldflags, iniparser_cpppath) = library_flags(bld, 'iniparser')
+        extra_includes += iniparser_cpppath
+    else:
+        extra_includes += [ '../lib/iniparser' ]
+
     # s3 builds assume that they will have a bunch of extra include paths
     includes = []
     for d in extra_includes:
diff --git a/lib/iniparser/src/wscript b/lib/iniparser/src/wscript
new file mode 100644
index 0000000..c66f298
--- /dev/null
+++ b/lib/iniparser/src/wscript
@@ -0,0 +1,21 @@
+#!/usr/bin/env python
+
+import Options
+
+def configure(conf):
+    conf.CHECK_HEADERS('float.h')
+
+    if conf.CHECK_BUNDLED_SYSTEM('iniparser', checkfunctions='iniparser_load', headers='iniparser.h'):
+        conf.define('USING_SYSTEM_INIPARSER', 1)
+
+def build(bld):
+    if bld.CONFIG_SET('USING_SYSTEM_INIPARSER'):
+        return
+
+    bld.SAMBA_LIBRARY('iniparser',
+                      source='''../../iniparser_build/iniparser.c
+                                ../../iniparser_build/dictionary.c
+                                ../../iniparser_build/strlib.c''',
+                      cflags='',
+                      deps='replace',
+                      private_library=True)
diff --git a/lib/iniparser/src/wscript_build b/lib/iniparser/src/wscript_build
deleted file mode 100644
index aa15c9f..0000000
--- a/lib/iniparser/src/wscript_build
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/usr/bin/env python
-
-bld.SAMBA_SUBSYSTEM('LIBINIPARSER',
-                    source='../../iniparser_build/iniparser.c ../../iniparser_build/dictionary.c ../../iniparser_build/strlib.c',
-                    deps='replace',
-                    cflags=''
-                    )
diff --git a/nsswitch/wscript_build b/nsswitch/wscript_build
index f740fdf..0802687 100644
--- a/nsswitch/wscript_build
+++ b/nsswitch/wscript_build
@@ -24,7 +24,7 @@ bld.SAMBA_LIBRARY('nss_winbind',
 if bld.CONFIG_SET('WITH_PAM_MODULES') and bld.CONFIG_SET('HAVE_PAM_START'):
 	bld.SAMBA_LIBRARY('pamwinbind',
 		source='pam_winbind.c',
-		deps='intl talloc wbclient winbind-client LIBINIPARSER pam',
+		deps='intl talloc wbclient winbind-client iniparser pam',
 		cflags='-DLOCALEDIR=\"%s/locale\"' % bld.env.DATADIR,
 		realname='pam_winbind.so',
 		install_path='${PAMMODULESDIR}'
diff --git a/source3/wscript_build b/source3/wscript_build
index 5e85b79..ad19c33 100755
--- a/source3/wscript_build
+++ b/source3/wscript_build
@@ -1527,7 +1527,7 @@ bld.SAMBA3_BINARY('ntlm_auth' + bld.env.suffix3,
                  deps='''
                  talloc
                  krb5samba
-                 LIBINIPARSER
+                 iniparser
                  libsmb
                  popt_samba3
                  LIBNTLMSSP gse gensec''',
diff --git a/wscript b/wscript
index 3376436..15ac7f5 100755
--- a/wscript
+++ b/wscript
@@ -105,6 +105,7 @@ def configure(conf):
     conf.RECURSE('lib/socket_wrapper')
     conf.RECURSE('lib/uid_wrapper')
     conf.RECURSE('lib/popt')
+    conf.RECURSE('lib/iniparser/src')
     conf.RECURSE('lib/subunit/c')
     conf.RECURSE('libcli/smbreadline')
     conf.RECURSE('lib/crypto')
diff --git a/wscript_build b/wscript_build
index ea242d5..e35ddae 100755
--- a/wscript_build
+++ b/wscript_build
@@ -48,7 +48,6 @@ bld.RECURSE('source4/libnet')
 bld.RECURSE('source4/auth')
 bld.RECURSE('auth')
 bld.RECURSE('auth/kerberos')
-bld.RECURSE('lib/iniparser/src')
 bld.RECURSE('nsswitch')
 bld.RECURSE('nsswitch/libwbclient')
 bld.RECURSE('source4/lib/samba3')
@@ -63,6 +62,7 @@ bld.RECURSE('lib/socket_wrapper')
 bld.RECURSE('lib/nss_wrapper')
 bld.RECURSE('lib/uid_wrapper')
 bld.RECURSE('lib/popt')
+bld.RECURSE('lib/iniparser/src')
 bld.RECURSE('source4/lib/stream')
 bld.RECURSE('lib/util')
 bld.RECURSE('lib/tdb_wrap')


-- 
Samba Shared Repository


More information about the samba-cvs mailing list