[MacPorts] #69327: Symlinks in prefix make destroot layout unpredictable
MacPorts
noreply at macports.org
Tue May 27 00:02:26 UTC 2025
#69327: Symlinks in prefix make destroot layout unpredictable
---------------------------+----------------------------
Reporter: Dave-Allured | Owner: SoapZA
Type: defect | Status: closed
Priority: Normal | Milestone: MacPorts 2.9.2
Component: base | Version:
Resolution: fixed | Keywords:
Port: py312-meson |
---------------------------+----------------------------
Comment (by RJVB):
Finding this a bit late...
FWIW, I've been using a symlinked prefix, masquerading as `/opt/local` but
really living on a different volume for about as long as I use MacPorts. I
know it's not officially supported but apart from a few easily solved
naggles with e.g. `port provides` it just works.
I have never noticed anything problematic with meson in this regard (BUT
use it under python 3.7 - because it's new enough and simply faster). I'm
also running OS X 10.9 but I don't think that should make any difference
here.
The fix for this ticket breaks the whole reason of using a symlinked
prefix... so I wrote a patch that makes the new path normalisation
optional via macports.conf .
BTW, the "base" build system also doesn't grok a symlinked prefix anymore;
vendor/critcl/build.tcl does a normalisation of `--prefix` and other path-
specifying arguments but since no one else does files are being put in an
unexpected location under vendor-destroot . That one was a lot less easy
to find!
--
Ticket URL: <https://trac.macports.org/ticket/69327#comment:27>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list