From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Oct 20 09:10:02 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 017141065670 for ; Tue, 20 Oct 2009 09:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B894B8FC12 for ; Tue, 20 Oct 2009 09:10:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n9K9A1CN069174 for ; Tue, 20 Oct 2009 09:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n9K9A1gu069173; Tue, 20 Oct 2009 09:10:01 GMT (envelope-from gnats) Resent-Date: Tue, 20 Oct 2009 09:10:01 GMT Resent-Message-Id: <200910200910.n9K9A1gu069173@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Vladimir Korkodinov Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B33021065672 for ; Tue, 20 Oct 2009 09:05:27 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id A27AD8FC12 for ; Tue, 20 Oct 2009 09:05:27 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n9K95Q44008965 for ; Tue, 20 Oct 2009 09:05:26 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n9K95QKO008964; Tue, 20 Oct 2009 09:05:26 GMT (envelope-from nobody) Message-Id: <200910200905.n9K95QKO008964@www.freebsd.org> Date: Tue, 20 Oct 2009 09:05:26 GMT From: Vladimir Korkodinov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/139792: [FIX] databases/mysql-proxy fix broken rw-spliting X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Oct 2009 09:10:02 -0000 >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: