From 1febdcac9bbbc8942885b4a822628b9d70631a8f Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Thu, 14 Jan 2010 10:50:03 +0000 Subject: [PATCH] Added support for takeover functionalities on PgSQL 8.4 running on Linux too. Recompilation of MySQL shared object with MySQL 5.1 development libraries on Debian 5.3. Tweaked the UDF compilation/installation files for both MySQL and PgSQL. --- extra/udfhack/linux/lib_mysqludf_sys/Makefile | 5 ++++- .../udfhack/linux/lib_mysqludf_sys/install.sh | 2 +- .../linux/lib_postgresqludf_sys/install.sh | 4 ++-- udf/mysql/linux/lib_mysqludf_sys.so | Bin 9568 -> 5820 bytes .../linux/8.3/lib_postgresqludf_sys.so | Bin 5472 -> 4508 bytes .../linux/8.4/lib_postgresqludf_sys.so | Bin 0 -> 4516 bytes 6 files changed, 7 insertions(+), 4 deletions(-) create mode 100755 udf/postgresql/linux/8.4/lib_postgresqludf_sys.so diff --git a/extra/udfhack/linux/lib_mysqludf_sys/Makefile b/extra/udfhack/linux/lib_mysqludf_sys/Makefile index 4b15ab590..dfd7b197b 100644 --- a/extra/udfhack/linux/lib_mysqludf_sys/Makefile +++ b/extra/udfhack/linux/lib_mysqludf_sys/Makefile @@ -1,6 +1,9 @@ +# For MySQL < 5.1 LIBDIR=/usr/lib +# For MySQL >= 5.1 +#LIBDIR=/usr/lib/mysql/plugin install: gcc -Wall -I/usr/include/mysql -O1 -shared lib_mysqludf_sys.c -o lib_mysqludf_sys.so strip -sx lib_mysqludf_sys.so - sudo cp -f lib_mysqludf_sys.so $(LIBDIR)/lib_mysqludf_sys.so + cp -f lib_mysqludf_sys.so $(LIBDIR)/lib_mysqludf_sys.so diff --git a/extra/udfhack/linux/lib_mysqludf_sys/install.sh b/extra/udfhack/linux/lib_mysqludf_sys/install.sh index 64ad271a4..ff1080da9 100755 --- a/extra/udfhack/linux/lib_mysqludf_sys/install.sh +++ b/extra/udfhack/linux/lib_mysqludf_sys/install.sh @@ -29,7 +29,7 @@ make if test $? -ne 0; then echo "ERROR: You need libmysqlclient development software installed" echo "to be able to compile this UDF, on Debian/Ubuntu just run:" - echo "apt-get install libmysqlclient15-dev" + echo "apt-get install libmysqlclient-dev" exit 1 else echo "MySQL UDF compiled successfully" diff --git a/extra/udfhack/linux/lib_postgresqludf_sys/install.sh b/extra/udfhack/linux/lib_postgresqludf_sys/install.sh index ed636efcb..53ee1f019 100755 --- a/extra/udfhack/linux/lib_postgresqludf_sys/install.sh +++ b/extra/udfhack/linux/lib_postgresqludf_sys/install.sh @@ -36,9 +36,9 @@ if test $? -ne 0; then if test "${VERSION}" == "8.2"; then echo "apt-get install postgresql-server-dev-8.2" - else if test "${VERSION}" == "8.3"; then + elif test "${VERSION}" == "8.3"; then echo "apt-get install postgresql-server-dev-8.3" - else if test "${VERSION}" == "8.4"; then + elif test "${VERSION}" == "8.4"; then echo "apt-get install postgresql-server-dev-8.4" fi diff --git a/udf/mysql/linux/lib_mysqludf_sys.so b/udf/mysql/linux/lib_mysqludf_sys.so index 699065da356ed27e0720b4cd6b61f829f46ef9eb..422bd2c4f8f61147eeb7ca6c744d9ddb46745676 100755 GIT binary patch delta 2296 zcmb_eZERCz6h61T>w4R6+%m?>*ZK(phQ)ml#RNn?L>=*mFfsuJjYMZq1V%C6KNcWl;xGt<`aJC&*>B@Xo_jv;dCz;^ zbKkcA`O~wqp>o?2sS}ZlWAOmhNkq)Ovnu9ovqgv^TEPvlye$F_cww*s5A5{2z_Q?3 z__C3`J8Rya3d>Aj9N+~W0j2;WX6>fC)fI_ZpL|iI7-fnRXaqD+~#x%XIiE^t@q~u-5Sa$xmxhC8SAu--sJ! z8g)&YTL!%xU{nZTMy||Utc=99Nvx3Tv-0V{4BhH_FV+Exd;10;tp=!{q5}HE)bZ}B zIJCZrUKgN#DC<(--C_*R!4uv(a(XC-UaCI2S7G})XJjimo+`2o z{n+!n|1nvz^tlBK*VI&1>%ro%+byP^DXvW#;+8M)y3=sk9Bx8lQ!Y9-yQv8~b4$OY z2lKj1u0baaV;P>sj%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