Bug 162562 - [patch] databases/mysql-udf: udf shared objects installed in wrong directory
Summary: [patch] databases/mysql-udf: udf shared objects installed in wrong directory
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Pawel Pekala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-14 15:10 UTC by Panagiotis Christias
Modified: 2011-11-29 22:00 UTC (History)
0 users

See Also:


Attachments
file.diff (603 bytes, patch)
2011-11-14 15:10 UTC, Panagiotis Christias
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Panagiotis Christias 2011-11-14 15:10:06 UTC
UDF shared objects are installed in /usr/local/lib/mysql instead of /usr/local/lib/mysql/plugin.

Tested on MySQL 5.1 and 5.5.

Fix: See attached patch file.

Patch attached with submission follows:
How-To-Repeat: # cd /usr/ports/databases/mysql-udf
# make install
# mysql
mysql> CREATE AGGREGATE FUNCTION median RETURNS REAL SONAME 'udf_median.so';
ERROR 1126 (HY000): Can't open shared library 'udf_median.so' (errno: 0 Cannot open "/usr/local/lib/mysql/plugin/udf_median.so")
Comment 1 Pawel Pekala freebsd_committer freebsd_triage 2011-11-17 20:19:39 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pawel

I'll take it.
Comment 2 dfilter service freebsd_committer freebsd_triage 2011-11-29 21:53:41 UTC
pawel       2011-11-29 21:53:32 UTC

  FreeBSD ports repository

  Modified files:
    databases/mysql-udf  Makefile 
  Log:
  - Install files to correct plugins path [1]
  - Do silent cat pkg-message
  
  http://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html#sysvar_plugin_dir
  
  PR:             ports/162562 [1]
  Submitted by:   Panagiotis Christias <p.christias@noc.ntua.gr> [1]
  
  Feature safe:   yes
  
  Revision  Changes    Path
  1.6       +7 -4      ports/databases/mysql-udf/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Pawel Pekala freebsd_committer freebsd_triage 2011-11-29 21:54:04 UTC
State Changed
From-To: open->closed

Committed. Thanks!