Last active
March 13, 2025 14:59
-
-
Save usmansaleem/1cb81d366fd721bd09b85579dc37aacf to your computer and use it in GitHub Desktop.
Notes on building Firebird 2.5.4 on Alpine Linux (in docker)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apk add --no-cache --virtual=build-dependencies build-base ncurses-dev icu-dev tar | |
apk add --no-cache --virtual=build-dependencies --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ shadow | |
mkdir /work && cd /work | |
wget -O firebird-source.tar.bz2 http://downloads.sourceforge.net/project/firebird/firebird/2.5.4-Release/Firebird-2.5.4.26856-0.tar.bz2 | |
tar --strip=1 -xf firebird-source.tar.bz2 | |
#Patch rwlock.h (this has been fixed in later release of firebird 3.x) | |
sed -i '194s/.*/#if 0/' src/common/classes/rwlock.h | |
#Patch perf.h (libio.h is not available on Alpine) | |
sed -i '35s/.*/ /' src/jrd/perf.h | |
export PREFIX=/usr/local/firebird | |
./configure --enable-superserver \ | |
--prefix=${PREFIX} --with-fbbin=${PREFIX}/bin --with-fbsbin=${PREFIX}/bin --with-fblib=${PREFIX}/lib \ | |
--with-fbinclude=${PREFIX}/include --with-fbdoc=${PREFIX}/doc --with-fbudf=${PREFIX}/UDF \ | |
--with-fbsample=${PREFIX}/examples --with-fbsample-db=${PREFIX}/examples/empbuild --with-fbhelp=${PREFIX}/help \ | |
--with-fbintl=${PREFIX}/intl --with-fbmisc=${PREFIX}/misc --with-fbplugins=${PREFIX} \ | |
--with-fblog=/var/firebird/log --with-fbglock=/var/firebird/run \ | |
--with-fbconf=/var/firebird/etc --with-fbmsg=${PREFIX} \ | |
--with-fbsecure-db=/var/firebird/system --with-system-icu | |
make | |
make silent_install | |
#TODO: Change Password | |
#TODO: Convert into a dockerfile | |
apk del build-dependencies |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment