After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 785193 - glib-genmarshal SyntaxError: invalid syntax
glib-genmarshal SyntaxError: invalid syntax
Status: RESOLVED WONTFIX
Product: glib
Classification: Platform
Component: build
2.53.x
Other Mac OS
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2017-07-20 21:18 UTC by Ryan Schmidt
Modified: 2017-07-21 23:02 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ryan Schmidt 2017-07-20 21:18:38 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.
Comment 1 Emmanuele Bassi (:ebassi) 2017-07-20 23:49:34 UTC
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
Comment 2 Ryan Schmidt 2017-07-21 20:03:04 UTC
Understood. For MacPorts, I'll make sure python 2.7 is available to glib on earlier systems.
Comment 3 Emmanuele Bassi (:ebassi) 2017-07-21 23:02:02 UTC
(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.