Mantis - pkg_get
Viewing Issue Advanced Details
3702 regular use major always 2009-06-01 18:17 2009-06-09 10:01
skayser  
bonivart  
normal  
closed  
fixed  
none    
none  
0003702: pkgutil should upgrade cswclassutils before installing other packages
I just tried to install CSWstunnel from testing, which has a dependency on CSWcswclassutils. CSWcswclassutils was already installed on the system, but not the most recent one, so pkgutil offered to install stunnel and upgrade cswclassutils.

Instead of upgrading cswclassutils first (which i would have expected as it is a dependency of stunnel) it went on to install stunnel first. Is this a multi-repository issue? It would be good to have pkgutil install all dependencies first before installing dependent packages no matter what. Especially cswclassutils as dependent packages might make use of recent cswclassutils features.

# pkgutil -t http://mirror.opencsw.org/opencsw/testing [^] -i stunnel
...
Parsing catalog, may take a while...
New packages: CSWstunnel-4.27,REV=2009.06.01
Updated packages: CSWcswclassutils-1.14,REV=2009.05.29
Current packages: CSWcommon-1.4.6,REV=2008.04.28 CSWcacertificates-20090108,REV=
2009.01.08 CSWtcpwrap-7.6,REV=2006.03.30.ipv6.4 CSWosslrt-0.9.8,REV=2009.03.27_r
ev=k CSWzlib-1.2.3,REV=2009.04.05
Total size: 118.5 KB
2 packages to fetch. Do you want to continue? [Y,n]
...
Installing CSWstunnel-4.27,REV=2009.06.01

Processing package instance <CSWstunnel> from </var/opt/csw/pkgutil/packages/stunnel-4.27,REV=2009.06.01-SunOS5.8-sparc-CSW.pkg>

...
The following package is currently installed:
   CSWcswclassutils cswclassutils - CSW class action utilities
                         (all) 1.4,REV=2009.02.18

Do you want to remove this package? [y,n,?,q] q
...

Let me know if you need any further information. The machine is still in an unchanged state, so i can easily do testing.
# pkgutil -v
1.6

# pkgutil -c cswclassutils
package installed catalog
CSWcswclassutils 1.4,REV=2009.02.18 1.14,REV=2009.05.29
Issue History
2009-06-01 18:17 skayser New Issue
2009-06-02 16:54 bonivart Status new => assigned
2009-06-02 16:54 bonivart Assigned To => bonivart
2009-06-02 17:49 bonivart Note Added: 0006243
2009-06-04 17:41 bonivart Note Added: 0006266
2009-06-04 17:51 bonivart Note Added: 0006267
2009-06-09 10:01 bonivart Note Added: 0006289
2009-06-09 10:01 bonivart Status assigned => closed
2009-06-09 10:01 bonivart Resolution open => fixed

Notes
(0006243)
bonivart   
2009-06-02 17:49   
If I made a dime on pkgutil I would have to start paying you for beta testing! :-)

I see what you mean, if stunnel made use of any new features compared to the one you had installed it would have failed. Even more interesting is to know for sure it would have installed cswclassutils first if you didn't have it at all..?!

I'll do some testing of my own and maybe come up with a special case for cswclassutils.
(0006266)
bonivart   
2009-06-04 17:41   
I have taken a look at this and made a small change to how the packages to be downloaded/installed/upgraded are ordered. As far as I can see no special case for cswclassutils is needed now. Please try r56:

http://pkgutil.svn.sourceforge.net/viewvc/pkgutil/trunk/pkgutil?revision=56 [^]

It also contains a fix for 0003701 (r55).
(0006267)
bonivart   
2009-06-04 17:51   
Minor update:

http://pkgutil.svn.sourceforge.net/viewvc/pkgutil/trunk/pkgutil?revision=57 [^]
(0006289)
bonivart   
2009-06-09 10:01   
v1.6.1 released.