GNOME Bugzilla – Bug 523737
Unconditional passing of G_DISABLE_DEPRECATED and co even in stable versions
Last modified: 2008-05-29 21:34:54 UTC
gnome-terminal currently passes -DGDK_DISABLE_DEPRECATED and -DG_DISABLE_DEPRECATED in src/Makefile.am currently. This will probably break for the future, but stable versions ought to not break. I suggest only defining *_DISABLE_DEPRECATED macros in development versions (SVN and odd minor version number), not stable releases. gnome-terminal-2.18 already broke compilation with the upgrade to glib-2.16 for instance - it has to keep compiling, I had to inplace sed the -DG_DISABLE_DEPRECATED out from Makefile.am and Makefile.in for that. I'd appreciated this fixed for future versions of 2.22 and in trunk, so I can remove the ugly sed.
There's also the possibility of using GNOME_MAINTAINER_MODE_DEFINES from gnome-common.m4 for this, that adds all DISABLE_DEPRECATES when enabled in configure. I just can't remember if using it was encouraged or discouraged...
GNOME_MAINTAINER_MODE_DEFINES is the best way.
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.