Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 459708

Summary: dev-vcs/subversion-1.7.8 fails to execute tests if system python is python-3
Product: Gentoo Linux Reporter: Markus Walter <gentoo>
Component: [OLD] DevelopmentAssignee: Thomas Sachau <tommy>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log
emerge --info

Description Markus Walter 2013-02-28 12:47:28 UTC
Created attachment 340482 [details]
build log

On my hardened ~amd64 machine I see the following error when executing the subversion test suite:

===
cd subversion/tests/libsvn_subr && /bin/sh /var/tmp/portage/dev-vcs/subversion-1.7.8/work/subversion-1.7.8/libtool --tag=CC --silent --mode=link x86_64-pc-linux-gnu-gcc -shar\
ed  -O2 -pipe -march=native -ggdb   -pthread   -Werror=implicit-function-declaration  -Wl,-O1 -Wl,--as-needed    -rpath /usr/lib64  -o utf-test  utf-test.lo ../../../subversi\
on/tests/libsvn_test-1.la ../../../subversion/libsvn_subr/libsvn_subr-1.la -laprutil-1 -lapr-1
  File "./build/run_tests.py", line 300
    print 'WARNING: --milestone-filter option does not currently work with C tests'
                                                                                  ^
SyntaxError: invalid syntax
make: *** [check] Error 1
===

On my system the default is python 3 which doesn't like the syntax in run_tests.py, but is invoked by '#!/usr/bin/env python'.
Comment 1 Markus Walter 2013-02-28 12:47:43 UTC
Created attachment 340486 [details]
emerge --info
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-03-03 12:00:15 UTC
Committed a fix. Now Python version should be set properly independently of whether Python bindings are enabled or not.