Bug 132295

Summary: databases/mysql51-server: package target fails
Product: Ports & Packages Reporter: Barbara <barbara.xxx1975>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Barbara 2009-03-04 00:50:01 UTC
# 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.

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


Patch attached with submission follows:
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
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2009-03-04 00:50:11 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Barbara 2009-03-04 01:41:55 UTC
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.
Comment 3 Barbara 2009-03-04 01:50:18 UTC
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.
Comment 4 Alex Dupre freebsd_committer freebsd_triage 2009-03-04 16:06:55 UTC
State Changed
From-To: open->closed

Unable to reproduce with latest version.