Source: libgdata
Version: 0.051-1
Tags: ftbfs trixie sid
Severity: serious
User: debian...@lists.debian.org
Usertags: needs-update
X-Debbugs-Cc: json-g...@packages.debian.org
Forwarded: https://gitlab.gnome.org/GNOME/libgdata/-/issues/50
Control: affects -1 src:json-glib

libgdata's autopkgtest regressed with json-glib 1.10.x:

>  60s libgdata:ERROR:../gdata/tests/general.c:2412:test_app_categories: 
> assertion failed (error == NULL): Error parsing JSON: <data>:1:1: Parse 
> error: unexpected character `{', expected string constant 
> (gdata-parser-error-quark, 1)

I think this would also cause a FTBFS from build-time test failures if it
was rebuilt with the new json-glib.

The root cause appears to be that test assuming that json-glib will accept
a JSON-like format with single-quoted strings (these are not part of the
JSON standard), which was true in 1.8.x but not any more. Please see the
upstream bug for more details.

json-glib 1.10.x has a new opt-in strict mode which disallows several
other non-standard extensions (such as comments), but it seems that
single-quoted strings are not accepted even when not in strict mode.

    smcv

Reply via email to