ports/132295: databases/mysql51-server: package target fails

barbara barbara.xxx1975 at libero.it
Wed Mar 4 00:50:01 UTC 2009


>Number:         132295
>Category:       ports
>Synopsis:       databases/mysql51-server: package target fails
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 04 00:50:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     barbara
>Release:        
>Organization:
>Environment:
FreeBSD satanasso.local.net 6.4-STABLE FreeBSD 6.4-STABLE #0: Sun Mar  1 19:25:54 CET 2009     root at satanasso.local.net:/usr/obj/usr/src/sys/SATANASSO  i386

>Description:
# pkg_create -b mysql-server-5.1.31
tar: lib/mysql/plugin/ha_example.a: Cannot stat: No such file or directory
tar: lib/mysql/plugin/ha_example.la: Cannot stat: No such file or directory
tar: lib/mysql/plugin/ha_example.so: Cannot stat: No such file or directory
tar: lib/mysql/plugin/ha_example.so.0: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors.
pkg_create: make_dist: tar command failed with code 256

I can notice the same message while portupgrading.

I've tried contacting the maintainer by email on 2009-02-11 about the same problem with 5.1.30 but I've got no answer.

Wrong PLIST?

>From what I can understand the "--with-example-storage-engine" option should be used to have those files built, but adding the option to CONFIGURE_ARGS in Makefile, I get:
configure: WARNING: unrecognized options: --with-example-storage-engine 
and I don't know if it's my fault or a sw bug.


EDIT:
after various tests, I've finally found the solution to have the missing file built, adding --with-plugins=example to CONFIGURE_ARGS. Patch attached.


>How-To-Repeat:
cd /usr/ports/databases/mysql51-server && make package clean
or
portupgrade -p databases/mysql51-server
or
pkg_create -xb mysql-server-5.1

>Fix:
Correct the pkg-plist or add the configure option as in the attached patch.


Patch attached with submission follows:

--- Makefile.orig	2009-03-03 17:35:52.000000000 +0100
+++ Makefile	2009-03-04 01:38:51.000000000 +0100
@@ -29,7 +29,8 @@
 		--with-libwrap \
 		--with-low-memory \
 		--with-comment='FreeBSD port: ${PKGNAME}' \
-		--enable-thread-safe-client
+		--enable-thread-safe-client \
+		--with-plugins=example
 
 .ifdef USE_MYSQL
 .error You have `USE_MYSQL' variable defined either in environment or in make(1) arguments. Please undefine and try again.


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



More information about the freebsd-ports-bugs mailing list