Opened 16 years ago

Closed 15 years ago

Last modified 15 years ago

#13421 closed defect (fixed)

mysql5 makes relative links in /opt/local/bin

Reported by: branson@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.5.2
Keywords: mysql, cpan, Cc: jyrkiwahlstedt
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 (8)

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)

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

Are you sure the problem was relative vs. absolute symlinks? Because your proposed solution of ln -sf /opt/local/lib/mysql5/bin/$a /opt/local/bin/$a does not do the equivalent of what is in the Portfile. What the Portfile does is the equivalent of ln -sf /opt/local/lib/mysql5/bin/$a /opt/local/bin/$a5 -- note the "5" at the end of every link in /opt/local/bin. Can you please show me exactly the error message you're encountering, and what I need to type here to see it on my system?

comment:7 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

Closing due to lack of feedback.

comment:8 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.