Bug#775972: src:libgnomeui: FTFBS on x32: -Werror printf warnings

Adam Borowski kilobyte at angband.pl
Thu Jan 22 05:32:18 UTC 2015

Package: src:libgnomeui
Version: 2.24.5-3
Severity: normal
Tags: patch
Justification: fails to build from source (but built successfully in the past)

I'm afraid that libgnomeui has regressed due to use of -Werror.  It fails
to build on any architecture where time_t has a different size than long. 
That's not the case on any of current Debian release arch, but, per Linus'
decree, applies to any new 32-bit arch (because Y2k38).

Sadly, this regression hasn't been noticed for a year, as -ports archs are
allowed to go out of sync from release ones, and any reverse-dependencies
built happily using 2.24.5-2 which used different build flags.

A readable patch attached.  This one will fail in 23 years, but this code
needs to be rewritten for any arch other than x32 anyway.  A proper patch
would use hairy casts as there's no standard printf format string for

-- System Information:
Debian Release: 8.0
  APT prefers unstable
  APT policy: (600, 'unstable'), (500, 'unreleased'), (50, 'experimental')
Architecture: x32 (x86_64)

Kernel: Linux 3.18.2-x32 (SMP w/6 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cast-time_t.patch
Type: text/x-diff
Size: 1020 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20150122/c7baaffc/attachment-0003.patch>

More information about the pkg-gnome-maintainers mailing list