Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 945771 - dev-libs/json-glib-1.8.0: fails to build with USE="introspection"
Summary: dev-libs/json-glib-1.8.0: fails to build with USE="introspection"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords: PATCH
: 945761 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-12-02 22:33 UTC by Holger Hoffstätte
Modified: 2024-12-05 18:41 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
json-glib-1.8.0 build log (build.log,42.46 KB, text/x-log)
2024-12-02 22:34 UTC, Holger Hoffstätte
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Holger Hoffstätte 2024-12-02 22:33:22 UTC
Due to recent glib/glib-introspection changes I re-enabled USE-introspection and the subsequent rebuild of json-glib-1.8.0 failed:

../json-glib-1.8.0/json-glib/json-object.c:944: Warning: Json: invalid "closure" annotation: only valid on callback parameters
../json-glib-1.8.0/json-glib/json-array.c:718: Warning: Json: invalid "closure" annotation: only valid on callback parameters
<unknown>:: Fatal: Json: warnings configured as fatal
<unknown>:: Fatal: Json: warnings configured as fatal


Reproducible: Always

Steps to Reproduce:
1. emerge json-glib-1.8.0 with USE="introspection"
2. build failure




I locally bumped the json-glib ebuild to 1.10.0 (the latest stable release at https://gitlab.gnome.org/GNOME/json-glib) and while the changelog does not explicitly mention introspection, it does build correctly again.
Comment 1 Holger Hoffstätte 2024-12-02 22:34:37 UTC
Created attachment 913118 [details]
json-glib-1.8.0 build log
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-02 22:36:18 UTC
(In reply to Sam James from comment #2)
> https://gitlab.gnome.org/GNOME/json-glib/-/commit/
> a5eb23ca06a6ec345fba376296bd4236b7fb7635 probably

(there's other commits fixing said warnings)
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-05 18:39:02 UTC
*** Bug 945761 has been marked as a duplicate of this bug. ***
Comment 5 Larry the Git Cow gentoo-dev 2024-12-05 18:41:09 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a1baaeb3522dffb5bd7d6a0d9f477ec24dbf782

commit 9a1baaeb3522dffb5bd7d6a0d9f477ec24dbf782
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-12-05 18:40:48 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-12-05 18:40:48 +0000

    dev-libs/json-glib: disable Werror-like-behaviour for introspection
    
    As I noted in the bug, there's fixes for the warnings themselves too, but I'd rather
    see a bump to handle those.
    
    Closes: https://bugs.gentoo.org/945771
    Signed-off-by: Sam James <sam@gentoo.org>

 .../json-glib/files/json-glib-1.8.0-werror.patch   | 27 ++++++++++++++++++++++
 dev-libs/json-glib/json-glib-1.8.0.ebuild          |  4 ++++
 2 files changed, 31 insertions(+)