Re: upgrading 7.2+rawhide -> rh8.0 via grab

Ami Fischman <[email protected]> Wed, 09 Oct 2002 16:02:13 -0700
Newsgroups gmane.linux.redhat.rpm.grab
Message-ID <[email protected]>
Greg Kurtzer <[email protected]> writes:

[...]

> Basically, this is very risky and unless I can figure out (or someone can
> spec it out to me (in pseudo code please)) how to do this, we will have to
> rely on the package automatically figuring them selves out.
>
> Although parsing the output may be helpful. Can you come up with a methodology
> for parsing? Take a snippet of the errors when you tried to do the upgrade,
> and let us know. Otherwise, I don't know of a clean way to do this.

I'm attaching the output from the "rpm -Uvh" stage after my .sig.  One
approach to resolving these dependencies is to err on the side of largess,
and give rpm every package it might want.  What I believe is going in is
that there are two causes for an error like "X is needed by Y":
1) Y is already installed, and requires the version of X specified, and we
   are trying to upgrade X, which would break the dep; in this case Y
   should be upgraded.
2) We are trying to install Y, and it is complaining of a missing (or old)
   X. 

So, it seems to me that if grab could take this output, and simply pick out
the package names of X & Y, and make sure the latest versions of BOTH are
in the list of packages to update, these problems should be resolved.  No?

Basically, this takes advantage of the assumption that since we have the
entire distribution in the catalogue, throwing enough RPMs into the mix
WILL work.  

Or am I missing something?

Cheers,
-- 
  Ami Fischman
  [email protected]

[...]
-Calling 'rpm -Uvh' for '551' package(s)
error: Failed dependencies:
	kbd < 1.06-19 conflicts with initscripts-6.95-1
	libartsflow_idl.so.1 is needed by kdebase-3.0.3-13
	libartsflow.so.1 is needed by kdebase-3.0.3-13
	libkmedia2_idl.so.1 is needed by kdebase-3.0.3-13
	libmcop.so.1 is needed by kdebase-3.0.3-13
	libqtmcop.so.1 is needed by kdebase-3.0.3-13
	libsoundserver_idl.so.1 is needed by kdebase-3.0.3-13
	libvorbisenc.so.2 is needed by kdebase-3.0.3-13
	arts >= 7:1.0.2 is needed by kdelibs-3.0.3-8
	libartsflow_idl.so.1 is needed by kdelibs-3.0.3-8
	libartsflow.so.1 is needed by kdelibs-3.0.3-8
	libkmedia2_idl.so.1 is needed by kdelibs-3.0.3-8
	libmcop.so.1 is needed by kdelibs-3.0.3-8
	libqtmcop.so.1 is needed by kdelibs-3.0.3-8
	libsoundserver_idl.so.1 is needed by kdelibs-3.0.3-8
	kdelibs = 2.2 is needed by kdelibs-sound-2.2-11
	perl(HTML::Tagset) is needed by perl-HTML-Parser-3.26-14
	libImlib.so.11 is needed by sawfish-2.0-4
	libvorbisenc.so.2 is needed by sox-12.17.3-7
	libvorbisfile.so.3 is needed by sox-12.17.3-7
	libImlib.so.11 is needed by xcdroast-0.98a9-18
	libvorbisfile.so.3 is needed by xmms-1.2.7-13.p
	libmcop.so.1 is needed by (installed) arts-devel-1.0.3-1
	compat-libstdc++ = 6.2-2.9.0.16 is needed by (installed) compat-egcs-c++-6.2-1.1.2.16
	libXm.so.2 is needed by (installed) opera-6.10-20021001.3
	libvorbisenc.so.2 is needed by (installed) vorbis-tools-1.0-1
	libvorbisfile.so.3 is needed by (installed) SDL_mixer-1.2.4-5
	libvorbisfile.so.3 is needed by (installed) vorbis-tools-1.0-1
-RPM had a non-zero exit code, not erasing downloaded RPMS