Ticket #13421 (closed defect: fixed)
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: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: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?


Hmm. We use relative symlinks all over MacPorts and they seem nice to me.
What is the error message that you receive?