Bug#941718: poppler: autopkgtest fails with libglib2.0-0 (>= 2.62) due to deprecation of GTime

Simon McVittie smcv at debian.org
Fri Oct 4 09:05:32 BST 2019


Source: poppler
Version: 0.71.0-5
Severity: serious
Tags: upstream bullseye sid
Justification: https://release.debian.org/bullseye/rc_policy.txt §6a
Forwarded: https://gitlab.freedesktop.org/poppler/poppler/issues/765
X-Debbugs-Cc: debian-ci at lists.debian.org
User: debian-ci at lists.debian.org
Usertags: regression
Control: block 933548 by -1

With the recent upload of GLib 2.62 to unstable, poppler's autopkgtest has
started failing:

> autopkgtest [22:15:24]: test glib: [-----------------------
> In file included from /usr/include/poppler/glib/poppler.h:240,
>                  from /tmp/autopkgtest-lxc.cnaflu_o/downtmp/build.eqa/src/debian/tests/test-glib.c:1:
> /usr/include/poppler/glib/poppler-attachment.h:64:3: error: ‘GTime’ is deprecated: Use 'GDateTime' instead [-Werror=deprecated-declarations]
>    64 |   GTime mtime;
>       |   ^~~~~
> /usr/include/poppler/glib/poppler-attachment.h:65:3: error: ‘GTime’ is deprecated: Use 'GDateTime' instead [-Werror=deprecated-declarations]
>    65 |   GTime ctime;
>       |   ^~~~~
> cc1: all warnings being treated as errors
> autopkgtest [22:15:24]: test glib: -----------------------]

GTime is a gint32 (not a time_t, although it happens to be equivalent on
older 32-bit architectures) counting seconds since the beginning of 1970.
As such it is not Y2038-safe. It has been informally deprecated for
a while, but GLib only recently added support for marking types as
deprecated in a machine-readable way.

The deprecation warnings can be disabled for code that depends on
poppler by wrapping a block with the G_GNUC_BEGIN_IGNORE_DEPRECATIONS
and G_GNUC_END_IGNORE_DEPRECATIONS macros, similar to this gconf patch:
https://gitlab.gnome.org/Archive/gconf/merge_requests/1

I'll prepare a patch and send it upstream.

    smcv



More information about the Pkg-freedesktop-maintainers mailing list