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 382288 - Add configure option to disable deprecated library functions
Add configure option to disable deprecated library functions
Status: RESOLVED OBSOLETE
Product: evolution
Classification: Applications
Component: general
2.10.x (obsolete)
Other Linux
: Normal enhancement
: ---
Assigned To: Evolution Shell Maintainers Team
Evolution QA team
evolution[cleanup]
Depends on:
Blocks:
 
 
Reported: 2006-12-04 15:55 UTC by Matthew Barnes
Modified: 2009-06-24 23:33 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Matthew Barnes 2006-12-04 15:55:16 UTC
This was suggested Paolo Borelli in bug #357970 as an enhancement.  I'm filing this bug so his suggestion can be addressed separately.  The relevant comments from bug #357970 follow.


Comment #3 from paolo borelli    (developer, points: 21)
2006-09-28 13:07 UTC [reply]

I am always curious of cleanups throughout the gnome stack, so I noticed this
bug being filed. Great stuff. What about adding this to configure.in ?


AC_ARG_ENABLE(deprecations,
              [AC_HELP_STRING([--enable-deprecations],
                              [warn about deprecated usages [default=no]])],,
              [enable_deprecations=no])

if test "x$enable_deprecations" = "xyes"; then
   DISABLE_DEPRECATED_CFLAGS="\
-DG_DISABLE_DEPRECATED \
-DGDK_DISABLE_DEPRECATED \
-DGTK_DISABLE_DEPRECATED \
-DGDK_PIXBUF_DISABLE_DEPRECATED \
-DGNOME_DISABLE_DEPRECATED"
   AC_SUBST(DISABLE_DEPRECATED_CFLAGS)
fi


Comment #4 from Harish Krishnaswamy (Evolution developer, points: 15)
2006-09-28 17:45 UTC [reply]

Mathew : thanks for the updated patch. 
Paolo : Thanks for the configure.in snippet. I agree this is a good (must)
thing to have.
I do not have access to my workarea atm...but will review/test this tomorrow
and ensure it hits the 2.8.1 release.


Comment #5 from Matthew Barnes (reporter, points: 13)
2006-09-29 01:43 UTC [reply]

(In reply to comment #3)

Great idea, although we're not quite ready for GTK_DISABLE_DEPRECATED or
GNOME_DISABLE_DEPRECATED.  I'm working on that.
Comment 1 Matthew Barnes 2006-12-04 19:26:31 UTC
E-D-S should also provide a way to disable its own deprecated symbols, preferably by means similar to that of GTK+.

i.e.

   #ifndef EDS_DISABLE_DEPRECATED

   /* ... deprecated definitions ... */

   #endif

It should be tied into the Makefiles for the API documentation as well, so that deprecation warnings automatically appear.

Possible candidates for deprecation include EMutex (bug #356177) and EThread (bug #362638).
Comment 2 Matthew Barnes 2008-03-11 00:33:00 UTC
Bumping version to a stable release.
Comment 3 Matthew Barnes 2009-06-24 23:33:22 UTC
Closing this as OBSOLETE since we compile with these flags by default now.