Ravenports generated: 08 Feb 2023 00:14
[ravenports.git] / bucket_5F / tdb
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               tdb
4 VERSION=                1.4.8
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.8.tar.gz:main
15 DF_INDEX=               1
16 SPKGS[standard]=        single
17
18 OPTIONS_AVAILABLE=      none
19 OPTIONS_STANDARD=       none
20
21 BUILD_DEPENDS=          docbook-xsl:primary:standard
22                         libxslt:single:standard
23
24 USES=                   compiler pkgconfig python gettext shebangfix
25
26 LICENSE=                LGPL3+:single
27 LICENSE_TERMS=          single:{{WRKSRC}}/TERMS
28 LICENSE_FILE=           LGPL3+:stock
29 LICENSE_AWK=            TERMS:"^\#include"
30 LICENSE_SOURCE=         TERMS:{{WRKSRC}}/pytdb.c
31 LICENSE_SCHEME=         solo
32
33 FPC_EQUIVALENT=         databases/tdb
34 SHEBANG_FILES=          python/tdbdump.py
35                         python/tests/simple.py
36                         buildtools/bin/waf
37                         buildtools/examples/run_on_target.py
38 SHEBANG_OLD_PYTHON=     "/usr/bin/env python3"
39
40 MUST_CONFIGURE=         yes
41 CONFIGURE_ARGS=         --prefix={{PREFIX}}
42                         --mandir={{MANPREFIX}}/man
43                         --without-gettext
44
45 INSTALL_REQ_TOOLCHAIN=  yes
46 SOVERSION=              1.4.8
47
48 post-patch:
49         # enable docbook to build manpages
50         ${REINPLACE_CMD} -e "s|http://docbook.sourceforge.net/release/xsl/current/|file://${LOCALBASE}/share/xsl/docbook/|" \
51                 ${WRKSRC}/buildtools/wafsamba/wafsamba.py \
52                 ${WRKSRC}/buildtools/wafsamba/samba_conftests.py
53         ${REINPLACE_CMD} -e 's|python3|python${PYTHON_VER}|g' \
54                 ${WRKSRC}/buildtools/wafsamba/samba_python.py \
55                 ${WRKSRC}/third_party/waf/waflib/extras/run_py_script.py
56
57 post-install:
58         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/tdb*
59         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libtdb.${LIBEXT}
60         ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/td*.so
61
62 [FILE:234:descriptions/desc.single]
63 TDB is a Trivial Database. In concept, it is very much like GDBM, and
64 BSD's DB except that it allows multiple simultaneous writers and uses
65 locking internally to keep writers from trampling on each other. TDB is
66 also extremely small.
67
68
69 [FILE:95:distinfo]
70 8434c9c857d13ce3fa8466f75601f25c3693676b36919f159e0ad6121baf5ce8       742791 tdb-1.4.8.tar.gz
71
72
73 [FILE:574:manifests/plist.single]
74 %%ONLY-DRAGONFLY%%%%PYTHON_SITELIBDIR%%/tdb.cpython-%%PYTHON_SUFFIX%%.so
75 %%ONLY-FREEBSD%%%%PYTHON_SITELIBDIR%%/tdb.cpython-%%PYTHON_SUFFIX%%.so
76 %%ONLY-LINUX%%%%PYTHON_SITELIBDIR%%/tdb.cpython-%%PYTHON_SUFFIX%%%%PYTHON_ABIVER%%-x86_64-linux-gnu.so
77 %%ONLY-NETBSD%%%%PYTHON_SITELIBDIR%%/tdb.cpython-%%PYTHON_SUFFIX%%.so
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       2020-01-21 14:09:48 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  2022-04-11 23:57:37 UTC
115 +++ buildtools/wafsamba/samba_autoconf.py
116 @@ -703,44 +703,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