[Apt-Rpm] [PATCH]: rpm 5.0 support

Per Øyvind Karlsen peroyvind at mandriva.org
Wed Mar 5 11:36:44 PST 2008


På Mandag 03 mars 2008 , 02:28:00 skrev Per Øyvind Karlsen:
> På Mandag 03 mars 2008 , 01:57:45 skrev Per Øyvind Karlsen:
> > Hi!
> >
> > This patch is quite simple as the real work was rather done on a wrapper
> > at rpm5.org upstream, so it basically mostly adds inclusion of this
> > header before any other rpm headers. As you can see it will remove
> > inclusion of rpmlib.h in some files, but this is only since the file gets
> > included in another header included later and it's important that the
> > rpm4compat.h header gets included before rpmlib.h. Also to ensure that
> > RPM_VERSION is defined, config.h has been added where missing and needed
> > as well.
> >
> > Finally there's a tiny bug fix where 'int' has been used in stead of
> > 'int_32', this leads to problem with rpm 5.0 since unsigned int
> > (uint32_t) are used in stead, so since int_32 gets typedef'd to uint32_t
> > in rpm4compat.h...
> >
> > As I don't use apt-get myself, I haven't really tested apt-get with rpm
> > 5.0 besides getting it to build without warnings, but I would assume that
> > it should work mostly okay, at least urpmi works just fine with this
> > compatibility wrapper.. :)
>
> grf, here's the correct patch :p

This one is a bit better since it avoids need of silly wrapper function in 
rpm5compat.h just to typecast from unsigned long long to uint64_t..

-- 
Regards,
Per Øyvind Karlsen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: apt-rpm5.patch
Type: text/x-diff
Size: 3821 bytes
Desc: not available
URL: <http://lists.laiskiainen.org/pipermail/apt-rpm-laiskiainen.org/attachments/20080305/f0ee6246/attachment-0003.patch>


More information about the Apt-Rpm mailing list