GNOME Bugzilla – Bug 609810
Replace GNOME_MAINTAINER_MODE_DEFINES with GNOME_DISABLE_DEPRECATED
Last modified: 2010-05-30 21:00:10 UTC
Rename GNOME_MAINTAINER_MODE_DEFINES to GNOME_DISABLE_DEPRECATED It (GNOME_MAINTAINER_MODE_DEFINES) does is pretty disconnected from what AM_MAINTAINER_MODE does. They share a nebulous concept of a "maintainer mode", but they're doing very different things. Also, the use of AM_MAINTAINER_MODE is not encouraged, see [1] [1] http://www.gnu.org/software/hello/manual/automake/maintainer_002dmode.html
Created attachment 153688 [details] [review] Replace GNOME_MAINTAINER_MODE_DEFINES with GNOME_DISABLE_DEPRECATED
Comment on attachment 153688 [details] [review] Replace GNOME_MAINTAINER_MODE_DEFINES with GNOME_DISABLE_DEPRECATED We need to keep the old macro for compatibility (otherwise all modules using it will break). Just forwarding to the new macro is fine of course, maybe with a AC_MSG_WARN([... deprecated...]).
Created attachment 153747 [details] [review] Add new macro GNOME_DISABLE_DEPRECATED What about this? I've created an alias, so everybody will use the correct macro
The alias looks fine to me. The behaviour change in that this now always defines these flags instead of just in maintainer mode isn't ok however. Should we add a AC_ARG_ENABLE flag for this?
Created attachment 154560 [details] [review] Add new macro GNOME_DISABLE_DEPRECATED.v2 Use AC_ARG_ENABLE, so you can use --enable-deprecated to not apply the flags
Created attachment 154565 [details] [review] Add new macro GNOME_DISABLE_DEPRECATED.v3 Sorry, the previous patch was wrong. Here a new one using AC_ARG_ENABLE correctly
Bug 614360 is about the same thing and has interesting comments, so I'm duping this way. *** This bug has been marked as a duplicate of bug 614360 ***