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 754828 - g-ir-scanner no longer supports "-D FOO=bar" on the command line
g-ir-scanner no longer supports "-D FOO=bar" on the command line
Status: RESOLVED DUPLICATE of bug 753428
Product: gobject-introspection
Classification: Platform
Component: g-ir-scanner
1.45.x
Other Linux
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2015-09-10 12:25 UTC by Ben Boeckel
Modified: 2015-09-10 12:44 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ben Boeckel 2015-09-10 12:25:58 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/
Comment 1 Ben Boeckel 2015-09-10 12:29:41 UTC
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
Comment 2 Emmanuele Bassi (:ebassi) 2015-09-10 12:44:36 UTC
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 ***