New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #13421 (closed defect: fixed)

Opened 5 years ago

Last modified 4 years ago

mysql5 makes relative links in /opt/local/bin

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@…) (diff)

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

comment:1 Changed 5 years ago by ryandesign@…

  • Cc ryandesign@… added
  • Milestone set to 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 5 years ago by jmr@…

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

comment:3 Changed 5 years ago by ryandesign@…

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 5 years ago by ryandesign@…

  • Cc jwa@… added
  • Port set to mysql5, mysql5-devel

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 5 years ago by ryandesign@…

  • Description modified (diff)

comment:6 Changed 5 years ago by ryandesign@…

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 4 years ago by ryandesign@…

  • Status changed from new to closed
  • Resolution set to fixed

Closing due to lack of feedback.

comment:8 Changed 4 years ago by anonymous

  • Milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.