After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 691139 - FOO_DISABLE_DEPRECATED is deprecated
FOO_DISABLE_DEPRECATED is deprecated
Status: RESOLVED OBSOLETE
Product: gnome-common
Classification: Core
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: Gnome Common Maintainer(s)
Gnome Common Maintainer(s)
: 614360 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-01-04 16:31 UTC by Dan Winship
Modified: 2015-01-26 16:26 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dan Winship 2013-01-04 16:31:36 UTC
GNOME_MAINTAINER_MODE_DEFINES sets a whole bunch of FOO_DISABLE_DEPRECATED defines, but this is now considered old-fashioned and lame, because it means every module in jhbuild breaks every time you deprecate something.

The cool kids are now using versioned deprecations. See, eg, http://developer.gnome.org/glib/stable/glib-Version-Information.html#GLIB-VERSION-MIN-REQUIRED:CAPS. gtk also has this (GDK_VERSION_MIN_REQUIRED), as does libsoup (SOUP_VERSION_MIN_REQUIRED) in git master. I'm not sure if any other libraries have ported over to it yet.

The trick here though is that you need to know what version to define as the required one, so you can't just have a single "dumb" configure macro like GNOME_MAINTAINER_MODE_DEFINES. There are various possibilities... you could key off variables with standardized names like GLIB_MINIMUM_VERSION, or else provide a wrapper around PKG_CHECK_MODULES that inserts FOO_VERSION_MIN_REQUIRED macros in as well...
Comment 1 David King 2014-05-02 17:09:36 UTC
*** Bug 614360 has been marked as a duplicate of this bug. ***
Comment 2 David King 2015-01-26 16:26:22 UTC
GNOME_MAINTAINER_MODE_DEFINES is now deprecated, and will be removed soon.

https://wiki.gnome.org/Projects/GnomeCommon/Migration