On Feb 29, 2008, at 3:42 PM, Per Øyvind Karlsen wrote:
> Ahoi!
>
> With great help from Jeff, I have now successfully ported urpmi (&
> rpmtools)
> to rpm5, making it the first dep solver tool to get rpm 5.0
> support! :)
>
> To make things nicer and easier to maintain in terms of
> compatibility with
> older rpm versions & rpm.org a function wrapper was done.
> It's currently available at
> http://svn.mandriva.com/cgi-bin/viewvc.cgi/soft/rpm/perl-URPM/trunk/
> rpm5compat.h?revision=238099&view=markup
>
> So what do you guys think of inclusion of this in rpm5.org tree?
Note that there are memory leaks. In fact, this is the better emulation:
void * headerFreeData(const void * data, rpmTagType type)
{
if (data)
free((void *)data);
return NULL;
}
The problem with retrofitting "compatibility"
is that applications, not rpm, need to manage
their own memory.
If headerFreeData() were used consistently everywhere,
then "compatibility" could be achieved.
Alas, headerFreeData() is often not used in applications
everywhere.
73 de Jeff
Received on Fri Feb 29 22:16:07 2008