Ravenports generated: 15 Jan 2020 17:51
[ravenports.git] / bucket_5F / tdb
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               tdb
4 VERSION=                1.4.3
5 KEYWORDS=               databases
6 VARIANTS=               standard
7 SDESC[standard]=        Trivial Database
8 HOMEPAGE=               https://tdb.samba.org/
9 CONTACT=                Leonid_Bobrov[goleo@disroot.org]
10
11 DOWNLOAD_GROUPS=        main
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
15 DF_INDEX=               1
16 SPKGS[standard]=        single
17
18 OPTIONS_AVAILABLE=      none
19 OPTIONS_STANDARD=       none
20
21 BUILD_DEPENDS=          autoselect-python:single:standard
22                         docbook-xsl:primary:standard
23                         libxslt:single:standard
24
25 USES=                   compiler pkgconfig python shebangfix
26
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
32 LICENSE_SCHEME=         solo
33
34 FPC_EQUIVALENT=         databases/tdb
35 SHEBANG_FILES=          python/tdbdump.py
36                         python/tests/simple.py
37                         buildtools/bin/waf
38                         buildtools/examples/run_on_target.py
39 SHEBANG_OLD_PYTHON=     "/usr/bin/env python3"
40
41 MUST_CONFIGURE=         yes
42 CONFIGURE_ARGS=         --prefix={{PREFIX}}
43                         --mandir={{MANPREFIX}}/man
44                         --without-gettext
45
46 INSTALL_REQ_TOOLCHAIN=  yes
47 SOVERSION=              1.4.3
48
49 post-patch:
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
57
58 post-install:
59         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/tdb*
60         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libtdb.${LIBEXT}
61         ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/td*.so
62
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
67 also extremely small.
68
69
70 [FILE:95:distinfo]
71 c8058393dfa15f47e11ebd2f1d132693f0b3b3b8bf22d0201bfb305026f88a1b       702836 tdb-1.4.3.tar.gz
72
73
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
79 bin/
80  tdbbackup
81  tdbdump
82  tdbrestore
83  tdbtool
84 include/tdb.h
85 lib/
86  libtdb.so
87  libtdb.so.%%SOMAJOR%%
88  libtdb.so.%%SOVERSION%%
89 lib/pkgconfig/tdb.pc
90 share/man/man8/
91  tdbbackup.8.gz
92  tdbdump.8.gz
93  tdbrestore.8.gz
94  tdbtool.8.gz
95
96
97 [FILE:290:patches/patch-Makefile]
98 --- Makefile.orig       2019-12-10 11:01:31 UTC
99 +++ Makefile
100 @@ -1,6 +1,6 @@
101  # simple makefile wrapper to run waf
102  
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)
107  
108
109
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.
113
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):
118          return
119  
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='''
124 -                                    #include <stdio.h>
125 -
126 -                                    int main(void)
127 -                                    {
128 -                                        char t[100000];
129 -                                        while (fgets(t, sizeof(t), stdin));
130 -                                        return 0;
131 -                                    }
132 -                                    ''',
133 -                                    execute=0,
134 -                                    cflags=[ '-Werror', '-Wp,-D_FORTIFY_SOURCE=2', stack_protect_flag],
135 -                                    mandatory=False,
136 -                                    msg='Checking if compiler accepts %s' % (stack_protect_flag))
137 -        if flag_supported:
138 -            conf.ADD_CFLAGS('%s' % (stack_protect_flag))
139 -            break
140 -
141 -    flag_supported = conf.check(fragment='''
142 -                                #include <stdio.h>
143 -
144 -                                int main(void)
145 -                                {
146 -                                    char t[100000];
147 -                                    while (fgets(t, sizeof(t), stdin));
148 -                                    return 0;
149 -                                }
150 -                                ''',
151 -                                execute=0,
152 -                                cflags=[ '-Werror', '-fstack-clash-protection'],
153 -                                mandatory=False,
154 -                                msg='Checking if compiler accepts -fstack-clash-protection')
155 -    if flag_supported:
156 -        conf.ADD_CFLAGS('-fstack-clash-protection')
157 -
158      if Options.options.debug:
159          conf.ADD_CFLAGS('-g', testflags=True)
160  
161