Summary: | Scons: Support the new Scons 3.0.0 | ||
---|---|---|---|
Product: | Mesa | Reporter: | pal1000 <liviuprodea> |
Component: | Other | Assignee: | mesa-dev |
Status: | RESOLVED FIXED | QA Contact: | mesa-dev |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
See Also: | https://bugs.freedesktop.org/show_bug.cgi?id=100202 | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | Scons 3.0.0 compatibility patch |
Description
pal1000
2017-09-19 08:41:34 UTC
This feels like a python2 vs python3 compatibility issue (`print 'foo'` instead of `printf('foo')`). Can you set your environment to use python2? I expect that will solve the issue. I always used Python 2.7. I always knew Mesa3D Scons build isn't Python 3 compatible. So there is a push towards Python 3 by Scons 3.0 apparently. Created attachment 134347 [details] [review] Scons 3.0.0 compatibility patch Fixing this turned out to be very straight forward. Scons 3.0.0 wants print called like functions, so replacing print '...' and print "..." everywhere with print ('...') and print ("...") respectively did the trick. I checked with Scons 2.5.1 and it recognizes this new format, so there is no breakage with previous Scons release. I used the Everything advanced search utility to make sure I don't miss any print '...' and print "..." unconverted. I know, this patch is large, exceeding the recommended size. It could be split in 6 parts, one for each touched file. (In reply to Alex Granni from comment #3) > Created attachment 134347 [details] [review] [review] > Scons 3.0.0 compatibility patch I sent the same patch (and more) on the list yesterday afternoon, a few hours before your message: https://lists.freedesktop.org/archives/mesa-dev/2017-September/170124.html I cc'ed you on the email you registered on bugzilla, did you not get it? Eric Engestrom py2/3 compatibility patch series landed in Mesa master yesterday. The first patch in the series address this issue so I am closing this. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.