Opened 16 years ago

Last modified 15 years ago

#13421 closed defect

mysql5 makes relative links in /opt/local/bin — at Version 5

Reported by: branson@… Owned by: ryandesign@…
Priority: Normal Milestone:
Component: ports Version: 1.5.2
Keywords: mysql, cpan, Cc: jwa@…
Port: mysql5, mysql5-devel

Description (last modified by ryandesign (Ryan Carsten Schmidt))

This breaks several things like CPAN which require authoritative links.

My solution was:

cd /opt/local/lib/mysql5/bin; 
for a in * ; 
for > ln -sf /opt/local/lib/mysql5/bin/$a /opt/local/bin/$a

Change History (5)

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

Cc: ryandesign@… added
Milestone: Port Bugs

Hmm. We use relative symlinks all over MacPorts and they seem nice to me.

What is the error message that you receive?

comment:2 Changed 16 years ago by jmroot (Joshua Root)

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

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

I need more information to deal with this ticket. What is the cpan command you are running, and what is the error message that you get? What version of Mac OS X and Xcode do you have, can you reproduce it with the current version of MacPorts, what kind of Mac do you have?

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

Cc: jwa@… added
Port: mysql5 mysql5-devel added

I still don't understand why relative links instead of absolute ones in ${prefix}/bin are problematic. However, it was convenient to make this change in the process of dealing with the second issue in #14600, so this is fixed in r39951 (for mysql5) and r39952 (for mysql5-devel).

comment:5 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Note: See TracTickets for help on using tickets.