diff options
Diffstat (limited to '')
-rw-r--r-- | devel/talloc243/Makefile | 65 | ||||
-rw-r--r-- | devel/talloc243/distinfo | 3 | ||||
-rw-r--r-- | devel/talloc243/files/patch-buildtools_wafsamba_samba__install.py | 11 | ||||
-rw-r--r-- | devel/talloc243/files/patch-buildtools_wafsamba_wscript | 15 | ||||
-rw-r--r-- | devel/talloc243/files/patch-lib_replace_wscript | 11 | ||||
-rw-r--r-- | devel/talloc243/files/patch-talloc.c | 20 | ||||
-rw-r--r-- | devel/talloc243/files/patch-wscript | 18 | ||||
-rw-r--r-- | devel/talloc243/pkg-descr | 2 | ||||
-rw-r--r-- | devel/talloc243/pkg-plist | 10 |
9 files changed, 155 insertions, 0 deletions
diff --git a/devel/talloc243/Makefile b/devel/talloc243/Makefile new file mode 100644 index 000000000000..f9f5109e5509 --- /dev/null +++ b/devel/talloc243/Makefile @@ -0,0 +1,65 @@ +PORTNAME= talloc +DISTVERSION= 2.4.3 +CATEGORIES= devel +MASTER_SITES= SAMBA +PKGNAMESUFFIX= 243 + +MAINTAINER= samba@FreeBSD.org +COMMENT= Hierarchical pool based memory allocator +WWW= https://talloc.samba.org/ + +LICENSE= LGPL3 + +USES= compiler pkgconfig shebangfix waf +USE_LDCONFIG= yes +WAF_CMD= buildtools/bin/waf +SHEBANG_GLOB= *.py +CONFIGURE_LOG= bin/config.log + +PKGCONFIGDIR?= ${PREFIX}/libdata/pkgconfig + +CONFIGURE_ARGS+= --builtin-libraries=replace \ + --bundled-libraries=NONE \ + --disable-rpath \ + --disable-rpath-install \ + --without-gettext +CONFIGURE_ENV= PYTHONHASHSEED=1 +MAKE_ENV= PYTHONHASHSEED=1 +# Some symbols in talloc's linker version scripts are not defined, but since the +# scripts are generated dynamically, suppress errors with lld >= 17 due to these +# undefined symbols. +LDFLAGS+= -Wl,--undefined-version + +CONFLICTS_INSTALL= talloc talloc[0-9]* + +PLIST_SUB+= PKGCONFIGDIR=${PKGCONFIGDIR:S;^${PREFIX}/;;} + +OPTIONS_DEFINE= DEBUG MANPAGES PYTHON +OPTIONS_DEFAULT= MANPAGES PYTHON +OPTIONS_SUB= yes + +DEBUG_CONFIGURE_ON= --enable-debug \ + --verbose +DEBUG_MAKE_ARGS= --verbose +DEBUG_CFLAGS= -g -ggdb3 -O0 + +MANPAGES_BUILD_DEPENDS= ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:textproc/docbook-xsl \ + xsltproc:textproc/libxslt +MANPAGES_CONFIGURE_ENV_OFF= XSLTPROC="false" + +PYTHON_USES= gettext-runtime python +PYTHON_USES_OFF= python:build,test +PYTHON_CONFIGURE_OFF= --disable-python + +post-patch: + @${REINPLACE_CMD} -e 's|%%PKGCONFIGDIR%%|${PKGCONFIGDIR}|g' \ + ${BUILD_WRKSRC}/wscript + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libtalloc.so.2 + +post-install-PYTHON-on: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libpytalloc-util*.so + ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/talloc*.so + +.include <bsd.port.mk> diff --git a/devel/talloc243/distinfo b/devel/talloc243/distinfo new file mode 100644 index 000000000000..a70a5d6f4a7f --- /dev/null +++ b/devel/talloc243/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1751442256 +SHA256 (talloc-2.4.3.tar.gz) = dc46c40b9f46bb34dd97fe41f548b0e8b247b77a918576733c528e83abd854dd +SIZE (talloc-2.4.3.tar.gz) = 684092 diff --git a/devel/talloc243/files/patch-buildtools_wafsamba_samba__install.py b/devel/talloc243/files/patch-buildtools_wafsamba_samba__install.py new file mode 100644 index 000000000000..5a85a034aea7 --- /dev/null +++ b/devel/talloc243/files/patch-buildtools_wafsamba_samba__install.py @@ -0,0 +1,11 @@ +--- buildtools/wafsamba/samba_install.py.orig 2019-03-21 10:12:32 UTC ++++ buildtools/wafsamba/samba_install.py +@@ -115,7 +115,7 @@ def install_library(self): + inst_name = bld.make_libname(t.target) + elif self.vnum: + vnum_base = self.vnum.split('.')[0] +- install_name = bld.make_libname(target_name, version=self.vnum) ++ install_name = bld.make_libname(target_name, version=vnum_base) + install_link = bld.make_libname(target_name, version=vnum_base) + inst_name = bld.make_libname(t.target) + if not self.private_library or not t.env.SONAME_ST: diff --git a/devel/talloc243/files/patch-buildtools_wafsamba_wscript b/devel/talloc243/files/patch-buildtools_wafsamba_wscript new file mode 100644 index 000000000000..3d4b6a56e345 --- /dev/null +++ b/devel/talloc243/files/patch-buildtools_wafsamba_wscript @@ -0,0 +1,15 @@ +--- buildtools/wafsamba/wscript.orig 2019-03-21 10:12:32 UTC ++++ buildtools/wafsamba/wscript +@@ -82,10 +82,10 @@ def options(opt): + + 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/devel/talloc243/files/patch-lib_replace_wscript b/devel/talloc243/files/patch-lib_replace_wscript new file mode 100644 index 000000000000..d476cec47cfb --- /dev/null +++ b/devel/talloc243/files/patch-lib_replace_wscript @@ -0,0 +1,11 @@ +--- lib/replace/wscript.orig 2019-03-21 10:12:32 UTC ++++ lib/replace/wscript +@@ -119,7 +119,7 @@ def configure(conf): + conf.CHECK_HEADERS('sys/atomic.h stdatomic.h') + conf.CHECK_HEADERS('libgen.h') + +- if conf.CHECK_CFLAGS('-Wno-format-truncation'): ++ if conf.CHECK_CFLAGS(['-Wno-format-truncation'] + conf.env.WERROR_CFLAGS): + conf.define('HAVE_WNO_FORMAT_TRUNCATION', '1') + + if conf.CHECK_CFLAGS('-Wno-unused-function'): diff --git a/devel/talloc243/files/patch-talloc.c b/devel/talloc243/files/patch-talloc.c new file mode 100644 index 000000000000..2add4433b724 --- /dev/null +++ b/devel/talloc243/files/patch-talloc.c @@ -0,0 +1,20 @@ +--- talloc.c.orig 2019-03-21 10:12:32 UTC ++++ talloc.c +@@ -396,6 +396,9 @@ void talloc_lib_init(void) __attribute__ + void talloc_lib_init(void) + { + uint32_t random_value; ++#if defined(HAVE_ARC4RANDOM) ++ random_value = arc4random(); ++#else + #if defined(HAVE_GETAUXVAL) && defined(AT_RANDOM) + uint8_t *p; + /* +@@ -429,6 +432,7 @@ void talloc_lib_init(void) + */ + random_value = ((uintptr_t)talloc_lib_init & 0xFFFFFFFF); + } ++#endif /* HAVE_ARC4RANDOM */ + talloc_magic = random_value & ~TALLOC_FLAG_MASK; + } + #else diff --git a/devel/talloc243/files/patch-wscript b/devel/talloc243/files/patch-wscript new file mode 100644 index 000000000000..8097c806c2a4 --- /dev/null +++ b/devel/talloc243/files/patch-wscript @@ -0,0 +1,18 @@ +--- wscript.orig 2019-03-21 10:12:32 UTC ++++ wscript +@@ -45,13 +45,14 @@ def configure(conf): + conf.env.TALLOC_COMPAT1 = False + if conf.env.standalone_talloc: + conf.env.TALLOC_COMPAT1 = Options.options.TALLOC_COMPAT1 +- conf.env.PKGCONFIGDIR = '${LIBDIR}/pkgconfig' ++ conf.env.PKGCONFIGDIR = '%%PKGCONFIGDIR%%' + conf.env.TALLOC_VERSION = VERSION + + conf.CHECK_XSLTPROC_MANPAGES() + + conf.CHECK_HEADERS('sys/auxv.h') + conf.CHECK_FUNCS('getauxval') ++ conf.CHECK_FUNCS('arc4random') + + conf.SAMBA_CONFIG_H() + diff --git a/devel/talloc243/pkg-descr b/devel/talloc243/pkg-descr new file mode 100644 index 000000000000..70543e3f9210 --- /dev/null +++ b/devel/talloc243/pkg-descr @@ -0,0 +1,2 @@ +A hierarchical pool based memory allocator with destructors. It uses +reference counting to determine when memory should be freed. diff --git a/devel/talloc243/pkg-plist b/devel/talloc243/pkg-plist new file mode 100644 index 000000000000..aa22a5d358d7 --- /dev/null +++ b/devel/talloc243/pkg-plist @@ -0,0 +1,10 @@ +%%PYTHON%%include/pytalloc.h +include/talloc.h +%%PYTHON%%lib/libpytalloc-util%%PYTHON_TAG%%.so +%%PYTHON%%lib/libpytalloc-util%%PYTHON_TAG%%.so.2 +lib/libtalloc.so +lib/libtalloc.so.2 +%%PYTHON%%%%PYTHON_SITELIBDIR%%/talloc%%PYTHON_TAG%%.so +%%PYTHON%%%%PKGCONFIGDIR%%/pytalloc-util%%PYTHON_TAG%%.pc +%%PKGCONFIGDIR%%/talloc.pc +%%MANPAGES%%share/man/man3/talloc.3.gz |