RPM Community Forums

Mailing List Message of <rpm-users>

Re: free() pointer error when using bindings to read specfile

From: Eric MSP Veith <eveith@wwweb-library.net>
Date: Sun 13 Sep 2009 - 18:32:03 CEST
Message-Id: <200909131832.07304.eveith@wwweb-library.net>

thanks for your help.

Am Sonntag, 13. September 2009 18:08:51 schrieb Jeff Johnson:
> On Sep 13, 2009, at 11:08 AM, Eric MSP Veith wrote:
> This error is going to be RPM version specific. All memory is no
> refcounted with mutexes, and malloc overhead is avoided by resusing
> items from memory pools. Which is why I'm not able top reproduce on
> cvs HEAD.

Is that mutex-refcount-thingy already part of 5.2.0?

> I still suggest using YAML (or XML if that's your poison). Loading
> YAML is
> dirt simple and you end up with native objects (rather than custom
> crufty
> getter/setter methods) ready for use.

In that case the Perl bindings wouldn't be bindings anymore but just a set of 
parsing actions around "rpm -q"? I mean, it's pretty simple (if time-
consuming) to rewrite things.

Two last things:

1. The "Requireflags" map to defines I presume, with "12" beeing the 
equivalent of ">=", I guess. I can't find that in the API docs. :-/ Can you 
point me on to where to find it?

2. The API docs on rpm5.org are for 4.5. Is that a typo or are they really 
that old? :-)

		-- Eric

Received on Sun Sep 13 18:33:14 2009
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.