1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= Trivial Database
8 HOMEPAGE= https://tdb.samba.org/
9 CONTACT= Leonid_Bobrov[goleo@disroot.org]
12 SITES[main]= https://download.samba.org/pub/tdb/
13 https://ftp.samba.org/pub/tdb/
14 DISTFILE[1]= tdb-1.4.3.tar.gz:main
16 SPKGS[standard]= single
18 OPTIONS_AVAILABLE= none
19 OPTIONS_STANDARD= none
21 BUILD_DEPENDS= autoselect-python:single:standard
22 docbook-xsl:primary:standard
23 libxslt:single:standard
25 USES= compiler pkgconfig python shebangfix
27 LICENSE= LGPL3+:single
28 LICENSE_TERMS= single:{{WRKSRC}}/TERMS
29 LICENSE_FILE= LGPL3+:stock
30 LICENSE_AWK= TERMS:"^\#include"
31 LICENSE_SOURCE= TERMS:{{WRKSRC}}/pytdb.c
34 FPC_EQUIVALENT= databases/tdb
35 SHEBANG_FILES= python/tdbdump.py
36 python/tests/simple.py
38 buildtools/examples/run_on_target.py
39 SHEBANG_OLD_PYTHON= "/usr/bin/env python3"
42 CONFIGURE_ARGS= --prefix={{PREFIX}}
43 --mandir={{MANPREFIX}}/man
46 INSTALL_REQ_TOOLCHAIN= yes
50 # enable docbook to build manpages
51 ${REINPLACE_CMD} -e 's|/docbook.sourceforge.net/|/cdn.docbook.org/|' \
52 ${WRKSRC}/buildtools/wafsamba/wafsamba.py \
53 ${WRKSRC}/buildtools/wafsamba/samba_conftests.py
54 ${REINPLACE_CMD} -e 's|python3|python${PYTHON_VER}|g' \
55 ${WRKSRC}/buildtools/wafsamba/samba_python.py \
56 ${WRKSRC}/third_party/waf/waflib/extras/run_py_script.py
59 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/tdb*
60 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libtdb.${LIBEXT}
61 ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/td*.so
63 [FILE:234:descriptions/desc.single]
64 TDB is a Trivial Database. In concept, it is very much like GDBM, and
65 BSD's DB except that it allows multiple simultaneous writers and uses
66 locking internally to keep writers from trampling on each other. TDB is
71 c8058393dfa15f47e11ebd2f1d132693f0b3b3b8bf22d0201bfb305026f88a1b 702836 tdb-1.4.3.tar.gz
74 [FILE:466:manifests/plist.single]
75 %%ONLY-DRAGONFLY%%%%PYTHON_SITELIBDIR%%/tdb.%%SHARED_OBJECT%%
76 %%ONLY-FREEBSD%%%%PYTHON_SITELIBDIR%%/tdb.%%SHARED_OBJECT%%
77 %%ONLY-LINUX%%%%PYTHON_SITELIBDIR%%/tdb.cpython-37m-x86_64-linux-gnu.%%SHARED_OBJECT%%
78 %%PYTHON_SITELIBDIR%%/_tdb_text.py
88 libtdb.so.%%SOVERSION%%
97 [FILE:290:patches/patch-Makefile]
98 --- Makefile.orig 2019-12-10 11:01:31 UTC
101 # simple makefile wrapper to run waf
103 -WAF_BIN=`PATH=buildtools/bin:../../buildtools/bin:$$PATH which waf`
104 +WAF_BIN=buildtools/bin/waf
105 WAF_BINARY=$(PYTHON) $(WAF_BIN)
106 WAF=PYTHONHASHSEED=1 WAF_MAKE=1 $(WAF_BINARY)
110 [FILE:2282:patches/patch-buildtools_wafsamba_samba__autoconf.py]
111 Disable libssp -- it causes segfaults on several platforms, likly some
112 kind of missing os-specific support or consideration.
114 --- buildtools/wafsamba/samba_autoconf.py.orig 2019-12-16 09:14:22 UTC
115 +++ buildtools/wafsamba/samba_autoconf.py
116 @@ -684,44 +684,6 @@ def SAMBA_CONFIG_H(conf, path=None):
117 if not IN_LAUNCH_DIR(conf):
120 - # we need to build real code that can't be optimized away to test
121 - stack_protect_list = ['-fstack-protector-strong', '-fstack-protector']
122 - for stack_protect_flag in stack_protect_list:
123 - flag_supported = conf.check(fragment='''
129 - while (fgets(t, sizeof(t), stdin));
134 - cflags=[ '-Werror', '-Wp,-D_FORTIFY_SOURCE=2', stack_protect_flag],
136 - msg='Checking if compiler accepts %s' % (stack_protect_flag))
138 - conf.ADD_CFLAGS('%s' % (stack_protect_flag))
141 - flag_supported = conf.check(fragment='''
147 - while (fgets(t, sizeof(t), stdin));
152 - cflags=[ '-Werror', '-fstack-clash-protection'],
154 - msg='Checking if compiler accepts -fstack-clash-protection')
156 - conf.ADD_CFLAGS('-fstack-clash-protection')
158 if Options.options.debug:
159 conf.ADD_CFLAGS('-g', testflags=True)