#12228 closed defect (fixed)
mysql5 Portfile creates symlinks to nonexistent files
Reported by: | marshall@… | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.4.42 |
Keywords: | Cc: | marshall@…, ryandesign (Ryan Carsten Schmidt) | |
Port: |
Description
A recent change to the mysql5 Portfile modified this line:
system "cd ${destroot}${prefix}/bin && ln -sf ../lib/${name}/bin/${f} ${f}5"
to:
ln -sf ../lib/${name}/bin/${f}5
This changes the behavior so that the symlinks are pointing to e.g. /opt/local/lib/mysql5/bin/mysqladmin5
, which doesn't exist (the actual binaries do not have the "5" at the end).
Change History (7)
comment:1 Changed 17 years ago by sfiera@…
Cc: | ryandesign@… added |
---|---|
Owner: | changed from macports-dev@… to ryandesign@… |
comment:2 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | marshall@… added |
---|---|
Milestone: | → Port Bugs |
Resolution: | → fixed |
Status: | new → closed |
comment:3 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)
If you have the "bad" version of mysql5 installed, you can upgrade to the fixed version with
sudo port -ncuf upgrade mysql5
comment:4 Changed 17 years ago by con.verburg@…
Resolution: | fixed |
---|---|
Status: | closed → reopened |
This doesn't seem to be fixed. I tried the suggested upgrade and also uninstalled/installed. In both cases, the symlinks are to filenames ending in 5 while the binaries themselves don't end in 5.
comment:5 Changed 17 years ago by kballard (Lily Ballard)
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
r26746 definitely should fix this issue. Wait 12 hours (to ensure the rsync server is updated), do a port sync
, and try again. Also make sure you're not installing from an archive (uninstall, then reinstall with the -s switch).
comment:6 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)
I agree that r26746 definitely fixed the issue. I rebuilt mysql5 before applying the change, to confirm that the problem existed, I rebuilt mysql5 after applying the change, to confirm that it fixed the issue, and I rebuilt mysql5 just now to make sure nothing has changed since then. It is definitely fixed.
$ sudo port selfupdate Password: DarwinPorts base version 1.442 installed Downloaded MacPorts base version 1.442 The MacPorts installation is not outdated and so was not updated selfupdate done! $ sudo port -ncuf upgrade mysql5 ---> Fetching mysql5 ---> Verifying checksum(s) for mysql5 ---> Extracting mysql5 ---> Applying patches to mysql5 ---> Configuring mysql5 ---> Building mysql5 with target all ---> Staging mysql5 into destroot ---> Creating launchd control script ########################################################### # A startup item has been generated that will aid in # starting mysql5 with launchd. It is disabled # by default. Execute the following command to start it, # and to cause it to launch at startup: # # sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql5.plist ########################################################### ---> Unable to uninstall mysql5 5.0.41_0+darwin_8+server, the following ports depend on it: ---> php5 Warning: Uninstall forced. Proceeding despite dependencies. ---> Deactivating mysql5 5.0.41_0+darwin_8+server ---> Uninstalling mysql5 5.0.41_0+darwin_8+server ---> Installing mysql5 5.0.41_0+darwin_8+server ****************************************************** * In order to setup the database, you might want to run * sudo -u mysql mysql_install_db5 * if this is a new install ****************************************************** ---> Activating mysql5 5.0.41_0+darwin_8+server ---> Cleaning mysql5 $ cd /opt/local/bin $ ls -l my*5 lrwxr-xr-x 1 root admin 35 Jul 8 17:29 my_print_defaults5 -> ../lib/mysql5/bin/my_print_defaults lrwxr-xr-x 1 root admin 31 Jul 8 17:29 myisam_ftdump5 -> ../lib/mysql5/bin/myisam_ftdump lrwxr-xr-x 1 root admin 27 Jul 8 17:29 myisamchk5 -> ../lib/mysql5/bin/myisamchk lrwxr-xr-x 1 root admin 27 Jul 8 17:29 myisamlog5 -> ../lib/mysql5/bin/myisamlog lrwxr-xr-x 1 root admin 28 Jul 8 17:29 myisampack5 -> ../lib/mysql5/bin/myisampack lrwxr-xr-x 1 root admin 23 Jul 8 17:29 mysql5 -> ../lib/mysql5/bin/mysql lrwxr-xr-x 1 root admin 35 Jul 8 17:29 mysql_client_test5 -> ../lib/mysql5/bin/mysql_client_test lrwxr-xr-x 1 root admin 30 Jul 8 17:29 mysql_config5 -> ../lib/mysql5/bin/mysql_config lrwxr-xr-x 1 root admin 44 Jul 8 17:29 mysql_convert_table_format5 -> ../lib/mysql5/bin/mysql_convert_table_format lrwxr-xr-x 1 root admin 35 Jul 8 17:29 mysql_explain_log5 -> ../lib/mysql5/bin/mysql_explain_log lrwxr-xr-x 1 root admin 33 Jul 8 17:29 mysql_find_rows5 -> ../lib/mysql5/bin/mysql_find_rows lrwxr-xr-x 1 root admin 38 Jul 8 17:29 mysql_fix_extensions5 -> ../lib/mysql5/bin/mysql_fix_extensions lrwxr-xr-x 1 root admin 44 Jul 8 17:29 mysql_fix_privilege_tables5 -> ../lib/mysql5/bin/mysql_fix_privilege_tables lrwxr-xr-x 1 root admin 34 Jul 8 17:29 mysql_install_db5 -> ../lib/mysql5/bin/mysql_install_db lrwxr-xr-x 1 root admin 43 Jul 8 17:29 mysql_secure_installation5 -> ../lib/mysql5/bin/mysql_secure_installation lrwxr-xr-x 1 root admin 37 Jul 8 17:29 mysql_setpermission5 -> ../lib/mysql5/bin/mysql_setpermission lrwxr-xr-x 1 root admin 33 Jul 8 17:29 mysql_tableinfo5 -> ../lib/mysql5/bin/mysql_tableinfo lrwxr-xr-x 1 root admin 37 Jul 8 17:29 mysql_tzinfo_to_sql5 -> ../lib/mysql5/bin/mysql_tzinfo_to_sql lrwxr-xr-x 1 root admin 31 Jul 8 17:29 mysql_upgrade5 -> ../lib/mysql5/bin/mysql_upgrade lrwxr-xr-x 1 root admin 37 Jul 8 17:29 mysql_upgrade_shell5 -> ../lib/mysql5/bin/mysql_upgrade_shell lrwxr-xr-x 1 root admin 31 Jul 8 17:29 mysql_waitpid5 -> ../lib/mysql5/bin/mysql_waitpid lrwxr-xr-x 1 root admin 27 Jul 8 17:29 mysql_zap5 -> ../lib/mysql5/bin/mysql_zap lrwxr-xr-x 1 root admin 29 Jul 8 17:29 mysqlaccess5 -> ../lib/mysql5/bin/mysqlaccess lrwxr-xr-x 1 root admin 28 Jul 8 17:29 mysqladmin5 -> ../lib/mysql5/bin/mysqladmin lrwxr-xr-x 1 root admin 29 Jul 8 17:29 mysqlbinlog5 -> ../lib/mysql5/bin/mysqlbinlog lrwxr-xr-x 1 root admin 26 Jul 8 17:29 mysqlbug5 -> ../lib/mysql5/bin/mysqlbug lrwxr-xr-x 1 root admin 28 Jul 8 17:29 mysqlcheck5 -> ../lib/mysql5/bin/mysqlcheck lrwxr-xr-x 1 root admin 30 Jul 8 17:29 mysqld_multi5 -> ../lib/mysql5/bin/mysqld_multi lrwxr-xr-x 1 root admin 29 Jul 8 17:29 mysqld_safe5 -> ../lib/mysql5/bin/mysqld_safe lrwxr-xr-x 1 root admin 27 Jul 8 17:29 mysqldump5 -> ../lib/mysql5/bin/mysqldump lrwxr-xr-x 1 root admin 31 Jul 8 17:29 mysqldumpslow5 -> ../lib/mysql5/bin/mysqldumpslow lrwxr-xr-x 1 root admin 30 Jul 8 17:29 mysqlhotcopy5 -> ../lib/mysql5/bin/mysqlhotcopy lrwxr-xr-x 1 root admin 29 Jul 8 17:29 mysqlimport5 -> ../lib/mysql5/bin/mysqlimport lrwxr-xr-x 1 root admin 27 Jul 8 17:29 mysqlshow5 -> ../lib/mysql5/bin/mysqlshow lrwxr-xr-x 1 root admin 27 Jul 8 17:29 mysqltest5 -> ../lib/mysql5/bin/mysqltest lrwxr-xr-x 1 root admin 40 Jul 8 17:29 mysqltestmanager-pwgen5 -> ../lib/mysql5/bin/mysqltestmanager-pwgen lrwxr-xr-x 1 root admin 34 Jul 8 17:29 mysqltestmanager5 -> ../lib/mysql5/bin/mysqltestmanager lrwxr-xr-x 1 root admin 35 Jul 8 17:29 mysqltestmanagerc5 -> ../lib/mysql5/bin/mysqltestmanagerc $
No need to wait 12 hours; first of all, the rsync server updates every half hour now, and secondly I committed that revision 3 days ago. So just sync your ports tree (or selfupdate if you're not at MacPorts 1.4.42) and force an update of mysql5.
Thank you for reporting this. Fixed in r26746.