MacPorts missing links

Lawrence Velázquez larryv at macports.org
Sun Sep 11 06:40:27 PDT 2016


> On Sep 11, 2016, at 3:40 AM, David Epstein <David.Epstein at warwick.ac.uk> wrote:
> 
>> On 10 Sep 2016, at 23:10, Lawrence Velázquez <larryv at macports.org> wrote:
> 
> … snip …
> 
>>>> Did you uninstall python27?
>>> 
>>> I think so. The ls -l command above does not find /opt/local/bin/python*, except for symbolic links.
>>> What port command could I give to make sure?
>> 
>> "port installed python27 and active”
> 
> Confusingly this gets an answer that is readily misinterpreted, namely
>> None of the specified ports are installed.
> 
> In contrast
>> port installed python27
> 
> does not (inadvertently) deceive: it gives
>> The following ports are currently installed:
>>  python27 @2.7.11_2

Yes, that's right. That port *is not active*, so it was not displayed by the first command.

>> What you could try is  explicitly setting and then unsetting:
>> 
>> 	sudo port select --set python python27-apple
> 
> I tried this and got:
>> Selecting 'python27-apple' for 'python' failed: symlink: /opt/local/etc/select/python/current -> python27-apple: file already exists
> So then I did
>> ls -l /opt/local/etc/select/python/current
> and got
>> lrwxr-xr-x  1 root  admin  8  9 Jun 19:13 /opt/local/etc/select/python/current@ -> python27
> This seems to me to indicate a bug in “port select —summary”.

No, the bug is in the way base doesn't clean up select links when the selected port is deactivated.

> Firstly, it seems to answer incorrectly for inactive ports, like python27 in my case. I would have expected “port select —summary” to give python27 as an option.

Why? You can't select an inactive port.

> Secondly, it seems to incorrectly and indirectly imply that python26-apple and python27-apple are installed, which I think was your interpretation, but they aren’t installed, as I have checked with the “port installed” command.

The "python*-apple" entries denote the system Python installations. There are no ports with those names.

vq


More information about the macports-users mailing list