Mantis - pkg_get
Viewing Issue Advanced Details
4299 regular use major N/A 2010-02-21 12:54 2010-03-12 16:00
skayser  
bonivart  
normal  
closed  
fixed  
none    
none  
0004299: RFE: Suppress license on installation (per default, optional or simply via pkgaddopts)
Upgraded a bunch of machines with a very downrev CSW software stack this week so I saw a lot of copyright notices flying by. In between these longish copyright messages, valuable output (e.g. WRT to changed configuration file location) was almost too easy to miss.

While many of our new packages do reduce the clutter on the console (they only point to /opt/csw/share/doc/foobar/license), there are at least as many packages which still output the full license. As long as we haven't "fixed" those packages, there is the undocumented/non-public -S flag to pkgadd (which James has mentioned a couple of times in the past) that can be used to suppress the license/copyright output.

  http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/cmd/svr4pkg/pkgadd/main.c#780 [^]

Could we have pkgutil leverage this option somehow? Could be a documented workaround via pkgaddopts, could be an option like --nolicense, or could even be made a default for the sake of reducing the pkgadd output to real important things like those migration related notices. Haven't yet tested the -S flag (should do so to see whether it is available starting from Solaris 8), but if it is working, it would be a very valuable addition when it comes to user-friendliness (less clutter) and for us to better make sure that our users see important package notices.
Issue History
2010-02-21 12:54 skayser New Issue
2010-02-21 14:46 skayser Description Updated
2010-02-21 18:23 bonivart Status new => assigned
2010-02-21 18:23 bonivart Assigned To => bonivart
2010-02-21 18:25 bonivart Note Added: 0007486
2010-02-23 15:24 bonivart Note Added: 0007496
2010-02-24 09:50 bonivart Note Added: 0007516
2010-03-03 11:19 bonivart Note Added: 0007571
2010-03-03 11:19 bonivart Status assigned => resolved
2010-03-03 11:19 bonivart Resolution open => fixed
2010-03-12 16:00 bonivart Note Added: 0007626
2010-03-12 16:00 bonivart Status resolved => closed

Notes
(0007486)
bonivart   
2010-02-21 18:25   
It's already in pkgutil.conf.CSW as a tip for the pkgadd option in SVN, will be in the next version. A problem with that is that many don't look at the .CSW file if they upgrade, they keep using their own file without checking for new options in the .CSW file.
(0007496)
bonivart   
2010-02-23 15:24   
I think I will post a simple note about checking the pkgutil.conf.CSW file for new options and changed defaults at the end of pkgutil installation.
(0007516)
bonivart   
2010-02-24 09:50   
pkgadd -S confirmed to work on Solaris 8 (sparc).
(0007571)
bonivart   
2010-03-03 11:19   
I have tested pkgadd -S on Solaris 8 and it works. It's added as a suggestion to pkgutil.conf.CSW delivered with the package. The package will display some note ("look for new/changed options in pkgutil.conf.CSW"?) at the end of install.
(0007626)
bonivart   
2010-03-12 16:00   
In 1.10 a note is in pkgutil.conf about -S and at the end of install a note is displayed about checking pkgutil.conf.CSW for new stuff.