Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 363797 - app-portage/layman-1.4.2 fails tests and module compilation with python-2.5
Summary: app-portage/layman-1.4.2 fails tests and module compilation with python-2.5
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Third-Party Tools (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-16 06:25 UTC by Ryan Hill (RETIRED)
Modified: 2011-04-27 13:24 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Hill (RETIRED) gentoo-dev 2011-04-16 06:25:06 UTC
* Testing of app-portage/layman-1.4.2 with CPython 2.5...
Traceback (most recent call last):
  File "layman/tests/dtest.py", line 52, in <module>
    import layman.action             #CT
  File "/var/tmp/portage/app-portage/layman-1.4.2/work/layman-1.4.2/layman/action.py", line 29, in <module>
    from   layman.dbbase            import UnknownOverlayException
  File "/var/tmp/portage/app-portage/layman-1.4.2/work/layman-1.4.2/layman/dbbase.py", line 37, in <module>
    from   layman.overlays.overlay   import Overlay
  File "/var/tmp/portage/app-portage/layman-1.4.2/work/layman-1.4.2/layman/overlays/overlay.py", line 40, in <module>
    from   layman.overlays.bzr       import BzrOverlay
  File "/var/tmp/portage/app-portage/layman-1.4.2/work/layman-1.4.2/layman/overlays/bzr.py", line 64
    return self.run_command(*args, cwd=path([base, self.parent.name]))
                                     ^
SyntaxError: invalid syntax
 * ERROR: app-portage/layman-1.4.2 failed (test phase):
 *   test suite 'layman/tests/dtest.py' failed

----------8<--------------

 * Compilation and optimization of Python modules for CPython 2.5 ...
Compiling /usr/lib64/python2.5/site-packages/layman/overlays/bzr.py ...
  File "/usr/lib64/python2.5/site-packages/layman/overlays/bzr.py", line 64
    return self.run_command(*args, cwd=path([base, self.parent.name]))
                                     ^
SyntaxError: invalid syntax

Compiling /usr/lib64/python2.5/site-packages/layman/overlays/cvs.py ...
  File "/usr/lib64/python2.5/site-packages/layman/overlays/cvs.py", line 86
    return self.run_command(*args, cwd=base, env=dict(CVSROOT=self.src))
                                     ^
SyntaxError: invalid syntax

Compiling /usr/lib64/python2.5/site-packages/layman/overlays/darcs.py ...
  File "/usr/lib64/python2.5/site-packages/layman/overlays/darcs.py", line 63
    return self.run_command(*args, cwd=path([base, self.parent.name]))
                                     ^
SyntaxError: invalid syntax

Compiling /usr/lib64/python2.5/site-packages/layman/overlays/git.py ...
  File "/usr/lib64/python2.5/site-packages/layman/overlays/git.py", line 73
    return self.run_command(*args, cwd=path([base, self.parent.name]))
                                     ^
SyntaxError: invalid syntax

Compiling /usr/lib64/python2.5/site-packages/layman/overlays/mercurial.py ...
  File "/usr/lib64/python2.5/site-packages/layman/overlays/mercurial.py", line 63
    return self.run_command(*args, cwd=path([base, self.parent.name]))
                                     ^
SyntaxError: invalid syntax
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2011-04-16 06:33:27 UTC
Portage 2.2.0_alpha30 (default/linux/amd64/10.0/developer, gcc-4.6.0, glibc-2.13-r2, 2.6.38-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.38-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7_CPU_Q_820_@_1.73GHz-with-gentoo-2.0.2
Timestamp of tree: Thu, 14 Apr 2011 08:00:01 +0000
ccache version 3.1.4 [disabled]
app-shells/bash:     4.2_p8
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.5.4-r4, 2.6.6-r2, 2.7.1-r1, 3.1.3-r1
dev-util/ccache:     3.1.4
dev-util/cmake:      2.8.4
sys-apps/baselayout: 2.0.2
sys-apps/openrc:     0.8.1
sys-apps/sandbox:    2.5
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.4.5, 4.5.2, 4.6.0_pre9999::dirtyepic, 4.6.0::halo-overlay
sys-devel/gcc-config: 1.5-r1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
sys-kernel/linux-headers: 2.6.38
virtual/os-headers:  0
Comment 2 Brian Dolbec (RETIRED) gentoo-dev 2011-04-23 22:09:14 UTC
They must have relaxed the syntax a bit for 2.6 and later.

fixed in commit a7aac809d740a7393c9fd20f701802a7786bba42 in the 1.4.x branch

http://git.overlays.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=a7aac809d740a7393c9fd20f701802a7786bba42
Comment 3 Christian Ruppert (idl0r) gentoo-dev 2011-04-25 19:44:39 UTC
Fixed in CVS (1.4.2), please re- sync/merge in a bit. Thanks!
Comment 4 Brian Dolbec (RETIRED) gentoo-dev 2011-04-27 11:08:39 UTC
Turned out the previous fix for the tests in python 2.5 broke sync for all python versions.

This next commit fixes it completely for both the tests and sync.

http://git.overlays.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=35815463599b2aa843edcc976920d996f6e4b0e2
Comment 5 Christian Ruppert (idl0r) gentoo-dev 2011-04-27 13:24:33 UTC
It has been applied to 1.4.2-r1. Thanks