Opened 8 years ago

Closed 8 years ago

#50938 closed defect (fixed)

apophenia @20160308: ld: library not found for -lmysqlclient

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: el.dirte@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: haspatch Cc:
Port: apophenia

Description

apophenia @20160308 build fails:

ld: library not found for -lmysqlclient

https://build.macports.org/builders/buildports-snowleopard-x86_64/builds/40965

apophenia does not declare a dependency on a mysql port, so it should not be trying to link with the mysql client library.

This problem is only seen on the snowleopard buildbot worker, because only the snowleopard buildbot worker has mysql installed as part of the operating system. However, users who have mysql installed might also find apophenia inadvertently linked with mysql, which should be prevented.

Attachments (1)

Portfile (1.4 KB) - added by el.dirte@… 8 years ago.
apophenia Portfile with mysql=no

Download all attachments as: .zip

Change History (5)

comment:1 Changed 8 years ago by el.dirte@…

Thanks, I will look into this. Can you please share what version(s) of mysql that snowleopard buildbot has installed? A list of any mysql related ports that system has installed could be helpful.

comment:2 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

All ports are deactivated before each build.

The version of MySQL is the one Apple included with OS X Snow Leopard Server.

I imagine you just need to add a configure argument to tell it not to look for MySQL.

Changed 8 years ago by el.dirte@…

Attachment: Portfile added

apophenia Portfile with mysql=no

comment:3 in reply to:  2 Changed 8 years ago by el.dirte@…

Attached is a new Portfile without mysql. I'd like to to support all of the mysql ports but it won't work until I talk with upstream about one of the variables they are using in their configure script. Will add those variants at a later date. Thanks.

comment:4 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: haspatch added
Resolution: fixed
Status: newclosed

Thanks. I've updated the port in r146995. I increased the revision to ensure that it gets built without MySQL support, even for users who might have had MySQL installed.

For future updates, please provide a unified diff, not a complete new Portfile. Also make sure you use the correct whitespace. Your change used tabs; we prefer using spaces, and the Portfile's modeline says that spaces will be used.

Note: See TracTickets for help on using tickets.