Alan Coopersmith wrote:
> Shawn Walker wrote:
>> Alan Coopersmith wrote:
>>> Currently our script to install new builds of the X packages for testing
>>> uses similar overrides to SVR4 packages to allow us to pkgrm the old
>>> packages and pkgadd the new ones.   I tried porting this to allow it to
>>> also work on an IPS system, but failed - I was basically having to do
>>> recursive dependency checking myself, to list all the packages I'd have
>>> to remove and then reinstall, which as you can imagine, is very large
>>> when you get to checking the dependencies the package with libX11 in.
>> There is a -r option to uninstall for recursive uninstall.  Did you
>> check that to see if it did what you wanted?  Notably, the output of
>> -rnv would be what you would want to check.  Post to pkg-discuss if you
>> can once you find out.
> 
> Thanks for the tip, but it still seems the end result seems like it
> would be a lot of wasted time and effort uninstalling & reinstalling half
> the packages on the system.  A pkg command that let me "upgrade" an IPS
> package to an SVR4 package (or an oft requested IPS-on-disk format package)
> without having to trawl the dependency tree and remove/reinstall all the
> dependents would solve this as well, but seems like something not likely
> to be as widely useful.
> 
> Unfortunately, besides having to figure out how to parse the output of
> pkg uninstall -rnv, it would have to be fixed first to not throw a traceback:

The error you're seeing is an out of memory one.  What sort of system 
are you running this on (how much memory, etc.)?

Here's the result on my 2GB system:
pkg uninstall -rnv SUNWxorg-server
Creating Plan - Before evaluation:
UNEVALUATED:
-pkg:/[EMAIL PROTECTED],5.11-0.101:20081119T235449Z

After evaluation:
pkg:/[EMAIL PROTECTED],5.11-0.101:20081119T235636Z -> None
pkg:/[EMAIL PROTECTED],5.11-0.101:20081119T231330Z -> None
pkg:/[EMAIL PROTECTED],5.11-0.101:20081119T235449Z -> None
Actuators:

The most memory I saw the pkg process use was about 217MiB.

Also, why would you need to parse the output?

> [EMAIL PROTECTED]:~ [11:28am - 1] pkg uninstall -rnv SUNWxorg-server
> Creating Plan - Before evaluation:
> UNEVALUATED:
> -pkg:/[EMAIL PROTECTED],5.11-0.101:20081119T235449Z
> 
> Creating Plan -Traceback (most recent call last):
>   File "/usr/bin/pkg", line 2228, in ?
> 
> Traceback (most recent call last):
>   File "/usr/bin/pkg", line 2295, in ?
>     traceback.print_exc()
>   File "/usr/lib/python2.4/traceback.py", line 212, in print_exc
>     print_exception(etype, value, tb, limit, file)
>   File "/usr/lib/python2.4/traceback.py", line 125, in print_exception
>     print_tb(tb, limit, file)
>   File "/usr/lib/python2.4/traceback.py", line 69, in print_tb
>     line = linecache.getline(filename, lineno)
>   File "/usr/lib/python2.4/linecache.py", line 14, in getline
>     lines = getlines(filename)
>   File "/usr/lib/python2.4/linecache.py", line 40, in getlines
>     return updatecache(filename)
>   File "/usr/lib/python2.4/linecache.py", line 101, in updatecache
>     lines = fp.readlines()
> MemoryError
> [EMAIL PROTECTED]:~ [11:31am - 2] pkg version
> 666742d60b75
> 
> 
> (The other problem with the "migrate to custom IPS repos" plan is that right
>  now I can tar up all our SVR4 packages and put them on the opensolaris
>  download center for people to test - until someone sets up a
>  pkg.opensolaris.org/project/ namespace or something similar for opensolaris
>  projects to host their own packages on a public repo, I can only use SVR4
>  packages to make test builds available to the community.)

Maybe we need an /alpha repository in addition to the /dev repository?

Cheers,
-- 
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to