Automated builds and creation fo installer package and disk image works
[moonshot.git] / mac-client-installer / README.MacOsBuildInstructions
index b1205f0..c710d1e 100644 (file)
@@ -1,3 +1,76 @@
+### Building Mac OS Installer using jhbuild
+
+## Preparation
+
+# install jhbuild
+Install jhbuild, which Creates working folder ~/gtk
+
+# install gtk-mac-bundler
+Either$ cd ~
+$ wget http://ftp.gnome.org/pub/gnome/sources/gtk-mac-bundler/0.6/gtk-mac-bundler-0.6.1.tar.bz2
+$ tar jxvf gtk-mac-bundler-0.6.1.tar.gz
+$ cd gtk-mac-bundler-0.6.1
+$ make install
+
+# bootstrap jhbuild
+copy file moonshot/mac-client-installer/.jhbuildrc-custom to $HOME
+then
+$ jhbuild bootstrap --ignore-system
+
+# Kerberos 
+Need MIT Kerberos 1.9.2 installed in ~/gtk/inst to build against - 
+in the Krb5 src directory 
+$ export CFLAGS="-arch i386"
+$ ./configure --prefix=$HOME/gtk/inst/
+$ make
+$ make install
+
+and installed in moonshot/mac-client-installer/ to package up
+$ ./configure
+$ make
+$ make install DESTDIR=$HOME/moonshot/mac-client-installer/krb
+
+## Building the moonshot SW
+$ jhbuild build  meta-moonshot-mac-client
+Will cause the following errors
+
+*** Error during phase build of perl-xml-parser: ########## Error running make LD_RUN_PATH= *** [6/37]
+choose  [4] Start shell
+$ git apply ~/moonshot/mac-client-installer/0001-Remove-arch-ppc-flags.patch 
+$ make
+$ exit 
+choose [2] Ignore error and continue
+
+make: *** No targets specified and no makefile found.  Stop.
+*** Error during phase build of cyrus-sasl: ########## Error running make   *** [39/41]
+choose  [4] Start shell
+
+$ ./configure --prefix=/usr/local --with-gss_impl=mit
+$ exit 
+choose [1] Rerun phase build
+*** Error during phase build of cyrus-sasl: ########## Error running make   *** [1/1]
+choose [1] Rerun phase build
+
+*** Error during phase configure of moonshot: ########## Error running ./autogen.sh --prefix /Users/pete/gtk/inst --libdir '/Users/pete/gtk/inst/lib' --enable-acceptor=no --with-krb5=$PREFIX/usr/local --enable-acceptor=no  *** [40/41]
+choose [4] Start shell
+$ git apply ~/moonshot/mac-client-installer/0001-Move-moonshot-files-up.patch 
+$ cp -R moonshot/libeap .
+$ ./autogen.sh --prefix /Users/pete/gtk/inst --libdir '/Users/pete/gtk/inst/lib' --enable-acceptor=no 
+$ 4
+
+$ exit
+choose  [1] Rerun phase build
+
+
+*** Error during phase checkout of krb5: could not unpack tarball (expected krb5-1.9.2-signed.tar dir) *** [1/1]
+choose [4] Start shell
+unpack file ~/gtk/source/krb5-1.9.2.tar.gz to create directory krb5-1.9.2
+$ exit
+choose [2] Ignore error and continue to configure
+
+### Old instructions
+
+
 ###Introduction
 
 This page contains notes on how to build and install the software necessary to run Moonshot clients on a computer running Max OS X 10.6 Snow Leopard and 10.7 Lion.
@@ -33,7 +106,7 @@ You will see the following message
     If this token and others are legitimate, please use m4_pattern_allow.
     See the Autoconf documentation
 
-    $ ./configure
+    $ ./configure --with-gss_impl=mit
     $ make
 
 To install to /usr/local in your build machine