GNOME Bugzilla – Bug 754828
g-ir-scanner no longer supports "-D FOO=bar" on the command line
Last modified: 2015-09-10 12:44:36 UTC
Using a library definition here: https://github.com/sardemff7/eventd/blob/master/server/libeventd-event/libeventd-event.mk#L51 g-ir-scanner, as of 1.45.4 no longer accepts the -D flag as given there, instead erroring out that "G_LOG_DOMAIN=\"libeventd-event\"" is not a file: GISCAN EventdEvent-0.gir gcc: error: G_LOG_DOMAIN="libeventd-event": No such file or directory Seems to have regressed in 1.45.4 based on the results here: https://copr.fedoraproject.org/coprs/mathstuf/eventd/build/111004/
Probably regressed by ad8fc51441b331c7db573201dd283a423081c042: commit ad8fc51441b331c7db573201dd283a423081c042 Author: Chun-wei Fan <fanchunwei@src.gnome.org> Date: Tue Mar 10 13:15:52 2015 +0800 sourcescanner.py: Use Distutils for Preprocessing Add a preprocess() function in ccompiler.py so that it will call the preprocess() method of the distutils.ccompiler class, and make use of it from sourcescanner.py. As we would need to set up the options (include paths, macros, undefs) to pass into the preprocessor (and later for the compiler), we have a new private function that translates what we have from the rest of giscanner so that it could be passed to distutils.ccompiler in a way that it understands. Also, as the MSVCCompiler classes in distutils do not provide a preprocess() implementation, we provide our own so that we can use it when preprocessing, via distutils, through subclassing MSVCCompiler. https://bugzilla.gnome.org/show_bug.cgi?id=728313
Should have been fixed in bug 753428, attachment 310841 [details] [review], which has been pushed to master and will be in the next release. Please, reopen if you can reproduce with master. *** This bug has been marked as a duplicate of bug 753428 ***