Problems With Mysql57

Ryan Schmidt ryandesign at macports.org
Sat Jul 27 22:53:10 UTC 2019


On Jul 27, 2019, at 00:57, Michael Newman wrote:

> Oddly, the symlink seems to have been created in spite of the port select failure:
> 
> lrwxr-xr-x     1 root     wheel        38 Jul 25 08:59 mysqld_safe -> /opt/local/lib/mysql57/bin/mysqld_safe

Looking at the port select code, it just tries to create each symlink in turn. There isn't any special error handling code to deal with the case that a symlink can't be created; if that happens, an error will occur and MacPorts will exit. Any symlinks that were already successfully created will remain on disk. This would leave you with an incomplete or possibly even inconsistent set of symlinks. 

Somebody should fix the bug in the mysql57 port. If you'd like to do so, you can submit a pull request in macports-ports. 

It might be reasonable to add error handling to port select so that it reverses any partial work that it had completed if an error occurs. If you'd like to add that error handling, it can be done via a pull request in macports-base. 


More information about the macports-users mailing list