I'm trying to build the source rpm (libxml2-2.6.23-1.src.rpm) on RH 7.
It fails when working on Python bindings. The output is shown below:
Requires: libxml2 = 2.6.23 zlib-devel /bin/sh /usr/bin/python
Processing files: libxml2-python-2.6.23-1
error: File not found by glob: /var/tmp/libxml2-2.6.23-root/usr/lib/python*/site-packages/libxml2.py*
error: File not found by glob: /var/tmp/libxml2-2.6.23-root/usr/lib/python*/site-packages/drv_libxml2.py*
error: File not found by glob: /var/tmp/libxml2-2.6.23-root/usr/lib/python*/site-packages/libxml2mod*
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.61438
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd libxml2-2.6.23
+ DOCDIR=/var/tmp/libxml2-2.6.23-root/usr/share/doc/libxml2-python-2.6.23
+ export DOCDIR
+ rm -rf /var/tmp/libxml2-2.6.23-root/usr/share/doc/libxml2-python-2.6.23
+ /bin/mkdir -p /var/tmp/libxml2-2.6.23-root/usr/share/doc/libxml2-python-2.6.23
+ cp -pr AUTHORS ChangeLog.gz NEWS README Copyright /var/tmp/libxml2-2.6.23-root/usr/share/doc/libxml2-python-2.6.23
+ cp -pr python/TODO /var/tmp/libxml2-2.6.23-root/usr/share/doc/libxml2-python-2.6.23
+ cp -pr python/libxml2class.txt /var/tmp/libxml2-2.6.23-root/usr/share/doc/libxml2-python-2.6.23
cp: cannot stat `python/libxml2class.txt': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.61438 (%doc)
Requires: libxml2 = 2.6.23 /usr/lib/python2.4
RPM build errors:
File not found by glob: /var/tmp/libxml2-2.6.23-root/usr/lib/python*/site-packages/libxml2.py*
File not found by glob: /var/tmp/libxml2-2.6.23-root/usr/lib/python*/site-packages/drv_libxml2.py*
File not found by glob: /var/tmp/libxml2-2.6.23-root/usr/lib/python*/site-packages/libxml2mod*
Bad exit status from /var/tmp/rpm-tmp.61438 (%doc)
This problem might originate form the fact that I have several versions of Python installed on my system. There is Python 1.5.2 in /usr/bin/python (that came with the system) and a new 2.4.2 binary compiled from source located in /usr/local/bin/python. How could I make it to use the newer version?
Many thanks
Sergiy
_______________________________________________ xml mailing list, project page http://xmlsoft.org/ [email protected] http://mail.gnome.org/mailman/listinfo/xml
