# Buildsheet autogenerated by ravenadm tool -- Do not edit. NAMEBASE= firebird25 VERSION= 2.5.9 REVISION= 1 KEYWORDS= databases VARIANTS= standard SDESC[standard]= Firebird-2 relational SQL database HOMEPAGE= https://www.firebirdsql.org/ CONTACT= nobody DOWNLOAD_GROUPS= main SITES[main]= https://github.com/FirebirdSQL/firebird/releases/download/R2_5_9/ DISTFILE[1]= Firebird-2.5.9.27139-0.tar.bz2:main DF_INDEX= 1 SPKGS[standard]= complete server client docs dev OPTIONS_AVAILABLE= none OPTIONS_STANDARD= none BROKEN[sunos]= gpre segfaults on dpm.cpp during at end of build NOT_FOR_OPSYS= netbsd NOT_FOR_ARCH= aarch64 BUILDRUN_DEPENDS= libedit:single:standard EXRUN[server]= firebird25:client:standard USERS= firebird GROUPS= firebird USERGROUP_SPKG= server USES= cpe gmake ncurses pkgconfig c++:server,client DISTNAME= Firebird-2.5.9.27139-0 LICENSE= CUSTOM1:server CUSTOM2:server LICENSE_TERMS= server:{{WRKSRC}}/doc/license/README.license.usage.txt LICENSE_NAME= CUSTOM1:"Initial Developer's Public License" CUSTOM2:"InterBase Public License" LICENSE_FILE= CUSTOM1:{{WRKSRC}}/builds/install/misc/IDPLicense.txt CUSTOM2:{{WRKSRC}}/builds/install/misc/IPLicense.txt LICENSE_SCHEME= multi CPE_PRODUCT= firebird CPE_VENDOR= firebirdsql FPC_EQUIVALENT= databases/firebird25-server MUST_CONFIGURE= gnu CONFIGURE_ARGS= --prefix=/var/db/firebird --exec-prefix={{PREFIX}} --with-fbconf={{PREFIX}}/etc/firebird --with-fbglock=/var/db/firebird --with-fbhelp=/var/db/firebird/help --with-fbintl={{PREFIX}}/libexec/firebird/intl --with-fblog=/var/db/firebird --with-fbmsg={{PREFIX}}/share/firebird --with-fbplugins={{PREFIX}}/libexec/firebird/plugins --with-fbsbin={{PREFIX}}/sbin --with-fbsecure-db=/var/db/firebird --with-fbudf={{PREFIX}}/libexec/firebird/UDF --with-system-editline --enable-superserver CONFIGURE_ENV= PTHREAD_LIBS="-lpthread" ac_cv_header_atomic_ops_h="no" ac_cv_lib_atomic_ops_main="no" ac_cv_lib_edit_readline="yes" BUILD_TARGET= firebird_basic libfbembed libfbclient embed_isql embed_gpre embed_gdef embed_qli extlib firebird_embedded firebird_server MAKE_ARGS= PREFIX="{{STAGEDIR}}{{PREFIX}}" MAKE_ENV= FIREBIRD_TMP="{{WRKDIR}}" FIREBIRD_LOCK="{{WRKDIR}}" SINGLE_JOB= yes PLIST_SUB= SOVERSION=2.5.9 SOMINOR=2.5 SOMAJOR=2 LOCALSTATEDIR=/var/db/firebird CONFDIR=etc/firebird RC_SUBR= firebird:server SUB_FILES= pkg-message-server SUB_LIST= DOCDIR={{STD_DOCDIR}} CXXFLAGS= -std=gnu++98 -fno-lifetime-dse VAR_ARCH[x86_64]= CFLAGS=-DAMD64 post-patch: ${FIND} ${WRKSRC} -name "*.sh" -exec ${CHMOD} +x {} \+ do-install: @${MKDIR} ${STAGEDIR}${PREFIX}/bin \ ${STAGEDIR}${PREFIX}/lib \ ${STAGEDIR}${PREFIX}/include \ ${STAGEDIR}${PREFIX}/sbin \ ${STAGEDIR}${PREFIX}/share/firebird \ ${STAGEDIR}${PREFIX}/etc/firebird \ ${STAGEDIR}${PREFIX}/libexec/firebird/udf \ ${STAGEDIR}/var/db/firebird/help \ ${STAGEDIR}${PREFIX}/libexec/firebird/intl \ ${STAGEDIR}${PREFIX}/libexec/firebird/plugins ${INSTALL_LIB} ${WRKSRC}/gen/firebird/lib/libib_util.so \ ${WRKSRC}/gen/firebird/lib/libfbclient.so.2.5.9 \ ${WRKSRC}/gen/firebird/lib/libfbembed.so.2.5.9 \ ${STAGEDIR}${PREFIX}/lib .for ext in so so.2 so.2.5 ${LN} -fs libfbclient.so.2.5.9 ${STAGEDIR}${PREFIX}/lib/libfbclient.${ext} ${LN} -fs libfbembed.so.2.5.9 ${STAGEDIR}${PREFIX}/lib/libfbembed.${ext} ${LN} -fs libfbembed.so.2.5.9 ${STAGEDIR}${PREFIX}/lib/libgds.${ext} .endfor ${INSTALL_DATA} ${WRKSRC}/gen/firebird/include/*.h ${STAGEDIR}${PREFIX}/include ${INSTALL_DATA} ${WRKSRC}/gen/firebird/*.msg ${STAGEDIR}${PREFIX}/share/firebird ${SED} -e "s=%%PREFIX%%=${PREFIX}=g" ${WRKSRC}/gen/install/misc/firebird.conf \ > ${WRKDIR}/firebird.conf ${INSTALL_DATA} ${WRKDIR}/firebird.conf ${STAGEDIR}${PREFIX}/etc/firebird/firebird.conf.sample ${INSTALL_DATA} ${WRKSRC}/gen/install/misc/aliases.conf \ ${STAGEDIR}${PREFIX}/etc/firebird/aliases.conf.sample ${INSTALL_DATA} ${WRKSRC}/gen/install/misc/fbtrace.conf \ ${STAGEDIR}${PREFIX}/etc/firebird/fbtrace.conf ${INSTALL_DATA} ${WRKSRC}/gen/install/misc/fbintl.conf \ ${STAGEDIR}${PREFIX}/libexec/firebird/intl/fbintl.conf .for bin in gpre isql-fb qli fbguard fbsplit fbstat fbsvcmgr fbtracemgr gbak gdef gfix gsec nbackup ${INSTALL_PROGRAM} ${WRKSRC}/gen/firebird/bin/${bin} ${STAGEDIR}${PREFIX}/bin .endfor .for sbin in fb_inet_server fb_lock_print fb_smp_server fbserver ${INSTALL_PROGRAM} ${WRKSRC}/gen/firebird/bin/${sbin} ${STAGEDIR}${PREFIX}/sbin .endfor .for udf_so in ib_udf.so fbudf.so ${INSTALL} ${STRIP} -m 0555 ${WRKSRC}/gen/firebird/UDF/${udf_so} \ ${STAGEDIR}${PREFIX}/libexec/firebird/udf .endfor .for udf_sql in src/extlib/ib_udf2.sql src/extlib/fbudf/fbudf.sql ${INSTALL} -m 0444 ${WRKSRC}/${udf_sql} ${STAGEDIR}${PREFIX}/libexec/firebird/udf .endfor ${INSTALL} ${STRIP} -m 0555 ${WRKSRC}/gen/firebird/plugins/libfbtrace.so \ ${STAGEDIR}${PREFIX}/libexec/firebird/plugins ${INSTALL} -m 0660 ${WRKSRC}/gen/firebird/security2.fdb \ ${STAGEDIR}/var/db/firebird/security2.fdb.sample ${INSTALL} -m 0440 ${WRKSRC}/gen/firebird/help/help.fdb \ ${STAGEDIR}/var/db/firebird/help ${INSTALL} ${STRIP} -m 0555 ${WRKSRC}/gen/firebird/intl/libfbintl.so \ ${STAGEDIR}${PREFIX}/libexec/firebird/intl/fbintl.so # docs @${MKDIR} ${STAGEDIR}${STD_DOCDIR}/sql.extensions \ ${STAGEDIR}${STD_DOCDIR}/license \ ${STAGEDIR}${STD_DOCDIR}/upgrade ${INSTALL_DATA} ${WRKSRC}/doc/sql.extensions/* \ ${STAGEDIR}${STD_DOCDIR}/sql.extensions ${INSTALL_DATA} ${WRKSRC}/doc/license/* \ ${STAGEDIR}${STD_DOCDIR}/license ${INSTALL_DATA} ${WRKSRC}/src/misc/upgrade/v2/* \ ${STAGEDIR}${STD_DOCDIR}/upgrade .for F in WhatsNew README.* Firebird* ReleaseNotes.pdf ambiguity.txt ods11-index-structure.html ${INSTALL_DATA} ${WRKSRC}/doc/${F} ${STAGEDIR}${STD_DOCDIR} .endfor [FILE:568:descriptions/desc.server] Firebird is a relational database offering many ANSI SQL-99 features that runs on Linux, Windows, and a variety of Unix platforms. Firebird offers excellent concurrency, high performance, and powerful language support for stored procedures and triggers. It has been used in production systems, under a variety of names since 1981. Firebird is completely free of any registration, licensing or deployment fees. It may be deployed freely for use with any third-party software, whether commercial or not. This package contains the Firebird server and related files. [FILE:193:descriptions/desc.client] Firebird is a relational database offering many ANSI SQL-99 features that runs on Linux, Windows, and a variety of Unix platforms. This package contains the Firebird client and related files. [FILE:109:distinfo] 46ee37b14b44f3e45cd286b739f92e9366643f52bef51a131cc973a6980d9481 13567295 Firebird-2.5.9.27139-0.tar.bz2 [FILE:870:manifests/plist.server] @sample %%CONFDIR%%/aliases.conf.sample @sample %%LOCALSTATEDIR%%/security2.fdb.sample %%CONFDIR%%/fbtrace.conf @(firebird,firebird,) %%LOCALSTATEDIR%%/help/help.fdb bin/ fbguard fbsplit fbstat fbsvcmgr fbtracemgr gbak gdef gfix gsec nbackup @(,firebird,) libexec/firebird/intl/fbintl.conf @(,firebird,) libexec/firebird/intl/fbintl.so @(,firebird,) libexec/firebird/plugins/libfbtrace.so @(,firebird,) libexec/firebird/udf/fbudf.so @(,firebird,) libexec/firebird/udf/fbudf.sql @(,firebird,) libexec/firebird/udf/ib_udf.so @(,firebird,) libexec/firebird/udf/ib_udf2.sql sbin/ fb_inet_server fb_lock_print fb_smp_server fbserver @preunexec [ -s %%LOCALSTATEDIR%%/firebird.log ] || rm -f %%LOCALSTATEDIR%%/firebird.log @rmtry %%LOCALSTATEDIR%%/isc_event1.`hostname` @rmtry %%LOCALSTATEDIR%%/isc_init1.`hostname` @rmtry %%LOCALSTATEDIR%%/isc_lock1.`hostname` [FILE:338:manifests/plist.client] @sample %%CONFDIR%%/firebird.conf.sample bin/ gpre isql-fb qli lib/ libfbclient.so.%%SOMAJOR%% libfbclient.so.%%SOMINOR%% libfbclient.so.%%SOVERSION%% libfbembed.so.%%SOMAJOR%% libfbembed.so.%%SOMINOR%% libfbembed.so.%%SOVERSION%% libgds.so.%%SOMAJOR%% libgds.so.%%SOMINOR%% share/firebird/ de_DE.msg firebird.msg fr_FR.msg [FILE:110:manifests/plist.dev] include/ ib_util.h ibase.h iberror.h perf.h lib/ libfbclient.so libfbembed.so libgds.so libib_util.so [FILE:416:patches/patch-builds_install_misc_firebird.conf.in] --- builds/install/misc/firebird.conf.in.orig 2019-06-17 15:15:52 UTC +++ builds/install/misc/firebird.conf.in @@ -60,7 +60,7 @@ # # Type: string # -#RootDirectory = +#RootDirectory = /var/db/firebird # ---------------------------- @@ -137,7 +137,7 @@ # # Type: string (special format) # -#UdfAccess = Restrict UDF +UdfAccess = Restrict %%PREFIX%%/libexec/firebird/udf # ---------------------------- [FILE:471:patches/patch-builds_posix_Makefile.in.extern.icu] --- builds/posix/Makefile.in.extern.icu.orig 2019-06-17 15:15:52 UTC +++ builds/posix/Makefile.in.extern.icu @@ -37,6 +37,6 @@ ALL_ICU_SO = $(addsuffix *, $(notdir $(L libicu: $(MAKE) -C $(ROOT)/extern/icu/source - (cd $(ROOT)/extern/icu/source/lib/; tar cf - $(ALL_ICU_SO)) | (cd $(LIB); tar xf -) + (cd $(ROOT)/extern/icu/source/lib/; tar cf - $(ALL_ICU_SO)) | (cd $(LIB); tar xf - --no-same-owner --no-same-permissions) include $(ROOT)/gen/make.shared.targets [FILE:2233:patches/patch-builds_posix_make.defaults] --- builds/posix/make.defaults.orig 2019-06-17 15:15:52 UTC +++ builds/posix/make.defaults @@ -126,7 +126,7 @@ RM_R= rm -rf CHMOD= chmod CHMOD_6= chmod 666 CHMOD_7= chmod 777 -CHMOD_S7= chmod 06777 +CHMOD_S7= chmod 04555 MV= mv -f TOUCH= touch CP= cp @@ -152,7 +152,7 @@ EXE_LINK:= @CXX@ $(GLOB_OPTIONS) $(CXXFL STATICEXE_LINK:= @CXX@ $(GLOB_OPTIONS) $(CXXFLAGS) LINK_LIBS = @LIBS@ -ICU_LIBS = -licuuc -licudata -licui18n +ICU_LIBS = -lsicuuc -lsicudata -lsicui18n STATICLINK_LIBS = @LIBS@ SO_LINK_LIBS = @LIBS@ @@ -223,15 +223,14 @@ LIBFBSTATIC_A = $(LIB)/libfbstatic.a ifeq ($(EDITLINE_FLG),Y) ifeq ($(STD_EDITLINE), true) - LIBEDITLINE := -l$(READLINE) + LIBEDITLINE := $(shell pkgconf libedit --libs) else LIBEDITLINE := $(LIB)/libedit.a endif endif -LIBICU_SO = $(LIB)/$(LIB_PREFIX)icuuc*.$(SHRLIB_FOREIGN_EXT) \ - $(LIB)/$(LIB_PREFIX)icudata*.$(SHRLIB_FOREIGN_EXT) \ - $(LIB)/$(LIB_PREFIX)icui18n*.$(SHRLIB_FOREIGN_EXT) +LIBICU_SO = $(LIB)/$(LIB_PREFIX)sicuuc*.a $(LIB)/$(LIB_PREFIX)sicudata*.a \ + $(LIB)/$(LIB_PREFIX)sicui18n*.a # Shared library name for usage inside of the UDF IbUtilLibraryName = $(LIB_PREFIX)ib_util.$(SHRLIB_EXT) @@ -305,7 +304,7 @@ CREATE_DB = $(BIN)/create_db$(EXEC_EXT) GDS_DROP = $(BIN)/gds_drop$(EXEC_EXT) FBSVCMGR = $(BIN)/fbsvcmgr$(EXEC_EXT) FBTRACEMGR = $(BIN)/fbtracemgr$(EXEC_EXT) -GSTAT = $(BIN)/gstat$(EXEC_EXT) +GSTAT = $(BIN)/fbstat$(EXEC_EXT) NBACKUP = $(BIN)/nbackup$(EXEC_EXT) FBTRACE = $(PLUGINS)/$(LIB_PREFIX)fbtrace.$(SHRLIB_EXT) LOCKPRINT = $(BIN)/fb_lock_print$(EXEC_EXT) @@ -327,14 +326,14 @@ ISC_GBAK = $(BIN)/security.gbak QLI = $(BIN)/qli$(EXEC_EXT) # From isql -ISQL = $(BIN)/isql$(EXEC_EXT) -ISQL_STATIC = $(BIN)/isql_static$(EXEC_EXT) -MUISQL = $(BIN)/muisql$(EXEC_EXT) +ISQL = $(BIN)/isql-fb$(EXEC_EXT) +ISQL_STATIC = $(BIN)/isql-fb_static$(EXEC_EXT) +MUISQL = $(BIN)/muisql-fb$(EXEC_EXT) # From burp GBAK_STATIC = $(BIN)/gbak_static$(EXEC_EXT) GBAK = $(BIN)/gbak$(EXEC_EXT) -GSPLIT = $(BIN)/gsplit$(EXEC_EXT) +GSPLIT = $(BIN)/fbsplit$(EXEC_EXT) # From gpre # (gpre current is a link to one of the others) [FILE:358:patches/patch-builds_posix_make.rules] --- builds/posix/make.rules.orig 2019-06-17 15:15:52 UTC +++ builds/posix/make.rules @@ -37,6 +37,8 @@ WFLAGS:=$(CPPFLAGS) -I$(SRC_ROOT)/includ ifeq ($(STD_ICU),false) WFLAGS:= $(WFLAGS) -I$(ROOT)/extern/icu/source/common -I$(ROOT)/extern/icu/source/i18n +else + WFLAGS:= $(WFLAGS) $(shell icu-config --cppflags) endif ifeq ($(IsProdTypeBuild),Y) [FILE:390:patches/patch-builds_posix_prefix.solx86gcc] --- builds/posix/prefix.solx86gcc.orig 2019-06-17 15:15:52 UTC +++ builds/posix/prefix.solx86gcc @@ -32,7 +32,7 @@ ifdef SFIO COMM_SOLX_FLAGS+=$(SFIO_FLAGS) endif -PROD_FLAGS=-DNDEBUG -w $(COMM_SOLX_FLAGS) -O2 -march=pentium +PROD_FLAGS=-DNDEBUG -w $(COMM_SOLX_FLAGS) -O2 DEV_FLAGS=$(COMM_SOLX_FLAGS) -ggdb -g3 -p $(WARNINGS) ifdef SFIO LINK_LIBS+=$(SFIO_LDFLAGS) -lstdio -lsfio [FILE:3209:patches/patch-configure] --- configure.orig 2019-06-17 15:47:04 UTC +++ configure @@ -2428,7 +2428,7 @@ _ACEOF SHRLIB_EXT=so ;; - amd64-*-freebsd* | x86_64*-*-freebsd* | x86_64*-*-k*bsd*-gnu) + amd64-*-freebsd* | x86_64*-*-freebsd* | x86_64-*-dragonfly* | x86_64*-*-k*bsd*-gnu) MAKEFILE_PREFIX=freebsd_amd64 case "$target" in x86_64*-*-k*bsd-gnu) # Debian/kFreeBSD @@ -2466,7 +2466,7 @@ _ACEOF SHRLIB_EXT=so ;; - *-*-freebsd* | *-*-k*bsd*-gnu) + *-*-freebsd* | *-*-dragonfly* | *-*-k*bsd*-gnu) MAKEFILE_PREFIX=freebsd case "$target" in *-*-k*bsd-gnu) # Debian/kFreeBSD @@ -2826,23 +2826,11 @@ _ACEOF SHRLIB_EXT=sl libdir=/usr/lib/pa20_64 ;; - - i386-pc-solaris*) - comp=`echo "$CXX" | cut -c1-2` - case $comp in - CC) MAKEFILE_PREFIX=solaris - ICU_PLATFORM=SOLARISX86 - PTHREAD_CFLAGS=-mt - PTHREAD_LIBS=-lpthread - ;; - *) MAKEFILE_PREFIX=solx86gcc ; - ICU_PLATFORM=SOLARISX86GCC ; - PTHREAD_CFLAGS=-pthreads ;; - esac - isa=`isainfo -k` - if test "$isa" = "amd64"; then - libdir=/usr/lib/amd64 - fi + x86_64-*-solaris*) + MAKEFILE_PREFIX=solx86gcc + ICU_PLATFORM=SOLARISX86GCC + PTHREAD_CFLAGS=-pthreads + libdir=/usr/lib/amd64 INSTALL_PREFIX=solaris PLATFORM=solx86 @@ -4502,7 +4490,7 @@ $as_echo "$as_me: WARNING: we do not kno $as_echo_n "checking if more special flags are required for pthreads... " >&6; } flag=no case "${host_cpu}-${host_os}" in - *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; + *-aix* | *-freebsd* | *-dragonfly* | *-darwin*) flag="-D_THREAD_SAFE";; *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; esac { $as_echo "$as_me:$LINENO: result: ${flag}" >&5 @@ -11582,7 +11570,7 @@ freebsd* | dragonfly*) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; - freebsd*) # from 4.6 on + freebsd*|dragonfly*) # from 4.6 on shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; @@ -15574,7 +15562,7 @@ freebsd* | dragonfly*) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; - freebsd*) # from 4.6 on + freebsd*|dragonfly*) # from 4.6 on shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; @@ -18202,7 +18190,7 @@ freebsd* | dragonfly*) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; - freebsd*) # from 4.6 on + freebsd*|dragonfly*) # from 4.6 on shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; @@ -20837,7 +20825,7 @@ freebsd* | dragonfly*) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; - freebsd*) # from 4.6 on + freebsd*|dragonfly*) # from 4.6 on shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; @@ -43408,7 +43396,7 @@ fi (cd extern/icu/source chmod +x runConfigureICU configure install-sh -./runConfigureICU "$ICU_PLATFORM" "$DEBUG_ICU" "$ICU_EXTRAS" --prefix=`pwd`/..) +./runConfigureICU "$ICU_PLATFORM" "$DEBUG_ICU" "$ICU_EXTRAS" --disable-shared --enable-static --prefix=`pwd`/..) fi echo [FILE:342:patches/patch-extern_icu_source_common_putil.c] --- extern/icu/source/common/putil.c.orig 2019-06-17 15:15:52 UTC +++ extern/icu/source/common/putil.c @@ -43,9 +43,8 @@ #ifndef PTX /* Define _XOPEN_SOURCE for Solaris and friends. */ -/* NetBSD needs it to be >= 4 */ -#ifndef _XOPEN_SOURCE -#define _XOPEN_SOURCE 4 +#ifdef __sun__ +#define __EXTENSIONS__ #endif #if defined(DARWIN) [FILE:830:patches/patch-extern_icu_source_config_mh-bsd-gcc] --- extern/icu/source/config/mh-bsd-gcc.orig 2019-06-17 15:15:52 UTC +++ extern/icu/source/config/mh-bsd-gcc @@ -26,14 +26,14 @@ STATIC_O = ao ## Compilation rules %.$(STATIC_O): $(srcdir)/%.c - $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -o $@ $< + $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -fPIC -DPIC -o $@ $< %.o: $(srcdir)/%.c - $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $< + $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -fPIC -DPIC -o $@ $< %.$(STATIC_O): $(srcdir)/%.cpp - $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $< + $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -fPIC -DPIC -o $@ $< %.o: $(srcdir)/%.cpp - $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $< + $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -fPIC -DPIC -o $@ $< ## Dependency rules [FILE:826:patches/patch-extern_icu_source_config_mh-linux] --- extern/icu/source/config/mh-linux.orig 2019-06-17 15:15:52 UTC +++ extern/icu/source/config/mh-linux @@ -33,14 +33,14 @@ STATIC_O = ao ## Compilation rules %.$(STATIC_O): $(srcdir)/%.c - $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -o $@ $< + $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -fPIC -DPIC -o $@ $< %.o: $(srcdir)/%.c - $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $< + $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -fPIC -DPIC -o $@ $< %.$(STATIC_O): $(srcdir)/%.cpp - $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $< + $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -fPIC -DPIC -o $@ $< %.o: $(srcdir)/%.cpp - $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $< + $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -fPIC -DPIC -o $@ $< ## Dependency rules [FILE:291:patches/patch-extern_icu_source_config_mh-solaris-gcc] --- extern/icu/source/config/mh-solaris-gcc.orig 2019-06-17 15:15:52 UTC +++ extern/icu/source/config/mh-solaris-gcc @@ -8,8 +8,6 @@ SHAREDLIBCFLAGS = -fPIC SHAREDLIBCXXFLAGS = -fPIC -THREADSCFLAGS += -threads -THREADSCXXFLAGS += -threads ## Commands to generate dependency files [FILE:396:patches/patch-extern_icu_source_configure] --- extern/icu/source/configure.orig 2019-06-17 15:15:52 UTC +++ extern/icu/source/configure @@ -3122,7 +3122,7 @@ alpha*-*-linux-gnu) icu_cv_host_frag=mh-cygwin-msvc fi ;; *-*-mingw*) icu_cv_host_frag=mh-mingw ;; -*-*-*bsd*) icu_cv_host_frag=mh-bsd-gcc ;; +*-*-*bsd*|*-*-dragonfly*) icu_cv_host_frag=mh-bsd-gcc ;; *-*-aix*) if test "$GCC" = yes; then icu_cv_host_frag=mh-aix-gcc [FILE:913:patches/patch-extern_icu_source_runConfigureICU] --- extern/icu/source/runConfigureICU.orig 2019-06-17 15:15:52 UTC +++ extern/icu/source/runConfigureICU @@ -175,14 +175,8 @@ case $platform in SOLARISX86GCC) THE_OS="SOLARIS X86" THE_COMP="the GNU C++" - CC=`which gcc`; export CC - CXX=`which g++`; export CXX - C_FLAGS="-w -threads";export C_FLAGS - CXXFLAGS="$CXXFLAGS -I/usr/local/include/g++ -threads"; export CXXFLAGS - LDFLAGS="$LDFLAGS -R/usr/local/lib -threads "; export LDFLAGS - RELEASE_CXXFLAGS=-O - RELEASE_CFLAGS=-O3 - GENCCODE_ASSEMBLY=-a gcc + CC=gcc; export CC + CXX=g++; export CXX ;; SOLARISCC) THE_OS=SOLARIS @@ -299,7 +293,7 @@ case $platform in RELEASE_CFLAGS='-O2' RELEASE_CXXFLAGS='-O2' ;; - *BSD) + *BSD|DragonFly) THE_OS="BSD" THE_COMP="the GNU C++" CC=gcc; export CC [FILE:368:patches/patch-extern_icu_source_tools_genrb_Makefile.in] --- extern/icu/source/tools/genrb/Makefile.in.orig 2019-06-17 15:15:52 UTC +++ extern/icu/source/tools/genrb/Makefile.in @@ -81,7 +81,7 @@ $(TARGET) : $(OBJECTS) $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS) $(DERB) : $(DERB_OBJ) - $(LINK.c) $(OUTOPT)$@ $^ $(LIBS) + $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS) # the 'mv' will always fail if you are building in the source dir [FILE:400:patches/patch-extern_icu_source_tools_pkgdata_Makefile.in] --- extern/icu/source/tools/pkgdata/Makefile.in.orig 2019-06-17 15:15:52 UTC +++ extern/icu/source/tools/pkgdata/Makefile.in @@ -90,7 +90,7 @@ Makefile: $(srcdir)/Makefile.in $(top_b && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status $(TARGET) : $(OBJECTS) - $(LINK.c) $(OUTOPT)$@ $^ $(LIBS) + $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS) ifeq (,$(MAKECMDGOALS)) -include $(DEPS) [FILE:386:patches/patch-src-common-classes_alloc.h] --- src/common/classes/alloc.h.orig 2019-06-17 15:15:52 UTC +++ src/common/classes/alloc.h @@ -92,7 +92,7 @@ namespace Firebird { const int MAX_TREE_DEPTH = 4; // Alignment for all memory blocks. Sizes of memory blocks in headers are measured in this units -const size_t ALLOC_ALIGNMENT = FB_ALIGNMENT; +#define ALLOC_ALIGNMENT 16 static inline size_t MEM_ALIGN(size_t value) { [FILE:397:patches/patch-src_jrd_common.h] --- src/jrd/common.h.orig 2019-06-17 15:15:53 UTC +++ src/jrd/common.h @@ -339,9 +339,6 @@ your operating system. Earlier versions of Solaris still have the problem. pbeach Feb2010 */ -#if (!defined(__arch64__)) && (!defined(SFIO)) -#error "need to use SFIO" -#endif // this function is normally defined in stdio.h, but is missing in SFIO's h-file extern "C" int remove(const char* path); [FILE:1896:files/firebird.in] #!/bin/sh # # PROVIDE: firebird # REQUIRE: LOGIN # KEYWORD: shutdown # # Add the following line to /etc/rc.conf to enable Firebird Database: # # # firebird_enable: Set it to "YES" to enable firebird. # Default is "NO". # firebird_mode: Set it to "superclassic" or "superserver" to enable firebird. # Default is "superclassic". # firebird_flags: Set options to run fbserver or fb_smp_server. # Default is "-el /var/db/firebird". # firebird_pidfile: Set full path to pid file. # Default is "/var/run/firebird.pid". # . /etc/rc.subr name=firebird rcvar=firebird_enable load_rc_config $name firebird_enable=${firebird_enable:-"NO"} firebird_mode=${firebird_mode:-"superclassic"} firebird_flags=${firebird_flags:-"-el /var/db/firebird"} firebird_pidfile=${firebird_pidfile:-"/var/run/${name}.pid"} firebird_user=firebird command=%%PREFIX%%/sbin/fb_smp_server command_args="${firebird_flags} &" pidfile=${firebird_pidfile} start_precmd="start_precmd" start_postcmd="start_postcmd" stop_postcmd="stop_postcmd" reload_postcmd="reload_postcmd" start_precmd() { touch ${firebird_pidfile} chown "${firebird_user}:wheel" ${firebird_pidfile} || err 1 "Cannot chown ${firebird_pidfile}" } start_postcmd() { pgrep -u ${firebird_user} ${command_app} > ${firebird_pidfile} echo "Current firebird mode is $firebird_mode" } stop_postcmd() { rm -f ${pidfile} } reload_postcmd() { rm -f ${pidfile} run_rc_command start } case "${firebird_mode}" in superclassic) command=%%PREFIX%%/sbin/fb_smp_server command_app=fb_smp_server ;; superserver) command=%%PREFIX%%/sbin/fbserver command_app=fbserver ;; *) warn "$firebird_mode is an invalid value for firebird_mode" return 1 ;; esac run_rc_command "$1" [FILE:838:files/pkg-install-server] #!/bin/sh PATH=/bin:/usr/bin:/usr/sbin buildwarning() { cat < modify SYSDBA -pw newpassword GSEC> quit 7) See documentation in %%DOCDIR%%/ for more information. 8) Some firebird tools were renamed for avoid conflicts with some other ports %%PREFIX%%/bin/isql -> %%PREFIX%%/bin/isql-fb %%PREFIX%%/bin/gstat -> %%PREFIX%%/bin/fbstat %%PREFIX%%/bin/gsplit -> %%PREFIX%%/bin/fbsplit ################################################################################ [FILE:163:dragonfly/patch-builds_posix_empty.vers] --- builds/posix/empty.vers.orig 2019-06-17 15:15:52 UTC +++ builds/posix/empty.vers @@ -27,6 +27,8 @@ { global: main; + __progname; + environ; local: *; [FILE:225:dragonfly/patch-builds_posix_firebird.vers] --- builds/posix/firebird.vers.orig 2019-06-17 15:15:52 UTC +++ builds/posix/firebird.vers @@ -25,6 +25,8 @@ { global: + __progname; + environ; # private entrypoint for REMOTE server server_main; #------------------- [FILE:163:freebsd/patch-builds_posix_empty.vers] --- builds/posix/empty.vers.orig 2019-06-17 15:15:52 UTC +++ builds/posix/empty.vers @@ -27,6 +27,8 @@ { global: main; + __progname; + environ; local: *; [FILE:225:freebsd/patch-builds_posix_firebird.vers] --- builds/posix/firebird.vers.orig 2019-06-17 15:15:52 UTC +++ builds/posix/firebird.vers @@ -25,6 +25,8 @@ { global: + __progname; + environ; # private entrypoint for REMOTE server server_main; #-------------------