Ravenports generated: 24 Apr 2023 15:00
[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
23 USES=                   compiler pkgconfig python gettext shebangfix
24 GNOME_COMPONENTS=       libxslt
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:649: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-MIDNIGHTBSD%%%%PYTHON_SITELIBDIR%%/tdb.cpython-%%PYTHON_SUFFIX%%.so
78 %%ONLY-NETBSD%%%%PYTHON_SITELIBDIR%%/tdb.cpython-%%PYTHON_SUFFIX%%.so
79 %%PYTHON_SITELIBDIR%%/_tdb_text.py
80 bin/
81  tdbbackup
82  tdbdump
83  tdbrestore
84  tdbtool
85 include/tdb.h
86 lib/
87  libtdb.so
88  libtdb.so.%%SOMAJOR%%
89  libtdb.so.%%SOVERSION%%
90 lib/pkgconfig/tdb.pc
91 share/man/man8/
92  tdbbackup.8.gz
93  tdbdump.8.gz
94  tdbrestore.8.gz
95  tdbtool.8.gz
96
97
98 [FILE:290:patches/patch-Makefile]
99 --- Makefile.orig       2020-01-21 14:09:48 UTC
100 +++ Makefile
101 @@ -1,6 +1,6 @@
102  # simple makefile wrapper to run waf
103  
104 -WAF_BIN=`PATH=buildtools/bin:../../buildtools/bin:$$PATH which waf`
105 +WAF_BIN=buildtools/bin/waf
106  WAF_BINARY=$(PYTHON) $(WAF_BIN)
107  WAF=PYTHONHASHSEED=1 WAF_MAKE=1 $(WAF_BINARY)
108  
109
110
111 [FILE:2282:patches/patch-buildtools_wafsamba_samba__autoconf.py]
112 Disable libssp -- it causes segfaults on several platforms, likly some
113 kind of missing os-specific support or consideration.
114
115 --- buildtools/wafsamba/samba_autoconf.py.orig  2022-04-11 23:57:37 UTC
116 +++ buildtools/wafsamba/samba_autoconf.py
117 @@ -703,44 +703,6 @@ def SAMBA_CONFIG_H(conf, path=None):
118      if not IN_LAUNCH_DIR(conf):
119          return
120  
121 -    # we need to build real code that can't be optimized away to test
122 -    stack_protect_list = ['-fstack-protector-strong', '-fstack-protector']
123 -    for stack_protect_flag in stack_protect_list:
124 -        flag_supported = conf.check(fragment='''
125 -                                    #include <stdio.h>
126 -
127 -                                    int main(void)
128 -                                    {
129 -                                        char t[100000];
130 -                                        while (fgets(t, sizeof(t), stdin));
131 -                                        return 0;
132 -                                    }
133 -                                    ''',
134 -                                    execute=0,
135 -                                    cflags=[ '-Werror', '-Wp,-D_FORTIFY_SOURCE=2', stack_protect_flag],
136 -                                    mandatory=False,
137 -                                    msg='Checking if compiler accepts %s' % (stack_protect_flag))
138 -        if flag_supported:
139 -            conf.ADD_CFLAGS('%s' % (stack_protect_flag))
140 -            break
141 -
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', '-fstack-clash-protection'],
154 -                                mandatory=False,
155 -                                msg='Checking if compiler accepts -fstack-clash-protection')
156 -    if flag_supported:
157 -        conf.ADD_CFLAGS('-fstack-clash-protection')
158 -
159      if Options.options.debug:
160          conf.ADD_CFLAGS('-g', testflags=True)
161  
162