<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Oct 10, 2015 at 10:34 PM, Joshua Root <span dir="ltr">&lt;<a href="mailto:jmr@macports.org" target="_blank">jmr@macports.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 2015-10-11 11:34 , David Strubbe wrote:<br>
&gt; Thanks for checking. I realize now I can find these two different<br>
&gt; behaviors, depending on whether the other dependency BWidget is<br>
&gt; installed or not. I&#39;m confused about why this would be happening. Why<br>
&gt; isn&#39;t &quot;Computing dependencies for xcrysden&quot; happening in both cases?<br>
&gt;<br>
&gt; (BWidget is installed)<br>
&gt; $ sudo port -f uninstall tk xcrysden<br>
&gt; $ sudo port install xcrysden +x11<br>
&gt; ---&gt;  Computing dependencies for tk<br>
&gt; ---&gt;  Fetching archive for tk<br>
&gt; ---&gt;  Attempting to fetch tk-8.6.3_0+quartz.darwin_14.x86_64.tbz2 from<br>
&gt; <a href="http://mse.uk.packages.macports.org/sites/packages.macports.org/tk" rel="noreferrer" target="_blank">http://mse.uk.packages.macports.org/sites/packages.macports.org/tk</a><br>
&gt; ...<br>
&gt;<br>
&gt; $ sudo port -f uninstall tk xcrysden BWidget<br>
&gt; $ sudo port install xcrysden +x11<br>
&gt; ---&gt;  Computing dependencies for xcrysden<br>
&gt; ---&gt;  Dependencies to be installed: BWidget tk<br>
&gt; ---&gt;  Fetching archive for tk<br>
&gt; ---&gt;  Attempting to fetch tk-8.6.3_0+x11.darwin_14.x86_64.tbz2 from<br>
&gt; <a href="http://mse.uk.packages.macports.org/sites/packages.macports.org/tk" rel="noreferrer" target="_blank">http://mse.uk.packages.macports.org/sites/packages.macports.org/tk</a><br>
&gt; ...<br>
<br>
</span>It happens in both cases, you just stopped before it got there in the<br>
first case. Already-installed dependencies are upgraded before new<br>
dependencies are installed.<br></blockquote><div><br></div><div>I did not stop anything; I just included only the important parts (hence &quot;...&quot;). Yes it does say &quot;Computing dependencies for xcrysden&quot; eventually in the first case, but why is it after have installed a dependency? Surely the dependencies were computed at the beginning anyway to decide to install tk.</div><div><br></div><div>I think you are suggesting it is related to the fact that tk is a dependency of BWidget. It&#39;s hard to understand why that would matter for what variant got passed to tk.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class=""><br>
&gt; Regarding the pre-activate, I added this code to my copy of<br>
&gt; active_variants-1.1.tcl:<br>
&gt;<br>
&gt; +pre-activate {<br>
&gt; +    ui_warn &quot;checking active variants&quot;<br>
&gt; +    _check_require_active_variants archivefetch<br>
&gt; +}<br>
&gt;<br>
&gt; When I do a fresh install, I see this message before activate. When I<br>
&gt; deactivate and re-activate, I don&#39;t see the message. My conclusion was<br>
&gt; that pre-activate was not being run in the latter case -- is there some<br>
&gt; other reason it wouldn&#39;t be written?<br>
<br>
</span>Are you editing the portgroup after you install the port? Running a<br>
target on an already installed port uses the copy of the portgroup<br>
stored in the registry.<br></blockquote><div><br></div><div>Before I installed the port. I am running &quot;port install&quot; in the directory with the Portfile, then &quot;port deactivate&quot;, then &quot;port activate&quot; (in each case, not specifying a name). Does that still just use the registry portgroup rather than the one in my dports tree?</div></div></div></div>