Opened 6 years ago

Last modified 2 years ago

#43996 new enhancement

port select should record its symlinks in the registry

Reported by: mf2k (Frank Schima) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version:
Keywords: Cc: neverpanic (Clemens Lang), cooljeanius (Eric Gallager), paxperscientiam (Chris), mojca (Mojca Miklavec), cjones051073 (Chris Jones)
Port:

Description (last modified by mf2k (Frank Schima))

Symbolic links created by port should be recorded in the registry. For example, the python_select port creates symlinks to a specific version of python and its helper programs.

$ ls -l /opt/local/bin/python
lrwxr-xr-x  1 root  admin  24 Jan 23 15:05 /opt/local/bin/python -> /opt/local/bin/python2.7

$ port provides /opt/local/bin/python
/opt/local/bin/python is not provided by a MacPorts port.

$ port contents python_select
Port python_select contains:
  /opt/local/etc/select/python/base
  /opt/local/etc/select/python/none
  /opt/local/etc/select/python/python25-apple
  /opt/local/etc/select/python/python26-apple
  /opt/local/etc/select/python/python27-apple

Change History (9)

comment:1 Changed 6 years ago by neverpanic (Clemens Lang)

Cc: cal@… added

Cc Me!

comment:2 Changed 6 years ago by cooljeanius (Eric Gallager)

This has come up previously in comment:ticket:37853:5, but it was kind of a tangent from the base issue there...

comment:3 Changed 6 years ago by ryandesign (Ryan Schmidt)

Summary: symbolic links should be recorded in the registryport select should record its symlinks in the registry

comment:4 Changed 6 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:5 Changed 6 years ago by mf2k (Frank Schima)

Description: modified (diff)

comment:6 Changed 3 years ago by paxperscientiam (Chris)

Cc: paxperscientiam added

comment:7 Changed 2 years ago by raimue (Rainer Müller)

This could be solved by registering the symlinks created by port select to the corresponding *_select port in the registry (the port that provides the base file). The symlinks would then be removed when the port is deactivated. However, as the symlinks are not part of the port archive, they would not be restored when the port is activated again. That would require re-running port select.

comment:8 Changed 2 years ago by mojca (Mojca Miklavec)

Cc: mojca added

comment:9 Changed 2 years ago by cjones051073 (Chris Jones)

Cc: cjones051073 added
Note: See TracTickets for help on using tickets.