Date: Tue, 20 Oct 2009 09:05:26 GMT From: Vladimir Korkodinov <viper@perm.raid.ru> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/139792: [FIX] databases/mysql-proxy fix broken rw-spliting Message-ID: <200910200905.n9K95QKO008964@www.freebsd.org> Resent-Message-ID: <200910200910.n9K9A1gu069173@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 139792 >Category: ports >Synopsis: [FIX] databases/mysql-proxy fix broken rw-spliting >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Oct 20 09:10:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Vladimir Korkodinov >Release: FreeBSD 7.2-STABLE >Organization: >Environment: FreeBSD xxxxx 7.2-STABLE FreeBSD 7.2-STABLE #2: Thu Jul 16 03:52:44 YEKST 2009 root@xxxx:/usr/obj/usr/src/sys/kernel amd64 >Description: Trying use rw-splitting 2009-10-20 11:42:08: (critical) (lua-error) [/usr/local/share/mysql-proxy/rw-splitting.lua] [string "/usr/local/share/mysql-proxy/rw-splitting.l..."]:29: module 'proxy.commands' not found: no field package.preload['proxy.commands'] no file '/usr/local/lib/mysql-proxy/lua/proxy/commands.lua' no file '/usr/local/lib/mysql-proxy/lua/proxy/commands.so' no file '/usr/local/lib/mysql-proxy/lua/proxy.so' >How-To-Repeat: Try use rw-splitting >Fix: apply patch Patch attached with submission follows: diff -ruN mysql-proxy.old/Makefile mysql-proxy/Makefile --- mysql-proxy.old/Makefile 2009-08-17 14:44:51.000000000 +0600 +++ mysql-proxy/Makefile 2009-10-20 11:43:59.000000000 +0600 @@ -7,6 +7,7 @@ PORTNAME= mysql-proxy PORTVERSION= 0.7.2 +PORTREVISION= 1 CATEGORIES= databases MASTER_SITES= ${MASTER_SITE_MYSQL} MASTER_SITE_SUBDIR= MySQL-Proxy diff -ruN mysql-proxy.old/files/patch-lib-proxy-Makefile.in mysql-proxy/files/patch-lib-proxy-Makefile.in --- mysql-proxy.old/files/patch-lib-proxy-Makefile.in 2009-07-09 08:49:52.000000000 +0600 +++ mysql-proxy/files/patch-lib-proxy-Makefile.in 1970-01-01 05:00:00.000000000 +0500 @@ -1,22 +0,0 @@ ---- lib/proxy/Makefile.in.orig 2009-04-04 20:13:04.000000000 +0600 -+++ lib/proxy/Makefile.in 2009-05-05 12:48:40.000000000 +0600 -@@ -16,7 +16,7 @@ - - VPATH = @srcdir@ - pkgdatadir = $(datadir)/@PACKAGE@ --pkglibdir = $(libdir)/@PACKAGE@ -+pkglibdir = $(datadir)/@PACKAGE@ - pkgincludedir = $(includedir)/@PACKAGE@ - am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd - install_sh_DATA = $(install_sh) -c -m 644 ---- lib/proxy/Makefile.in.orig 2009-05-18 22:15:03.000000000 +0800 -+++ lib/proxy/Makefile.in 2009-07-08 17:41:43.000000000 +0800 -@@ -192,7 +192,7 @@ - top_build_prefix = @top_build_prefix@ - top_builddir = @top_builddir@ - top_srcdir = @top_srcdir@ --luaextdir = ${pkglibdir}/lua/ -+luaextdir = ${pkgdatadir}/lua/ - pkglib_proxydir = $(luaextdir)/proxy - dist_pkglib_proxy_DATA = \ - auto-config.lua \ diff -ruN mysql-proxy.old/pkg-plist mysql-proxy/pkg-plist --- mysql-proxy.old/pkg-plist 2009-07-09 08:49:52.000000000 +0600 +++ mysql-proxy/pkg-plist 2009-10-20 11:37:05.000000000 +0600 @@ -23,6 +23,12 @@ lib/mysql-proxy/lua/lpeg.la lib/mysql-proxy/lua/posix.so lib/mysql-proxy/lua/posix.la +lib/mysql-proxy/lua/proxy/auto-config.lua +lib/mysql-proxy/lua/proxy/balance.lua +lib/mysql-proxy/lua/proxy/commands.lua +lib/mysql-proxy/lua/proxy/parser.lua +lib/mysql-proxy/lua/proxy/tokenizer.lua +lib/mysql-proxy/lua/proxy/test.lua lib/mysql-proxy/plugins/libadmin.so lib/mysql-proxy/plugins/libadmin.la lib/mysql-proxy/plugins/libproxy.so @@ -46,12 +52,6 @@ %%DATADIR%%/ro-pooling.lua %%DATADIR%%/rw-splitting.lua %%DATADIR%%/xtab.lua -%%DATADIR%%/lua/proxy/auto-config.lua -%%DATADIR%%/lua/proxy/balance.lua -%%DATADIR%%/lua/proxy/commands.lua -%%DATADIR%%/lua/proxy/parser.lua -%%DATADIR%%/lua/proxy/tokenizer.lua -%%DATADIR%%/lua/proxy/test.lua %%EXAMPLESDIR%%/tutorial-basic.lua %%EXAMPLESDIR%%/tutorial-constants.lua %%EXAMPLESDIR%%/tutorial-inject.lua >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910200905.n9K95QKO008964>