SYSTEM WARNING: Creating default object from empty value

Mantis - pkg_get
Viewing Issue Advanced Details
2173 regular use major always 2007-03-18 16:41 2012-06-24 07:24
imp  
 
normal  
closed  
fixed  
none    
none  
0002173: when -G flag is enabled in pkg-get.conf it is applied only to pkgadd, but not to pkgrm
when -G is in use via pkg-get.conf, pkg-get script does not add this flag to pkgrm invocation, but only to pkgadd. Thus when upgrading the CSW packages on global zone it effectively removes the package in hand from other zones as well, while installs the new version only in global zone.
Wrecking havoc would be a strong wording, however judging by the look on the face of my associate who witnessed this it might quite well be true.
has duplicate 0002272closed  pkg-get upgrade on solaris 10 global zone with -G flag remove packages on non-global zones 
related to 0002944closed phil latest version of pkg-get added bad flag to pkgrm 
Issue History
2008-11-13 20:29 philadmin Note Added: 0005385
2008-11-13 20:29 philadmin Status new => resolved
2008-11-13 20:29 philadmin Resolution open => fixed
2008-11-13 20:29 philadmin Assigned To => philadmin
2008-11-13 20:46 philadmin Relationship added has duplicate 0002272
2008-11-21 05:24 philadmin Relationship added related to 0002944
2012-06-24 07:24 phil Assigned To philadmin =>
2012-06-24 07:24 phil Status resolved => closed

Notes
(0004657)
jand   
2007-07-06 04:35   
an ugly possible workaround, as this is SUN\'s \"bug\" (feature?) in pkgrm, that doesn\'t have the \"-G\" option:
rename /etc/zones/index while pkgrm is running ...

Yes, I know, that could interfere with lots of other applications like zlogin zoneadm or other.

But I think there are few things that can be more bad than \"PKGADDFLAGS=-G; pkg-get -u pkg_get\" for example ...
(0005094)
jand   
2008-01-15 06:56   
as the maintainer of pkg-get seems to be overwhelmed by the number of wishes and more or less big errors (or too busy at his _real_ business, as he gets no money for this), you may want to patch pkg-get yourself.
I developed some patches for pkg-get (including the fix mentioned in my previous notice), which you may want to try:
http://homepages.upb.de/dreyerja/pkg-get.htm [^]
(0005385)
philadmin   
2008-11-13 20:29   
sorry that this bug escaped my notice.
(emails from the old blastwave.org bugtracker,were not working, for a long while)

I have fixed this in pkg-get 3.9.1 I think.