Penguin
Diff: EvolutionOnMacOSX
EditPageHistoryDiffInfoLikePages

Differences between version 16 and predecessor to the previous major change of EvolutionOnMacOSX.

Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History

Newer page: version 16 Last edited on Monday, January 17, 2005 3:50:56 pm by JohnMcPherson Revert
Older page: version 12 Last edited on Saturday, January 15, 2005 11:56:14 pm by PerryLorier Revert
@@ -1,9 +1,20 @@
-This is what I've tried so far to get Evolution working on Mac OS X (I'm using OS X 10.3.7). At the moment I have successfully compiled libgnome . This may or may not work for you, and I accept no responsibility if you blow yourself up trying it :) 
+This is what I've tried so far to get Evolution working on Mac OS X (I'm using OS X 10.3.7). At the moment I have successfully compiled everything right up to before Evolution itself. It's compiling at the moment . This may or may not work for you, and I accept no responsibility if you blow yourself up trying it :)  
+  
+Yes, this may not be the best way of modifying things to get them to compile. I'm not too worried about it. Feel free to change things to make them work better.  
  
 ''Uhm, why don't you let Fink do most of this work for you?'' --AristotlePagaltzis 
  
 ''I think the versions in Fink are out of date'' -- PerryLorier 
+  
+''What Perry said'' -- MichaelJager  
+  
+Or, to spell it out, http://fink.sourceforge.net/pdb/package.php/evolution  
+The latest version (as of 2005-01-17, 15:04 NZDT) of Evolution in Fink is 0.7.1.  
+Compare to http://gnome.org/projects/evolution/download.shtml  
+The latest version (as of 2005-01-17, 15:04 NZDT) of Evolution is 2.0.3.  
+Look at the dependencies for Evolution, then look at the versions of these dependcies in Fink/DarwinPorts.  
+That's why you don't let Fink do it.  
  
 <pre> 
 $ export PATH=$PATH:/evolution/bin 
 $ export LDFLAGS=-L/evolution/lib CPPFLAGS=-I/evolution/include 
@@ -178,9 +189,9 @@
 $ cd libbonobo-2.8.0 
 </pre> 
 Edit configure, replace <code>-lpopt</code> with <code>-lpopt -lintl</code> 
 Edit configure, find <code>ac_config_files=</code>. Fix it so there are no line breaks in the middle of it. 
-<pre
+<verbatim
 $ cat << EOF > bonobo-activation.patch 
 > --- bonobo-activation/bonobo-activation-client.c.org Sun Apr 4 20:20:35 2004 
 > +++ bonobo-activation/bonobo-activation-client.c Sun Apr 4 20:22:18 2004 
 > @@ -197,7 +197,12 @@ 
@@ -196,11 +207,11 @@
 
 > void 
 > bonobo_activation_register_client (Bonobo_ActivationContext context, 
 > EOF 
-</pre
+</verbatim
 (patch taken from DarwinPorts) 
-<pre
+<verbatim
 $ patch -p0 < bonobo-activation.patch 
 $ ./configure --prefix=/evolution && make && make install 
 $ cd .. 
  
@@ -234,25 +245,25 @@
 > #endif 
 > } 
 
 > EOF 
-</pre
+</verbatim
 (patch modified from DarwinPorts) 
-<pre
+<verbatim
 $ patch -p0 < gnome-vfs-cdrom.patch 
 $ ./configure --prefix=/evolution && make && make install 
 $ cd .. 
  
  
 $ wget http://ftp.gnome.org/pub/GNOME/platform/2.8/2.8.2/sources/libgnome-2.8.0.tar.bz2 
 $ bzcat libgnome-2.8.0.tar.bz2 | tar -xv 
 $ cd libgnome-2.8.0 
-</pre
+</verbatim
 Edit configure, replace <code>-lpopt</code> with <code>-lpopt -lintl</code> 
 Edit configure, find <code>ac_config_files=</code>. Fix it so there are no line breaks in the middle of it. 
 Edit configure, find <code>archive_expsym_cmds=</code>. There are two new lines here that shouldn't be there. (2 occurences of <code>archive_expsym_cmds</code>, both have the same problem) 
 Edit configure, find <code>module_expsym_cmds=</code>. There are two new lines here that shouldn't be there. (2 occurences of <code>module_expsym_cmds</code>, both have the same problem) 
-<pre
+<verbatim
 $ cat << EOF > gnome-util.patch 
 > --- gnome-util.c.orig Mon Aug 16 05:27:59 2004 
 > +++ gnome-util.c Fri Jan 14 23:55:07 2005 
 > @@ -189,10 +189,11 @@ 
