nsswitch: fix soname of linux nss_*.so.2 modules
authorStefan Metzmacher <metze@samba.org>
Thu, 18 Dec 2014 09:33:34 +0000 (10:33 +0100)
committerKarolin Seeger <kseeger@samba.org>
Sun, 11 Jan 2015 15:10:35 +0000 (16:10 +0100)
Bug: https://bugzilla.samba.org/show_bug.cgi?id=9299

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
(similar to commit 575b093dac3c509b1bfaab0b4ad29b9b4214e487)

Autobuild-User(v4-0-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-0-test): Sun Jan 11 16:10:35 CET 2015 on sn-devel-104

nsswitch/wscript_build
source3/wscript_build

index 55ba776e5d72801566a4db1e7657d9b752cb8c87..0e3373070e506f1aa90489d99875b82ecbb193ef 100644 (file)
@@ -30,12 +30,24 @@ bld.SAMBA_LIBRARY('nss_wrapper_winbind',
 # the search for .rfind('gnu') covers gnu* and *-gnu is that too broad?
 
 if (Utils.unversioned_sys_platform() == 'linux' or (host_os.rfind('gnu') > -1)):
-       bld.SAMBA_LIBRARY('nss_winbind',
-                         source='winbind_nss_linux.c',
-                         deps='winbind-client',
-                         realname='libnss_winbind.so.2',
-                         soname='libnss_winbind.so',
-                         vnum='2')
+    bld.SAMBA_LIBRARY('nss_winbind',
+              keep_underscore=True,
+              source='winbind_nss_linux.c',
+              deps='winbind-client',
+              public_headers=[],
+              public_headers_install=False,
+              pc_files=[],
+              vnum='2')
+
+    # for nss_wins is linux only
+    bld.SAMBA3_LIBRARY('nss_wins',
+                       keep_underscore=True,
+                       source='wins.c',
+                       deps='''param libsmb LIBTSOCKET''',
+                       public_headers=[],
+                       public_headers_install=False,
+                       pc_files=[],
+                       vnum='2')
 elif (host_os.rfind('freebsd') > -1):
        # FreeBSD winbind client is implemented as a wrapper around
        # the Linux version.
index c4281edac46a585ea28c5bcf43afb19111e8779d..8795a93408da2456374a4e9be2ddb517bec44a0f 100755 (executable)
@@ -653,13 +653,6 @@ bld.SAMBA3_LIBRARY('smbsharemodes',
                     vnum='0',
                     vars=locals())
 
-bld.SAMBA3_LIBRARY('nss_wins',
-                  source=WINBIND_WINS_NSS_SRC,
-                  deps='''param libsmb LIBTSOCKET''',
-                  realname='libnss_wins.so.2',
-                  soname='libnss_wins.so',
-                  vnum='2')
-
 bld.SAMBA3_LIBRARY('gse',
                    source='librpc/crypto/gse_krb5.c librpc/crypto/gse.c',
                    deps='krb5samba gensec param KRBCLIENT secrets3',