Alan Coopersmith wrote:
> Shawn Walker wrote:
>> 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.)?
> 
> Ultra 40, 1Gb RAM.   Fresh installed 2008.11 RC2, then did a
> pkg install redistributable, so 'pkg list | wc -l' shows 1190 packages.

That shouldn't happen :(

Can you file a bug if you can reproduce it again along with your 
cfg_cache, and the output of pkg list attached?

Thanks!

>> Also, why would you need to parse the output?
> 
> How else does the script know what packages to reinstall afterwards
> so that upgrade-X doesn't leave the system without GNOME, Java, etc?

Ah, I was assuming that you would rely on the dependencies to reinstall 
these.

The output is just package fmris showing what version the package is 
going to.

So, if you grab the output from the point after "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

...the above just means that each fmri is being uninstalled (going to 
version None).

Still, I would hope you wouldn't have to do this; hopefully we'll have 
"reinstall" soon.

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

Reply via email to