@@ -279,11 +290,11 @@
 > } 
 
 > /** 
 > EOF 
-</pre
+</verbatim
 (patch modified from DarwinPorts) 
-<pre
+<verbatim
 $ patch -p0 < gnome-util.patch 
 $ cat << EOF > gnome-score.patch 
 > --- gnome-score.c.orig Sun May 2 22:06:20 2004 
 > +++ gnome-score.c Sat Jan 15 00:12:16 2005 
@@ -300,11 +311,11 @@
 > -#endif 
 > realname = g_strdup (g_get_real_name ()); 
 > if (strlen (realname) == 0) 
 > realname = g_strdup (g_get_user_name ()); 
-</pre
+</verbatim
 (patch modified from DarwinPorts) 
-<pre
+<verbatim
 $ patch -p0 < gnome-score.patch 
 $ ./configure --prefix=/evolution && make && make install 
 $ cd .. 
  
@@ -360,7 +371,254 @@
  
 $ wget http://ftp.gnome.org/pub/GNOME/desktop/2.8/2.8.2/sources/evolution-data-server-1.0.3.tar.bz2 
 $ bzcat evolution-data-server-1.0.3.tar.bz2 | tar -xv 
 $ cd evolution-data-server-1.0.3 
+$ cat << EOF > os_open.patch  
+> --- libdb/os/os_open.c.orig Fri Nov 21 11:13:37 2003  
+> +++ libdb/os/os_open.c Sat Jan 15 01:39:12 2005  
+> @@ -106,11 +106,6 @@  
+> if ((ret = __os_openhandle(dbenv, name, oflags, mode, fhp)) != 0)  
+> return (ret);  
+>  
+> -#ifdef HAVE_DIRECTIO  
+> - if (LF_ISSET(DB_OSO_DIRECT))  
+> - (void)directio(fhp->fd, DIRECTIO_ON);  
+> -#endif  
+> -  
+> /*  
+> * Delete any temporary file.  
+> *  
+> EOF  
+</verbatim>  
+(patch modified from DarwinPorts)  
+<verbatim>  
+$ patch -p0 < os_open.patch  
+$ cat << EOF > os_spin.patch  
+> --- libdb/os/os_spin.c.orig Sat Jan 15 01:16:11 2005  
+> +++ libdb/os/os_spin.c Sat Jan 15 01:17:20 2005  
+> @@ -13,9 +13,6 @@  
+>  
+> #ifndef NO_SYSTEM_INCLUDES  
+> #include <sys/types.h>  
+> -#if defined(HAVE_PSTAT_GETDYNAMIC)  
+> -#include <sys/pstat.h>  
+> -#endif  
+>  
+> #include <limits.h>  
+> #include <unistd.h>  
+> @@ -23,23 +20,6 @@  
+>  
+> #include "db_int.h"  
+>  
+> -#if defined(HAVE_PSTAT_GETDYNAMIC)  
+> -static int ~__os_pstat_getdynamic __P((void));  
+> -  
+> -/*  
+> - * __os_pstat_getdynamic --  
+> - * HP/UX.  
+> - */  
+> -static int  
+> -__os_pstat_getdynamic()  
+> -{  
+> - struct pst_dynamic psd;  
+> -  
+> - return (pstat_getdynamic(&psd,  
+> - sizeof(psd), (size_t)1, 0) == -1 ? 1 : psd.psd_proc_cnt);  
+> -}  
+> -#endif  
+> -  
+> #if defined(HAVE_SYSCONF) && defined(_SC_NPROCESSORS_ONLN)  
+> static int __os_sysconf __P((void));  
+>  
+> @@ -79,9 +59,6 @@  
+> return (dbenv->tas_spins);  
+>  
+> dbenv->tas_spins = 1;  
+> -#if defined(HAVE_PSTAT_GETDYNAMIC)  
+> - dbenv->tas_spins = __os_pstat_getdynamic();  
+> -#endif  
+> #if defined(HAVE_SYSCONF) && defined(_SC_NPROCESSORS_ONLN)  
+> dbenv->tas_spins = __os_sysconf();  
+> #endif  
+> EOF  
+</verbatim>  
+(patch modified from DarwinPorts)  
+<verbatim>  
+$ cat << EOF > mutex.patch  
+> --- evolution-data-server-1.1.0.old/libdb/dbinc/mutex.h 2004-11-02 05:56:41.000000000 +1100  
+> +++ evolution-data-server-1.1.0.new/libdb/dbinc/mutex.h 2004-11-17 00:34:56.000000000 +1100  
+> @@ -550,7 +550,6 @@  
+> })  
+> #endif  
+> #define MUTEX_UNSET(tsl) ({ \  
+> - asm volatile("lwsync # MUTEX_UNSET ":::"memory"); \  
+> (*(tsl) = 0); \  
+> })  
+> #define MUTEX_INIT(tsl) MUTEX_UNSET(tsl)  
+> diff -Naur evolution-data-server-1.1.0.old/libdb/dist/configure evolution-data-server-1.1.0.new/libdb/dist/configure  
+> --- evolution-data-server-1.1.0.old/libdb/dist/configure 2004-10-14 00:43:48.000000000 +1000  
+> +++ evolution-data-server-1.1.0.new/libdb/dist/configure 2004-11-17 00:22:19.000000000 +1100  
+> @@ -18797,7 +18797,7 @@  
+>  
+>  
+>  
+> -for ac_func in _fstati64 clock_gettime directio gettimeofday getuid  
+> +for ac_func in _fstati64 clock_gettime gettimeofday getuid  
+> do  
+> as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`  
+> echo "$as_me:$LINENO: checking for $ac_func" >&5  
+> @@ -18886,7 +18886,7 @@  
+>  
+>  
+>  
+> -for ac_func in pstat_getdynamic sched_yield select strtoul sysconf yield  
+> +for ac_func in sched_yield select strtoul sysconf yield  
+> do  
+> as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`  
+> echo "$as_me:$LINENO: checking for $ac_func" >&5  
+> EOF  
+</verbatim>  
+(patch from Ximian Bugzilla, bug#69051)  
+<verbatim>  
+$ patch -p1 < mutex.patch  
 $ ./configure --prefix=/evolution && make && make install 
 $ cd .. 
+  
+  
+$ wget http://ftp.gnome.org/pub/GNOME/platform/2.8/2.8.2/sources/gail-1.8.1.tar.bz2  
+$ bzcat gail-1.8.1.tar.bz2 | tar -xv  
+$ cd gail-1.8.1  
+$ ./configure --prefix=/evolution && make && make install  
+$ cd ..  
+  
+  
+$ wget http://ftp.gnome.org/pub/GNOME/desktop/2.8/2.8.2/sources/gnome-keyring-0.4.0.tar.bz2  
+$ bzcat gnome-keyring-0.4.0.tar.bz2 | tar -xv  
+$ cd gnome-keyring-0.4.0  
+$ ./configure --prefix=/evolution && make && make install  
+$ cd ..  
+  
+  
+$ wget http://ftp.gnome.org/pub/GNOME/platform/2.8/2.8.2/sources/libgnomeui-2.8.0.tar.bz2  
+$ bzcat libgnomeui-2.8.0.tar.bz2 | tar -xv  
+$ cd libgnomeui-2.8.0  
+$ cat << EOF > gnome-multiscreen.patch  
+> --- libgnomeui/gnome-multiscreen.c.orig Sat Jan 15 10:06:24 2005  
+> +++ libgnomeui/gnome-multiscreen.c Sat Jan 15 10:07:41 2005  
+> @@ -26,7 +26,12 @@  
+>  
+> #include <string.h>  
+>  
+> -extern char **environ;  
+> +#ifdef ~__APPLE__  
+> +# include <crt_externs.h>  
+> +# define environ (*_NSGetEnviron())  
+> +#elif  
+> + extern char **environ;  
+> +#endif  
+>  
+> /**  
+> * make_environment_for_screen:  
+> EOF  
+</verbatim>  
+(patch modified from DarwinPorts)  
+<verbatim>  
+$ patch -p0 < gnome-multiscreen.patch  
+$ ./configure --prefix=/evolution && make && make install  
+$ cd ..  
+  
+$ wget http://ftp.easysw.com/pub/cups/1.1.23/cups-1.1.23-source.tar.bz2  
+$ bzcat cups-1.1.23-source.tar.bz2  
+$ cd cups-1.1.23  
+</verbatim>  
+Edit <code>configure</code>, replace <code>LIBTIFF="-ltiff"</code> with <code>LIBTIFF="-L/evolution/lib -ltiff"</code>  
+<verbatim>  
+$ ./configure --prefix=/evolution && make && make installhdrs  
+$ cd ..  
+  
+  
+$ wget http://ftp.gnome.org/pub/GNOME/sources/libgnomecups/0.1/libgnomecups-0.1.14.tar.bz2  
+$ bzcat libgnomecups-0.1.14.tar.bz2 | tar -xv  
+$ cd libgnomecups-0.1.14  
+$ ./configure --prefix=/evolution && make && make install  
+$ cd ..  
+  
+  
+$ wget http://ftp.gnome.org/pub/GNOME/platform/2.8/2.8.2/sources/libgnomeprint-2.8.1.tar.bz2  
+$ bzcat libgnomeprint-2.8.1.tar.bz2 | tar -xv  
+$ cd libgnomeprint-2.8.1  
+$ ./configure --prefix=/evolution && make && make install  
+$ cd ..  
+  
+  
+$ wget http://ftp.gnome.org/pub/GNOME/platform/2.8/2.8.2/sources/libgnomeprintui-2.8.1.tar.bz2  
+$ bzcat libgnomeprintui-2.8.1.tar.gz  
+$ cd libgnomeprint-2.8.1  
+$ ./configure --prefix=/evolution && make && make install  
+$ cd ..  
+  
+  
+$ wget http://ftp.gnome.org/pub/GNOME/desktop/2.8/2.8.2/sources/gtkhtml-3.2.4.tar.bz2  
+$ bzcat gtkhtml-3.2.4.tar.bz2 | tar -xv  
+$ cd gtkhtml-3.2.4  
+$ cd components/html-editor  
+$ mv spell.h spell-1.h  
+$ /evolution/bin/orbit-idl-2 -I/evolution/share/idl/bonobo-2.0 -I/evolution/share/idl/bonobo-activation-2.0 Editor.idl  
+$ /evolution/bin/orbit-idl-2 -I/evolution/share/idl/bonobo-2.0 -I/evolution/share/idl/bonobo-activation-2.0 Spell.idl  
+</verbatim>  
+Edit <code>edit-control-factory.c</code>, change <code>#include "spell.h"</code> to <code>#include "spell-1.h"</code>  
+<verbatim>  
+$ cd ../..  
+$ ./configure --prefix=/evolution && make && make install  
+$ cd ..  
+  
+  
+$ wget http://ftp.gnome.org/pub/GNOME/desktop/2.8/2.8.2/sources/gal-2.2.4.tar.bz2  
+$ bzcat gal-2.2.4.tar.bz2 | tar -x  
+$ cd gal-2.2.4  
+$ export PKG_CONFIG_PATH=/lib/pkgconfig  
+$ ./configure --prefix=/evolution && make && make install  
+$ cd ..  
+  
+  
+$ wget http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_9_2_RTM/src/nss-3.9.2.tar.gz  
+$ tar -zxvf nss-3.9.2.tar.gz  
+$ cd nss-3.9.2/mozilla/security/nss  
+$ NS_USE_GCC=1 make nss_build_all  
+$ NS_USE_GCC=1 make install  
+$ find ../../dist/*/lib -type l -exec cp -L {} /evolution/lib \;  
+$ cp -LR ../../dist/public/* /evolution/include  
+$ cp -LR ../../dist/*/include/* /evolution/nspr  
+$ cd ../../..  
+  
+  
+$ wget ftp://ftp.gnu.org/gnu/aspell/aspell-0.60.2.tar.gz  
+$ tar -zxvf aspell-0.60.2.tar.gz  
+$ cd aspell-0.60.2  
+$ ./configure --prefix=/evolution &&& make && make install  
+$ cd ..  
+  
+  
+$ wget http://ftp.gnome.org/pub/GNOME/sources/gnome-spell/1.0/gnome-spell-1.0.5.tar.gz  
+$ tar -zxvf gnome-spell-1.0.5.tar.gz  
+$ cd gnome-spell-1.0.5  
+$ ./configure --prefix=/evolution  
 </pre> 
+Edit gnome-spell/Makefile, remove <code> -DGTK_DISABLE_DEPRECATED=1 \</code> line  
+$ make && make install  
+$ cd ..  
+  
+  
+$ wget http://ftp.gnome.org/pub/gnome/sources/evolution/2.0/evolution-2.0.3.tar.gz  
+$ tar -zxvf evolution-2.0.3.tar.gz  
+$ cd evolution-2.0.3  
+$ export PKG_CONFIG_PATH=/evolution/lib/pkgconfig  
+$ cat << EOF > /evolution/etc/bonobo-activation/bonobo-activation-config.xml  
+> <?xml version="1.0"?>  
+> <oafconfig>  
+> <searchpath>  
+> <item>/evolution/lib/bonobo/servers</item>  
+> </searchpath>  
+> </oafconfig>  
+$ ./configure --prefix=/evolution --enable-nss --with-nspr-includes=/evolution/include --with-nspr-libs=/evolution/lib --with-nss-includes=/evolution/include/nss --with-nss-libs=/evolution/lib && make && make install  
+$ cd ..  
+</verbatim>