Changes between Initial Version and Version 1 of Ticket #60365


Ignore:
Timestamp:
Apr 17, 2020, 8:22:02 PM (4 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

Correct, there is no option to specify where the software will be installed. It will be installed in ${prefix}/var/macports/software.

MacPorts is designed with the assumption that ${prefix} and its private directories therein are real directories, not symlinks. Using symlinks may work in some cases, but in others you may run into issues.

Unix build systems often don't work with paths containing spaces so even though it may be possible to fix this issue, there are likely similar issues with other aspects of MacPorts base itself and with the build systems of most of the ports offered by MacPorts.

If you can submit a pull request that fixes this specific issue it would probably be accepted.

Until then you'll have to rename the drive so that its name doesn't contain spaces.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #60365

    • Property Priority changed from Normal to Low
    • Property Summary changed from MacPorts doesn't work when cache directory has spaces to MacPorts doesn't work when software directory is symlinked to a path that has spaces
  • Ticket #60365 – Description

    initial v1  
    11Hello, I have had to set up MacPorts on my machine running Sierra, due to brew no longer supporting it. Due to the limited space on my internal SSD, I have moved the "/opt/local/macports/software" directory to my external HDD, and "ln -s"'d it to the location (since there doesn't seem to be an option to specify the location, like homebrew). Unfortunately, this drive has a space in its name. This results in failed builds, since the path isn't quoted:
    22
     3{{{
    34:debug:activate system: /usr/bin/bzip2 -d -c /Volumes/Macintosh HD/Cache/macports/software/curl-ca-bundle/curl-ca-bundle-7.69.1_0.darwin_16.noarch.tbz2 | ( bsdtar -xvp --hfsCompression -f - )
    45:info:activate bzip2: Can't open input file /Volumes/Macintosh: No such file or directory.
    5 
     6}}}