GNOME Bugzilla – Bug 785193
glib-genmarshal SyntaxError: invalid syntax
Last modified: 2017-07-21 23:02:02 UTC
Building glib 2.53.4 fails on Mac OS X 10.6 and 10.5 and presumably and earlier. The error is "SyntaxError: invalid syntax" on line 97 of gobject/glib-genmarshal. I can't paste the exact error because it causes your issue tracker to emit a 500 error but the full log is at https://build.macports.org/builders/ports-10.6_x86_64_legacy-builder/builds/36744/steps/install-port/logs/stdio glib 2.53.3 built ok on the same system but I see that glib-genmarshal was rewritten in python for 2.53.4. glib 2.53.4 builds ok on OS X 10.7 and later. /usr/bin/python on OS X 10.7.5 is 2.7.1. /usr/bin/python on Mac OS X 10.6.8 is 2.6.1.
I've bumped the minimum Python version for building GLib master from 2.5 to 2.7. I don't have a Python 2.5 or 2.6 installation that I can use, and Python 2.7 is already 7 years old, so I'm entirely comfortable with requiring it. Unless, of course: - you have a patch that works with both Python 2.x and 3.x - you're going to ensure that no future breakage happens, though some form of CI builder
Understood. For MacPorts, I'll make sure python 2.7 is available to glib on earlier systems.
(In reply to Ryan Schmidt from comment #2) > Understood. For MacPorts, I'll make sure python 2.7 is available to glib on > earlier systems. Thanks, this is much appreciated. And sorry for the lack of a heads up: I honestly didn't know we still allowed Python 2.5.