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] Development | Assignee: | 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 |
Created attachment 340486 [details]
emerge --info
Committed a fix. Now Python version should be set properly independently of whether Python bindings are enabled or not. |
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'.