1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
6 KEYWORDS= databases java
8 SDESC[standard]= Oracle Berkeley DB, revision 5
9 HOMEPAGE= http://www.oracle.com/us/products/database/berkeley-db/db/
13 SITES[main]= https://download.oracle.com/berkeley-db/
14 DISTFILE[1]= db-5.3.28.tar.gz:main
17 SPKGS[standard]= complete
22 OPTIONS_AVAILABLE= CRYPTO TCL
23 OPTIONS_STANDARD= CRYPTO TCL
26 USES= cpe gmake libtool c++:shared fbsd10fix
30 LICENSE= CUSTOM1:shared
31 LICENSE_NAME= CUSTOM1:"Sleepycat License"
32 LICENSE_FILE= CUSTOM1:{{WRKSRC}}/LICENSE
35 CPE_PRODUCT= berkeley_db
37 FPC_EQUIVALENT= databases/db5
40 CONFIGURE_OUTSOURCE= yes
41 CONFIGURE_WRKSRC= {{WRKSRC}}/build_unix
42 CONFIGURE_SCRIPT= dist/configure
43 CONFIGURE_ARGS= --enable-dbm
48 --includedir={{PREFIX}}/include/db5
49 --libdir={{PREFIX}}/lib/db5
50 --bindir={{PREFIX}}/bin/db5
52 MAKE_ARGS= docdir={{STD_DOCDIR}}
54 INSTALL_TARGET= install_include install_lib install_utilities
60 VAR_OPSYS[darwin]= CONFIGURE_ARGS=lt_cv_apple_cc_single_mod=yes
61 VAR_ARCH[aarch64]= CONFIGURE_ARGS=--enable-posixmutexes
62 CONFIGURE_ARGS=--with-mutex=POSIX/pthreads
63 VAR_ARCH[i386]= CONFIGURE_ARGS=--with-mutex=x86/gcc-assembly
65 [TCL].CONFIGURE_ARGS_OFF= --disable-tcl
66 [TCL].CONFIGURE_ARGS_ON= --with-tcl={{TCL_LIBDIR}}
68 [CRYPTO].DESCRIPTION= Cryptography support
69 [CRYPTO].CONFIGURE_WITH_BOTH= cryptography=yes
72 .for i in api_reference/TCL
73 ${RM} -r ${STAGEDIR}${STD_DOCDIR}/${i}
77 ${REINPLACE_CMD} -e '/^DOCLIST/{s/csharp//;}' \
78 ${WRKSRC}/dist/Makefile.in
79 ${REINPLACE_CMD} -Ee 's/([^[:alnum:]])atomic_init([^[:alnum:]])/\1db_atomic_init\2/g' \
80 ${WRKSRC}/src/mp/mp_fget.c \
81 ${WRKSRC}/src/mp/mp_mvcc.c \
82 ${WRKSRC}/src/mp/mp_region.c \
83 ${WRKSRC}/src/mutex/mut_*
86 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/db5/libdb_tcl-5.3.${LIBEXT}
87 .if "${OPSYS}" == "Darwin"
88 ${LN} -s -f db5/libdb_tcl-5.3.0.0.0.dylib \
89 ${STAGEDIR}${PREFIX}/lib/libdb_tcl-5.3.0.dylib
90 ${LN} -s -f db5/libdb_tcl-5.3.0.0.0.dylib \
91 ${STAGEDIR}${PREFIX}/lib/libdb_tcl-5.dylib
92 ${LN} -s -f db5/libdb_tcl-5.3.0.0.0.dylib \
93 ${STAGEDIR}${PREFIX}/lib/libdb_tcl-5.3.dylib
94 ${LN} -s -f db5/libdb_tcl-5.3.0.0.0.dylib \
95 ${STAGEDIR}${PREFIX}/lib/libdb_tcl-5.0.dylib
97 ${LN} -s -f db5/libdb_tcl-5.3.so.0.0.0 \
98 ${STAGEDIR}${PREFIX}/lib/libdb_tcl-5.3.so.0
99 ${LN} -s -f db5/libdb_tcl-5.3.so.0.0.0 \
100 ${STAGEDIR}${PREFIX}/lib/libdb_tcl-5.so
101 ${LN} -s -f db5/libdb_tcl-5.3.so.0.0.0 \
102 ${STAGEDIR}${PREFIX}/lib/libdb_tcl-5.3.so
103 ${LN} -s -f db5/libdb_tcl-5.3.so.0.0.0 \
104 ${STAGEDIR}${PREFIX}/lib/libdb_tcl-5.so.0
106 ${LN} -s -f libdb_tcl-5.3.a \
107 ${STAGEDIR}${PREFIX}/lib/db5/libdb_tcl.a
108 echo "package ifneeded Db_tcl 5.3 \
109 [list load [file join $$dir libdb_tcl-5.3.so]] \
110 " > ${STAGEDIR}${PREFIX}/lib/db5/pkgIndex.tcl
113 .for i in libdb libdb_cxx libdb_sql
114 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/db5/${i}-5.3.${LIBEXT}
115 .if "${.MAKE.OS.NAME}" == "Darwin"
116 ${LN} -s -f db5/${i}-5.3.0.0.0.dylib \
117 ${STAGEDIR}${PREFIX}/lib/${i}-5.3.0.dylib
118 ${LN} -s -f db5/${i}-5.3.0.0.0.dylib \
119 ${STAGEDIR}${PREFIX}/lib/${i}-5.3.dylib
120 ${LN} -s -f db5/${i}-5.3.0.0.0.dylib \
121 ${STAGEDIR}${PREFIX}/lib/${i}-5.0.dylib
122 ${LN} -s -f db5/${i}-5.3.0.0.0.dylib \
123 ${STAGEDIR}${PREFIX}/lib/${i}-5.dylib
125 ${LN} -s -f db5/${i}-5.3.so.0.0.0 \
126 ${STAGEDIR}${PREFIX}/lib/${i}-5.3.so.0
127 ${LN} -s -f db5/${i}-5.3.so.0.0.0 \
128 ${STAGEDIR}${PREFIX}/lib/${i}-5.3.so
129 ${LN} -s -f db5/${i}-5.3.so.0.0.0 \
130 ${STAGEDIR}${PREFIX}/lib/${i}-5.so.0
131 ${LN} -s -f db5/${i}-5.3.so.0.0.0 \
132 ${STAGEDIR}${PREFIX}/lib/${i}-5.so
134 ${RM} ${STAGEDIR}${PREFIX}/lib/db5/${i}.a
135 ${LN} -s ${i}-5.3.a ${STAGEDIR}${PREFIX}/lib/db5/${i}.a
136 ${LN} -s ${i}-5.3.a ${STAGEDIR}${PREFIX}/lib/db5/${i}-5.a
138 cd ${STAGEDIR}${PREFIX}/bin/db5; \
139 for i in *; do ${LN} -s -f db5/$$i ../$$i-5.3 ; \
140 ${LN} -s -f db5/$$i ../$$i-5 ; done
141 ${RM} -r ${STAGEDIR}${STD_DOCDIR}/java
142 .for i in gsg gsg_db_rep gsg_txn
143 ${RM} -r ${STAGEDIR}${STD_DOCDIR}/${i}/JAVA
147 ${REINPLACE_CMD} -e '/_XOPEN_SOURCE/ s/500/600/' \
148 ${WRKSRC}/util/db_sql_codegen/sqlite/sqliteInt.h
150 [FILE:296:descriptions/desc.shared]
151 Oracle Berkeley DB is a family of open source embeddable databases
152 that allows developers to incorporate within their applications a
153 fast, scalable, transactional database engine with industrial grade
154 reliability and availability.
156 This package contains the executables and the shared libraries.
159 [FILE:604:descriptions/desc.static]
160 Oracle Berkeley DB is a family of open source embeddable databases
161 that allows developers to incorporate within their applications a
162 fast, scalable, transactional database engine with industrial grade
163 reliability and availability. As a result, customers and end-users
164 will experience an application that simply works, reliably manages
165 data, can scale under extreme load, but requires no ongoing database
166 administration. As a developer, you can focus on your application and
167 be confident that Oracle Berkeley DB will manage your persistence
170 This package contains the headers and static libraries.
174 e0a992d740709892e81f9d93f06daf305cf73fb81b545afe72478043172c3628 35090431 bdb/db-5.3.28.tar.gz
177 [FILE:1595:manifests/plist.shared]
179 db_archive-%%BDBMAJ%%
180 db_archive-%%BDBVER%%
181 db_checkpoint-%%BDBMAJ%%
182 db_checkpoint-%%BDBVER%%
183 db_deadlock-%%BDBMAJ%%
184 db_deadlock-%%BDBVER%%
187 db_hotbackup-%%BDBMAJ%%
188 db_hotbackup-%%BDBVER%%
191 db_log_verify-%%BDBMAJ%%
192 db_log_verify-%%BDBVER%%
193 db_printlog-%%BDBMAJ%%
194 db_printlog-%%BDBVER%%
195 db_recover-%%BDBMAJ%%
196 db_recover-%%BDBVER%%
197 db_replicate-%%BDBMAJ%%
198 db_replicate-%%BDBVER%%
199 db_sql_codegen-%%BDBMAJ%%
200 db_sql_codegen-%%BDBVER%%
205 db_upgrade-%%BDBMAJ%%
206 db_upgrade-%%BDBVER%%
230 libdb-%%BDBMAJ%%.so.0
232 libdb-%%BDBVER%%.so.0
233 libdb_cxx-%%BDBMAJ%%.so
234 libdb_cxx-%%BDBMAJ%%.so.0
235 libdb_cxx-%%BDBVER%%.so
236 libdb_cxx-%%BDBVER%%.so.0
237 libdb_sql-%%BDBMAJ%%.so
238 libdb_sql-%%BDBMAJ%%.so.0
239 libdb_sql-%%BDBVER%%.so
240 libdb_sql-%%BDBVER%%.so.0
244 libdb-%%BDBVER%%.so.0
245 libdb-%%BDBVER%%.so.0.0.0
247 libdb_cxx-%%BDBMAJ%%.so
248 libdb_cxx-%%BDBVER%%.so
249 libdb_cxx-%%BDBVER%%.so.0
250 libdb_cxx-%%BDBVER%%.so.0.0.0
252 libdb_sql-%%BDBMAJ%%.so
253 libdb_sql-%%BDBVER%%.so
254 libdb_sql-%%BDBVER%%.so.0
255 libdb_sql-%%BDBVER%%.so.0.0.0
259 [FILE:218:manifests/plist.static]
268 libdb_cxx-%%BDBMAJ%%.a
269 libdb_cxx-%%BDBVER%%.a
271 libdb_sql-%%BDBMAJ%%.a
272 libdb_sql-%%BDBVER%%.a
276 [FILE:1421:patches/patch-dist_configure]
277 --- dist/configure.orig 2013-09-09 15:35:02 UTC
279 @@ -17712,10 +17712,10 @@ LIBTOOL="./libtool"
280 INSTALLER="\$(LIBTOOL) --mode=install cp -p"
282 MAKEFILE_CC="\$(LIBTOOL) --mode=compile ${MAKEFILE_CC}"
283 -MAKEFILE_SOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CCLINK} -avoid-version"
284 +MAKEFILE_SOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CCLINK} -version-info 0:0:0"
285 MAKEFILE_CCLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CCLINK}"
286 MAKEFILE_CXX="\$(LIBTOOL) --mode=compile ${MAKEFILE_CXX}"
287 -MAKEFILE_XSOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CXXLINK} -avoid-version"
288 +MAKEFILE_XSOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CXXLINK} -version-info 0:0:0"
289 MAKEFILE_CXXLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CXXLINK}"
292 @@ -27322,7 +27322,7 @@ esac
293 # !!! END COPIED from autoconf distribution
295 sqlite_dir=$srcdir/../lang/sql/sqlite
296 -(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
297 +(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
299 # Configure JDBC if --enable-jdbc
300 if test "$db_cv_jdbc" != "no"; then
303 [FILE:1054:patches/patch-lang_tcl_tcl__db.c]
304 --- lang/tcl/tcl_db.c.orig 2013-09-09 15:35:07 UTC
305 +++ lang/tcl/tcl_db.c
306 @@ -3708,9 +3708,10 @@ tcl_DbGetFlags(interp, objc, objv, dbp)
307 for (i = 0; db_flags[i].flag != 0; i++)
308 if (LF_ISSET(db_flags[i].flag)) {
310 - (void)strncat(buf, " ", sizeof(buf));
312 - buf, db_flags[i].arg, sizeof(buf));
313 + (void)strncat(buf, " ",
314 + sizeof(buf) - (strlen(buf) + 1));
315 + (void)strncat(buf, db_flags[i].arg,
316 + sizeof(buf) - (strlen(buf) + 1));
319 res = NewStringObj(buf, strlen(buf));
320 @@ -3764,9 +3765,10 @@ tcl_DbGetOpenFlags(interp, objc, objv, d
321 for (i = 0; open_flags[i].flag != 0; i++)
322 if (LF_ISSET(open_flags[i].flag)) {
324 - (void)strncat(buf, " ", sizeof(buf));
326 - buf, open_flags[i].arg, sizeof(buf));
327 + (void)strncat(buf, " ",
328 + sizeof(buf) - (strlen(buf) + 1));
329 + (void)strncat(buf, open_flags[i].arg,
330 + sizeof(buf) - (strlen(buf) + 1));
333 res = NewStringObj(buf, strlen(buf));
336 [FILE:1571:patches/patch-lang_tcl_tcl__env.c]
337 --- lang/tcl/tcl_env.c.orig 2013-09-09 15:35:07 UTC
338 +++ lang/tcl/tcl_env.c
339 @@ -2864,9 +2864,10 @@ env_GetFlags(interp, objc, objv, dbenv)
340 for (i = 0; open_flags[i].flag != 0; i++)
341 if (LF_ISSET(open_flags[i].flag)) {
343 - (void)strncat(buf, " ", sizeof(buf));
345 - buf, open_flags[i].arg, sizeof(buf));
346 + (void)strncat(buf, " ",
347 + sizeof(buf) - (strlen(buf) + 1));
348 + (void)strncat(buf, open_flags[i].arg,
349 + sizeof(buf) - (strlen(buf) + 1));
352 res = NewStringObj(buf, strlen(buf));
353 @@ -2930,9 +2931,10 @@ env_GetOpenFlag(interp, objc, objv, dben
354 for (i = 0; open_flags[i].flag != 0; i++)
355 if (LF_ISSET(open_flags[i].flag)) {
357 - (void)strncat(buf, " ", sizeof(buf));
359 - buf, open_flags[i].arg, sizeof(buf));
360 + (void)strncat(buf, " ",
361 + sizeof(buf) - (strlen(buf) + 1));
362 + (void)strncat(buf, open_flags[i].arg,
363 + sizeof(buf) - (strlen(buf) + 1));
366 res = NewStringObj(buf, strlen(buf));
367 @@ -2982,9 +2984,10 @@ tcl_EnvGetEncryptFlags(interp, objc, obj
368 for (i = 0; encrypt_flags[i].flag != 0; i++)
369 if (LF_ISSET(encrypt_flags[i].flag)) {
371 - (void)strncat(buf, " ", sizeof(buf));
373 - buf, encrypt_flags[i].arg, sizeof(buf));
374 + (void)strncat(buf, " ",
375 + sizeof(buf) - (strlen(buf) + 1));
376 + (void)strncat(buf, encrypt_flags[i].arg,
377 + sizeof(buf) - (strlen(buf) + 1));
380 res = NewStringObj(buf, strlen(buf));
383 [FILE:564:patches/patch-lang_tcl_tcl__seq.c]
384 --- lang/tcl/tcl_seq.c.orig 2013-09-09 15:35:07 UTC
385 +++ lang/tcl/tcl_seq.c
386 @@ -555,9 +555,10 @@ tcl_SeqGetFlags(interp, objc, objv, seq)
387 for (i = 0; seq_flags[i].flag != 0; i++)
388 if (LF_ISSET(seq_flags[i].flag)) {
390 - (void)strncat(buf, " ", sizeof(buf));
392 - buf, seq_flags[i].arg, sizeof(buf));
393 + (void)strncat(buf, " ",
394 + sizeof(buf) - (strlen(buf) + 1));
395 + (void)strncat(buf, seq_flags[i].arg,
396 + sizeof(buf) - (strlen(buf) + 1));
399 res = NewStringObj(buf, strlen(buf));
402 [FILE:1465:patches/patch-src_dbinc_atomic.h]
403 --- src/dbinc/atomic.h.orig 2013-09-09 15:35:08 UTC
404 +++ src/dbinc/atomic.h
405 @@ -70,7 +70,7 @@ typedef struct {
406 * These have no memory barriers; the caller must include them when necessary.
408 #define atomic_read(p) ((p)->value)
409 -#define atomic_init(p, val) ((p)->value = (val))
410 +#define db_atomic_init(p, val) ((p)->value = (val))
412 #ifdef HAVE_ATOMIC_SUPPORT
414 @@ -144,7 +144,7 @@ typedef LONG volatile *interlocked_val;
415 #define atomic_inc(env, p) __atomic_inc(p)
416 #define atomic_dec(env, p) __atomic_dec(p)
417 #define atomic_compare_exchange(env, p, o, n) \
418 - __atomic_compare_exchange((p), (o), (n))
419 + __atomic_compare_exchange_db((p), (o), (n))
420 static inline int __atomic_inc(db_atomic_t *p)
423 @@ -176,7 +176,7 @@ static inline int __atomic_dec(db_atomic
424 * http://gcc.gnu.org/onlinedocs/gcc-4.1.0/gcc/Atomic-Builtins.html
425 * which configure could be changed to use.
427 -static inline int __atomic_compare_exchange(
428 +static inline int __atomic_compare_exchange_db(
429 db_atomic_t *p, atomic_value_t oldval, atomic_value_t newval)
432 @@ -206,7 +206,7 @@ static inline int __atomic_compare_excha
433 #define atomic_dec(env, p) (--(p)->value)
434 #define atomic_compare_exchange(env, p, oldval, newval) \
435 (DB_ASSERT(env, atomic_read(p) == (oldval)), \
436 - atomic_init(p, (newval)), 1)
437 + db_atomic_init(p, (newval)), 1)
439 #define atomic_inc(env, p) __atomic_inc(env, p)
440 #define atomic_dec(env, p) __atomic_dec(env, p)
443 [FILE:247:patches/patch-src_dbinc_mutex__int.h]
444 --- src/dbinc/mutex_int.h.orig 2013-09-09 15:35:08 UTC
445 +++ src/dbinc/mutex_int.h
446 @@ -596,7 +596,7 @@ MUTEX_SET(int *tsl) {
447 : "=&r" (__r), "+r" (tsl)
457 [FILE:341:patches/patch-src_heap_heap__verify.c]
458 --- src/heap/heap_verify.c.orig 2013-09-09 15:35:08 UTC
459 +++ src/heap/heap_verify.c
460 @@ -122,7 +122,7 @@ __heap_vrfy(dbp, vdp, h, pgno, flags)
464 - db_indx_t *offsets, *offtbl, end;
465 + db_indx_t *offsets = NULL, *offtbl, end;
467 if ((ret = __db_vrfy_datapage(dbp, vdp, h, pgno, flags)) != 0)