Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 459708 - dev-vcs/subversion-1.7.8 fails to execute tests if system python is python-3
Summary: dev-vcs/subversion-1.7.8 fails to execute tests if system python is python-3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Thomas Sachau
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-28 12:47 UTC by Markus Walter
Modified: 2013-03-03 12:00 UTC (History)
0 users

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


Attachments
build log (dev-vcs:subversion-1.7.8:20130228-115952.log,306.70 KB, text/plain)
2013-02-28 12:47 UTC, Markus Walter
Details
emerge --info (info.txt,6.37 KB, text/plain)
2013-02-28 12:47 UTC, Markus Walter
Details

Note You need to log in before you can comment on or make changes to this bug.
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.