apt-rpm empty changelog bug fix

David Smid david at unity-linux.org
Thu Jul 9 02:32:13 PDT 2009


Anders F Björklund napsal(a):
> David Smid wrote:
> 
>> We have come across a bug in RPM5's python-rpm binding (shared library
>> _rpmmodule.so).
>> When there's no changelog in apt-rpm repository metadata,
>> hdr_subscript function
>> calls PyString_FromString with NULL argument. That causes instant
>> Segmentation
>> fault in Smart.
> 
> I guess rpm packages in apt-rpm repositories usually have changelogs...

They do, but AFAIK genpkglist doesn't retrieve changelogs from RPMs
thus Smart has no access to this information (for uninstalled packages).

> It would be appreciated if you opened bugs with Smart, and
> attached the patch there since email always eats diffs...
> 
> But it's applied, after converting tabs to spaces first:
> http://bazaar.launchpad.net/~smartpm/smart/changelog/revision/850
> 
> (there is no changelog support merged in trunk just yet,
>  see https://bugs.launchpad.net/smart/+bug/245338 / 1.3 )
> 
> --anders

Thanks for you effort, I'll use the bug tracker next time.

David



More information about the Smart mailing list