Differences between version 13 and predecessor to the previous major change of EvolutionOnMacOSX.
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 13 | Last edited on Monday, January 17, 2005 2:46:37 pm | by MichaelJager | Revert |
Older page: | version 12 | Last edited on Saturday, January 15, 2005 11:56:14 pm | by PerryLorier | Revert |
@@ -2,8 +2,10 @@
''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
<pre>
$ export PATH=$PATH:/evolution/bin
$ export LDFLAGS=-L/evolution/lib CPPFLAGS=-I/evolution/include
@@ -360,7 +362,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
+</pre>
+(patch modified from DarwinPorts)
+<pre>
+$ 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
+</pre>
+(patch modified from DarwinPorts)
+<pre>
+$ 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
+</pre>
+(patch from Ximian Bugzilla, bug#69051)
+<pre>
+$ 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
+</pre>
+(patch modified from DarwinPorts)
+<pre>
+$ 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
+</pre>
+Edit <code>configure</code>, replace <code>LIBTIFF="-ltiff"</code> with <code>LIBTIFF="-L/evolution/lib -ltiff"</code>
+<pre>
+$ ./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
+</pre>
+Edit <code>edit-control-factory.c</code>, change <code>#include "spell.h"</code> to <code>#include "spell-1.h"</code>
+<pre>
+$ 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 ..
</pre>