rpm-4 a jak jej nainstalovat bez rpm-4

Milan Kerslager milan.kerslager na spsselib.hiedu.cz
Pátek Červen 23 22:55:12 CEST 2000


Asi Vam pomuze tohle (je to z uzavrene konference). Strucne receno, nove
RPM v3 by melo byt, ale nikdo na to zrovna ted nema cas :-(, takze je
potreba patchovat rucne. 

-------- Original Message --------
From: "Gene C." <czar na acm.org>
Subject: Re: rpm question
Resent-From: testers-list na redhat.com
To: Jeff Johnson <jbj na redhat.com>
CC: testers-list na redhat.com

On Wed, 14 Jun 2000, you wrote:
> On Wed, Jun 14, 2000 at 03:42:23AM -0400, Gene C. wrote:
> > On Tue, 13 Jun 2000, Jeff Johnson wrote:
> > > On Tue, Jun 13, 2000 at 02:24:24AM -0400, Gene C. wrote:
> > > > The rpm in Winston is 4.0.  The one in rawhide is 3.1.  The current zoot
> > > > production is 3.0.4.
> > > > 
> > > 
> > > Version 3.1 is now 4.0 with introduction of version 4 format.
> > > There will be a version 3.0.5 with patch below to further confuse matters.
> > > 
> > > > Is 4.0 stable enough to use on a production 6.2 system?  
> > > > 
> > > 
> > > Almost, but no.
> > > 
> > > > Unfortunately, the current 3.0.4 cannot handle SRPMS from Winston created with
> > > > 4.0.  It is a bit of a pain to have to actually use Winston even when I just
> > > > want to look at source code and there is no way I am going to fool with XFree86
> > > > running under vmware.
> > > > 
> > > 
> > > This patch to rpm-3.0.4 should permit reading version 4 SRPMS:
> > 
> > I tried applying this patch to rpm 3.0.4 and it was rejected.  Looking at the
> > lib/package.c source code shows nothing even close to the source shown in the
> > patch.
> > 
> 
> Sorry, I forgot that I had checked out rpm on a tag. The patch I sent you would
> have taught rpm-3.0.2 how to read version 4 packages.
> 
> Here's the same patch for rpm-3.0.4:
> 
> Index: package.c
> ===================================================================
> RCS file: /cvs/devel/rpm/lib/package.c,v
> retrieving revision 2.45
> diff -u -r2.45 package.c
> --- package.c   1999/10/30 16:43:29     2.45
> +++ package.c   2000/06/14 12:36:08
> @@ -265,6 +265,7 @@
>  
>      case 2:
>      case 3:
> +    case 4:
>         if (rpmReadSignature(fd, sigs, lead->signature_type)) {
>            return 2;
>         }
> 
> Please let me now if there are other problems.
> 
> 73 de Jeff

Thanks .. This patch works.

I am adding the mailing list to this since someone else might need it.

Gene


> 
> -- 
> Jeff Johnson	ARS N3NPQ
> jbj na redhat.com (jbj na jbj.org)
> Chapel Hill, NC

-- 
                        Milan Kerslager
                        E-mail: milan.kerslager na spsselib.hiedu.cz
                        WWW:    http://www.spsselib.hiedu.cz/~kerslage/


Další informace o konferenci Linux