Bug 1654527 - After update to 1.58.1, generation of GIR throws syntax errors
Summary: After update to 1.58.1, generation of GIR throws syntax errors
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gobject-introspection
Version: 29
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kalev Lember
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-29 02:01 UTC by Stephen Gallagher
Modified: 2018-12-12 03:07 UTC (History)
5 users (show)

Fixed In Version: gobject-introspection-1.58.2-1.fc29
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-12-12 03:07:56 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Stephen Gallagher 2018-11-29 02:01:14 UTC
Description of problem:
Generating a GIR (in my case with meson) started throwing the following error:

[49/50] Generating Modulemd-2.0.gir with a custom command.
/usr/include/glib-2.0/gobject/gobject.h:725: syntax error, unexpected ')' in '    ((__typeof__(new_object)) (g_object_ref) (new_object));' at ')'

A downgrade back to 1.58.0-2.fc29 works fine.


Version-Release number of selected component (if applicable):
gobject-introspection-1.58.1-1.fc29

How reproducible:
Every time

Steps to Reproduce:
1. `git clone https://github.com/fedora-modularity/libmodulemd.git`
3. `meson -D builddir`
4. `ninja -c builddir`

Actual results:
Files compile fine and the meson build completes successfully, but the error

[49/50] Generating Modulemd-2.0.gir with a custom command.
/usr/include/glib-2.0/gobject/gobject.h:725: syntax error, unexpected ')' in '    ((__typeof__(new_object)) (g_object_ref) (new_object));' at ')'

appears in the output. I can't determine yet if this has any negative impact on the resulting files (my tests still pass), but it's certainly alarming.

Expected results:
No warnings/errors reported.

Additional info:

Comment 1 Kalev Lember 2018-12-03 20:25:01 UTC
The only relevant commit I could find between 1.58.0 and 1.58.1 is https://gitlab.gnome.org/GNOME/gobject-introspection/commit/5a23af1517c377cf0282f65492315f932c3c31b8

Comment 2 Kalev Lember 2018-12-10 08:45:57 UTC
I talked to upstream and it should be now fixed in just-released 1.58.2

Comment 3 Fedora Update System 2018-12-12 03:07:56 UTC
gobject-introspection-1.58.2-1.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.