pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Patch to Allow Evolution 2.22.1 to Build on Mac OS X 10.5.x



All,

As previously mentioned, I was not able to build evolution 2.22.1
(from pkgsrc/mail/evolution) on OS X 10.5.2.  Talking to folks on the
gnome lists, I got the following:

> Both em-folder-browser.c and mail-vfolder.c define the non-static
> global variable vfolder_store. This is perfectly legal in C as long as
> both don't define an initial value for it (neither does). Although I
> guess one could argue, that as what is being linked from the object
> files here is a shared library and not a "normal" executable, we are
> in implementation-defined territory. Anyway, clearly it would be
> better and cleaner if one of the definitions was changed into an
> extern declaration instead.

So, I performed the following simple change, which allows Evolution to
build and run.

[/usr/pkgsrc/mail/evolution/work/evolution-2.22.1]
ajacocks@99-205-119-85$ diff -Naur mail/em-folder-browser.c.distrib
mail/em-folder-browser.c
--- mail/em-folder-browser.c.distrib    2008-04-04 05:11:42.000000000 -0400
+++ mail/em-folder-browser.c    2008-04-24 11:48:30.000000000 -0400
@@ -101,7 +101,7 @@
 #include "evolution-shell-component-utils.h" /* Pixmap stuff, sigh */

 extern CamelSession *session;
-CamelStore *vfolder_store; /* the 1 static vfolder store */
+extern CamelStore *vfolder_store; /* the 1 static vfolder store */

 #define d(x)

Hope this can get integrated, or a better solution proposed.

Thanks!


Home | Main Index | Thread Index | Old Index