Ravenports generated: 15 Oct 2022 03:32
[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]=            https://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=                   cpe 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 CPE_PRODUCT=            berkeley_db
36 CPE_VENDOR=             oracle
37 FPC_EQUIVALENT=         databases/db5
38
39 MUST_CONFIGURE=         gnu
40 CONFIGURE_OUTSOURCE=    yes
41 CONFIGURE_WRKSRC=       {{WRKSRC}}/build_unix
42 CONFIGURE_SCRIPT=       dist/configure
43 CONFIGURE_ARGS=         --enable-dbm
44                         --enable-cxx
45                         --enable-sql
46                         --enable-sql_codegen
47                         --disable-stl
48                         --includedir={{PREFIX}}/include/db5
49                         --libdir={{PREFIX}}/lib/db5
50                         --bindir={{PREFIX}}/bin/db5
51
52 MAKE_ARGS=              docdir={{STD_DOCDIR}}
53
54 INSTALL_TARGET=         install_include install_lib install_utilities
55                         install_docs
56 PLIST_SUB=              BDBMAJ=5
57                         BDBVER=5.3
58
59 CFLAGS=                 -fPIC
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
64
65 [TCL].CONFIGURE_ARGS_OFF=               --disable-tcl
66 [TCL].CONFIGURE_ARGS_ON=                --with-tcl={{TCL_LIBDIR}}
67
68 [CRYPTO].DESCRIPTION=                   Cryptography support
69 [CRYPTO].CONFIGURE_WITH_BOTH=           cryptography=yes
70
71 post-install-TCL-OFF:
72 .for i in api_reference/TCL
73         ${RM} -r ${STAGEDIR}${STD_DOCDIR}/${i}
74 .endfor
75
76 post-patch:
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_*
84
85 post-install-TCL-ON:
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
96 .else
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
105 .endif
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
111
112 post-install:
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
124 .else
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
133 .endif
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
137 .endfor
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
144 .endfor
145
146 post-patch-sunos:
147         ${REINPLACE_CMD} -e '/_XOPEN_SOURCE/ s/500/600/' \
148                 ${WRKSRC}/util/db_sql_codegen/sqlite/sqliteInt.h
149
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.
155
156 This package contains the executables and the shared libraries.
157
158
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
168 needs.
169
170 This package contains the headers and static libraries.
171
172
173 [FILE:99:distinfo]
174 e0a992d740709892e81f9d93f06daf305cf73fb81b545afe72478043172c3628     35090431 bdb/db-5.3.28.tar.gz
175
176
177 [FILE:1595:manifests/plist.shared]
178 bin/
179  db_archive-%%BDBMAJ%%
180  db_archive-%%BDBVER%%
181  db_checkpoint-%%BDBMAJ%%
182  db_checkpoint-%%BDBVER%%
183  db_deadlock-%%BDBMAJ%%
184  db_deadlock-%%BDBVER%%
185  db_dump-%%BDBMAJ%%
186  db_dump-%%BDBVER%%
187  db_hotbackup-%%BDBMAJ%%
188  db_hotbackup-%%BDBVER%%
189  db_load-%%BDBMAJ%%
190  db_load-%%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%%
201  db_stat-%%BDBMAJ%%
202  db_stat-%%BDBVER%%
203  db_tuner-%%BDBMAJ%%
204  db_tuner-%%BDBVER%%
205  db_upgrade-%%BDBMAJ%%
206  db_upgrade-%%BDBVER%%
207  db_verify-%%BDBMAJ%%
208  db_verify-%%BDBVER%%
209  dbsql-%%BDBMAJ%%
210  dbsql-%%BDBVER%%
211 bin/db5/
212  db_archive
213  db_checkpoint
214  db_deadlock
215  db_dump
216  db_hotbackup
217  db_load
218  db_log_verify
219  db_printlog
220  db_recover
221  db_replicate
222  db_sql_codegen
223  db_stat
224  db_tuner
225  db_upgrade
226  db_verify
227  dbsql
228 lib/
229  libdb-%%BDBMAJ%%.so
230  libdb-%%BDBMAJ%%.so.0
231  libdb-%%BDBVER%%.so
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
241 lib/db5/
242  libdb-%%BDBMAJ%%.so
243  libdb-%%BDBVER%%.so
244  libdb-%%BDBVER%%.so.0
245  libdb-%%BDBVER%%.so.0.0.0
246  libdb.so
247  libdb_cxx-%%BDBMAJ%%.so
248  libdb_cxx-%%BDBVER%%.so
249  libdb_cxx-%%BDBVER%%.so.0
250  libdb_cxx-%%BDBVER%%.so.0.0.0
251  libdb_cxx.so
252  libdb_sql-%%BDBMAJ%%.so
253  libdb_sql-%%BDBVER%%.so
254  libdb_sql-%%BDBVER%%.so.0
255  libdb_sql-%%BDBVER%%.so.0.0.0
256  libdb_sql.so
257
258
259 [FILE:218:manifests/plist.static]
260 include/db5/
261  db.h
262  db_cxx.h
263  dbsql.h
264 lib/db5/
265  libdb-%%BDBMAJ%%.a
266  libdb-%%BDBVER%%.a
267  libdb.a
268  libdb_cxx-%%BDBMAJ%%.a
269  libdb_cxx-%%BDBVER%%.a
270  libdb_cxx.a
271  libdb_sql-%%BDBMAJ%%.a
272  libdb_sql-%%BDBVER%%.a
273  libdb_sql.a
274
275
276 [FILE:1421:patches/patch-dist_configure]
277 --- dist/configure.orig 2013-09-09 15:35:02 UTC
278 +++ dist/configure
279 @@ -17712,10 +17712,10 @@ LIBTOOL="./libtool"
280  INSTALLER="\$(LIBTOOL) --mode=install cp -p"
281  
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}"
290  
291  
292 @@ -27322,7 +27322,7 @@ esac
293  # !!! END COPIED from autoconf distribution
294  
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
298  
299  # Configure JDBC if --enable-jdbc
300  if test "$db_cv_jdbc" != "no"; then
301
302
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)) {
309                                 if (strlen(buf) > 0)
310 -                                       (void)strncat(buf, " ", sizeof(buf));
311 -                               (void)strncat(
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));
317                         }
318  
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)) {
323                                 if (strlen(buf) > 0)
324 -                                       (void)strncat(buf, " ", sizeof(buf));
325 -                               (void)strncat(
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));
331                         }
332  
333                 res = NewStringObj(buf, strlen(buf));
334
335
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)) {
342                                 if (strlen(buf) > 0)
343 -                                       (void)strncat(buf, " ", sizeof(buf));
344 -                               (void)strncat(
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));
350                         }
351  
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)) {
356                                 if (strlen(buf) > 0)
357 -                                       (void)strncat(buf, " ", sizeof(buf));
358 -                               (void)strncat(
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));
364                         }
365  
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)) {
370                                 if (strlen(buf) > 0)
371 -                                       (void)strncat(buf, " ", sizeof(buf));
372 -                               (void)strncat(
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));
378                         }
379  
380                 res = NewStringObj(buf, strlen(buf));
381
382
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)) {
389                                 if (strlen(buf) > 0)
390 -                                       (void)strncat(buf, " ", sizeof(buf));
391 -                               (void)strncat(
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));
397                         }
398  
399                 res = NewStringObj(buf, strlen(buf));
400
401
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.
407   */
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))
411  
412  #ifdef HAVE_ATOMIC_SUPPORT
413  
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)
421  {
422         int     temp;
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.
426   */
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)
430  {
431         atomic_value_t was;
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)
438  #else
439  #define atomic_inc(env, p)     __atomic_inc(env, p)
440  #define atomic_dec(env, p)     __atomic_dec(env, p)
441
442
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)
448          :
449          : "cr0", "memory");
450 -        return (int)tsl;
451 +        return (tsl != 0);
452  }
453  
454  static inline int
455
456
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)
461  {
462         HEAPHDR *hdr;
463         int cnt, i, j, ret;
464 -       db_indx_t *offsets, *offtbl, end;
465 +       db_indx_t *offsets = NULL, *offtbl, end;
466  
467         if ((ret = __db_vrfy_datapage(dbp, vdp, h, pgno, flags)) != 0)
468                 goto err;
469