Building rpm-python from scratch?

Brad Smith <[email protected]> Fri, 10 Mar 2006 11:32:26 -0500
Newsgroups gmane.linux.redhat.rpm.python
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello folks,

My webhost is currently running python2.2 on RHEL3 and the project I'm doing requires 2.4, so I'm
having to build everything from scratch in my home directory. Python2.4 built fine, but rpm-python
is a different story. I've tried two methods of getting it, neither of which has panned out:

Method 1: Compiling from source...
Despite googling high and low, I can't seem to find an official source distribution or even a
homesite for the project. The best I could do was look in the source package for the version of rpm
shipped with fc4 (since that version of fedora uses python4.2). I installed the package on my
laptop, did an rpmbuild -bp on it and uploaded the build directory to the RHEL3 system. Although
running ./configure works fine (I was hoping that would catch any missing dependencies), running
make in the python directory produces a slew of errors (same if I try making the rpm directory first).

Method 2: Using the existing module...
Getting desperate I tried just copying /usr/lib/python2.2/site-packages/rpmmodule.so into my 2.4
site-packages directory, but attempting to import it produces

	ImportError: ./rpmmodule.so: undefined symbol: PyDictIter_Type

I hope I'm just doing something dumb here and that there's a simple way to get sources, deps and
then build. Can someone please point me in the right direction?

Thanks,
- --Brad
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFEEaoZDvp49DvQ8kcRAm/5AJ49iLb62yr0pvs0aDkOpxdBW5F9cgCfaA8B
gMOs/w2PPrvlcjEIfPuxYN0=
=2BVV
-----END PGP SIGNATURE-----