PDA

View Full Version : Installing old RPMs in F13


jbrown96
5th October 2010, 09:22 PM
I'm developing Python applications on Fedora 13, and I need to validate my programs against several Python interpreters. Python2.6 and 3.1 are available through the repos, and I have both working fine.
The problem is that I need to support 2.3.4 in RH 4.4. I've found (S)RPMs from http://www.python.org/download/releases/2.3.4/rpms/. They recommended building my own binaries, so it will work better with my environment.
Two things:

1) Is there an easier way to install 2.3.4? Maybe some repo, or are the binaries fine to use?
2) If SRPM is the best method, could someone help me?

I've followed instructions from http://hacktux.com/fedora/source/rpm.

So far, I have successfully done:

yum-builddep python2.3-2.3.4-3pydotorg.src.rpm

and copied the '.rpmmacros' file from the website.

Actually building the SRPM is giving me errors, and I don't know where to look.
rpmbuild --rebuild /home/justin/Downloads/python2.3-2.3.4-3pydotorg.src.rpm


Installing /home/justin/Downloads/python2.3-2.3.4-3pydotorg.src.rpm
warning: InstallSourcePackage at: psm.c:244: Header V3 DSA/SHA1 Signature, key ID 95ccbcff: NOKEY
warning: user jafo does not exist - using root
warning: group jafo does not exist - using root
warning: user jafo does not exist - using root
warning: group jafo does not exist - using root
warning: user jafo does not exist - using root
warning: group jafo does not exist - using root
error: line 55: Unknown tag: Copyright: Modified CNRI Open Source License

I have no idea who 'jafo' is. I've run it as root and my user account; both produce the same warnings/error.

Thanks.

leigh123linux
5th October 2010, 09:30 PM
jafo was the srpm builder, to fix the error you will need to edit the spec file and remove the dodgy tag (line 55)


Copyright: Modified CNRI Open Source License

jbrown96
5th October 2010, 10:03 PM
jafo was the srpm builder, to fix the error you will need to edit the spec file and remove the dodgy tag (line 55)


Copyright: Modified CNRI Open Source License

The SRPM does not seem to be designed to be edited by a text editor. This looks like the relevant section:
^@^@^@^@A^@}tguin.tummy.com^@^@^@\225^@^KModified CNRI Open Source License^@Sean Reifschneider <jafo-rpms@tummy.com>^@Development/Languages^@html-2.3.4.tar.bz2^@Python-2.3.4.tgz^@linux^@i386^@^@\201\275\322^@^S^P^G^@^@ 22\201\244\201\\
244\201\24473^M^H^@^@@\265\247\342@\253\207\275A^@ wgb6cf0b19226861a38689d2fabd0931b3^@599abc498714de 055814d4542de4f2fc^@3129dc1002228b7c1d850114cd01a5 9f^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ jafo^@jafo^@jafo^@jafo^@jafo^@jafo^@^@^@\377\377\3 \
77\377\377\377\377\377\377\377\377\377^@^@^@@^@^@^ @@^@^@^@@^A^@^@Jexpat-devel^@db4-devel^@gdbm-devel^@rpmlib(CompressedFileNames)^@^@^@^@3.0.4-1^@4.2.1^@^@^@A^@q @\266\235 @f1\240@%\230 ?\213X\240?k\264\240>Z\316 >Q\223\240<&\214 <%:\240\
;\370g\240;\341\376 ;\327r ;\324\317 ;\303\253\240;\267\316 ;_y\240Sean Reifschneider <jafo-rpms@tummy.com> [2.3.4-3pydotorg]^@Sean Reifschneider <jafo-rpms@tummy.com> [2.3.4-2pydotorg]^@Sean Reifschneider <jafo-rpms@tummy.com> [2.3.2-3p\

I removed just the bolded string, but it made the SRPM invalid.

Also, I can't install the binary because of missing dependencies, even when trying to force it.

Hlingler
5th October 2010, 10:10 PM
No: you need to unpack the SRPM with an archiving utility, then edit the spec file to replace the word "Copyright" with "License" (no quotes of course). Then re-build the RPM:
cd ~/rpmbuild/SPECS
rpmbuild -ba python... (whatever the name is).

The spec file belongs in ~/rpmbuild/SPECS/ , and the source tarball (and all patches, etc.) in ~/rpmbuild/SOURCES/ .

V

P.S. Ignore those warnings - they're taken care of, as shown.

P.P.S. The above also assumes that you have already set up the rpmbuild environment (as your normal user) with rpmdev-setuptree

The Yellow House Travel Photos on Instagram - Almudena Cathedral Photos on Instagram - Jln. Kopo Bandung Instagram Photos