1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= Firebird-2 relational SQL database
8 HOMEPAGE= https://www.firebirdsql.org/
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
15 SPKGS[standard]= complete
20 OPTIONS_AVAILABLE= none
21 OPTIONS_STANDARD= none
23 BROKEN[sunos]= gpre segfaults on dpm.cpp during at end of build
27 BUILDRUN_DEPENDS= libedit:single:standard
28 EXRUN[server]= firebird25:client:standard
32 USERGROUP_SPKG= server
34 USES= cpe gmake pkgconfig c++:server,client
36 DISTNAME= Firebird-2.5.9.27139-0
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
47 CPE_VENDOR= firebirdsql
48 FPC_EQUIVALENT= databases/firebird25-server
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
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"
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}}"
78 PLIST_SUB= SOVERSION=2.5.9
81 LOCALSTATEDIR=/var/db/firebird
83 RC_SUBR= firebird:server
84 SUB_FILES= pkg-message-server
85 SUB_LIST= DOCDIR={{STD_DOCDIR}}
87 CXXFLAGS= -std=gnu++98
89 VAR_ARCH[x86_64]= CFLAGS=-DAMD64
92 ${FIND} ${WRKSRC} -name "*.sh" -exec ${CHMOD} +x {} \+
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}
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
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
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
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
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
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}
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.
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.
171 This package contains the Firebird server and related files.
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.
178 This package contains the Firebird client and related files.
182 46ee37b14b44f3e45cd286b739f92e9366643f52bef51a131cc973a6980d9481 13567295 Firebird-2.5.9.27139-0.tar.bz2
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
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
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`
219 [FILE:443:manifests/plist.client]
220 @sample %%CONFDIR%%/firebird.conf.sample
232 libfbclient.so.%%SOMAJOR%%
233 libfbclient.so.%%SOMINOR%%
234 libfbclient.so.%%SOVERSION%%
236 libfbembed.so.%%SOMAJOR%%
237 libfbembed.so.%%SOMINOR%%
238 libfbembed.so.%%SOVERSION%%
240 libgds.so.%%SOMAJOR%%
241 libgds.so.%%SOMINOR%%
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
257 +#RootDirectory = /var/db/firebird
260 # ----------------------------
263 # Type: string (special format)
265 -#UdfAccess = Restrict UDF
266 +UdfAccess = Restrict %%PREFIX%%/libexec/firebird/udf
269 # ----------------------------
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
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)
282 include $(ROOT)/gen/make.shared.targets
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
292 -CHMOD_S7= chmod 06777
293 +CHMOD_S7= chmod 04555
297 @@ -152,7 +152,7 @@ EXE_LINK:= @CXX@ $(GLOB_OPTIONS) $(CXXFL
298 STATICEXE_LINK:= @CXX@ $(GLOB_OPTIONS) $(CXXFLAGS)
301 -ICU_LIBS = -licuuc -licudata -licui18n
302 +ICU_LIBS = -lsicuuc -lsicudata -lsicui18n
303 STATICLINK_LIBS = @LIBS@
304 SO_LINK_LIBS = @LIBS@
306 @@ -223,15 +223,14 @@ LIBFBSTATIC_A = $(LIB)/libfbstatic.a
308 ifeq ($(EDITLINE_FLG),Y)
309 ifeq ($(STD_EDITLINE), true)
310 - LIBEDITLINE := -l$(READLINE)
311 + LIBEDITLINE := $(shell pkgconf libedit --libs)
313 LIBEDITLINE := $(LIB)/libedit.a
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
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)
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)
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)
352 # (gpre current is a link to one of the others)
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
360 ifeq ($(STD_ICU),false)
361 WFLAGS:= $(WFLAGS) -I$(ROOT)/extern/icu/source/common -I$(ROOT)/extern/icu/source/i18n
363 + WFLAGS:= $(WFLAGS) $(shell icu-config --cppflags)
366 ifeq ($(IsProdTypeBuild),Y)
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)
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)
380 LINK_LIBS+=$(SFIO_LDFLAGS) -lstdio -lsfio
383 [FILE:3209:patches/patch-configure]
384 --- configure.orig 2019-06-17 15:47:04 UTC
386 @@ -2428,7 +2428,7 @@ _ACEOF
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
394 x86_64*-*-k*bsd-gnu) # Debian/kFreeBSD
395 @@ -2466,7 +2466,7 @@ _ACEOF
399 - *-*-freebsd* | *-*-k*bsd*-gnu)
400 + *-*-freebsd* | *-*-dragonfly* | *-*-k*bsd*-gnu)
401 MAKEFILE_PREFIX=freebsd
403 *-*-k*bsd-gnu) # Debian/kFreeBSD
404 @@ -2826,23 +2826,11 @@ _ACEOF
406 libdir=/usr/lib/pa20_64
410 - comp=`echo "$CXX" | cut -c1-2`
412 - CC) MAKEFILE_PREFIX=solaris
413 - ICU_PLATFORM=SOLARISX86
415 - PTHREAD_LIBS=-lpthread
417 - *) MAKEFILE_PREFIX=solx86gcc ;
418 - ICU_PLATFORM=SOLARISX86GCC ;
419 - PTHREAD_CFLAGS=-pthreads ;;
422 - if test "$isa" = "amd64"; then
423 - libdir=/usr/lib/amd64
426 + MAKEFILE_PREFIX=solx86gcc
427 + ICU_PLATFORM=SOLARISX86GCC
428 + PTHREAD_CFLAGS=-pthreads
429 + libdir=/usr/lib/amd64
430 INSTALL_PREFIX=solaris
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; }
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";;
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
446 - freebsd*) # from 4.6 on
447 + freebsd*|dragonfly*) # from 4.6 on
448 shlibpath_overrides_runpath=yes
449 hardcode_into_libs=yes
451 @@ -15574,7 +15562,7 @@ freebsd* | dragonfly*)
452 shlibpath_overrides_runpath=no
453 hardcode_into_libs=yes
455 - freebsd*) # from 4.6 on
456 + freebsd*|dragonfly*) # from 4.6 on
457 shlibpath_overrides_runpath=yes
458 hardcode_into_libs=yes
460 @@ -18202,7 +18190,7 @@ freebsd* | dragonfly*)
461 shlibpath_overrides_runpath=no
462 hardcode_into_libs=yes
464 - freebsd*) # from 4.6 on
465 + freebsd*|dragonfly*) # from 4.6 on
466 shlibpath_overrides_runpath=yes
467 hardcode_into_libs=yes
469 @@ -20837,7 +20825,7 @@ freebsd* | dragonfly*)
470 shlibpath_overrides_runpath=no
471 hardcode_into_libs=yes
473 - freebsd*) # from 4.6 on
474 + freebsd*|dragonfly*) # from 4.6 on
475 shlibpath_overrides_runpath=yes
476 hardcode_into_libs=yes
478 @@ -43408,7 +43396,7 @@ fi
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`/..)
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
495 /* Define _XOPEN_SOURCE for Solaris and friends. */
496 -/* NetBSD needs it to be >= 4 */
497 -#ifndef _XOPEN_SOURCE
498 -#define _XOPEN_SOURCE 4
500 +#define __EXTENSIONS__
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
512 %.$(STATIC_O): $(srcdir)/%.c
513 - $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -o $@ $<
514 + $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -fPIC -DPIC -o $@ $<
516 - $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $<
517 + $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -fPIC -DPIC -o $@ $<
519 %.$(STATIC_O): $(srcdir)/%.cpp
520 - $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $<
521 + $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -fPIC -DPIC -o $@ $<
523 - $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
524 + $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -fPIC -DPIC -o $@ $<
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
536 %.$(STATIC_O): $(srcdir)/%.c
537 - $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -o $@ $<
538 + $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -fPIC -DPIC -o $@ $<
540 - $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $<
541 + $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -fPIC -DPIC -o $@ $<
543 %.$(STATIC_O): $(srcdir)/%.cpp
544 - $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $<
545 + $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -fPIC -DPIC -o $@ $<
547 - $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
548 + $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -fPIC -DPIC -o $@ $<
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
561 -THREADSCFLAGS += -threads
562 -THREADSCXXFLAGS += -threads
565 ## Commands to generate dependency files
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
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 ;;
578 if test "$GCC" = yes; then
579 icu_cv_host_frag=mh-aix-gcc
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
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
596 - GENCCODE_ASSEMBLY=-a gcc
598 + CXX=g++; export CXX
602 @@ -299,7 +293,7 @@ case $platform in
604 RELEASE_CXXFLAGS='-O2'
609 THE_COMP="the GNU C++"
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)
619 $(DERB) : $(DERB_OBJ)
620 - $(LINK.c) $(OUTOPT)$@ $^ $(LIBS)
621 + $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
624 # the 'mv' will always fail if you are building in the source dir
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
633 $(TARGET) : $(OBJECTS)
634 - $(LINK.c) $(OUTOPT)$@ $^ $(LIBS)
635 + $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
637 ifeq (,$(MAKECMDGOALS))
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;
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
651 static inline size_t MEM_ALIGN(size_t value)
655 [FILE:397:patches/patch-src_jrd_common.h]
656 --- src/jrd/common.h.orig 2019-06-17 15:15:53 UTC
658 @@ -339,9 +339,6 @@ your operating system.
659 Earlier versions of Solaris still have the problem. pbeach Feb2010
662 -#if (!defined(__arch64__)) && (!defined(SFIO))
663 -#error "need to use SFIO"
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);
670 [FILE:1896:files/firebird.in]
677 # Add the following line to /etc/rc.conf to enable Firebird Database:
680 # firebird_enable: Set it to "YES" to enable firebird.
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".
693 rcvar=firebird_enable
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
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"
713 touch ${firebird_pidfile}
714 chown "${firebird_user}:wheel" ${firebird_pidfile} ||
715 err 1 "Cannot chown ${firebird_pidfile}"
720 pgrep -u ${firebird_user} ${command_app} > ${firebird_pidfile}
721 echo "Current firebird mode is $firebird_mode"
735 case "${firebird_mode}" in
737 command=%%PREFIX%%/sbin/fb_smp_server
738 command_app=fb_smp_server
741 command=%%PREFIX%%/sbin/fbserver
745 warn "$firebird_mode is an invalid value for firebird_mode"
753 [FILE:838:files/pkg-install-server]
756 PATH=/bin:/usr/bin:/usr/sbin
760 ###############################################################################
764 Keep in mind that if you build firebird server as 'root', this may cause
765 conflicts with SysV semaphores of running services.
767 If you want to cancel it, press ctrl-C now if you need check some things
770 ###############################################################################
784 for i in isc_init1 isc_lock1 isc_event1
786 FileName=$i.`hostname`
788 chmod uga=rw $FileName
789 chown firebird:firebird $FileName
793 chown firebird:firebird firebird.log security2.fdb
800 [FILE:1468:files/pkg-message-server.in]
801 ###############################################################################
803 Firebird was installed.
805 1) Support for Super Server has been added
806 2) Before start the server ensure that the following line exists in /etc/services:
808 gds_db 3050/tcp #InterBase Database Remote Protocol
810 3) If you use inetd (Classic Server) then add the following line to /etc/inetd.conf
812 gds_db stream tcp nowait firebird %%PREFIX%%/sbin/fb_inet_server fb_inet_server
814 And finally restart inetd.
816 4) If you want to use SuperClassic Server then you must add the following lines
817 to /etc/rc.conf file.
819 firebird_enable="YES"
820 firebird_mode="superclassic"
822 5) If you want to use Super Server then you must add the following lines to
825 firebird_enable="YES"
826 firebird_mode="superserver"
828 Note: Keep in mind that you only can add one of them but never both modes on
831 6) Bedore doing anything serious with Firebird, it is STRONGLY recommended
832 that you change the SYSDBA password with:
834 # gsec -user SYSDBA -pass masterkey
835 GSEC> modify SYSDBA -pw newpassword
838 7) See documentation in %%DOCDIR%%/ for more information.
839 8) Some firebird tools were renamed for avoid conflicts with some other ports
841 %%PREFIX%%/bin/isql -> %%PREFIX%%/bin/isql-fb
842 %%PREFIX%%/bin/gstat -> %%PREFIX%%/bin/fbstat
843 %%PREFIX%%/bin/gsplit -> %%PREFIX%%/bin/fbsplit
845 ################################################################################
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
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
871 # private entrypoint for REMOTE server
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
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
899 # private entrypoint for REMOTE server