OpenCSW Bug Tracker


Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004172 [pkg_get] regular use major have not tried 2010-01-20 00:51 2010-03-12 16:03
Reporter skayser View Status public  
Assigned To bonivart
Priority normal Resolution fixed  
Status closed  
Summary 0004172: Package upgrade (-u) from testing tries to update dependencies although -N is given
Description System is up to date. When trying to update subversion from testing, pkgutil tries to pull in perl and sasl from testing although -N is given. Thus, when I want to tell a user to upgrade a package from testing, there is a risks of hosing the system with unwanted upgrade packages. Using -N with -i works as expected, i.e. only svn is installed from testing.

root @ opencsw-current ~# pkgutil -Uu
Fetching new catalog and descriptions (http://csw.informatik.uni-erlangen.de/csw/current/i386/5.10) [^] if available...
Looking for packages that can be upgraded...
Parsing catalog, may take a while...
CURRENT packages: CSWcommon-1.4.7,REV=2009.09.20 CSWscrn-4.0.3,REV=2010.01.10 CSWtcpwrap-7.6,REV=2009.10.20_rev=ipv6.4

Nothing to do.

root @ opencsw-current ~# pkgutil -t http://mirror.opencsw.org/opencsw/testing [^] -UNu subversion
Fetching new catalog and descriptions (http://mirror.opencsw.org/opencsw/testing/i386/5.10) [^] if available...
Fetching new catalog and descriptions (http://csw.informatik.uni-erlangen.de/csw/current/i386/5.10) [^] if available...
Parsing catalog, may take a while...
Install UPDATED packages: CSWperl-5.10.1,REV=2009.12.15 CSWsasl-2.1.23,REV=2010.01.18 CSWsvn-1.6.6,REV=2010.01.19
CURRENT packages: CSWapache2rt-2.2.13,REV=2009.08.22 CSWbdb-4.7.25,REV=2009.10.18 CSWbdb47-4.7.25,REV=2009.10.18_rev=p4 CSWcacertificates-20091101,REV=2009.11.01 CSWcommon-1.4.7,REV=2009.09.20 CSWcswclassutils-1.30,REV=2009.11.21 CSWexpat-2.0.1,REV=2009.01.22 CSWgdbm-1.8.3,REV=2006.01.01 CSWggettextrt-0.17,REV=2009.02.13 CSWgsed-4.2.1,REV=2009.07.14 CSWiconv-1.13.1,REV=2009.07.31 CSWkrb5lib-1.4.4,REV=2006.12.27 CSWlibice-1.0.6,REV=2009.09.22 CSWlibnet-1.0.2,REV=2004.04.08_rev=a CSWlibproxy-0.3.0,REV=2010.01.18 CSWlibsm-1.1.1,REV=2009.09.23 CSWlibx11-1.2.2,REV=2009.07.12 CSWlibxau-1.0.4,REV=2009.06.04 CSWlibxcb-1.3,REV=2009.06.07 CSWlibxext-1.0.5,REV=2009.09.22 CSWlibxmu-1.0.4,REV=2009.09.25 CSWlibxt-1.0.6,REV=2009.09.25 CSWncurses-5.7,REV=2009.04.06 CSWneon-0.29.3,REV=2010.01.19 CSWoldaprt-2.3.39,REV=2008.02.22 CSWosslrt-0.9.8l,REV=2009.12.08 CSWpakchois-0.4,REV=2009.10.08 CSWreadline-6.1,REV=2010.01.01 CSWsqlite3-3.6.21,REV=2010.01.04 CSWsqlite3rt-3.6.21,REV=2010.01.04 CSWx11common-1.0,REV=2009.05.24 CSWzlib-1.2.3,REV=2009.11.26
Total size: 10.6 MB
3 packages to fetch. Do you want to continue? [Y,n] n

root @ opencsw-current ~# pkgutil -t http://mirror.opencsw.org/opencsw/testing [^] -UNi subversion
Fetching new catalog and descriptions (http://mirror.opencsw.org/opencsw/testing/i386/5.10) [^] if available...
Fetching new catalog and descriptions (http://csw.informatik.uni-erlangen.de/csw/current/i386/5.10) [^] if available...
Parsing catalog, may take a while...
Install NEW packages: CSWsvn-1.6.6,REV=2010.01.19
Total size: 2.3 MB
Fetching CSWsvn-1.6.6,REV=2010.01.19 (1/1)...
Additional Information root @ opencsw-current ~# pkgutil -V
- System -
Pkgutil 1.9.1
Arch i386
Solaris 5.10
Pkg patch 119318 (119318-01 installed)
GPG binary /opt/csw/bin/gpg
Gzip binary /bin/gzip
Mailx binary /bin/mailx
MD5 binary /opt/csw/bin/gmd5sum
MD5 module 2.33 (primary choice for MD5)
Perl 5.008004
Perl binary /bin/perl
Wget binary /opt/csw/bin/wget
PATH /bin:/usr/bin:/sbin:/usr/sbin:/opt/csw/bin:/usr/sfw/bin:/usr/ccs/bin:/usr/openwin/bin:/usr/dt/bin:/opt/SUNWjet/bin

- Configuration -
catalog_update 14 (default: 14)
exclude_pattern not set (default: none)
maxpkglist not set (default: 25000)
mirror http://csw.informatik.uni-erlangen.de/csw/current [^]
                (default: http://ibiblio.org/pub/packages/solaris/opencsw/current) [^]
noncsw not set (default: false)
pkgaddopts not set (default: none)
pkgliststyle not set (default: 0)
stop_on_hook_soft_error not set (default: false)
use_gpg not set (default: false)
use_md5 not set (default: false)
wgetopts -q (default: none)
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0007302)
bonivart (developer)
2010-01-20 10:45

Yes, there are some differences between -i and -u even though they most often are totally interchangeable. Packages are updated when needed even when using -i instead of -u and -N only works with -i. It isn't very logical, I agree with that.

The short term solution is to use -iN. The long term one is that I revise the code to make this more clear.
(0007576)
bonivart (developer)
2010-03-03 16:52

I think I have fixed this in a simple way now [r214]. Basically the only difference between -i and -u are that you can issue only -u (or -u all) to upgrade all your packages but you can't issue just -i to install all packages. When supplying packages -i and -u are totally interchangeable.
(0007577)
bonivart (developer)
2010-03-03 17:05

So...

# pkgutil -i exim
# pkgutil -u exim

...should yield the same result. As should...

# pkgutil -iN exim
# pkgutil -uN exim
(0007628)
bonivart (developer)
2010-03-12 16:03

Implemented in 1.10.


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker