I'm trying to read a spec file using RPM's bindings. I've tried both rpm5-perl
and rpm5-python and both fail with the following error:
*** glibc detected *** python: free(): invalid next size (fast): 0x08ab9040
This is what the Python script gives me, the error with Perl reads the same.
My code looks as follows:
if len(sys.argv) != 2:
print "Usage: %s SPECFILE" %(sys.argv)
ts_h = rpm.TransactionSet()
spec_h = ts_h.parseSpec(sys.argv)
The perl version looks similar, but I'm using "RPM::Spec->new($file)" instead.
I've got no clue on where to look further here. rpmbuild e.g. works ok. Am I
misung the bindings?
Thanks in advance.
Received on Sun Sep 13 17:16:12 2009