<div dir="ltr"><div class="gmail_default" style="color:#000000"><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Feb 28, 2014 at 9:30 AM, Peter Danecek <span dir="ltr">&lt;<a href="mailto:Peter.Danecek@bo.ingv.it" target="_blank">Peter.Danecek@bo.ingv.it</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=""><br>
On 28 Feb 2014, at 15:17, Jason Swails &lt;<a href="mailto:jason.swails@gmail.com">jason.swails@gmail.com</a>&gt; wrote:<br>
<br>
&gt; An alternative when you know that you are uninstalling a port is to<br>
&gt; select none.  So something like<br>
&gt;<br>
&gt; sudo port select --set postgresql none<br>
&gt;<br>
&gt; to get rid of the simlinks, then another<br>
&gt;<br>
&gt; sudo port select --set postgresql postgresql93<br>
&gt;<br>
&gt; to set the simlinks to the new version you want to track.  (This<br>
&gt; approach is untested, but I think it should work.)  A feature request<br>
&gt; may be for &quot;port select&quot; to detect dangling links and print an<br>
&gt; informative message (perhaps with a suggested command to eliminate the<br>
&gt; dangling links).  That&#39;s largely aesthetic, though.<br>
<br>
</div>This does not work (tested).<br>
You cannot set new pointers after uninstalling the port, not even to none.<br>
I have not tested forcing but remove the link to be able to use port select again.<br>
<br>
I am not sure this is only aesthetic!<br></blockquote><div><br></div><div class="gmail_default" style="color:rgb(0,0,0)">I&#39;ll agree with you now.  &quot;-f&quot; should only be required if you do something atypical -- I don&#39;t like it as part of a required workflow.</div>
<div class="gmail_default" style="color:rgb(0,0,0)"><br></div><div class="gmail_default" style="color:rgb(0,0,0)">I&#39;ve needed it before, but that was when I deleted /opt/local to reinstall MacPorts and file collisions occurred inside other folders (like /Applications/MacPorts).</div>
<div class="gmail_default" style="color:rgb(0,0,0)"></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
(should we move this discussion on devel?)<br></blockquote><div><br></div><div class="gmail_default" style="color:rgb(0,0,0)">I have no opinion here.  I&#39;m not subscribed to that list and do not actively help to maintain MacPorts...</div>
<div class="gmail_default" style="color:rgb(0,0,0)"><br></div><div class="gmail_default" style="color:rgb(0,0,0)">All the best,</div><div class="gmail_default" style="color:rgb(0,0,0)">Jason</div><div class="gmail_default" style="color:rgb(0,0,0)">
</div></div>-- <br><div dir="ltr">Jason M. Swails<br>BioMaPS,<br>Rutgers University<br>Postdoctoral Researcher</div>
</div></div>