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 558840 - Get rid of libgnome
Get rid of libgnome
Status: RESOLVED NOTABUG
Product: Gnumeric
Classification: Applications
Component: Compilation
git master
Other All
: Normal normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2008-11-01 20:23 UTC by Morten Welinder
Modified: 2009-07-14 23:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Morten Welinder 2008-11-01 20:23:06 UTC
welinder@toshiba:~/gnome/gnumeric> find . -name '*.[chy]' -print | xargs -n100 grep 'libgnome[^d]'
./src/libgnumeric.c:#include <libgnomevfs/gnome-vfs-init.h>
./src/session.c:#include <libgnomeui/gnome-client.h>
./src/main-application.c:#include <libgnome/gnome-program.h>
./src/main-application.c:#include <libgnome/gnome-init.h>
./src/main-application.c:#include <libgnomeui/gnome-ui-init.h>
./src/main-application.c:#include <libgnomeui/gnome-authentication-manager.h>
./src/main-application.c:        * libgnome[ui]'s args.
./src/main-application.c:        * Upgrade to libgnome 2.13 or better to solve this.
./plugins/excel/ms-excel-read.c:/* Map a BIFF4 SETUP paper size number to the equivalent libgnomeprint paper


./src/libgnumeric.c: gnome vfs?  I think we can drop this right away.

./src/session.c: Session management.  

/plugins/excel/ms-excel-read.c: comment out of date, I think.

./src/main-application.c: gnome_program_init, authentification manager,
bonobo.

We don't need gnome_program_init anymore, I think.
We don't need the authentification manager in this gio world, I think.
Bonobo we might need for the component.
How are we supposed to do session management?
Comment 1 Morten Welinder 2008-11-01 23:24:19 UTC
I fixed the gnome_vfs situation.  If someone links it in, it will be
initialized, but we will not pull it in ourselves.  (libgnomeui does.)
Comment 2 Morten Welinder 2008-11-01 23:26:55 UTC
I also fixed the excel comment.
Comment 3 Morten Welinder 2008-11-01 23:45:03 UTC
Session management:
http://svn.gnome.org/viewvc/libegg/trunk/libegg/smclient/README?view=markup
http://live.gnome.org/SessionManagement/EggSMClient
http://bugzilla.gnome.org/show_bug.cgi?id=79285


Authentication manager: confirmed relevant for gnome_vfs only.
I will change main-application.c to call it if someone linked it in.
Comment 4 Morten Welinder 2008-11-02 00:18:47 UTC
Hmm...  Bonobo will have to go too, at least from the main application.
libbonoboui links libgnome.  Also libbonobo is deprecated, i.e., no-one
wants to maintain.

Current users:

src/workbook.c: as a comment says, that should not be there.
src/main-component.c: probably ok to use here
src/main-application.c: I am not sure why we need it here.
plugins/corba/*.c

What good is the current corba plugin?
Comment 5 Jean Bréfort 2008-11-02 06:38:27 UTC
The bonobo component has been commented out 4+ years ago by Jody in src/Makefile.am, so src/main-component.c is not used anymore.
Comment 6 Morten Welinder 2008-11-02 15:32:34 UTC
main-component.c is gone.  Archaeologists can revive from svn.
test-pango.c lost it bonobo references.
Comment 7 Morten Welinder 2008-11-05 21:26:40 UTC
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.

We lost session management -- too bad.  Let's hope gtk+ integrates the
eggs stuff one day.
Comment 8 André Klapper 2009-02-15 23:31:37 UTC
Errr... grep'ing for libgnome still comes up with the following bits:


./configure.in:	libgnome-2.0		>= 2.0.0
./debian/control: libgnome2-dev (>= 2.4.0-2), libgnomeui-dev (>= 2.4.0-2),
./gnumeric.spec.in:BuildRequires:	libgnome-devel		>= 2.0.0
./src/main-application.c:#include <libgnome/gnome-program.h>
./src/main-application.c:#include <libgnome/gnome-init.h>


./configure.in:	libgnomeui-2.0		>= 2.0.0
./debian/control: libgnome2-dev (>= 2.4.0-2), libgnomeui-dev (>= 2.4.0-2),
./gnumeric.spec.in:BuildRequires:	libgnomeui-devel	>= 2.0.0
./src/main-application.c:#include <libgnomeui/gnome-ui-init.h>
./src/session.c:#include <libgnomeui/gnome-client.h>


...so I don't consider this bug bug to be complete FIXED.
Comment 9 Andreas J. Guelzow 2009-02-15 23:47:55 UTC
Did you check where these items occur in those files? 

They are encapsulated for the situation that you choose to compile with gnome. 
Comment 10 André Klapper 2009-02-16 00:15:56 UTC
> Did you check where these items occur in those files? 

No, when grepping through 200 modules and getting a rough overview how much work is needed for gnome 3 platform cleanup I don't have the time to read every file.

(In reply to comment #9)
> They are encapsulated for the situation that you choose to compile with gnome. 

Still libgnome and libgnomeui are deprecated and will be removed for gnome 3. Hence it's time to get rid of them. Completely, even if encapsulated.
So this is not fixed.

http://live.gnome.org/TwoPointTwentyfive/Platform#upcoming_deprecations
http://live.gnome.org/LibgnomeMustDie
Comment 11 Andreas J. Guelzow 2009-07-14 23:40:16 UTC
libgnome and libgnomeui may be deprecated and may disappear for gnome 3, but gnumeric is supposed to compile even for all those that do not proceed to gnome3. While you can remove it from future versions of gnome, how do you want to remove it from those versions that users are in fact using?

There is no way we will be removing those parts until we push our general requirements far enough that users can't use those older versions anymore.