Ravenports generated: 13 Aug 2023 17:55
[ravenports.git] / bucket_5F / tdb
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               tdb
4 VERSION=                1.4.9
5 KEYWORDS=               databases
6 VARIANTS=               standard
7 SDESC[standard]=        Trivial Database
8 HOMEPAGE=               https://tdb.samba.org/
9 CONTACT=                nobody
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.9.tar.gz:main
15 DF_INDEX=               1
16 SPKGS[standard]=        complete
17                         primary
18                         dev
19                         tools
20                         man
21
22 OPTIONS_AVAILABLE=      none
23 OPTIONS_STANDARD=       none
24
25 BUILD_DEPENDS=          docbook-xsl:primary:standard
26 EXRUN[tools]=           tdb:primary:standard
27
28 USES=                   compiler pkgconfig python gettext shebangfix
29 GNOME_COMPONENTS=       libxslt
30
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
36 LICENSE_SCHEME=         solo
37
38 FPC_EQUIVALENT=         databases/tdb
39 SHEBANG_FILES=          python/tdbdump.py
40                         python/tests/simple.py
41                         buildtools/bin/waf
42                         buildtools/examples/run_on_target.py
43 SHEBANG_OLD_PYTHON=     "/usr/bin/env python3"
44
45 MUST_CONFIGURE=         yes
46 CONFIGURE_ARGS=         --prefix={{PREFIX}}
47                         --mandir={{MANPREFIX}}/man
48                         --without-gettext
49
50 INSTALL_REQ_TOOLCHAIN=  yes
51 SOVERSION=              1.4.9
52
53 post-patch:
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
61
62 post-install:
63         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/tdb*
64         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libtdb.${LIBEXT}
65         ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/td*.so
66
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
71 also extremely small.
72
73
74 [FILE:50:descriptions/desc.tools]
75 This package contains the Trivial database tools.
76
77
78 [FILE:95:distinfo]
79 0ac226073e3a2db8648da7af744cb95f50766a52feeb001d558b2b321b74a765       746608 tdb-1.4.9.tar.gz
80
81
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
88 lib/
89  libtdb.so.%%SOMAJOR%%
90  libtdb.so.%%SOVERSION%%
91
92
93 [FILE:49:manifests/plist.dev]
94 include/tdb.h
95 lib/libtdb.so
96 lib/pkgconfig/tdb.pc
97
98
99 [FILE:81:manifests/plist.tools]
100 %%PYTHON_SITELIBDIR%%/_tdb_text.py
101 bin/
102  tdbbackup
103  tdbdump
104  tdbrestore
105  tdbtool
106
107
108 [FILE:77:manifests/plist.man]
109 share/man/man8/
110  tdbbackup.8.gz
111  tdbdump.8.gz
112  tdbrestore.8.gz
113  tdbtool.8.gz
114
115
116 [FILE:290:patches/patch-Makefile]
117 --- Makefile.orig       2020-01-21 14:09:48 UTC
118 +++ Makefile
119 @@ -1,6 +1,6 @@
120  # simple makefile wrapper to run waf
121  
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)
126  
127
128
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.
132
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):
137          return
138  
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='''
143 -                                    #include <stdio.h>
144 -
145 -                                    int main(void)
146 -                                    {
147 -                                        char t[100000];
148 -                                        while (fgets(t, sizeof(t), stdin));
149 -                                        return 0;
150 -                                    }
151 -                                    ''',
152 -                                    execute=0,
153 -                                    cflags=[ '-Werror', '-Wp,-D_FORTIFY_SOURCE=2', stack_protect_flag],
154 -                                    mandatory=False,
155 -                                    msg='Checking if compiler accepts %s' % (stack_protect_flag))
156 -        if flag_supported:
157 -            conf.ADD_CFLAGS('%s' % (stack_protect_flag))
158 -            break
159 -
160 -    flag_supported = conf.check(fragment='''
161 -                                #include <stdio.h>
162 -
163 -                                int main(void)
164 -                                {
165 -                                    char t[100000];
166 -                                    while (fgets(t, sizeof(t), stdin));
167 -                                    return 0;
168 -                                }
169 -                                ''',
170 -                                execute=0,
171 -                                cflags=[ '-Werror', '-fstack-clash-protection'],
172 -                                mandatory=False,
173 -                                msg='Checking if compiler accepts -fstack-clash-protection')
174 -    if flag_supported:
175 -        conf.ADD_CFLAGS('-fstack-clash-protection')
176 -
177      if Options.options.debug:
178          conf.ADD_CFLAGS('-g', testflags=True)
179  
180