Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 518838 - sys-apps/findutils - test suite fails with system python3*: ./checklists.py", line 80: SyntaxError: invalid syntax
Summary: sys-apps/findutils - test suite fails with system python3*: ./checklists.py",...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: https://savannah.gnu.org/bugs/index.p...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-02 17:02 UTC by Chris Kerr
Modified: 2015-12-18 17:19 UTC (History)
0 users

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 Chris Kerr 2014-08-02 17:02:25 UTC
I have Python 3 as my default /usr/bin/python and got this error when building findutils-4.5.14 -- I think it will also occur with other versions. The error is because of the changing of 'print' from a statement to a function from Python 2 to Python 3.



From build.log:

make[3]: Entering directory '/var/tmp/portage/sys-apps/findutils-4.5.14/work/findutils-4.5.14/find/testsuite'
Making a new site.exp file...
Generating configured-testfiles.txt
/usr/bin/python ./checklists.py configured-testfiles.txt . config find.gnu find.posix
  File "./checklists.py", line 80
    print '%d test files configured for find, %s files on-disk' % (len(configured), len(actual))
                                                              ^
SyntaxError: invalid syntax
Makefile:2231: recipe for target 'checklists' failed
make[3]: *** [checklists] Error 1
make[3]: *** Waiting for unfinished jobs....
Comment 1 Chris Kerr 2014-08-02 17:55:58 UTC
Reported upstream here:
https://savannah.gnu.org/bugs/index.php?42903