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

Per Øyvind Karlsen peroyvind at mandriva.org
Sun Mar 2 16:57:45 PST 2008


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.. :)

-- 
Regards,
Per Øyvind Karlsen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: apt-rpm5.patch~
Type: application/x-trash
Size: 9211 bytes
Desc: not available
URL: <http://lists.laiskiainen.org/pipermail/apt-rpm-laiskiainen.org/attachments/20080303/180981c5/attachment-0002.bak>


More information about the Apt-Rpm mailing list