[MacPorts] #71815: llvm-16 does not create non-suffixed aliases

MacPorts noreply at macports.org
Mon Jan 13 20:46:17 UTC 2025


#71815: llvm-16 does not create non-suffixed aliases
-------------------------+--------------------
  Reporter:  brandelune  |      Owner:  (none)
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.10.5
Resolution:              |   Keywords:
      Port:  llvm        |
-------------------------+--------------------

Comment (by ryandesign):

 Replying to [comment:5 brandelune]:
 > It happens that selecting llvm-16 now did create the aliases:

 Great.

 > Also, when I run uninstall and then check the aliases, they are still
 there:

 That's correct. MacPorts doesn't touch the symlinks at this time because
 it doesn't know what your intentions are. You specify your intentions by
 running `sudo port select llvm` again.

 > Obviously, what happened is that I used llvm-10 for a while, with its
 aliases that were then installed, then uninstalled it, installed llvm-16
 instead, the aliases pointed at something wrong so I removed them and I
 was left with no way to run llvm-16.
 >
 > It seems to me that the install process should indicate that there is a
 necessity to run "select", and the uninstall process should either remove
 the installed aliases automatically or indicate that there is a necessity
 to use a different command to remove them manually.

 There is no necessity to use `port select`. You are able to run e.g.
 MacPorts clang-16 by referring to it by its full name `clang-mp-16`. You
 only need to use `port select` if you wish to have the convenience of
 referring to it by the abbreviated name `clang`.

 It is customary for ports with which you can use the select mechanism to
 have a message in their `notes` field explaining this, for example:

 {{{
 % port notes python312
 --->  python312 has the following notes:
   To make this the default Python or Python 3 (i.e., the version run by
 the 'python' or 'python3' commands), run one or both of:

       sudo port select --set python python312
       sudo port select --set python3 python312
 }}}

 I agree that the llvm and clang ports don't appear to print such a note.

-- 
Ticket URL: <https://trac.macports.org/ticket/71815#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list