<div dir="ltr">New behavior seems much more intuitive and self-consistent. IMHO in with the new and out with the old.</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 20, 2017 at 5:28 PM, Dan McDonald <span dir="ltr"><<a href="mailto:danmcd@omniti.com" target="_blank">danmcd@omniti.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">EXECUTIVE SUMMARY:  As it stands, pkg(5) in bloody changes behavior from 014-020 to something different. It also fixes a shortcoming in 014-020. Do we go completely with the new behavior and document it? Or do we minimize least-surprise at the risk of introducing bugs? I'm leaning toward the second choice, modulo my pkg5 test suite experiences.  Opinions, esp. from LTS folks, needed.<br>
<br>
.  .  .  .  .  .  .  .<br>
<br>
I updated pkg5 during this bloody to handle Python2.7.  That worked all well and good, but had a side-effect I didn't see (and neither did a lot of bloody users, apparently).<br>
<br>
So here's what happens today, on 014-020 pkg(5) for global zone invocations:<br>
<br>
pkg update <pkg><br>
- Updates <pkg> on global zone.  No others, REGARDLESS of linked-image or not.<br>
<br>
pkg update<br>
- Update all pkgs on global zone AND on any linked-image zones.<br>
<br>
<br>
Starting with the Python2.7 integration, this behavior changed:<br>
<br>
pkg update <pkg><br>
- Same as before<br>
<br>
pkg update<br>
- Only updates global zone, and linked-image "If needs sync", where "needs sync" is not well defined (may need a property inside a package itself).<br>
<br>
pkg update -r <pkg><br>
- Updates <pkg> on global zone AND on linked-image zones.<br>
<br>
pkg update -r<br>
- Behaves like "pkg update" on 014-020, updates all pkgs on global and linked-image zones.<br>
<br>
<br>
<br>
The "-r" as an option - and you can specify zones with -z or zones to exclude with -Z - is new from Oracle with the wad of updates OpenIndiana pulled in to get Python2.7 support.  And I quote from the pkg(1) man page you can see on bloody today:<br>
<br>
          -r<br>
<br>
              Run this operation in the global zone and also in all installed<br>
              solaris branded non-global zones. The effect on the non-global<br>
              zone is similar to logging into each non-global zone and<br>
              running the command directly. Without this option, when you run<br>
              pkg commands in the global zone, non-global zones are modified<br>
              only to the extent required to keep them compatible with the<br>
              global zone. With this option, the pkg operation is applied to<br>
              all installed non-global zones except as limited by the -z and<br>
              -Z options. Zones that are excluded by the -z and -Z options<br>
              might still be modified if updates are required to keep them in<br>
              sync with the global zone.<br>
<br>
Because of the least-suprise violation of new "pkg update" behavior, I'm wondering if we should make "-r" implicit.  I'm working right now on an implicit "-r" solution, but am running into some problems with the pkg5 test suite I still need to sort out.<br>
<br>
Thanks!<br>
Dan<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
OmniOS-discuss mailing list<br>
<a href="mailto:OmniOS-discuss@lists.omniti.com">OmniOS-discuss@lists.omniti.<wbr>com</a><br>
<a href="http://lists.omniti.com/mailman/listinfo/omnios-discuss" rel="noreferrer" target="_blank">http://lists.omniti.com/<wbr>mailman/listinfo/omnios-<wbr>discuss</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">
<p>Theo Schlossnagle</p>
<p><a href="http://omniti.com/is/theo-schlossnagle" target="_blank">http://omniti.com/is/theo-schlossnagle</a></p></div>
</div>