Ravenports generated: 15 Feb 2023 07:25
[ravenports.git] / bucket_6C / firebird25
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               firebird25
4 VERSION=                2.5.9
5 KEYWORDS=               databases
6 VARIANTS=               standard
7 SDESC[standard]=        Firebird-2 relational SQL database
8 HOMEPAGE=               https://www.firebirdsql.org/
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            https://github.com/FirebirdSQL/firebird/releases/download/R2_5_9/
13 DISTFILE[1]=            Firebird-2.5.9.27139-0.tar.bz2:main
14 DF_INDEX=               1
15 SPKGS[standard]=        complete
16                         server
17                         client
18                         docs
19
20 OPTIONS_AVAILABLE=      none
21 OPTIONS_STANDARD=       none
22
23 BROKEN[sunos]=          gpre segfaults on dpm.cpp during at end of build
24 NOT_FOR_OPSYS=          netbsd
25 NOT_FOR_ARCH=           aarch64
26
27 BUILDRUN_DEPENDS=       libedit:single:standard
28 EXRUN[server]=          firebird25:client:standard
29
30 USERS=                  firebird
31 GROUPS=                 firebird
32 USERGROUP_SPKG=         server
33
34 USES=                   cpe gmake ncurses pkgconfig c++:server,client
35
36 DISTNAME=               Firebird-2.5.9.27139-0
37
38 LICENSE=                CUSTOM1:server CUSTOM2:server
39 LICENSE_TERMS=          server:{{WRKSRC}}/doc/license/README.license.usage.txt
40 LICENSE_NAME=           CUSTOM1:"Initial Developer's Public License"
41                         CUSTOM2:"InterBase Public License"
42 LICENSE_FILE=           CUSTOM1:{{WRKSRC}}/builds/install/misc/IDPLicense.txt
43                         CUSTOM2:{{WRKSRC}}/builds/install/misc/IPLicense.txt
44 LICENSE_SCHEME=         multi
45
46 CPE_PRODUCT=            firebird
47 CPE_VENDOR=             firebirdsql
48 FPC_EQUIVALENT=         databases/firebird25-server
49
50 MUST_CONFIGURE=         gnu
51 CONFIGURE_ARGS=         --prefix=/var/db/firebird
52                         --exec-prefix={{PREFIX}}
53                         --with-fbconf={{PREFIX}}/etc/firebird
54                         --with-fbglock=/var/db/firebird
55                         --with-fbhelp=/var/db/firebird/help
56                         --with-fbintl={{PREFIX}}/libexec/firebird/intl
57                         --with-fblog=/var/db/firebird
58                         --with-fbmsg={{PREFIX}}/share/firebird
59                         --with-fbplugins={{PREFIX}}/libexec/firebird/plugins
60                         --with-fbsbin={{PREFIX}}/sbin
61                         --with-fbsecure-db=/var/db/firebird
62                         --with-fbudf={{PREFIX}}/libexec/firebird/UDF
63                         --with-system-editline
64                         --enable-superserver
65 CONFIGURE_ENV=          PTHREAD_LIBS="-lpthread"
66                         ac_cv_header_atomic_ops_h="no"
67                         ac_cv_lib_atomic_ops_main="no"
68                         ac_cv_lib_edit_readline="yes"
69
70 BUILD_TARGET=           firebird_basic libfbembed libfbclient embed_isql
71                         embed_gpre embed_gdef embed_qli extlib
72                         firebird_embedded firebird_server
73 MAKE_ARGS=              PREFIX="{{STAGEDIR}}{{PREFIX}}"
74 MAKE_ENV=               FIREBIRD_TMP="{{WRKDIR}}"
75                         FIREBIRD_LOCK="{{WRKDIR}}"
76 SINGLE_JOB=             yes
77
78 PLIST_SUB=              SOVERSION=2.5.9
79                         SOMINOR=2.5
80                         SOMAJOR=2
81                         LOCALSTATEDIR=/var/db/firebird
82                         CONFDIR=etc/firebird
83 RC_SUBR=                firebird:server
84 SUB_FILES=              pkg-message-server
85 SUB_LIST=               DOCDIR={{STD_DOCDIR}}
86
87 CXXFLAGS=               -std=gnu++98
88                         -fno-lifetime-dse
89 VAR_ARCH[x86_64]=       CFLAGS=-DAMD64
90
91 post-patch:
92         ${FIND} ${WRKSRC} -name "*.sh" -exec ${CHMOD} +x {} \+
93
94 do-install:
95         @${MKDIR} ${STAGEDIR}${PREFIX}/bin \
96                 ${STAGEDIR}${PREFIX}/lib \
97                 ${STAGEDIR}${PREFIX}/include \
98                 ${STAGEDIR}${PREFIX}/sbin \
99                 ${STAGEDIR}${PREFIX}/share/firebird \
100                 ${STAGEDIR}${PREFIX}/etc/firebird \
101                 ${STAGEDIR}${PREFIX}/libexec/firebird/udf \
102                 ${STAGEDIR}/var/db/firebird/help \
103                 ${STAGEDIR}${PREFIX}/libexec/firebird/intl \
104                 ${STAGEDIR}${PREFIX}/libexec/firebird/plugins
105         ${INSTALL_LIB} ${WRKSRC}/gen/firebird/lib/libib_util.so \
106                 ${WRKSRC}/gen/firebird/lib/libfbclient.so.2.5.9 \
107                 ${WRKSRC}/gen/firebird/lib/libfbembed.so.2.5.9 \
108                 ${STAGEDIR}${PREFIX}/lib
109 .for ext in so so.2 so.2.5
110         ${LN} -fs libfbclient.so.2.5.9 ${STAGEDIR}${PREFIX}/lib/libfbclient.${ext}
111         ${LN} -fs libfbembed.so.2.5.9 ${STAGEDIR}${PREFIX}/lib/libfbembed.${ext}
112         ${LN} -fs libfbembed.so.2.5.9 ${STAGEDIR}${PREFIX}/lib/libgds.${ext}
113 .endfor
114         ${INSTALL_DATA} ${WRKSRC}/gen/firebird/include/*.h ${STAGEDIR}${PREFIX}/include
115         ${INSTALL_DATA} ${WRKSRC}/gen/firebird/*.msg ${STAGEDIR}${PREFIX}/share/firebird
116         ${SED} -e "s=%%PREFIX%%=${PREFIX}=g" ${WRKSRC}/gen/install/misc/firebird.conf \
117                 > ${WRKDIR}/firebird.conf
118         ${INSTALL_DATA} ${WRKDIR}/firebird.conf ${STAGEDIR}${PREFIX}/etc/firebird/firebird.conf.sample
119         ${INSTALL_DATA} ${WRKSRC}/gen/install/misc/aliases.conf \
120                 ${STAGEDIR}${PREFIX}/etc/firebird/aliases.conf.sample
121         ${INSTALL_DATA} ${WRKSRC}/gen/install/misc/fbtrace.conf \
122                 ${STAGEDIR}${PREFIX}/etc/firebird/fbtrace.conf
123         ${INSTALL_DATA} ${WRKSRC}/gen/install/misc/fbintl.conf \
124                 ${STAGEDIR}${PREFIX}/libexec/firebird/intl/fbintl.conf
125 .for bin in gpre isql-fb qli fbguard fbsplit fbstat fbsvcmgr fbtracemgr gbak gdef gfix gsec nbackup
126         ${INSTALL_PROGRAM} ${WRKSRC}/gen/firebird/bin/${bin} ${STAGEDIR}${PREFIX}/bin
127 .endfor
128 .for sbin in fb_inet_server fb_lock_print fb_smp_server fbserver
129         ${INSTALL_PROGRAM} ${WRKSRC}/gen/firebird/bin/${sbin} ${STAGEDIR}${PREFIX}/sbin
130 .endfor
131 .for udf_so in ib_udf.so fbudf.so
132         ${INSTALL} ${STRIP} -m 0555 ${WRKSRC}/gen/firebird/UDF/${udf_so} \
133                 ${STAGEDIR}${PREFIX}/libexec/firebird/udf
134 .endfor
135 .for udf_sql in src/extlib/ib_udf2.sql src/extlib/fbudf/fbudf.sql
136         ${INSTALL} -m 0444 ${WRKSRC}/${udf_sql} ${STAGEDIR}${PREFIX}/libexec/firebird/udf
137 .endfor
138         ${INSTALL} ${STRIP} -m 0555 ${WRKSRC}/gen/firebird/plugins/libfbtrace.so \
139                 ${STAGEDIR}${PREFIX}/libexec/firebird/plugins
140         ${INSTALL} -m 0660 ${WRKSRC}/gen/firebird/security2.fdb \
141                 ${STAGEDIR}/var/db/firebird/security2.fdb.sample
142         ${INSTALL} -m 0440 ${WRKSRC}/gen/firebird/help/help.fdb \
143                 ${STAGEDIR}/var/db/firebird/help
144         ${INSTALL} ${STRIP} -m 0555 ${WRKSRC}/gen/firebird/intl/libfbintl.so \
145                 ${STAGEDIR}${PREFIX}/libexec/firebird/intl/fbintl.so
146         # docs
147         @${MKDIR} ${STAGEDIR}${STD_DOCDIR}/sql.extensions \
148                 ${STAGEDIR}${STD_DOCDIR}/license \
149                 ${STAGEDIR}${STD_DOCDIR}/upgrade
150         ${INSTALL_DATA} ${WRKSRC}/doc/sql.extensions/* \
151                 ${STAGEDIR}${STD_DOCDIR}/sql.extensions
152         ${INSTALL_DATA} ${WRKSRC}/doc/license/* \
153                 ${STAGEDIR}${STD_DOCDIR}/license
154         ${INSTALL_DATA} ${WRKSRC}/src/misc/upgrade/v2/* \
155                 ${STAGEDIR}${STD_DOCDIR}/upgrade
156 .for F in WhatsNew README.* Firebird* ReleaseNotes.pdf ambiguity.txt ods11-index-structure.html
157         ${INSTALL_DATA} ${WRKSRC}/doc/${F} ${STAGEDIR}${STD_DOCDIR}
158 .endfor
159
160 [FILE:568:descriptions/desc.server]
161 Firebird is a relational database offering many ANSI SQL-99 features
162 that runs on Linux, Windows, and a variety of Unix platforms.  Firebird
163 offers excellent concurrency, high performance, and powerful language
164 support for stored procedures and triggers.  It has been used in
165 production systems, under a variety of names since 1981.
166
167 Firebird is completely free of any registration, licensing or deployment
168 fees.  It may be deployed freely for use with any third-party software,
169 whether commercial or not.
170
171 This package contains the Firebird server and related files.
172
173
174 [FILE:193:descriptions/desc.client]
175 Firebird is a relational database offering many ANSI SQL-99 features
176 that runs on Linux, Windows, and a variety of Unix platforms.
177
178 This package contains the Firebird client and related files.
179
180
181 [FILE:109:distinfo]
182 46ee37b14b44f3e45cd286b739f92e9366643f52bef51a131cc973a6980d9481     13567295 Firebird-2.5.9.27139-0.tar.bz2
183
184
185 [FILE:870:manifests/plist.server]
186 @sample %%CONFDIR%%/aliases.conf.sample
187 @sample %%LOCALSTATEDIR%%/security2.fdb.sample
188 %%CONFDIR%%/fbtrace.conf
189 @(firebird,firebird,) %%LOCALSTATEDIR%%/help/help.fdb
190 bin/
191  fbguard
192  fbsplit
193  fbstat
194  fbsvcmgr
195  fbtracemgr
196  gbak
197  gdef
198  gfix
199  gsec
200  nbackup
201 @(,firebird,) libexec/firebird/intl/fbintl.conf
202 @(,firebird,) libexec/firebird/intl/fbintl.so
203 @(,firebird,) libexec/firebird/plugins/libfbtrace.so
204 @(,firebird,) libexec/firebird/udf/fbudf.so
205 @(,firebird,) libexec/firebird/udf/fbudf.sql
206 @(,firebird,) libexec/firebird/udf/ib_udf.so
207 @(,firebird,) libexec/firebird/udf/ib_udf2.sql
208 sbin/
209  fb_inet_server
210  fb_lock_print
211  fb_smp_server
212  fbserver
213 @preunexec [ -s %%LOCALSTATEDIR%%/firebird.log ] || rm -f %%LOCALSTATEDIR%%/firebird.log
214 @rmtry %%LOCALSTATEDIR%%/isc_event1.`hostname`
215 @rmtry %%LOCALSTATEDIR%%/isc_init1.`hostname`
216 @rmtry %%LOCALSTATEDIR%%/isc_lock1.`hostname`
217
218
219 [FILE:443:manifests/plist.client]
220 @sample %%CONFDIR%%/firebird.conf.sample
221 bin/
222  gpre
223  isql-fb
224  qli
225 include/
226  ib_util.h
227  ibase.h
228  iberror.h
229  perf.h
230 lib/
231  libfbclient.so
232  libfbclient.so.%%SOMAJOR%%
233  libfbclient.so.%%SOMINOR%%
234  libfbclient.so.%%SOVERSION%%
235  libfbembed.so
236  libfbembed.so.%%SOMAJOR%%
237  libfbembed.so.%%SOMINOR%%
238  libfbembed.so.%%SOVERSION%%
239  libgds.so
240  libgds.so.%%SOMAJOR%%
241  libgds.so.%%SOMINOR%%
242  libib_util.so
243 share/firebird/
244  de_DE.msg
245  firebird.msg
246  fr_FR.msg
247
248
249 [FILE:416:patches/patch-builds_install_misc_firebird.conf.in]
250 --- builds/install/misc/firebird.conf.in.orig   2019-06-17 15:15:52 UTC
251 +++ builds/install/misc/firebird.conf.in
252 @@ -60,7 +60,7 @@
253  #
254  # Type: string
255  #
256 -#RootDirectory =
257 +#RootDirectory = /var/db/firebird
258  
259  
260  # ----------------------------
261 @@ -137,7 +137,7 @@
262  #
263  # Type: string (special format)
264  #
265 -#UdfAccess = Restrict UDF
266 +UdfAccess = Restrict %%PREFIX%%/libexec/firebird/udf
267  
268  
269  # ----------------------------
270
271
272 [FILE:471:patches/patch-builds_posix_Makefile.in.extern.icu]
273 --- builds/posix/Makefile.in.extern.icu.orig    2019-06-17 15:15:52 UTC
274 +++ builds/posix/Makefile.in.extern.icu
275 @@ -37,6 +37,6 @@ ALL_ICU_SO = $(addsuffix *, $(notdir $(L
276  
277  libicu:
278         $(MAKE) -C $(ROOT)/extern/icu/source
279 -       (cd $(ROOT)/extern/icu/source/lib/; tar cf - $(ALL_ICU_SO)) | (cd $(LIB); tar xf -)
280 +       (cd $(ROOT)/extern/icu/source/lib/; tar cf - $(ALL_ICU_SO)) | (cd $(LIB); tar xf - --no-same-owner --no-same-permissions)
281  
282  include $(ROOT)/gen/make.shared.targets
283
284
285 [FILE:2233:patches/patch-builds_posix_make.defaults]
286 --- builds/posix/make.defaults.orig     2019-06-17 15:15:52 UTC
287 +++ builds/posix/make.defaults
288 @@ -126,7 +126,7 @@ RM_R=               rm -rf
289  CHMOD=                 chmod
290  CHMOD_6=               chmod 666
291  CHMOD_7=               chmod 777
292 -CHMOD_S7=              chmod 06777
293 +CHMOD_S7=              chmod 04555
294  MV=                    mv -f
295  TOUCH=                 touch
296  CP=                    cp
297 @@ -152,7 +152,7 @@ EXE_LINK:= @CXX@ $(GLOB_OPTIONS) $(CXXFL
298  STATICEXE_LINK:= @CXX@ $(GLOB_OPTIONS) $(CXXFLAGS)
299  
300  LINK_LIBS = @LIBS@
301 -ICU_LIBS = -licuuc -licudata -licui18n
302 +ICU_LIBS = -lsicuuc -lsicudata -lsicui18n
303  STATICLINK_LIBS = @LIBS@
304  SO_LINK_LIBS = @LIBS@
305  
306 @@ -223,15 +223,14 @@ LIBFBSTATIC_A = $(LIB)/libfbstatic.a
307  
308  ifeq ($(EDITLINE_FLG),Y)
309    ifeq ($(STD_EDITLINE), true)
310 -       LIBEDITLINE := -l$(READLINE)
311 +       LIBEDITLINE := $(shell pkgconf libedit --libs)
312    else
313         LIBEDITLINE := $(LIB)/libedit.a
314    endif
315  endif
316  
317 -LIBICU_SO = $(LIB)/$(LIB_PREFIX)icuuc*.$(SHRLIB_FOREIGN_EXT) \
318 -                       $(LIB)/$(LIB_PREFIX)icudata*.$(SHRLIB_FOREIGN_EXT) \
319 -                       $(LIB)/$(LIB_PREFIX)icui18n*.$(SHRLIB_FOREIGN_EXT)
320 +LIBICU_SO = $(LIB)/$(LIB_PREFIX)sicuuc*.a $(LIB)/$(LIB_PREFIX)sicudata*.a \
321 +               $(LIB)/$(LIB_PREFIX)sicui18n*.a
322  
323  # Shared library name for usage inside of the UDF
324  IbUtilLibraryName = $(LIB_PREFIX)ib_util.$(SHRLIB_EXT)
325 @@ -305,7 +304,7 @@ CREATE_DB   = $(BIN)/create_db$(EXEC_EXT)
326  GDS_DROP       = $(BIN)/gds_drop$(EXEC_EXT)
327  FBSVCMGR       = $(BIN)/fbsvcmgr$(EXEC_EXT)
328  FBTRACEMGR     = $(BIN)/fbtracemgr$(EXEC_EXT)
329 -GSTAT          = $(BIN)/gstat$(EXEC_EXT)
330 +GSTAT          = $(BIN)/fbstat$(EXEC_EXT)
331  NBACKUP                = $(BIN)/nbackup$(EXEC_EXT)
332  FBTRACE                = $(PLUGINS)/$(LIB_PREFIX)fbtrace.$(SHRLIB_EXT)
333  LOCKPRINT      = $(BIN)/fb_lock_print$(EXEC_EXT)
334 @@ -327,14 +326,14 @@ ISC_GBAK  = $(BIN)/security.gbak
335  QLI            = $(BIN)/qli$(EXEC_EXT)
336  
337  # From isql
338 -ISQL            = $(BIN)/isql$(EXEC_EXT)
339 -ISQL_STATIC     = $(BIN)/isql_static$(EXEC_EXT)
340 -MUISQL          = $(BIN)/muisql$(EXEC_EXT)
341 +ISQL            = $(BIN)/isql-fb$(EXEC_EXT)
342 +ISQL_STATIC     = $(BIN)/isql-fb_static$(EXEC_EXT)
343 +MUISQL          = $(BIN)/muisql-fb$(EXEC_EXT)
344  
345  # From burp
346  GBAK_STATIC     = $(BIN)/gbak_static$(EXEC_EXT)
347  GBAK            = $(BIN)/gbak$(EXEC_EXT)
348 -GSPLIT          = $(BIN)/gsplit$(EXEC_EXT)
349 +GSPLIT          = $(BIN)/fbsplit$(EXEC_EXT)
350  
351  # From gpre
352  # (gpre current is a link to one of the others)
353
354
355 [FILE:358:patches/patch-builds_posix_make.rules]
356 --- builds/posix/make.rules.orig        2019-06-17 15:15:52 UTC
357 +++ builds/posix/make.rules
358 @@ -37,6 +37,8 @@ WFLAGS:=$(CPPFLAGS) -I$(SRC_ROOT)/includ
359  
360  ifeq ($(STD_ICU),false)
361    WFLAGS:= $(WFLAGS) -I$(ROOT)/extern/icu/source/common -I$(ROOT)/extern/icu/source/i18n
362 +else
363 +  WFLAGS:= $(WFLAGS) $(shell icu-config --cppflags)
364  endif
365  
366  ifeq ($(IsProdTypeBuild),Y)
367
368
369 [FILE:390:patches/patch-builds_posix_prefix.solx86gcc]
370 --- builds/posix/prefix.solx86gcc.orig  2019-06-17 15:15:52 UTC
371 +++ builds/posix/prefix.solx86gcc
372 @@ -32,7 +32,7 @@ ifdef SFIO
373  COMM_SOLX_FLAGS+=$(SFIO_FLAGS) 
374  endif
375  
376 -PROD_FLAGS=-DNDEBUG -w $(COMM_SOLX_FLAGS) -O2 -march=pentium 
377 +PROD_FLAGS=-DNDEBUG -w $(COMM_SOLX_FLAGS) -O2  
378  DEV_FLAGS=$(COMM_SOLX_FLAGS) -ggdb -g3 -p $(WARNINGS)
379  ifdef SFIO
380  LINK_LIBS+=$(SFIO_LDFLAGS) -lstdio -lsfio
381
382
383 [FILE:3209:patches/patch-configure]
384 --- configure.orig      2019-06-17 15:47:04 UTC
385 +++ configure
386 @@ -2428,7 +2428,7 @@ _ACEOF
387      SHRLIB_EXT=so
388      ;;
389  
390 -  amd64-*-freebsd* | x86_64*-*-freebsd* | x86_64*-*-k*bsd*-gnu)
391 +  amd64-*-freebsd* | x86_64*-*-freebsd* | x86_64-*-dragonfly* | x86_64*-*-k*bsd*-gnu)
392      MAKEFILE_PREFIX=freebsd_amd64
393      case "$target" in
394          x86_64*-*-k*bsd-gnu)      # Debian/kFreeBSD
395 @@ -2466,7 +2466,7 @@ _ACEOF
396      SHRLIB_EXT=so
397      ;;
398  
399 -  *-*-freebsd* | *-*-k*bsd*-gnu)
400 +  *-*-freebsd* | *-*-dragonfly* | *-*-k*bsd*-gnu)
401      MAKEFILE_PREFIX=freebsd
402      case "$target" in
403          *-*-k*bsd-gnu)      # Debian/kFreeBSD
404 @@ -2826,23 +2826,11 @@ _ACEOF
405      SHRLIB_EXT=sl
406      libdir=/usr/lib/pa20_64
407      ;;
408 -
409 -  i386-pc-solaris*)
410 -        comp=`echo "$CXX" | cut -c1-2`
411 -    case $comp in
412 -       CC) MAKEFILE_PREFIX=solaris
413 -           ICU_PLATFORM=SOLARISX86
414 -           PTHREAD_CFLAGS=-mt
415 -           PTHREAD_LIBS=-lpthread
416 -           ;;
417 -       *)  MAKEFILE_PREFIX=solx86gcc ;
418 -           ICU_PLATFORM=SOLARISX86GCC ;
419 -           PTHREAD_CFLAGS=-pthreads ;;
420 -    esac
421 -        isa=`isainfo -k`
422 -    if test "$isa" = "amd64"; then
423 -        libdir=/usr/lib/amd64
424 -    fi
425 +  x86_64-*-solaris*)
426 +    MAKEFILE_PREFIX=solx86gcc
427 +    ICU_PLATFORM=SOLARISX86GCC
428 +    PTHREAD_CFLAGS=-pthreads
429 +    libdir=/usr/lib/amd64
430      INSTALL_PREFIX=solaris
431      PLATFORM=solx86
432  
433 @@ -4502,7 +4490,7 @@ $as_echo "$as_me: WARNING: we do not kno
434  $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
435          flag=no
436          case "${host_cpu}-${host_os}" in
437 -                *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
438 +                *-aix* | *-freebsd* | *-dragonfly* | *-darwin*) flag="-D_THREAD_SAFE";;
439                  *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
440          esac
441          { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
442 @@ -11582,7 +11570,7 @@ freebsd* | dragonfly*)
443      shlibpath_overrides_runpath=no
444      hardcode_into_libs=yes
445      ;;
446 -  freebsd*) # from 4.6 on
447 +  freebsd*|dragonfly*) # from 4.6 on
448      shlibpath_overrides_runpath=yes
449      hardcode_into_libs=yes
450      ;;
451 @@ -15574,7 +15562,7 @@ freebsd* | dragonfly*)
452      shlibpath_overrides_runpath=no
453      hardcode_into_libs=yes
454      ;;
455 -  freebsd*) # from 4.6 on
456 +  freebsd*|dragonfly*) # from 4.6 on
457      shlibpath_overrides_runpath=yes
458      hardcode_into_libs=yes
459      ;;
460 @@ -18202,7 +18190,7 @@ freebsd* | dragonfly*)
461      shlibpath_overrides_runpath=no
462      hardcode_into_libs=yes
463      ;;
464 -  freebsd*) # from 4.6 on
465 +  freebsd*|dragonfly*) # from 4.6 on
466      shlibpath_overrides_runpath=yes
467      hardcode_into_libs=yes
468      ;;
469 @@ -20837,7 +20825,7 @@ freebsd* | dragonfly*)
470      shlibpath_overrides_runpath=no
471      hardcode_into_libs=yes
472      ;;
473 -  freebsd*) # from 4.6 on
474 +  freebsd*|dragonfly*) # from 4.6 on
475      shlibpath_overrides_runpath=yes
476      hardcode_into_libs=yes
477      ;;
478 @@ -43408,7 +43396,7 @@ fi
479  
480  (cd extern/icu/source
481  chmod +x runConfigureICU configure install-sh
482 -./runConfigureICU "$ICU_PLATFORM" "$DEBUG_ICU" "$ICU_EXTRAS" --prefix=`pwd`/..)
483 +./runConfigureICU "$ICU_PLATFORM" "$DEBUG_ICU" "$ICU_EXTRAS" --disable-shared --enable-static --prefix=`pwd`/..)
484  fi
485  
486  echo
487
488
489 [FILE:342:patches/patch-extern_icu_source_common_putil.c]
490 --- extern/icu/source/common/putil.c.orig       2019-06-17 15:15:52 UTC
491 +++ extern/icu/source/common/putil.c
492 @@ -43,9 +43,8 @@
493  #ifndef PTX
494  
495  /* Define _XOPEN_SOURCE for Solaris and friends. */
496 -/* NetBSD needs it to be >= 4 */
497 -#ifndef _XOPEN_SOURCE
498 -#define _XOPEN_SOURCE 4
499 +#ifdef __sun__
500 +#define __EXTENSIONS__
501  #endif
502  
503  #if defined(DARWIN)
504
505
506 [FILE:830:patches/patch-extern_icu_source_config_mh-bsd-gcc]
507 --- extern/icu/source/config/mh-bsd-gcc.orig    2019-06-17 15:15:52 UTC
508 +++ extern/icu/source/config/mh-bsd-gcc
509 @@ -26,14 +26,14 @@ STATIC_O = ao
510  
511  ## Compilation rules
512  %.$(STATIC_O): $(srcdir)/%.c
513 -       $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -o $@ $<
514 +       $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -fPIC -DPIC -o $@ $<
515  %.o: $(srcdir)/%.c
516 -       $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $<
517 +       $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -fPIC -DPIC -o $@ $<
518  
519  %.$(STATIC_O): $(srcdir)/%.cpp
520 -       $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $<
521 +       $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -fPIC -DPIC -o $@ $<
522  %.o: $(srcdir)/%.cpp
523 -       $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
524 +       $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -fPIC -DPIC -o $@ $<
525  
526  
527  ## Dependency rules
528
529
530 [FILE:826:patches/patch-extern_icu_source_config_mh-linux]
531 --- extern/icu/source/config/mh-linux.orig      2019-06-17 15:15:52 UTC
532 +++ extern/icu/source/config/mh-linux
533 @@ -33,14 +33,14 @@ STATIC_O = ao
534  
535  ## Compilation rules
536  %.$(STATIC_O): $(srcdir)/%.c
537 -       $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -o $@ $<
538 +       $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -fPIC -DPIC -o $@ $<
539  %.o: $(srcdir)/%.c
540 -       $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $<
541 +       $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -fPIC -DPIC -o $@ $<
542  
543  %.$(STATIC_O): $(srcdir)/%.cpp
544 -       $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $<
545 +       $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -fPIC -DPIC -o $@ $<
546  %.o: $(srcdir)/%.cpp
547 -       $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
548 +       $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -fPIC -DPIC -o $@ $<
549  
550  
551  ## Dependency rules
552
553
554 [FILE:291:patches/patch-extern_icu_source_config_mh-solaris-gcc]
555 --- extern/icu/source/config/mh-solaris-gcc.orig        2019-06-17 15:15:52 UTC
556 +++ extern/icu/source/config/mh-solaris-gcc
557 @@ -8,8 +8,6 @@ SHAREDLIBCFLAGS = -fPIC
558  SHAREDLIBCXXFLAGS = -fPIC
559  
560  
561 -THREADSCFLAGS += -threads 
562 -THREADSCXXFLAGS += -threads
563  
564  
565  ## Commands to generate dependency files
566
567
568 [FILE:396:patches/patch-extern_icu_source_configure]
569 --- extern/icu/source/configure.orig    2019-06-17 15:15:52 UTC
570 +++ extern/icu/source/configure
571 @@ -3122,7 +3122,7 @@ alpha*-*-linux-gnu)
572                 icu_cv_host_frag=mh-cygwin-msvc
573         fi ;;
574  *-*-mingw*) icu_cv_host_frag=mh-mingw ;;
575 -*-*-*bsd*)     icu_cv_host_frag=mh-bsd-gcc ;;
576 +*-*-*bsd*|*-*-dragonfly*)      icu_cv_host_frag=mh-bsd-gcc ;;
577  *-*-aix*)
578         if test "$GCC" = yes; then
579                 icu_cv_host_frag=mh-aix-gcc
580
581
582 [FILE:913:patches/patch-extern_icu_source_runConfigureICU]
583 --- extern/icu/source/runConfigureICU.orig      2019-06-17 15:15:52 UTC
584 +++ extern/icu/source/runConfigureICU
585 @@ -175,14 +175,8 @@ case $platform in
586      SOLARISX86GCC)
587          THE_OS="SOLARIS X86"
588          THE_COMP="the GNU C++"
589 -        CC=`which gcc`; export CC
590 -        CXX=`which g++`; export CXX
591 -        C_FLAGS="-w -threads";export C_FLAGS
592 -        CXXFLAGS="$CXXFLAGS -I/usr/local/include/g++ -threads"; export CXXFLAGS
593 -        LDFLAGS="$LDFLAGS -R/usr/local/lib -threads "; export LDFLAGS
594 -        RELEASE_CXXFLAGS=-O
595 -        RELEASE_CFLAGS=-O3
596 -       GENCCODE_ASSEMBLY=-a gcc
597 +        CC=gcc; export CC
598 +        CXX=g++; export CXX
599          ;;
600      SOLARISCC)
601          THE_OS=SOLARIS
602 @@ -299,7 +293,7 @@ case $platform in
603          RELEASE_CFLAGS='-O2'
604          RELEASE_CXXFLAGS='-O2'
605          ;;
606 -    *BSD)
607 +    *BSD|DragonFly)
608          THE_OS="BSD"
609          THE_COMP="the GNU C++"
610          CC=gcc; export CC
611
612
613 [FILE:368:patches/patch-extern_icu_source_tools_genrb_Makefile.in]
614 --- extern/icu/source/tools/genrb/Makefile.in.orig      2019-06-17 15:15:52 UTC
615 +++ extern/icu/source/tools/genrb/Makefile.in
616 @@ -81,7 +81,7 @@ $(TARGET) : $(OBJECTS)
617         $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS) 
618  
619  $(DERB) : $(DERB_OBJ)
620 -       $(LINK.c) $(OUTOPT)$@ $^ $(LIBS) 
621 +       $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS) 
622  
623  
624  # the 'mv' will always fail if you are building in the source dir
625
626
627 [FILE:400:patches/patch-extern_icu_source_tools_pkgdata_Makefile.in]
628 --- extern/icu/source/tools/pkgdata/Makefile.in.orig    2019-06-17 15:15:52 UTC
629 +++ extern/icu/source/tools/pkgdata/Makefile.in
630 @@ -90,7 +90,7 @@ Makefile: $(srcdir)/Makefile.in  $(top_b
631         && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
632  
633  $(TARGET) : $(OBJECTS)
634 -       $(LINK.c) $(OUTOPT)$@ $^ $(LIBS) 
635 +       $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS) 
636  
637  ifeq (,$(MAKECMDGOALS))
638  -include $(DEPS)
639
640
641 [FILE:386:patches/patch-src-common-classes_alloc.h]
642 --- src/common/classes/alloc.h.orig     2019-06-17 15:15:52 UTC
643 +++ src/common/classes/alloc.h
644 @@ -92,7 +92,7 @@ namespace Firebird {
645  const int MAX_TREE_DEPTH = 4;
646  
647  // Alignment for all memory blocks. Sizes of memory blocks in headers are measured in this units
648 -const size_t ALLOC_ALIGNMENT = FB_ALIGNMENT;
649 +#define ALLOC_ALIGNMENT 16
650  
651  static inline size_t MEM_ALIGN(size_t value)
652  {
653
654
655 [FILE:397:patches/patch-src_jrd_common.h]
656 --- src/jrd/common.h.orig       2019-06-17 15:15:53 UTC
657 +++ src/jrd/common.h
658 @@ -339,9 +339,6 @@ your operating system.
659  Earlier versions of Solaris still have the problem. pbeach Feb2010
660  */
661  
662 -#if (!defined(__arch64__)) && (!defined(SFIO))
663 -#error "need to use SFIO"
664 -#endif
665  
666  // this function is normally defined in stdio.h, but is missing in SFIO's h-file
667  extern "C" int remove(const char* path);
668
669
670 [FILE:1896:files/firebird.in]
671 #!/bin/sh
672 #
673 # PROVIDE: firebird
674 # REQUIRE: LOGIN
675 # KEYWORD: shutdown
676 #
677 # Add the following line to /etc/rc.conf to enable Firebird Database:
678 #
679 #
680 # firebird_enable:      Set it to "YES" to enable firebird.
681 #                       Default is "NO".
682 # firebird_mode:        Set it to "superclassic" or "superserver" to enable firebird.
683 #                       Default is "superclassic".
684 # firebird_flags:       Set options to run fbserver or fb_smp_server.
685 #                       Default is "-el /var/db/firebird".
686 # firebird_pidfile:     Set full path to pid file.
687 #                       Default is "/var/run/firebird.pid".
688 #
689
690 . /etc/rc.subr
691
692 name=firebird
693 rcvar=firebird_enable
694
695 load_rc_config $name
696
697 firebird_enable=${firebird_enable:-"NO"}
698 firebird_mode=${firebird_mode:-"superclassic"}
699 firebird_flags=${firebird_flags:-"-el /var/db/firebird"}
700 firebird_pidfile=${firebird_pidfile:-"/var/run/${name}.pid"}
701 firebird_user=firebird
702
703 command=%%PREFIX%%/sbin/fb_smp_server
704 command_args="${firebird_flags} &"
705 pidfile=${firebird_pidfile}
706 start_precmd="start_precmd"
707 start_postcmd="start_postcmd"
708 stop_postcmd="stop_postcmd"
709 reload_postcmd="reload_postcmd"
710
711 start_precmd()
712 {
713         touch ${firebird_pidfile}
714         chown "${firebird_user}:wheel" ${firebird_pidfile} ||
715                 err 1 "Cannot chown ${firebird_pidfile}"
716 }
717
718 start_postcmd()
719 {
720         pgrep -u ${firebird_user} ${command_app} > ${firebird_pidfile}
721         echo "Current firebird mode is $firebird_mode"
722 }
723
724 stop_postcmd()
725 {
726         rm -f ${pidfile}
727 }
728
729 reload_postcmd()
730 {
731         rm -f ${pidfile}
732         run_rc_command start
733 }
734
735 case "${firebird_mode}" in
736         superclassic)
737                 command=%%PREFIX%%/sbin/fb_smp_server
738                 command_app=fb_smp_server
739                 ;;
740         superserver)
741                 command=%%PREFIX%%/sbin/fbserver
742                 command_app=fbserver
743                 ;;
744         *)
745                 warn "$firebird_mode is an invalid value for firebird_mode"
746                 return 1
747                 ;;
748 esac
749
750 run_rc_command "$1"
751
752
753 [FILE:838:files/pkg-install-server]
754 #!/bin/sh
755
756 PATH=/bin:/usr/bin:/usr/sbin
757
758 buildwarning() {
759 cat <<EOF
760 ###############################################################################
761
762                              ** IMPORTANT **
763
764 Keep in mind that if you build firebird server as 'root', this may cause
765 conflicts with SysV semaphores of running services.
766
767 If you want to cancel it, press ctrl-C now if you need check some things
768 before of build it.
769
770 ###############################################################################
771 EOF
772         sleep 5
773 }
774
775 case $2 in
776 PRE-INSTALL)
777         buildwarning
778 ;;
779 POST-INSTALL)
780         cd /var/db/firebird
781
782 # Lock files
783
784 for i in isc_init1 isc_lock1 isc_event1
785 do
786         FileName=$i.`hostname`
787         touch $FileName
788         chmod uga=rw $FileName
789         chown firebird:firebird $FileName
790 done
791
792 touch firebird.log
793 chown firebird:firebird firebird.log security2.fdb
794
795 ;;
796
797 esac
798
799
800 [FILE:1468:files/pkg-message-server.in]
801 ###############################################################################
802
803 Firebird was installed.
804
805 1) Support for Super Server has been added
806 2) Before start the server ensure that the following line exists in /etc/services:
807
808 gds_db          3050/tcp  #InterBase Database Remote Protocol
809
810 3) If you use inetd (Classic Server) then add the following line to /etc/inetd.conf
811
812 gds_db  stream  tcp     nowait  firebird        %%PREFIX%%/sbin/fb_inet_server  fb_inet_server
813
814 And finally restart inetd.
815
816 4) If you want to use SuperClassic Server then you must add the following lines
817    to /etc/rc.conf file.
818
819  firebird_enable="YES"
820  firebird_mode="superclassic"
821
822 5) If you want to use Super Server then you must add the following lines to
823    /etc/rc.conf file.
824
825  firebird_enable="YES"
826  firebird_mode="superserver"
827
828  Note: Keep in mind that you only can add one of them but never both modes on
829        the same time
830
831 6) Bedore doing anything serious with Firebird, it is STRONGLY recommended
832    that you change the SYSDBA password with:
833
834  # gsec -user SYSDBA -pass masterkey
835  GSEC> modify SYSDBA -pw newpassword
836  GSEC> quit
837
838 7) See documentation in %%DOCDIR%%/ for more information.
839 8) Some firebird tools were renamed for avoid conflicts with some other ports
840
841         %%PREFIX%%/bin/isql   -> %%PREFIX%%/bin/isql-fb
842         %%PREFIX%%/bin/gstat  -> %%PREFIX%%/bin/fbstat
843         %%PREFIX%%/bin/gsplit -> %%PREFIX%%/bin/fbsplit
844
845 ################################################################################
846
847
848 [FILE:163:dragonfly/patch-builds_posix_empty.vers]
849 --- builds/posix/empty.vers.orig        2019-06-17 15:15:52 UTC
850 +++ builds/posix/empty.vers
851 @@ -27,6 +27,8 @@
852  {
853  global:
854         main;
855 +       __progname;
856 +       environ;
857  
858  local:
859         *;
860
861
862 [FILE:225:dragonfly/patch-builds_posix_firebird.vers]
863 --- builds/posix/firebird.vers.orig     2019-06-17 15:15:52 UTC
864 +++ builds/posix/firebird.vers
865 @@ -25,6 +25,8 @@
866  
867  {
868  global:
869 +       __progname;
870 +       environ;
871  # private entrypoint for REMOTE server
872         server_main;
873  #-------------------
874
875
876 [FILE:163:freebsd/patch-builds_posix_empty.vers]
877 --- builds/posix/empty.vers.orig        2019-06-17 15:15:52 UTC
878 +++ builds/posix/empty.vers
879 @@ -27,6 +27,8 @@
880  {
881  global:
882         main;
883 +       __progname;
884 +       environ;
885  
886  local:
887         *;
888
889
890 [FILE:225:freebsd/patch-builds_posix_firebird.vers]
891 --- builds/posix/firebird.vers.orig     2019-06-17 15:15:52 UTC
892 +++ builds/posix/firebird.vers
893 @@ -25,6 +25,8 @@
894  
895  {
896  global:
897 +       __progname;
898 +       environ;
899  # private entrypoint for REMOTE server
900         server_main;
901  #-------------------
902