1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= Trivial Database
8 HOMEPAGE= https://tdb.samba.org/
12 SITES[main]= https://download.samba.org/pub/tdb/
13 https://ftp.samba.org/pub/tdb/
14 DISTFILE[1]= tdb-1.4.9.tar.gz:main
16 SPKGS[standard]= complete
22 OPTIONS_AVAILABLE= none
23 OPTIONS_STANDARD= none
25 BUILD_DEPENDS= docbook-xsl:primary:standard
26 EXRUN[tools]= tdb:primary:standard
28 USES= compiler pkgconfig python gettext shebangfix
29 GNOME_COMPONENTS= libxslt
31 LICENSE= LGPL3+:primary
32 LICENSE_TERMS= primary:{{WRKSRC}}/TERMS
33 LICENSE_FILE= LGPL3+:stock
34 LICENSE_AWK= TERMS:"^\#include"
35 LICENSE_SOURCE= TERMS:{{WRKSRC}}/pytdb.c
38 FPC_EQUIVALENT= databases/tdb
39 SHEBANG_FILES= python/tdbdump.py
40 python/tests/simple.py
42 buildtools/examples/run_on_target.py
43 SHEBANG_OLD_PYTHON= "/usr/bin/env python3"
46 CONFIGURE_ARGS= --prefix={{PREFIX}}
47 --mandir={{MANPREFIX}}/man
50 INSTALL_REQ_TOOLCHAIN= yes
54 # enable docbook to build manpages
55 ${REINPLACE_CMD} -e "s|http://docbook.sourceforge.net/release/xsl/current/|file://${LOCALBASE}/share/xsl/docbook/|" \
56 ${WRKSRC}/buildtools/wafsamba/wafsamba.py \
57 ${WRKSRC}/buildtools/wafsamba/samba_conftests.py
58 ${REINPLACE_CMD} -e 's|python3|python${PYTHON_VER}|g' \
59 ${WRKSRC}/buildtools/wafsamba/samba_python.py \
60 ${WRKSRC}/third_party/waf/waflib/extras/run_py_script.py
63 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/tdb*
64 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libtdb.${LIBEXT}
65 ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/td*.so
67 [FILE:234:descriptions/desc.primary]
68 TDB is a Trivial Database. In concept, it is very much like GDBM, and
69 BSD's DB except that it allows multiple simultaneous writers and uses
70 locking internally to keep writers from trampling on each other. TDB is
74 [FILE:50:descriptions/desc.tools]
75 This package contains the Trivial database tools.
79 0ac226073e3a2db8648da7af744cb95f50766a52feeb001d558b2b321b74a765 746608 tdb-1.4.9.tar.gz
82 [FILE:445:manifests/plist.primary]
83 %%ONLY-DRAGONFLY%%%%PYTHON_SITELIBDIR%%/tdb.cpython-%%PYTHON_SUFFIX%%.so
84 %%ONLY-FREEBSD%%%%PYTHON_SITELIBDIR%%/tdb.cpython-%%PYTHON_SUFFIX%%.so
85 %%ONLY-LINUX%%%%PYTHON_SITELIBDIR%%/tdb.cpython-%%PYTHON_SUFFIX%%%%PYTHON_ABIVER%%-x86_64-linux-gnu.so
86 %%ONLY-MIDNIGHTBSD%%%%PYTHON_SITELIBDIR%%/tdb.cpython-%%PYTHON_SUFFIX%%.so
87 %%ONLY-NETBSD%%%%PYTHON_SITELIBDIR%%/tdb.cpython-%%PYTHON_SUFFIX%%.so
90 libtdb.so.%%SOVERSION%%
93 [FILE:49:manifests/plist.dev]
99 [FILE:81:manifests/plist.tools]
100 %%PYTHON_SITELIBDIR%%/_tdb_text.py
108 [FILE:77:manifests/plist.man]
116 [FILE:290:patches/patch-Makefile]
117 --- Makefile.orig 2020-01-21 14:09:48 UTC
120 # simple makefile wrapper to run waf
122 -WAF_BIN=`PATH=buildtools/bin:../../buildtools/bin:$$PATH which waf`
123 +WAF_BIN=buildtools/bin/waf
124 WAF_BINARY=$(PYTHON) $(WAF_BIN)
125 WAF=PYTHONHASHSEED=1 WAF_MAKE=1 $(WAF_BINARY)
129 [FILE:2282:patches/patch-buildtools_wafsamba_samba__autoconf.py]
130 Disable libssp -- it causes segfaults on several platforms, likly some
131 kind of missing os-specific support or consideration.
133 --- buildtools/wafsamba/samba_autoconf.py.orig 2022-04-11 23:57:37 UTC
134 +++ buildtools/wafsamba/samba_autoconf.py
135 @@ -703,44 +703,6 @@ def SAMBA_CONFIG_H(conf, path=None):
136 if not IN_LAUNCH_DIR(conf):
139 - # we need to build real code that can't be optimized away to test
140 - stack_protect_list = ['-fstack-protector-strong', '-fstack-protector']
141 - for stack_protect_flag in stack_protect_list:
142 - flag_supported = conf.check(fragment='''
148 - while (fgets(t, sizeof(t), stdin));
153 - cflags=[ '-Werror', '-Wp,-D_FORTIFY_SOURCE=2', stack_protect_flag],
155 - msg='Checking if compiler accepts %s' % (stack_protect_flag))
157 - conf.ADD_CFLAGS('%s' % (stack_protect_flag))
160 - flag_supported = conf.check(fragment='''
166 - while (fgets(t, sizeof(t), stdin));
171 - cflags=[ '-Werror', '-fstack-clash-protection'],
173 - msg='Checking if compiler accepts -fstack-clash-protection')
175 - conf.ADD_CFLAGS('-fstack-clash-protection')
177 if Options.options.debug:
178 conf.ADD_CFLAGS('-g', testflags=True)