diff options
author | jperkin <jperkin@pkgsrc.org> | 2015-05-26 15:11:25 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2015-05-26 15:11:25 +0000 |
commit | e5f5d2bf6097e7982b7881bb3c69579136a33f2a (patch) | |
tree | 756226505cc4b03d866ec79ddd2d65c096b84129 /net/samba4 | |
parent | 4e7f617c33a086040de8eef29562c453680fd40e (diff) | |
download | pkgsrc-e5f5d2bf6097e7982b7881bb3c69579136a33f2a.tar.gz |
Various changes to fix the build and install on SunOS.
Diffstat (limited to 'net/samba4')
-rw-r--r-- | net/samba4/Makefile | 10 | ||||
-rw-r--r-- | net/samba4/PLIST.SunOS | 3 | ||||
-rw-r--r-- | net/samba4/distinfo | 6 | ||||
-rw-r--r-- | net/samba4/patches/patch-buildtools_wafsamba_wscript | 17 | ||||
-rw-r--r-- | net/samba4/patches/patch-lib_nss__wrapper_nss__wrapper.c | 15 | ||||
-rw-r--r-- | net/samba4/patches/patch-lib_nss__wrapper_wscript | 15 | ||||
-rw-r--r-- | net/samba4/patches/patch-nsswitch_wscript__build | 16 |
7 files changed, 80 insertions, 2 deletions
diff --git a/net/samba4/Makefile b/net/samba4/Makefile index 30d45142082..991b8379b40 100644 --- a/net/samba4/Makefile +++ b/net/samba4/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2015/05/24 05:24:12 spz Exp $ +# $NetBSD: Makefile,v 1.6 2015/05/26 15:11:25 jperkin Exp $ DISTNAME= samba-${VERSION} PKGREVISION= 2 @@ -15,6 +15,8 @@ DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat VERSION= 4.2.1 CONFLICTS+= ja-samba-[0-9]* pam-smbpass-[0-9]* tdb-[0-9]* winbind-[0-9]* +BUILD_DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat + BUILD_DEFS+= VARBASE .include "../../mk/bsd.prefs.mk" @@ -96,9 +98,14 @@ CONFIGURE_ARGS+= --jobs=1 .endif # for winbind option build. +.if ${OPSYS} != "SunOS" LDFLAGS+= -Wl,--allow-shlib-undefined +.endif +LDFLAGS+= ${BUILDLINK_LDADD.gettext} LDFLAGS+= ${COMPILER_RPATH_FLAG}${SMB_PRIVATELIB} +CFLAGS.SunOS+= -DHAVE_SOLARIS_GETGRENT_R + .include "options.mk" PLIST_VARS+= macosx @@ -187,5 +194,6 @@ PY_PATCHPLIST= yes .include "../../devel/readline/buildlink3.mk" .include "../../devel/zlib/buildlink3.mk" .include "../../security/gnutls/buildlink3.mk" +BUILDLINK_API_DEPENDS.mit-krb5+= mit-krb5>=1.9.0 .include "../../security/mit-krb5/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/net/samba4/PLIST.SunOS b/net/samba4/PLIST.SunOS new file mode 100644 index 00000000000..60dcf6d072b --- /dev/null +++ b/net/samba4/PLIST.SunOS @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST.SunOS,v 1.1 2015/05/26 15:11:25 jperkin Exp $ +lib/samba/vfs/dirsort.so +lib/samba/vfs/syncops.so diff --git a/net/samba4/distinfo b/net/samba4/distinfo index 4a352be370f..e6fb17e685d 100644 --- a/net/samba4/distinfo +++ b/net/samba4/distinfo @@ -1,7 +1,11 @@ -$NetBSD: distinfo,v 1.1 2015/05/12 12:19:52 ryoon Exp $ +$NetBSD: distinfo,v 1.2 2015/05/26 15:11:25 jperkin Exp $ SHA1 (samba-4.2.1.tar.gz) = f5d0471efc459898344866b5bc518c80ce67e8d5 RMD160 (samba-4.2.1.tar.gz) = 539f915c0c80cf67b8a73b6d7924804609801fb8 Size (samba-4.2.1.tar.gz) = 20701467 bytes +SHA1 (patch-buildtools_wafsamba_wscript) = 5604936a825675647157331df2333f4237c611f5 +SHA1 (patch-lib_nss__wrapper_nss__wrapper.c) = c692fa33ec17ed4f1dc1e40c1fadf7846d976824 +SHA1 (patch-lib_nss__wrapper_wscript) = 1ce37974f93e791c9e0b1bdc34d26890583fdbfb +SHA1 (patch-nsswitch_wscript__build) = e8a6251e031ffa13d6347fade8891f7afd65d3eb SHA1 (patch-source4_scripting_wsript_build) = 91c99acc8cbadbd8d19400d466491c1da3e42527 SHA1 (patch-testprogs_blackbox_dbcheck-oldrelease.sh) = c651014e5e703041a5bcf83f71a1d36c3f5f3309 diff --git a/net/samba4/patches/patch-buildtools_wafsamba_wscript b/net/samba4/patches/patch-buildtools_wafsamba_wscript new file mode 100644 index 00000000000..7e07014149e --- /dev/null +++ b/net/samba4/patches/patch-buildtools_wafsamba_wscript @@ -0,0 +1,17 @@ +$NetBSD: patch-buildtools_wafsamba_wscript,v 1.1 2015/05/26 15:11:26 jperkin Exp $ + +Define _POSIX_PTHREAD_SEMANTICS on SunOS to pick up re-entrant functions. + +--- buildtools/wafsamba/wscript.orig 2015-02-24 18:59:51.000000000 +0000 ++++ buildtools/wafsamba/wscript +@@ -385,6 +385,10 @@ def configure(conf): + conf.DEFINE('_GNU_SOURCE', 1, add_to_cflags=True) + conf.DEFINE('_XOPEN_SOURCE_EXTENDED', 1, add_to_cflags=True) + ++ # Use POSIX getpwnam_r and friends. ++ if conf.env['SYSTEM_UNAME_SYSNAME'] == 'SunOS': ++ conf.DEFINE('_POSIX_PTHREAD_SEMANTICS', 1, add_to_cflags=True) ++ + # on Tru64 certain features are only available with _OSF_SOURCE set to 1 + # and _XOPEN_SOURCE set to 600 + if conf.env['SYSTEM_UNAME_SYSNAME'] == 'OSF1': diff --git a/net/samba4/patches/patch-lib_nss__wrapper_nss__wrapper.c b/net/samba4/patches/patch-lib_nss__wrapper_nss__wrapper.c new file mode 100644 index 00000000000..e2310ecb91d --- /dev/null +++ b/net/samba4/patches/patch-lib_nss__wrapper_nss__wrapper.c @@ -0,0 +1,15 @@ +$NetBSD: patch-lib_nss__wrapper_nss__wrapper.c,v 1.1 2015/05/26 15:11:26 jperkin Exp $ + +Avoid nss.h on SunOS, incompatible with other nss.h implementations. + +--- lib/nss_wrapper/nss_wrapper.c.orig 2014-10-01 09:16:21.000000000 +0000 ++++ lib/nss_wrapper/nss_wrapper.c +@@ -68,7 +68,7 @@ + + #include <dlfcn.h> + +-#if defined(HAVE_NSS_H) ++#if defined(HAVE_NSS_H) && !defined(__sun) + /* Linux and BSD */ + #include <nss.h> + diff --git a/net/samba4/patches/patch-lib_nss__wrapper_wscript b/net/samba4/patches/patch-lib_nss__wrapper_wscript new file mode 100644 index 00000000000..62755508385 --- /dev/null +++ b/net/samba4/patches/patch-lib_nss__wrapper_wscript @@ -0,0 +1,15 @@ +$NetBSD: patch-lib_nss__wrapper_wscript,v 1.1 2015/05/26 15:11:26 jperkin Exp $ + +Fix HAVE_SOLARIS_GETGRENT_R define. + +--- lib/nss_wrapper/wscript.orig 2015-01-16 08:18:39.000000000 +0000 ++++ lib/nss_wrapper/wscript +@@ -62,7 +62,7 @@ def configure(conf): + define='HAVE_SOLARIS_GETPWUID_R', headers='unistd.h pwd.h') + conf.CHECK_C_PROTOTYPE('getgrent_r', + 'struct group *getgrent_r(struct group *src, char *buf, int buflen)', +- define='SOLARIS_GETGRENT_R', headers='unistd.h grp.h') ++ define='HAVE_SOLARIS_GETGRENT_R', headers='unistd.h grp.h') + conf.CHECK_C_PROTOTYPE('getgrnam_r', + 'int getgrnam_r(const char *name, struct group *grp, char *buf, int buflen, struct group **pgrp)', + define='HAVE_SOLARIS_GETGRNAM_R', headers='unistd.h grp.h') diff --git a/net/samba4/patches/patch-nsswitch_wscript__build b/net/samba4/patches/patch-nsswitch_wscript__build new file mode 100644 index 00000000000..8c4b3909a6b --- /dev/null +++ b/net/samba4/patches/patch-nsswitch_wscript__build @@ -0,0 +1,16 @@ +$NetBSD: patch-nsswitch_wscript__build,v 1.1 2015/05/26 15:11:26 jperkin Exp $ + +Use common library name on SunOS. + +--- nsswitch/wscript_build.orig 2015-02-24 18:59:51.000000000 +0000 ++++ nsswitch/wscript_build +@@ -77,8 +77,7 @@ elif Utils.unversioned_sys_platform() == + bld.SAMBA_LIBRARY('nss_winbind', + source='winbind_nss_solaris.c winbind_nss_linux.c', + deps='winbind-client', +- realname='nss_winbind.so.1', +- vnum='1') ++ realname='libnss_winbind.so') + elif (host_os.rfind('hpux') > -1): + bld.SAMBA_LIBRARY('nss_winbind', + source='winbind_nss_linux.c', |