From nobody@FreeBSD.org  Wed Mar  4 00:44:12 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id E13DD1065679
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  4 Mar 2009 00:44:12 +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 B6AAA8FC26
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  4 Mar 2009 00:44:12 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n240iCWD093326
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 4 Mar 2009 00:44:12 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n240iCdN093319;
	Wed, 4 Mar 2009 00:44:12 GMT
	(envelope-from nobody)
Message-Id: <200903040044.n240iCdN093319@www.freebsd.org>
Date: Wed, 4 Mar 2009 00:44:12 GMT
From: barbara <barbara.xxx1975@libero.it>
To: freebsd-gnats-submit@FreeBSD.org
Subject: databases/mysql51-server: package target fails
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         132295
>Category:       ports
>Synopsis:       databases/mysql51-server: package target fails
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ale
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 04 00:50:01 UTC 2009
>Closed-Date:    Wed Mar 04 16:07:13 UTC 2009
>Last-Modified:  Wed Mar 04 16:07:13 UTC 2009
>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@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:
Responsible-Changed-From-To: freebsd-ports-bugs->ale 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Wed Mar 4 00:50:11 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=132295 

From: "barbara" <barbara.xxx1975@libero.it>
To: "bug-followup" <bug-followup@FreeBSD.org>
Cc:  
Subject: Re: ports/132295: databases/mysql51-server: package target fails
Date: Wed,  4 Mar 2009 02:41:55 +0100

 Uhm, I think the previous patch is going to shadow the setting made on ch=
 ecking WITH_NDB.
 I usually have it built with WITH_NDB, now I'm trying without using it.
 
 

From: "barbara" <barbara.xxx1975@libero.it>
To: "bug-followup" <bug-followup@FreeBSD.org>
Cc:  
Subject: Re: ports/132295: databases/mysql51-server: package target fails
Date: Wed,  4 Mar 2009 02:50:18 +0100

 Not using WITH_NDB=3D1 results in a success package target.
 So it seems that the "max" group doesn't include the "example" plugin, he=
 nce the missing files causing the error.
 
 
State-Changed-From-To: open->closed 
State-Changed-By: ale 
State-Changed-When: Wed Mar 4 16:06:55 UTC 2009 
State-Changed-Why:  
Unable to reproduce with latest version. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=132295 
>Unformatted:
