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 142338 - remove duplicated code between glib/libgnome and vicious-extensions
remove duplicated code between glib/libgnome and vicious-extensions
Status: RESOLVED WONTFIX
Product: gdm
Classification: Core
Component: general
2.6.0.x
Other All
: Normal minor
: ---
Assigned To: GDM maintainers
GDM maintainers
Depends on:
Blocks:
 
 
Reported: 2004-05-11 12:57 UTC by Dan Winship
Modified: 2005-10-28 20:31 UTC
See Also:
GNOME target: ---
GNOME version: 2.5/2.6


Attachments
patch to use g_setenv/g_unsetenv/gnome_clearenv (29.30 KB, patch)
2004-05-11 12:58 UTC, Dan Winship
none Details | Review

Description Dan Winship 2004-05-11 12:57:33 UTC
ve_setenv and ve_unsetenv are in glib now (and libgnome), and ve_clearenv
is in libgnome, so gdm should use those rather than duplicating the code.
(In particular because gnome_clearenv/ve_clearenv doesn't compile correctly
on OS X and I only want to have to fix it in once place.)
Comment 1 Dan Winship 2004-05-11 12:58:00 UTC
Created attachment 27599 [details] [review]
patch to use g_setenv/g_unsetenv/gnome_clearenv
Comment 2 George Lebl 2004-05-28 19:17:12 UTC
ve is used even without libgnome, thus must use ve_clearenv.  gdm doesn't use
libgnome, and I won't link it in just for clearenv.  Thus this is a WONTFIX. 
Feel free to provide the patch that fixes ve_clearenv on OS X.

Also if you note in the code ve_setenv/ve_unsetenv are just defines for
g_setenv/g_unsetenv when new enough glib is found.  GDM is compiled with new
glib, but genius might not and ve is also used there.
Comment 3 Julio Merino 2005-10-13 11:31:37 UTC
I see that vicious-extensions relies on libgnome.  If not, why is this in configure?

PKG_CHECK_MODULES(VICIOUS, gtk+-2.0 >= $GTK_REQUIRED libglade-2.0 >= $LIBGLADE_R
EQUIRED libgnome-2.0 >= $LIBGNOME_REQUIRED)
Comment 4 Brian Cameron 2005-10-28 20:31:17 UTC
Yes, we need to get rid of libgnome in vicious-extensions.  The only place it is
used is the four places ve-gnome.c calls gnome_program_locate_file().  Is there
a better recommended interface to use here?  I assume so.