Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Dec 2011 14:47:13 GMT
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/163609: databases/mysql-udf-pregs installs files in wrong place
Message-ID:  <201112251447.pBPElDG5066162@red.freebsd.org>
Resent-Message-ID: <201112251450.pBPEo7ZN057338@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         163609
>Category:       ports
>Synopsis:       databases/mysql-udf-pregs installs files in wrong place
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 25 14:50:07 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Pawel Pekala
>Release:        FreeBSD 8.2-STABLE
>Organization:
>Environment:
FreeBSD blaviken.slowicza.org 8.2-STABLE FreeBSD 8.2-STABLE #1: Sun Jul  3 15:11:21 CEST 2011     corn@blaviken.slowicza.org:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
This port installs mysql plugins in dir ${PREFIX}/mysql/lib/plugins,
but mysqld [1] expects them to be in ${PREFIX}/mysql/lib/plugin:

[corn:/home/corn]# mysql < /usr/local/share/mysql-udf-preg/installdb.sql
ERROR 1126 (HY000) at line 3: Can't open shared library 'lib_mysqludf_preg.so' (errno: 0 Cannot open "/usr/local/lib/mysql/plugin/lib_mysqludf_preg.so")

[1] http://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html#sysvar_plugin_dir

Attached patch fixes issue for me.

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -urN /usr/ports/databases/mysql-udf-preg/Makefile ./Makefile
--- /usr/ports/databases/mysql-udf-preg/Makefile	2011-10-28 04:09:23.000000000 +0200
+++ ./Makefile	2011-12-25 13:53:11.000000000 +0100
@@ -17,7 +17,7 @@
 LIB_DEPENDS=	pcre:${PORTSDIR}/devel/pcre
 
 GNU_CONFIGURE=	yes
-CONFIGURE_ARGS+=	--libdir=${PREFIX}/lib/mysql/plugins
+CONFIGURE_ARGS+=	--libdir=${PREFIX}/lib/mysql/plugin
 USE_GMAKE=	yes
 USE_MYSQL=	yes
 
@@ -25,12 +25,12 @@
 
 WRKSRC=	${WRKDIR}/lib_mysqludf_preg-${PORTVERSION}
 
-PLIST_FILES=	lib/mysql/plugins/lib_mysqludf_preg.a \
-				lib/mysql/plugins/lib_mysqludf_preg.la \
-				lib/mysql/plugins/lib_mysqludf_preg.so \
+PLIST_FILES=	lib/mysql/plugin/lib_mysqludf_preg.a \
+				lib/mysql/plugin/lib_mysqludf_preg.la \
+				lib/mysql/plugin/lib_mysqludf_preg.so \
 				%%DATADIR%%/installdb.sql \
 				%%DATADIR%%/uninstalldb.sql
-PLIST_DIRS=	${DATADIR_REL} lib/mysql/plugins
+PLIST_DIRS=	${DATADIR_REL} lib/mysql/plugin
 
 post-install:
 	${MKDIR} ${DATADIR}/


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201112251447.pBPElDG5066162>