bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnubg] Fwd: Bug#665539: gnubg: Including individual glib headers no


From: Russ Allbery
Subject: [Bug-gnubg] Fwd: Bug#665539: gnubg: Including individual glib headers no longer supported
Date: Sat, 24 Mar 2012 12:09:47 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

Hello folks,

I got the following bug report from the Debian GTK+ maintainers.  I can
patch this only in the Debian package, of course, but it seems more like
something you'll want to fix in the regular GnuBG CVS repository.

--- Begin Message --- Subject: Bug#665539: gnubg: Including individual glib headers no longer supported Date: Sat, 24 Mar 2012 20:02:53 +0100
Source: gnubg
Version: 0.90+20120127-3
Severity: important
User: address@hidden
Usertags: glib-single-include

Hi,


including invidiual glib headers has been deprecated for several years.

Starting with glib 2.32 it is now mandatory to include glib.h instead
of individual headers [1], or the compiler will generate an error.

With the notable exception of:
 glib/gi18n.h
 glib/gi18n-lib.h
 glib/gprintf.h
 glib/gstdio.h
Those header files are still meant to be included separately.


Development releases of 2.32 (2.31.x) are available in experimental.
During a test-rebuild gnubg failed to build with the new glib [2].

Please update gnubg at your earliest convenience, so once we move
the glib version from experimental to unstable, your package will remain
buildable.

Usually, simply replacing #include <glib/foo.h> with #include <glib.h>
is all that is needed (while keeping the above list of exceptions in
mind)
You can use the glib version from experimental to test if your package
builds correctly.


A simple shell script [3] has been written, that can help you
generate a patch which should fix the includes in most cases.
It's most likely not bug free and very limited, so please check the
resulting patch carefully.


Thanks!

Michael,
on behalf of the Debian GNOME team.

[1] 
http://git.gnome.org/browse/glib/commit/?id=7455dd370eb37ce3b0b409ff6120501f37b50569
[2] 
http://people.debian.org/~biebl/glib-single-include/gnubg_0.90+20120127-3.log
[3] http://people.debian.org/~biebl/fix-glib-includes.sh




--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]