Opened 12 years ago

Closed 12 years ago

#34399 closed defect (fixed)

mysql55 - fix build & destroot problems

Reported by: BjarneDMat Owned by: pixilla (Bradley Giesbrecht)
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: haspatch Cc: ryandesign (Ryan Carsten Schmidt)
Port: mysql55

Description

build problem :
a wrong value is given for INSTALL_INCLUDEDIR_MACPORTS in patch-cmake-install_layout.cmake.diff leading some other ports to look for mysql.h in the wrong folder http://lists.macosforge.org/pipermail/macports-dev/2012-May/019111.html

destroot problem :
a wrong value is given for -DCMAKE_INSTALL_NAME_DIR in the mysql55 Portfile leading to all mysql55 libmysqlclient.* files to contain the wrong absolute file path as well as to ports compiled against mysql55 to try to link against the wrong absolute path in their binaries http://lists.macosforge.org/pipermail/macports-dev/2012-May/019169.html

Attachments (2)

patch-Portfile.diff (733 bytes) - added by BjarneDMat 12 years ago.
fix for the destroot problem
patch-cmake-install_layout.cmake.diff (2.2 KB) - added by BjarneDMat 12 years ago.
fix for the build problem

Download all attachments as: .zip

Change History (8)

Changed 12 years ago by BjarneDMat

Attachment: patch-Portfile.diff added

fix for the destroot problem

Changed 12 years ago by BjarneDMat

fix for the build problem

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: pixilla@… removed
Owner: changed from macports-tickets@… to pixilla@…

comment:2 Changed 12 years ago by BjarneDMat

I've just checked : the same changes will have to be applied to mariadb ; and possibly also percona ; I'm currently working on getting percona up to the same standard as the current work in mysql55 & mariadb are at.

comment:3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

Cc Me!

comment:4 in reply to:  description ; Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to macintosh@…:

destroot problem :
a wrong value is given for -DCMAKE_INSTALL_NAME_DIR in the mysql55 Portfile leading to all mysql55 libmysqlclient.* files to contain the wrong absolute file path as well as to ports compiled against mysql55 to try to link against the wrong absolute path in their binaries http://lists.macosforge.org/pipermail/macports-dev/2012-May/019169.html

I am waiting for at least this fix to be committed so that I can add a mysql55 variant to the ${php}-mysql subports of the php port; as is, I get:

PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/local/lib/php54/extensions/no-debug-non-zts-20100525/mysql.so' - dlopen(/opt/local/lib/php54/extensions/no-debug-non-zts-20100525/mysql.so, 9): Library not loaded: /opt/local/lib/mysql55/libmysqlclient.18.dylib
  Referenced from: /opt/local/lib/php54/extensions/no-debug-non-zts-20100525/mysql.so
  Reason: image not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/local/lib/php54/extensions/no-debug-non-zts-20100525/mysqli.so' - dlopen(/opt/local/lib/php54/extensions/no-debug-non-zts-20100525/mysqli.so, 9): Library not loaded: /opt/local/lib/mysql55/libmysqlclient.18.dylib
  Referenced from: /opt/local/lib/php54/extensions/no-debug-non-zts-20100525/mysqli.so
  Reason: image not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/local/lib/php54/extensions/no-debug-non-zts-20100525/pdo_mysql.so' - dlopen(/opt/local/lib/php54/extensions/no-debug-non-zts-20100525/pdo_mysql.so, 9): Library not loaded: /opt/local/lib/mysql55/libmysqlclient.18.dylib
  Referenced from: /opt/local/lib/php54/extensions/no-debug-non-zts-20100525/pdo_mysql.so
  Reason: image not found in Unknown on line 0

comment:5 in reply to:  4 Changed 12 years ago by BjarneDMat

Replying to ryandesign@…:

Replying to macintosh@…:

destroot problem :

I am waiting for at least this fix to be committed so that I can add a mysql55 variant to the ${php}-mysql subports of the php port; as is, I get:

That one ought to be enough for PHP to get MySQL to work

But it would be really nice to get both of them committed as I deem them production ready and they have been working on my production server since I filed this ticket: http://lists.macosforge.org/pipermail/macports-users/2012-May/028869.html

These issues are holding everyone off transitioning to the mysql55 port.

comment:6 Changed 12 years ago by pixilla (Bradley Giesbrecht)

Resolution: fixed
Status: newclosed

mysql55 r93231

percona r93232

Note: See TracTickets for help on using tickets.