Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100717220437.GF17993@openwall.com>
Date: Sun, 18 Jul 2010 02:04:37 +0400
From: Anatoly Pugachev <mator@...nwall.com>
To: owl-users@...ts.openwall.com
Subject: rebulding python contrib for x86_64


I tried to rebuild python.src.rpm taken from ftp://.../contrib/2.0/SRPMS/ 
directory and it failed to rebuild in x86_64 openvz owl container
created from owl-current-20100323-x86_64.tar.gz (while it still
successfully builds in x86 container).

Here is the last lines of output:

$ rpmbuild -bb SPECS/python.spec
....
Executing(%doc): /bin/sh -e /home/mator/.rpm.d/tmp/rpm-tmp.66263
+ umask 022
+ cd /home/mator/.rpm.d/BUILD
+ cd Python-2.4.3
+ DOCDIR=/home/mator/.rpm.d/buildroots/python-2.4.3/usr/share/doc/python-tools-2.4.3
+ export DOCDIR
+ rm -rf /home/mator/.rpm.d/buildroots/python-2.4.3/usr/share/doc/python-tools-2.4.3
+ /bin/mkdir -p /home/mator/.rpm.d/buildroots/python-2.4.3/usr/share/doc/python-tools-2.4.3
+ cp -pr Tools/modulator/README.modulator /home/mator/.rpm.d/buildroots/python-2.4.3/usr/share/doc/python-tools-2.4.3
+ cp -pr Tools/pynche/README.pynche /home/mator/.rpm.d/buildroots/python-2.4.3/usr/share/doc/python-tools-2.4.3
+ exit 0
Finding  Provides: /usr/lib/rpm/find-provides
Finding  Requires: /usr/lib/rpm/find-requires
error: line 204: Dependency tokens must begin with alpha-numeric, '_' or '/': - Initial package creation.

error: Failed to find Requires:
Provides: python2-tools = 2.4.3
Requires(rpmlib): rpmlib(VersionedDependencies) <= 3.0.3-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1
Requires: python = 2.4.3-owl_add1


RPM build errors:
    File not found by glob: /home/mator/.rpm.d/buildroots/python-2.4.3/usr/lib64/libpython2.4.so*
    File not found by glob: /home/mator/.rpm.d/buildroots/python-2.4.3/usr/lib64/python2.4/*.py*
    File not found by glob: /home/mator/.rpm.d/buildroots/python-2.4.3/usr/lib64/python2.4/*.doc
    File not found: /home/mator/.rpm.d/buildroots/python-2.4.3/usr/lib64/python2.4/config/Makefile
    File not found: /home/mator/.rpm.d/buildroots/python-2.4.3/usr/lib64/python2.4/bsddb
    File not found: /home/mator/.rpm.d/buildroots/python-2.4.3/usr/lib64/python2.4/compiler
    File not found: /home/mator/.rpm.d/buildroots/python-2.4.3/usr/lib64/python2.4/curses
    File not found: /home/mator/.rpm.d/buildroots/python-2.4.3/usr/lib64/python2.4/distutils
    File not found: /home/mator/.rpm.d/buildroots/python-2.4.3/usr/lib64/python2.4/email
    File not found: /home/mator/.rpm.d/buildroots/python-2.4.3/usr/lib64/python2.4/encodings
    File not found: /home/mator/.rpm.d/buildroots/python-2.4.3/usr/lib64/python2.4/hotshot
    File not found: /home/mator/.rpm.d/buildroots/python-2.4.3/usr/lib64/python2.4/idlelib
    File not found: /home/mator/.rpm.d/buildroots/python-2.4.3/usr/lib64/python2.4/lib-old
    File not found: /home/mator/.rpm.d/buildroots/python-2.4.3/usr/lib64/python2.4/lib-dynload
    File not found: /home/mator/.rpm.d/buildroots/python-2.4.3/usr/lib64/python2.4/logging
    File not found: /home/mator/.rpm.d/buildroots/python-2.4.3/usr/lib64/python2.4/plat-linux2
    File not found: /home/mator/.rpm.d/buildroots/python-2.4.3/usr/lib64/python2.4/xml
    File not found: /home/mator/.rpm.d/buildroots/python-2.4.3/usr/lib64/python2.4/site-packages/README
    File not found: /home/mator/.rpm.d/buildroots/python-2.4.3/usr/lib64/python2.4/config
    File not found: /home/mator/.rpm.d/buildroots/python-2.4.3/usr/lib64/python2.4/test
    line 204: Dependency tokens must begin with alpha-numeric, '_' or '/': - Initial package creation.

    Failed to find Requires:
owl01!mator:~/.rpm.d$


about "line 204:" error - it's line in the %changelog section of SPEC
file starting from "-" character, I don't know why rpmbuild considering
it as "dependency" token, while it sitting under the changelog section.

googling for "Dependency tokens must begin with alpha" takes to redhat
bugzilla https://bugzilla.redhat.com/show_bug.cgi?id=455119 , probably
this has been fixed in a newer rpm(-build) version.

there's no %buildroot/usr/lib64/libpython* files, but somehow they were
placed in %buildroot/usr/lib/ directory and python2.4/ is under lib/
too. I've taken fc13 python.src.rpm and there's some patches mentioned
in the SPEC file about "lib64" relocation, so I'll try to apply them to
our python build and report back soon.

I've also packaged python-2.5.5.src.rpm and python-2.4.6.src.rpm from
original 2.4.3 rpm spec file, but tested that it builds only on x86
arch/platform. If I'll succeed with fix to python build with x86_64
arch, I will make some real tests with python and we can put updated
packages on ftp.

PS: this work is done in preparation for trying to package/build yum
for Owl-linux.

-- 
Anatoly Pugachev

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.