diff options
author | timur <timur@FreeBSD.org> | 2018-02-21 07:17:49 +0800 |
---|---|---|
committer | timur <timur@FreeBSD.org> | 2018-02-21 07:17:49 +0800 |
commit | f33b6cd0153eb445dedb56038fd01f21d9cbe339 (patch) | |
tree | 2fabf740e561c19f0117481a1e3f78a32d90d928 /databases/ldb | |
parent | 88a957db9f041204e901cce3823ebd887c46db9f (diff) | |
download | freebsd-ports-gnome-f33b6cd0153eb445dedb56038fd01f21d9cbe339.tar.gz freebsd-ports-gnome-f33b6cd0153eb445dedb56038fd01f21d9cbe339.tar.zst freebsd-ports-gnome-f33b6cd0153eb445dedb56038fd01f21d9cbe339.zip |
Update supplimentary Samba libs to the latest versions.
Sponsored by: iXsystems Inc.
Diffstat (limited to 'databases/ldb')
-rw-r--r-- | databases/ldb/Makefile | 13 | ||||
-rw-r--r-- | databases/ldb/files/patch-buildtools__wafsamba__samba_autoconf.py | 43 | ||||
-rw-r--r-- | databases/ldb/files/patch-buildtools__wafsamba__wscript | 22 | ||||
-rw-r--r-- | databases/ldb/files/patch-common__ldb_modules.c | 11 |
4 files changed, 84 insertions, 5 deletions
diff --git a/databases/ldb/Makefile b/databases/ldb/Makefile index 74abac080e49..a5be3f96640f 100644 --- a/databases/ldb/Makefile +++ b/databases/ldb/Makefile @@ -22,7 +22,12 @@ LDB_DEPENDS= talloc>=2.1.8:devel/talloc \ tdb>=1.3.12,1:databases/tdb \ popt>=0:devel/popt -CONFLICTS= ldb1[23]-1.* +CONFLICTS_INSTALL= ldb1[23]-1.* + +#FLAVORS= default nopython +#nopython_PKGNAMESUFFIX= -nopython +#nopython_CONFLICTS= ldb +#default_CONFLICTS= ldb-nopython USES= compiler pkgconfig waf USE_LDCONFIG= yes @@ -38,7 +43,7 @@ CONFIGURE_ARGS+= --bundled-libraries=!talloc,!tevent,!tdb,!popt \ --with-privatelibdir=${PREFIX}/lib/ldb CONFIGURE_ARGS+= --mandir=${MANPREFIX}/man \ - --infodir=${PREFIX}/${INFO_PATH}/${INFO_SUBDIR} \ + --with-openldap=${LOCALBASE} \ --disable-rpath \ --without-gettext @@ -143,13 +148,13 @@ post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libpyldb-util.so ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/ldb.so .else -.for file in include/pyldb.h \ +.for f in include/pyldb.h \ lib/libpyldb-util.so \ lib/libpyldb-util.so.1 \ lib/ldb/libpytalloc-util.so.2 ${RM} ${STAGEDIR}${PREFIX}/${file} .endfor -.for file in ${PYTHON_SITELIBDIR}/ldb.so \ +.for f in ${PYTHON_SITELIBDIR}/ldb.so \ ${PYTHON_SITELIBDIR}/_ldb_text.py \ ${PYTHON_SITELIBDIR}/_tdb_text.py \ ${PYTHON_SITELIBDIR}/_tevent.so \ diff --git a/databases/ldb/files/patch-buildtools__wafsamba__samba_autoconf.py b/databases/ldb/files/patch-buildtools__wafsamba__samba_autoconf.py index 5245d0e4857b..c92d308462be 100644 --- a/databases/ldb/files/patch-buildtools__wafsamba__samba_autoconf.py +++ b/databases/ldb/files/patch-buildtools__wafsamba__samba_autoconf.py @@ -1,6 +1,47 @@ --- buildtools/wafsamba/samba_autoconf.py.orig 2016-10-07 04:45:35 UTC +++ buildtools/wafsamba/samba_autoconf.py -@@ -873,7 +873,7 @@ def SAMBA_CHECK_UNDEFINED_SYMBOL_FLAGS(c +@@ -548,7 +548,7 @@ def library_flags(self, libs): + + + @conf +-def CHECK_LIB(conf, libs, mandatory=False, empty_decl=True, set_target=True, shlib=False): ++def CHECK_LIB(conf, libs, mandatory=False, empty_decl=True, set_target=True, shlib=False, msg=None): + '''check if a set of libraries exist as system libraries + + returns the sublist of libs that do exist as a syslib or [] +@@ -568,11 +568,29 @@ int foo() + ret.append(lib) + continue + ++ if msg is None: ++ msg = 'Checking for library %s' % lib ++ + (ccflags, ldflags, cpppath) = library_flags(conf, lib) ++ + if shlib: +- res = conf.check(features='c cshlib', fragment=fragment, lib=lib, uselib_store=lib, ccflags=ccflags, ldflags=ldflags, uselib=lib.upper(), mandatory=False) ++ res = conf.check(features='c cshlib', ++ fragment=fragment, ++ lib=lib, ++ uselib_store=lib, ++ ccflags=ccflags, ++ ldflags=ldflags, ++ uselib=lib.upper(), ++ mandatory=False, ++ msg=msg) + else: +- res = conf.check(lib=lib, uselib_store=lib, ccflags=ccflags, ldflags=ldflags, uselib=lib.upper(), mandatory=False) ++ res = conf.check(lib=lib, ++ uselib_store=lib, ++ ccflags=ccflags, ++ ldflags=ldflags, ++ uselib=lib.upper(), ++ mandatory=False, ++ msg=msg) + + if not res: + if mandatory: +@@ -873,7 +891,7 @@ def SAMBA_CHECK_UNDEFINED_SYMBOL_FLAGS(c conf.env.undefined_ldflags = conf.ADD_LDFLAGS('-Wl,-no-undefined', testflags=True) if not sys.platform.startswith("openbsd") and conf.env.undefined_ignore_ldflags == []: diff --git a/databases/ldb/files/patch-buildtools__wafsamba__wscript b/databases/ldb/files/patch-buildtools__wafsamba__wscript new file mode 100644 index 000000000000..9327600e7bd2 --- /dev/null +++ b/databases/ldb/files/patch-buildtools__wafsamba__wscript @@ -0,0 +1,22 @@ +--- buildtools/wafsamba/wscript.orig 2017-04-28 11:57:26 UTC ++++ buildtools/wafsamba/wscript +@@ -74,12 +74,17 @@ def set_options(opt): + help=("private library directory [PREFIX/lib/%s]" % Utils.g_module.APPNAME), + action="store", dest='PRIVATELIBDIR', default=None) + ++ opt.add_option('--with-openldap', ++ help='additional directory to search for OpenLDAP libs', ++ action='store', dest='ldap_open', default=None, ++ match = ['Checking for library lber', 'Checking for library ldap']) ++ + opt.add_option('--with-libiconv', + help='additional directory to search for libiconv', +- action='store', dest='iconv_open', default='/usr/local', ++ action='store', dest='iconv_open', default=None, + match = ['Checking for library iconv', 'Checking for iconv_open', 'Checking for header iconv.h']) + opt.add_option('--without-gettext', +- help=("Disable use of gettext"), ++ help=("disable use of gettext"), + action="store_true", dest='disable_gettext', default=False) + + gr = opt.option_group('developer options') diff --git a/databases/ldb/files/patch-common__ldb_modules.c b/databases/ldb/files/patch-common__ldb_modules.c new file mode 100644 index 000000000000..ed26d1c55c9e --- /dev/null +++ b/databases/ldb/files/patch-common__ldb_modules.c @@ -0,0 +1,11 @@ +--- common/ldb_modules.c.orig 2018-02-14 01:18:43 UTC ++++ common/ldb_modules.c +@@ -1103,7 +1103,7 @@ static int ldb_modules_load_dir(const ch + */ + void ldb_set_modules_dir(struct ldb_context *ldb, const char *path) + { +- int ret = ldb_modules_load_path(path, LDB_VERSION); ++ int ret = ldb_modules_load_dir(path, LDB_VERSION); + if (ret != LDB_SUCCESS) { + ldb_asprintf_errstring(ldb, "Failed to load modules from: %s\n", path); + } |