Ravenports generated: 02 Jan 2019 20:21
[ravenports.git] / bucket_6A / db5
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               db5
4 VERSION=                5.3.28
5 REVISION=               3
6 KEYWORDS=               databases java
7 VARIANTS=               standard
8 SDESC[standard]=        Oracle Berkeley DB, revision 5
9 HOMEPAGE=               http://www.oracle.com/us/products/database/berkeley-db/db/
10 CONTACT=                nobody
11
12 DOWNLOAD_GROUPS=        main
13 SITES[main]=            http://download.oracle.com/berkeley-db/
14 DISTFILE[1]=            db-5.3.28.tar.gz:main
15 DIST_SUBDIR=            bdb
16 DF_INDEX=               1
17 SPKGS[standard]=        complete
18                         shared
19                         static
20                         docs
21
22 OPTIONS_AVAILABLE=      CRYPTO TCL
23 OPTIONS_STANDARD=       CRYPTO TCL
24 OPT_ON[all]=            CRYPTO
25
26 USES=                   gmake libtool c++:shared fbsd10fix
27
28 DISTNAME=               db-5.3.28
29
30 LICENSE=                CUSTOM1:shared
31 LICENSE_NAME=           CUSTOM1:"Sleepycat License"
32 LICENSE_FILE=           CUSTOM1:{{WRKSRC}}/LICENSE
33 LICENSE_SCHEME=         solo
34
35 FPC_EQUIVALENT=         databases/db5
36
37 MUST_CONFIGURE=         gnu
38 CONFIGURE_OUTSOURCE=    yes
39 CONFIGURE_WRKSRC=       {{WRKSRC}}/build_unix
40 CONFIGURE_SCRIPT=       dist/configure
41 CONFIGURE_ARGS=         --enable-dbm
42                         --enable-cxx
43                         --enable-sql
44                         --enable-sql_codegen
45                         --disable-stl
46                         --includedir={{PREFIX}}/include/db5
47                         --libdir={{PREFIX}}/lib/db5
48                         --bindir={{PREFIX}}/bin/db5
49
50 MAKE_ARGS=              docdir={{STD_DOCDIR}}
51
52 INSTALL_TARGET=         install_include install_lib install_utilities
53                         install_docs
54 PLIST_SUB=              BDBMAJ=5
55                         BDBVER=5.3
56
57 CFLAGS=                 -fPIC
58 VAR_OPSYS[darwin]=      CONFIGURE_ARGS=lt_cv_apple_cc_single_mod=yes
59 VAR_ARCH[aarch64]=      CONFIGURE_ARGS=--enable-posixmutexes
60                         CONFIGURE_ARGS=--with-mutex=POSIX/pthreads
61 VAR_ARCH[i386]=         CONFIGURE_ARGS=--with-mutex=x86/gcc-assembly
62
63 [TCL].CONFIGURE_ARGS_OFF=               --disable-tcl
64 [TCL].CONFIGURE_ARGS_ON=                --with-tcl={{TCL_LIBDIR}}
65
66 [CRYPTO].DESCRIPTION=                   Cryptography support
67 [CRYPTO].CONFIGURE_WITH_BOTH=           cryptography=yes
68
69 post-install-TCL-OFF:
70 .for i in api_reference/TCL
71         ${RM} -r ${STAGEDIR}${STD_DOCDIR}/${i}
72 .endfor
73
74 post-patch:
75         ${REINPLACE_CMD} -e '/^DOCLIST/{s/csharp//;}' \
76                 ${WRKSRC}/dist/Makefile.in
77         ${REINPLACE_CMD} -Ee 's/([^[:alnum:]])atomic_init([^[:alnum:]])/\1db_atomic_init\2/g' \
78                 ${WRKSRC}/src/mp/mp_fget.c \
79                 ${WRKSRC}/src/mp/mp_mvcc.c \
80                 ${WRKSRC}/src/mp/mp_region.c \
81                 ${WRKSRC}/src/mutex/mut_*
82
83 post-install-TCL-ON:
84         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/db5/libdb_tcl-5.3.${LIBEXT}
85 .if "${OPSYS}" == "Darwin"
86         ${LN} -s -f db5/libdb_tcl-5.3.0.0.0.dylib \
87                 ${STAGEDIR}${PREFIX}/lib/libdb_tcl-5.3.0.dylib
88         ${LN} -s -f db5/libdb_tcl-5.3.0.0.0.dylib \
89                 ${STAGEDIR}${PREFIX}/lib/libdb_tcl-5.dylib
90         ${LN} -s -f db5/libdb_tcl-5.3.0.0.0.dylib \
91                 ${STAGEDIR}${PREFIX}/lib/libdb_tcl-5.3.dylib
92         ${LN} -s -f db5/libdb_tcl-5.3.0.0.0.dylib \
93                 ${STAGEDIR}${PREFIX}/lib/libdb_tcl-5.0.dylib
94 .else
95         ${LN} -s -f db5/libdb_tcl-5.3.so.0.0.0 \
96                 ${STAGEDIR}${PREFIX}/lib/libdb_tcl-5.3.so.0
97         ${LN} -s -f db5/libdb_tcl-5.3.so.0.0.0 \
98                 ${STAGEDIR}${PREFIX}/lib/libdb_tcl-5.so
99         ${LN} -s -f db5/libdb_tcl-5.3.so.0.0.0 \
100                 ${STAGEDIR}${PREFIX}/lib/libdb_tcl-5.3.so
101         ${LN} -s -f db5/libdb_tcl-5.3.so.0.0.0 \
102                 ${STAGEDIR}${PREFIX}/lib/libdb_tcl-5.so.0
103 .endif
104         ${LN} -s -f libdb_tcl-5.3.a \
105                 ${STAGEDIR}${PREFIX}/lib/db5/libdb_tcl.a
106         echo "package ifneeded Db_tcl 5.3 \
107               [list load [file join $$dir libdb_tcl-5.3.so]] \
108              " > ${STAGEDIR}${PREFIX}/lib/db5/pkgIndex.tcl
109
110 post-install:
111 .for i in libdb libdb_cxx libdb_sql
112         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/db5/${i}-5.3.${LIBEXT}
113 .if "${.MAKE.OS.NAME}" == "Darwin"
114         ${LN} -s -f db5/${i}-5.3.0.0.0.dylib \
115                 ${STAGEDIR}${PREFIX}/lib/${i}-5.3.0.dylib
116         ${LN} -s -f db5/${i}-5.3.0.0.0.dylib \
117                 ${STAGEDIR}${PREFIX}/lib/${i}-5.3.dylib
118         ${LN} -s -f db5/${i}-5.3.0.0.0.dylib \
119                 ${STAGEDIR}${PREFIX}/lib/${i}-5.0.dylib
120         ${LN} -s -f db5/${i}-5.3.0.0.0.dylib \
121                 ${STAGEDIR}${PREFIX}/lib/${i}-5.dylib
122 .else
123         ${LN} -s -f db5/${i}-5.3.so.0.0.0 \
124                 ${STAGEDIR}${PREFIX}/lib/${i}-5.3.so.0
125         ${LN} -s -f db5/${i}-5.3.so.0.0.0 \
126                 ${STAGEDIR}${PREFIX}/lib/${i}-5.3.so
127         ${LN} -s -f db5/${i}-5.3.so.0.0.0 \
128                 ${STAGEDIR}${PREFIX}/lib/${i}-5.so.0
129         ${LN} -s -f db5/${i}-5.3.so.0.0.0 \
130                 ${STAGEDIR}${PREFIX}/lib/${i}-5.so
131 .endif
132         ${LN} -s -f ${i}-5.3.a ${STAGEDIR}${PREFIX}/lib/db5/${i}.a
133         ${LN} -s -f ${i}-5.3.a ${STAGEDIR}${PREFIX}/lib/db5/${i}-5.a
134 .endfor
135         cd ${STAGEDIR}${PREFIX}/bin/db5; \
136         for i in *; do ${LN} -s -f db5/$$i ../$$i-5.3 ; \
137                        ${LN} -s -f db5/$$i ../$$i-5 ; done
138         ${RM} -r ${STAGEDIR}${STD_DOCDIR}/java
139 .for i in gsg gsg_db_rep gsg_txn
140         ${RM} -r ${STAGEDIR}${STD_DOCDIR}/${i}/JAVA
141 .endfor
142
143 post-patch-sunos:
144         ${REINPLACE_CMD} -e '/_XOPEN_SOURCE/ s/500/600/' \
145                 ${WRKSRC}/util/db_sql_codegen/sqlite/sqliteInt.h
146
147 [FILE:296:descriptions/desc.shared]
148 Oracle Berkeley DB is a family of open source embeddable databases
149 that allows developers to incorporate within their applications a
150 fast, scalable, transactional database engine with industrial grade
151 reliability and availability.
152
153 This package contains the executables and the shared libraries.
154
155
156 [FILE:604:descriptions/desc.static]
157 Oracle Berkeley DB is a family of open source embeddable databases
158 that allows developers to incorporate within their applications a
159 fast, scalable, transactional database engine with industrial grade
160 reliability and availability. As a result, customers and end-users
161 will experience an application that simply works, reliably manages
162 data, can scale under extreme load, but requires no ongoing database
163 administration. As a developer, you can focus on your application and
164 be confident that Oracle Berkeley DB will manage your persistence
165 needs.
166
167 This package contains the headers and static libraries.
168
169
170 [FILE:99:distinfo]
171 e0a992d740709892e81f9d93f06daf305cf73fb81b545afe72478043172c3628     35090431 bdb/db-5.3.28.tar.gz
172
173
174 [FILE:1595:manifests/plist.shared]
175 bin/
176  db_archive-%%BDBMAJ%%
177  db_archive-%%BDBVER%%
178  db_checkpoint-%%BDBMAJ%%
179  db_checkpoint-%%BDBVER%%
180  db_deadlock-%%BDBMAJ%%
181  db_deadlock-%%BDBVER%%
182  db_dump-%%BDBMAJ%%
183  db_dump-%%BDBVER%%
184  db_hotbackup-%%BDBMAJ%%
185  db_hotbackup-%%BDBVER%%
186  db_load-%%BDBMAJ%%
187  db_load-%%BDBVER%%
188  db_log_verify-%%BDBMAJ%%
189  db_log_verify-%%BDBVER%%
190  db_printlog-%%BDBMAJ%%
191  db_printlog-%%BDBVER%%
192  db_recover-%%BDBMAJ%%
193  db_recover-%%BDBVER%%
194  db_replicate-%%BDBMAJ%%
195  db_replicate-%%BDBVER%%
196  db_sql_codegen-%%BDBMAJ%%
197  db_sql_codegen-%%BDBVER%%
198  db_stat-%%BDBMAJ%%
199  db_stat-%%BDBVER%%
200  db_tuner-%%BDBMAJ%%
201  db_tuner-%%BDBVER%%
202  db_upgrade-%%BDBMAJ%%
203  db_upgrade-%%BDBVER%%
204  db_verify-%%BDBMAJ%%
205  db_verify-%%BDBVER%%
206  dbsql-%%BDBMAJ%%
207  dbsql-%%BDBVER%%
208 bin/db5/
209  db_archive
210  db_checkpoint
211  db_deadlock
212  db_dump
213  db_hotbackup
214  db_load
215  db_log_verify
216  db_printlog
217  db_recover
218  db_replicate
219  db_sql_codegen
220  db_stat
221  db_tuner
222  db_upgrade
223  db_verify
224  dbsql
225 lib/
226  libdb-%%BDBMAJ%%.so
227  libdb-%%BDBMAJ%%.so.0
228  libdb-%%BDBVER%%.so
229  libdb-%%BDBVER%%.so.0
230  libdb_cxx-%%BDBMAJ%%.so
231  libdb_cxx-%%BDBMAJ%%.so.0
232  libdb_cxx-%%BDBVER%%.so
233  libdb_cxx-%%BDBVER%%.so.0
234  libdb_sql-%%BDBMAJ%%.so
235  libdb_sql-%%BDBMAJ%%.so.0
236  libdb_sql-%%BDBVER%%.so
237  libdb_sql-%%BDBVER%%.so.0
238 lib/db5/
239  libdb-%%BDBMAJ%%.so
240  libdb-%%BDBVER%%.so
241  libdb-%%BDBVER%%.so.0
242  libdb-%%BDBVER%%.so.0.0.0
243  libdb.so
244  libdb_cxx-%%BDBMAJ%%.so
245  libdb_cxx-%%BDBVER%%.so
246  libdb_cxx-%%BDBVER%%.so.0
247  libdb_cxx-%%BDBVER%%.so.0.0.0
248  libdb_cxx.so
249  libdb_sql-%%BDBMAJ%%.so
250  libdb_sql-%%BDBVER%%.so
251  libdb_sql-%%BDBVER%%.so.0
252  libdb_sql-%%BDBVER%%.so.0.0.0
253  libdb_sql.so
254
255
256 [FILE:218:manifests/plist.static]
257 include/db5/
258  db.h
259  db_cxx.h
260  dbsql.h
261 lib/db5/
262  libdb-%%BDBMAJ%%.a
263  libdb-%%BDBVER%%.a
264  libdb.a
265  libdb_cxx-%%BDBMAJ%%.a
266  libdb_cxx-%%BDBVER%%.a
267  libdb_cxx.a
268  libdb_sql-%%BDBMAJ%%.a
269  libdb_sql-%%BDBVER%%.a
270  libdb_sql.a
271
272
273 [FILE:1421:patches/patch-dist_configure]
274 --- dist/configure.orig 2013-09-09 15:35:02 UTC
275 +++ dist/configure
276 @@ -17712,10 +17712,10 @@ LIBTOOL="./libtool"
277  INSTALLER="\$(LIBTOOL) --mode=install cp -p"
278  
279  MAKEFILE_CC="\$(LIBTOOL) --mode=compile ${MAKEFILE_CC}"
280 -MAKEFILE_SOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CCLINK} -avoid-version"
281 +MAKEFILE_SOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CCLINK} -version-info 0:0:0"
282  MAKEFILE_CCLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CCLINK}"
283  MAKEFILE_CXX="\$(LIBTOOL) --mode=compile ${MAKEFILE_CXX}"
284 -MAKEFILE_XSOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CXXLINK} -avoid-version"
285 +MAKEFILE_XSOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CXXLINK} -version-info 0:0:0"
286  MAKEFILE_CXXLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CXXLINK}"
287  
288  
289 @@ -27322,7 +27322,7 @@ esac
290  # !!! END COPIED from autoconf distribution
291  
292  sqlite_dir=$srcdir/../lang/sql/sqlite
293 -(cd sql && eval "\$SHELL ../$sqlite_dir/configure --disable-option-checking $ac_sub_configure_args CPPFLAGS=\"-I.. $CPPFLAGS\" --enable-amalgamation=$db_cv_sql_amalgamation --enable-readline=$with_readline" && cat build_config.h >> config.h) || exit 1
294 +(cd sql && eval "\$SHELL $sqlite_dir/configure --disable-option-checking $ac_sub_configure_args CPPFLAGS=\"-I.. $CPPFLAGS\" --enable-amalgamation=$db_cv_sql_amalgamation --enable-readline=$with_readline" && cat build_config.h >> config.h) || exit 1
295  
296  # Configure JDBC if --enable-jdbc
297  if test "$db_cv_jdbc" != "no"; then
298
299
300 [FILE:1054:patches/patch-lang_tcl_tcl__db.c]
301 --- lang/tcl/tcl_db.c.orig      2013-09-09 15:35:07 UTC
302 +++ lang/tcl/tcl_db.c
303 @@ -3708,9 +3708,10 @@ tcl_DbGetFlags(interp, objc, objv, dbp)
304                 for (i = 0; db_flags[i].flag != 0; i++)
305                         if (LF_ISSET(db_flags[i].flag)) {
306                                 if (strlen(buf) > 0)
307 -                                       (void)strncat(buf, " ", sizeof(buf));
308 -                               (void)strncat(
309 -                                   buf, db_flags[i].arg, sizeof(buf));
310 +                                       (void)strncat(buf, " ",
311 +                                           sizeof(buf) - (strlen(buf) + 1));
312 +                               (void)strncat(buf, db_flags[i].arg,
313 +                                   sizeof(buf) - (strlen(buf) + 1));
314                         }
315  
316                 res = NewStringObj(buf, strlen(buf));
317 @@ -3764,9 +3765,10 @@ tcl_DbGetOpenFlags(interp, objc, objv, d
318                 for (i = 0; open_flags[i].flag != 0; i++)
319                         if (LF_ISSET(open_flags[i].flag)) {
320                                 if (strlen(buf) > 0)
321 -                                       (void)strncat(buf, " ", sizeof(buf));
322 -                               (void)strncat(
323 -                                   buf, open_flags[i].arg, sizeof(buf));
324 +                                       (void)strncat(buf, " ",
325 +                                           sizeof(buf) - (strlen(buf) + 1));
326 +                               (void)strncat(buf, open_flags[i].arg,
327 +                                   sizeof(buf) - (strlen(buf) + 1));
328                         }
329  
330                 res = NewStringObj(buf, strlen(buf));
331
332
333 [FILE:1571:patches/patch-lang_tcl_tcl__env.c]
334 --- lang/tcl/tcl_env.c.orig     2013-09-09 15:35:07 UTC
335 +++ lang/tcl/tcl_env.c
336 @@ -2864,9 +2864,10 @@ env_GetFlags(interp, objc, objv, dbenv)
337                 for (i = 0; open_flags[i].flag != 0; i++)
338                         if (LF_ISSET(open_flags[i].flag)) {
339                                 if (strlen(buf) > 0)
340 -                                       (void)strncat(buf, " ", sizeof(buf));
341 -                               (void)strncat(
342 -                                   buf, open_flags[i].arg, sizeof(buf));
343 +                                       (void)strncat(buf, " ",
344 +                                           sizeof(buf) - (strlen(buf) + 1));
345 +                               (void)strncat(buf, open_flags[i].arg,
346 +                                   sizeof(buf) - (strlen(buf) + 1));
347                         }
348  
349                 res = NewStringObj(buf, strlen(buf));
350 @@ -2930,9 +2931,10 @@ env_GetOpenFlag(interp, objc, objv, dben
351                 for (i = 0; open_flags[i].flag != 0; i++)
352                         if (LF_ISSET(open_flags[i].flag)) {
353                                 if (strlen(buf) > 0)
354 -                                       (void)strncat(buf, " ", sizeof(buf));
355 -                               (void)strncat(
356 -                                   buf, open_flags[i].arg, sizeof(buf));
357 +                                       (void)strncat(buf, " ",
358 +                                           sizeof(buf) - (strlen(buf) + 1));
359 +                               (void)strncat(buf, open_flags[i].arg,
360 +                                   sizeof(buf) - (strlen(buf) + 1));
361                         }
362  
363                 res = NewStringObj(buf, strlen(buf));
364 @@ -2982,9 +2984,10 @@ tcl_EnvGetEncryptFlags(interp, objc, obj
365                 for (i = 0; encrypt_flags[i].flag != 0; i++)
366                         if (LF_ISSET(encrypt_flags[i].flag)) {
367                                 if (strlen(buf) > 0)
368 -                                       (void)strncat(buf, " ", sizeof(buf));
369 -                               (void)strncat(
370 -                                   buf, encrypt_flags[i].arg, sizeof(buf));
371 +                                       (void)strncat(buf, " ",
372 +                                           sizeof(buf) - (strlen(buf) + 1));
373 +                               (void)strncat(buf, encrypt_flags[i].arg,
374 +                                   sizeof(buf) - (strlen(buf) + 1));
375                         }
376  
377                 res = NewStringObj(buf, strlen(buf));
378
379
380 [FILE:564:patches/patch-lang_tcl_tcl__seq.c]
381 --- lang/tcl/tcl_seq.c.orig     2013-09-09 15:35:07 UTC
382 +++ lang/tcl/tcl_seq.c
383 @@ -555,9 +555,10 @@ tcl_SeqGetFlags(interp, objc, objv, seq)
384                 for (i = 0; seq_flags[i].flag != 0; i++)
385                         if (LF_ISSET(seq_flags[i].flag)) {
386                                 if (strlen(buf) > 0)
387 -                                       (void)strncat(buf, " ", sizeof(buf));
388 -                               (void)strncat(
389 -                                   buf, seq_flags[i].arg, sizeof(buf));
390 +                                       (void)strncat(buf, " ",
391 +                                           sizeof(buf) - (strlen(buf) + 1));
392 +                               (void)strncat(buf, seq_flags[i].arg,
393 +                                   sizeof(buf) - (strlen(buf) + 1));
394                         }
395  
396                 res = NewStringObj(buf, strlen(buf));
397
398
399 [FILE:1465:patches/patch-src_dbinc_atomic.h]
400 --- src/dbinc/atomic.h.orig     2013-09-09 15:35:08 UTC
401 +++ src/dbinc/atomic.h
402 @@ -70,7 +70,7 @@ typedef struct {
403   * These have no memory barriers; the caller must include them when necessary.
404   */
405  #define        atomic_read(p)          ((p)->value)
406 -#define        atomic_init(p, val)     ((p)->value = (val))
407 +#define        db_atomic_init(p, val)  ((p)->value = (val))
408  
409  #ifdef HAVE_ATOMIC_SUPPORT
410  
411 @@ -144,7 +144,7 @@ typedef LONG volatile *interlocked_val;
412  #define        atomic_inc(env, p)      __atomic_inc(p)
413  #define        atomic_dec(env, p)      __atomic_dec(p)
414  #define        atomic_compare_exchange(env, p, o, n)   \
415 -       __atomic_compare_exchange((p), (o), (n))
416 +       __atomic_compare_exchange_db((p), (o), (n))
417  static inline int __atomic_inc(db_atomic_t *p)
418  {
419         int     temp;
420 @@ -176,7 +176,7 @@ static inline int __atomic_dec(db_atomic
421   * http://gcc.gnu.org/onlinedocs/gcc-4.1.0/gcc/Atomic-Builtins.html
422   * which configure could be changed to use.
423   */
424 -static inline int __atomic_compare_exchange(
425 +static inline int __atomic_compare_exchange_db(
426         db_atomic_t *p, atomic_value_t oldval, atomic_value_t newval)
427  {
428         atomic_value_t was;
429 @@ -206,7 +206,7 @@ static inline int __atomic_compare_excha
430  #define        atomic_dec(env, p)      (--(p)->value)
431  #define        atomic_compare_exchange(env, p, oldval, newval)         \
432         (DB_ASSERT(env, atomic_read(p) == (oldval)),            \
433 -       atomic_init(p, (newval)), 1)
434 +       db_atomic_init(p, (newval)), 1)
435  #else
436  #define atomic_inc(env, p)     __atomic_inc(env, p)
437  #define atomic_dec(env, p)     __atomic_dec(env, p)
438
439
440 [FILE:247:patches/patch-src_dbinc_mutex__int.h]
441 --- src/dbinc/mutex_int.h.orig  2013-09-09 15:35:08 UTC
442 +++ src/dbinc/mutex_int.h
443 @@ -596,7 +596,7 @@ MUTEX_SET(int *tsl)  {
444          : "=&r" (__r), "+r" (tsl)
445          :
446          : "cr0", "memory");
447 -        return (int)tsl;
448 +        return (tsl != 0);
449  }
450  
451  static inline int
452
453
454 [FILE:341:patches/patch-src_heap_heap__verify.c]
455 --- src/heap/heap_verify.c.orig 2013-09-09 15:35:08 UTC
456 +++ src/heap/heap_verify.c
457 @@ -122,7 +122,7 @@ __heap_vrfy(dbp, vdp, h, pgno, flags)
458  {
459         HEAPHDR *hdr;
460         int cnt, i, j, ret;
461 -       db_indx_t *offsets, *offtbl, end;
462 +       db_indx_t *offsets = NULL, *offtbl, end;
463  
464         if ((ret = __db_vrfy_datapage(dbp, vdp, h, pgno, flags)) != 0)
465                 goto err;
466