Cannot build Python 2.4 SRPM on x64 platform

Michael Wieher michael.wieher at gmail.com
Sun Mar 16 10:09:16 EDT 2008


Sorry I don't have much of a better idea, but if I had this kind of problem
with an RPM, I'd just grab the tarball and start hacking away at ./configure
pre-requirements, trying to use --options to trim it down to the bare
minimal and see if I can get it to load up.

2008/3/16, Eric B. <ebenze at hotmail.com>:
>
> Hi,
>
> For those on several python lists, I appologize in advance for
> cross-posting, but I'm really not sure which list is best to ask for
> assistance with this.
>
> Currently, I am trying to build the python2.4 SRPM from Python.org on a
> RHEL4 x64 platform, but the build is failing with a very non-descript
> error message.
>
> ....
> + cd /var/tmp/python2.4-2.4-root/usr/bin
> + mv -f pydoc pydoc2.4
> + cd /var/tmp/python2.4-2.4-root/usr/bin
> + mv -f idle idle2.4
> + echo '#!/bin/bash'
> + echo 'exec /usr/bin/python2.4 /usr/lib64/python2.4/idlelib/idle.py'
> + chmod 755 /var/tmp/python2.4-2.4-root/usr/bin/idle2.4
> + cp -a Tools /var/tmp/python2.4-2.4-root/usr/lib64/python2.4
> + rm -f mainpkg.files
> + find /var/tmp/python2.4-2.4-root/usr/lib64/python2.4/lib-dynload -type f
> + sed 's|^/var/tmp/python2.4-2.4-root|/|'
> + grep -v -e '_tkinter.so$'
> error: Bad exit status from /var/tmp/rpm-tmp.55639 (%install)
>
>
> RPM build errors:
>     user jafo does not exist - using root
>     group jafo does not exist - using root
>     user jafo does not exist - using root
>     group jafo does not exist - using root
>     Bad exit status from /var/tmp/rpm-tmp.55639 (%install)
>
>
> If I try to run /var/tmp/rpm-tmp.55639 manually from the prompt manually
> after the rpmbuild fails, it runs properly to completion.  If I try to
> comment out that last line (find
> /var/tmp/python2.4-2.4-root/usr/lib64/python2.4/lib-dynload -type f | sed
> 's|^/var/tmp/python2.4-2.4-root|/|' | grep -v -e '_tkinter.so$' ) that
> seems
> to be causing the script to fail, rpmbuild finishes, but with several
> error
> msgs, complaining about missing files in the lib64 directories:
>
> + rm -f /tmp/python-rpm-files.4859
> + /usr/lib/rpm/brp-compress
> + /usr/lib/rpm/brp-strip
> + /usr/lib/rpm/brp-strip-static-archive
> + /usr/lib/rpm/brp-strip-comment-note
> Processing files: python2.4-2.4-1pydotorg
> error: File not found by glob:
> /var/tmp/python2.4-2.4-root/usr/lib64/python2.4/*.txt
> error: File not found by glob:
> /var/tmp/python2.4-2.4-root/usr/lib64/python2.4/*.py*
> error: File not found:
> /var/tmp/python2.4-2.4-root/usr/lib64/python2.4/pdb.doc
> error: File not found:
> /var/tmp/python2.4-2.4-root/usr/lib64/python2.4/profile.doc
> error: File not found:
> /var/tmp/python2.4-2.4-root/usr/lib64/python2.4/curses
> error: File not found:
> /var/tmp/python2.4-2.4-root/usr/lib64/python2.4/distutils
> error: File not found:
> /var/tmp/python2.4-2.4-root/usr/lib64/python2.4/encodings
> error: File not found:
> /var/tmp/python2.4-2.4-root/usr/lib64/python2.4/plat-linux2
> error: File not found:
> /var/tmp/python2.4-2.4-root/usr/lib64/python2.4/site-packages
> error: File not found: /var/tmp/python2.4-2.4-root
> /usr/lib64/python2.4/test
> error: File not found: /var/tmp/python2.4-2.4-root/usr/lib64/python2.4/xml
> error: File not found: /var/tmp/python2.4-2.4-root
> /usr/lib64/python2.4/email
> error: File not found:
> /var/tmp/python2.4-2.4-root/usr/lib64/python2.4/compiler
> error: File not found: /var/tmp/python2.4-2.4-root
> /usr/lib64/python2.4/bsddb
> error: File not found:
> /var/tmp/python2.4-2.4-root/usr/lib64/python2.4/hotshot
> error: File not found:
> /var/tmp/python2.4-2.4-root/usr/lib64/python2.4/logging
> error: File not found:
> /var/tmp/python2.4-2.4-root/usr/lib64/python2.4/lib-old
> Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.95118
> + umask 022
> + cd /usr/src/redhat/BUILD
> + cd Python-2.4
> + DOCDIR=/var/tmp/python2.4-2.4-root/usr/share/doc/python2.4-2.4
> + export DOCDIR
> + rm -rf /var/tmp/python2.4-2.4-root/usr/share/doc/python2.4-2.4
> + /bin/mkdir -p /var/tmp/python2.4-2.4-root/usr/share/doc/python2.4-2.4
> + cp -pr Misc/README Misc/cheatsheet Misc/Porting
> /var/tmp/python2.4-2.4-root/usr/share/doc/python2.4-2.4
> + cp -pr LICENSE Misc/ACKS Misc/HISTORY Misc/NEWS
> /var/tmp/python2.4-2.4-root/usr/share/doc/python2.4-2.4
> + exit 0
> Processing files: python2.4-devel-2.4-1pydotorg
> error: File not found:
> /var/tmp/python2.4-2.4-root/usr/lib64/python2.4/config
> Processing files: python2.4-tools-2.4-1pydotorg
> Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
> rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(VersionedDependencies) <=
> 3.0.3-1
> Requires: /bin/bash /bin/sh /usr/bin/env
>
>
> Finally, if I try searching for any files in the
> usr/lib64/python2.4/lib-dynload  or usr/lib64/python2.4/idlelib
> directories
> manually, I don't see any files at all in those directories.
>
>
> To me, it seems as though python is either not installing the files in the
> right places, or the script is searching for files in the wrong places,
> but
> I'm completely guessing here.
>
> Has anyone managed to build Python2.4 on a RHEL4 x64 system?  Can anyone
> point me in the right direction to complete this build successfully?  I'm
> hoping to get the binaries built so I can contribute them to the
> python.org
> site so others don't need to go through these problems in the future.
>
> Any hints / ideas / suggestions / guidance that anyone can provide would
> amazing, because I'm completely out of ideas at this point.  Like I said,
> I'm trying to build this on a RHEL4 x64 system, with all latest updates.
>
> Thanks so much!
>
> Eric
>
>
>
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080316/56fcedd6/attachment.html>


More information about the Python-list mailing list