[Rpm-metadata] How do I fix createrepo 0.4.11 (stable) to work with libkrb5.so.26?

David C. Rankin drankinatty at suddenlinkmail.com
Sun Apr 18 01:34:21 UTC 2010


Listmates,

	First post, and somewhat of a specific question. Recent updates on Arch Linux
moving from libkrb5.so.25 to libkrb5.so.26. The different libkrb5 results in the
following error:

[12:57 nirvana:/usr/lib] # createrepo -h
Traceback (most recent call last):
  File "/usr/share/createrepo/genpkgmetadata.py", line 26, in <module>
    import rpm
  File "/usr/lib/python2.6/site-packages/rpm/__init__.py", line 7, in <module>
    from _rpm import *
ImportError: libkrb5.so.25: cannot open shared object file: No such file or
directory

	Guessing that libkrb5.so.26 would be backwards compatible enough to allow me to
update the opensuse repo I have on the server, I just used a softlink kludge:

[12:57 nirvana:/usr/lib] # ln -s libkrb5.so.26.0.0 libkrb5.so.25

	Which worked, but I don't like using hacks:

[12:57 nirvana:/usr/lib] # createrepo -h
/usr/share/createrepo/dumpMetadata.py:24: DeprecationWarning: the md5 module is
deprecated; use hashlib instead
  import md5
/usr/share/createrepo/dumpMetadata.py:25: DeprecationWarning: the sha module is
deprecated; use the hashlib module instead
  import sha

    createrepo [options] directory-of-packages

    Options:
     -u, --baseurl <url> = optional base url location for all files
     -o, --outputdir <dir> = optional directory to output to
<snip>

	A 6200 rpm repo update completed without error. What I want to figure out is
how to fix it right and update createrepo so it can make use of libkrb5.so.26
and let me get rid of the softlink. The problem is I don't know squat about
python. My first thought was to just around for libkrb5.so.25 in
/usr/share/createrepo/genpkgmetadata.py and
/usr/lib/python2.6/site-packages/rpm/ and see if I can find any type of call (of
course that failed).

	So I'm stuck. Seems like a simple problem, but I obviously don't have the
smarts to fix it. So what say the gurus on this issue?


-- 
David C. Rankin, J.D.,P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com


More information about the Rpm-metadata mailing list