Rainer Orth <[email protected]> writes:

> Unfortunately, there's the question how to properly upgrade from the
> currently installed pkg5 from SVR4 packages to the IPS version: if I
> uninstall the SVR4 packages, I cannot install the IPS ones.  It seems
> I'll have to boot a different BE (snv_134) and upgrade from there,
> hoping that the older pkg.depotd and pkg can deal with the freshly
> constructed repo.

I've gone along with the BE running the SVR4 packages.  Trying to
install the IPS packages met a couple of obstacles, though.  I had to
start with onu -r, since onu -t <newbe> complained about nothing to
upgrade (sure, the ips-consolidation had been removed):

# /opt/onbld/bin/onu -O -u file://<path to>/repo -U pkg5-nightly -r

* At first, it failed due to lack of simplejson-26, which hadn't been a
  problem for the SVR4 installation:

# pkg install consolidation/ips/ips-incorporation developer/opensolaris/pkg5 
package/pkg system/zones/brand/ipkg
Creating Plan |Planning for install failed:     
Use -v option for more details


pkg: No version of package/pkg can be installed:
pkg://pkg5-nightly/package/[email protected],5.11-0.142:20100628T162253Z: Suitable 
required dependency pkg:/library/python-2/simplejson-26 cannot be found

  The SVR4 packages didn't have a corresponding dependency here, but the
  pkg thus installed still seems to work.  Therefore I've changed the
  dependency to simplejson-24.  simplejson-26 is only present since
  snv_135 (and I didn't really feel like building sfwnv, too ;-).

* The next attempt failed in a different way:

# pkg install consolidation/ips/ips-incorporation developer/opensolaris/pkg5 
package/pkg system/zones/brand/ipkg
Creating Plan -Planning for install failed:     
Use -v option for more details


pkg: No solution was found to satisfy constraints

  I then installed in two steps:

# pkg install ips-incorporation
# pkg install -v package/pkg
[...]
proposed pkgs:
    package/pkg
        pkg://pkg5-nightly/package/[email protected],5.11-0.142:20100629T090523Z 
                    require: SUNWcs
                                Requires one of: 
pkg://on-nightly/[email protected],5.11-0.143:20100623T073827Z (INSTALLED)
                    require: library/python-2/[email protected]
                                Requires one of: 
pkg://pkg5-nightly/library/python-2/[email protected],5.11-0.142:20100628T162252Z
                    require: library/python-2/[email protected]
                                Requires one of: 
pkg://pkg5-nightly/library/python-2/[email protected],5.11-0.142:20100628T162252Z
                    require: library/python-2/[email protected]
                                Requires one of: 
pkg://pkg5-nightly/library/python-2/[email protected],5.11-0.142:20100628T162252Z
                    require: library/python-2/[email protected]
                                FAIL: No matching packages found
                                    Ruled out 
pkg://opensolaris.org/library/python-2/[email protected],5.11-0.133:20100216T135237Z
 because: Publisher is lower ranked
                                    Ruled out 
pkg://pkg5-nightly/library/python-2/[email protected],5.11-0.142:20100628T162253Z 
because: Suitable required dependency 
pkg:/library/security/[email protected],5.11 cannot be found
                                    Ruled out 
pkg://pkg5-nightly/library/python-2/[email protected],5.11-0.142:20100629T091732Z 
because: Suitable required dependency pkg:/web/[email protected],5.11 cannot be found
                                    Ruled out 
pkg://opensolaris.org/library/python-2/[email protected],5.11-0.134:20100302T040157Z
 because: Publisher is lower ranked

  I have no idea why [email protected] should be required, but snv_134
  only has 0.9.8.12.  I've changed the dependency to plain 0.9.8.

  Similar problem for web/curl: snv_134 only has 7.19.5, so I've lowered
  the dependency to 7.19:

--- src/pkg/manifests/library%2Fpython-2%2Fpycurl.p5m.dist      2010-06-28 
18:02:45.000000000 +0200
+++ src/pkg/manifests/library%2Fpython-2%2Fpycurl.p5m   2010-06-29 
11:26:20.753388574 +0200
@@ -98,9 +98,9 @@ license lic_pycurl license=lic_pycurl
 legacy pkg=SUNWpython-pycurl version=7.19.0.1
 
 depend type=require fmri=library/[email protected]
-depend type=require fmri=library/security/[email protected]
+depend type=require fmri=library/security/[email protected]
 depend type=require fmri=library/[email protected]
 depend type=require fmri=runtime/[email protected]
 depend type=require fmri=system/library/security/gss
 depend type=require fmri=system/library
-depend type=require fmri=web/[email protected]
+depend type=require fmri=web/[email protected]
--- src/pkg/manifests/package%2Fpkg.p5m.dist    2010-06-28 18:02:45.000000000 
+0200
+++ src/pkg/manifests/package%2Fpkg.p5m 2010-06-29 11:05:08.183215235 +0200
@@ -262,7 +262,7 @@ depend type=require fmri=library/python-
 depend type=require fmri=library/python-2/[email protected]
 depend type=require fmri=library/python-2/[email protected]
 depend type=require fmri=library/python-2/[email protected]
-depend type=require fmri=library/python-2/simplejson-26
+depend type=require fmri=library/python-2/simplejson-24
 depend type=require fmri=runtime/[email protected]
 depend type=require fmri=system/library/math
 depend type=require fmri=system/library

Now I've finally been able to install the IPS packages.  Of course this
clobbered the SVR4 packages, so I created a new BE, run

# pkgrm -R /a <SVR4 IPS packages>
# pkg -R /a fix 'pkg://pkg5-nightly/*'

Not a pleasant journey, but I'm finally there.

        Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to