Everything builds - instructions need completion mac-installer
authorPete Fotheringham <pete.fotheringham@codethink.co.uk>
Thu, 29 Dec 2011 13:20:58 +0000 (13:20 +0000)
committerPete Fotheringham <pete.fotheringham@codethink.co.uk>
Thu, 29 Dec 2011 13:20:58 +0000 (13:20 +0000)
mac-client-installer/.jhbuildrc-custom
mac-client-installer/0001-Move-moonshot-files-up.patch
mac-client-installer/README.MacOsBuildInstructions
mac-client-installer/moonshot-mac.modules

index 4d1c57f..f453592 100644 (file)
@@ -1,22 +1,5 @@
 # -*- mode: python -*-
 
-# All of jhbuild is Python, so there are all sorts of interesting
-# things you can do to customize your build with python commands. This
-# file is treated like a python __init__ file, so you can do all sorts
-# of interesting things in it.
-
-# The URL for repositories can be overridden. This is how you'd set
-# your developer access to an SVN repo. It doesn't work, of course,
-# because gnome has migrated to git.
-#
-# repos["svn.gnome.org"] = "svn+ssh://myusername@svn.gnome.org/svn/"
-
-# You can set the default setup here.
-#
-# _gtk_osx_default_build = "fw-10.4"
-# 
-# or set things up with an environment variable: 
-
 _jhb = os.environ.get("JHB")
 if _jhb is None:
     # The default setup...
@@ -28,152 +11,13 @@ elif _jhb == "FW":
     # checkoutroot = os.path.expanduser("~/Source/gtk-fw")
     # prefix = "/opt/gtk-fw"
     pass
-# Do note, though, that jhbuildrc-gtk-osx also uses $JHB to find
-# another customization file that is loaded after this one. You can,
-# of course, define your own environment variables for passing in
-# parameters.
-#<include href="http://git.gnome.org/browse/gtk-osx/plain/modulesets-stable/gtk-osx.modules"/> 
-# The moduleset can be overridden.
-#
-# moduleset = ["gtk-osx"]
-
-# As can the default modules to build.
-#
-#modules = [ "meta-gtk-osx-core",  "meta-gtk-osx-themes"]
-
-#              modules = [ "libgee"]
-
-# You can skip modules.
-#
-# skip.append("libglade")
-#
-#or put them back:
-#
-# if "libglade" in skip:
-#      skip.remove("libglade")
-
-# Set this to True/False if you want to force using or not building
-# and using python as part of jhbuild. If not set, the script will use
-# the system python when building on 10.5 or newer only.
-#
-# _gtk_osx_use_jhbuild_python = True
-
-
-# In addition, you can override _exec_prefix (used to set $M4 and
-# $LIBTOOLIZE); by default it's set to prefix. You might want to reset
-# it if you want to bootstrap to one directory and build in another
-# (or more likely, several others). Mind that this is fiddly and
-# requires tweaking a bunch of things to get autoconf to consistently
-# find the right m4 files. Not really recommended. Similarly, you can
-# override tarballdir so that you need download tarballs only once for
-# multiple builds. This works just as you'd expect and can save quite
-# a bit of time if you're maintaining several trees.
 
-# _exec_prefix = os.path.join(os.path.expanduser("~"), "Source", "bootstrap")
-# tarballdir = os.path.join(os.path.expanduser("~"), "Source", "Download")
-
-# .jhbuildrc has a master function, setup_sdk(target, sdk_version,
-# [architectures]) which sets up the build environment. You *must*
-# call it or one of the functions (setup_sdk_10_4(),
-# setup_ppc_build(), or setup_universal_build()) in jhbuildrc-custom.
-#
-# Target can be "10.4", "10.5", or "10.6". It sets
-# MACOS_DEPLOYMENT_TARGET and the -macosx-version-min CFLAG.
-#
-# Setup_sdk can be "10.4u", "10.5", "10.6" or "native". "Native" will
-# not set -sysroot in CFLAGS, so headers and dylibs will come from
-# /usr instead of /Developer/SDKs/MacOSX_sdk.10.foo. If you are
-# building for distribution, you probably want to use the lowest SDK
-# which will successfully build you modules. The exception is if you
-# are building under Tiger, because
-# a) You're already using the lowest compatible SDK
-# b) Cups 1.2.12, which you must install to build Gtk+, installs new
-# headers and libraries into /usr but not into
-# /Developer/SDKs/MacOSX_sdk_10.4u.
-#
-# Architectures is a list (pass the arguments in brackets) which can
-# include the values "ppc", "i386", "x86_64", and _default_arch. That
-# last one is a variable and doesn't get quotes. Don't pass multiple
-# arguments directly to setup_sdk, though, because that would build
-# universal and several packages need special handling to build
-# universal. Use setup_universal_build instead. Do note, though, that
-# while setup_universal_build will build successfully, the result will
-# usually crash because of endianness problems with icon caches. Help
-# is welcome to fix this. The special argument _default_arch is a
-# variable set by jhbuildrc depending on what platform you're on. It
-# doesn't set the -arch CFLAG at all, so your architecture will be
-# whatever you get that way. Note that on Snow Leopard, if you are
-# building on a 64-bit processor (Xeon, Core2duo, or one of the Core
-# iFoo procesors), the architecure is x86_64 by default; otherwise
-# it's i386, which is 32-bit. Be sure to read
-# http://sourceforge.net/apps/trac/gtk-osx/wiki/SnowLeopard.
-#
-#  Set up a particular target and SDK: For default operation, set the
-# architecture and SDK for the native machine:
-_target = None;
-if _osx_version.startswith("8"):
-   _target = "10.4"
-elif _osx_version.startswith("9"):
-    _target = "10.5"
-elif _osx_version.startswith("10"):
-    _target = "10.6"
-elif _osx_version.startswith("11"):
-    _target = "10.7"
-
-#setup_sdk(target=_target, sdk_version="native", architectures=[_default_arch])
-#
-setup_sdk(target="10.6", sdk_version="10.6", architectures=["i386"])
-#
-# or set up to cross-compile a ppc build from an intel machine:
-#
-# setup_ppc_build()
-#
-# or a universal build:
-#
-# setup_universal_build(target="10.5", sdk_version="10.5", 
-#                        architectures=["ppc", "i386"])
-
-
-# Modify the arguments passed to configure:
-#
-# autogenargs["libglade"] = "--enable-static"
-#
-# or simply  add to them:
-#
-# append_autogenargs("libglade", "--enable-static")
-# 
-# Note that in either case the args will be added *after* the args in
-# the module's autogenargs attribute.
-#
-# Tell Git to use a different module and branch (not tag!):
-#
-# branches["gtk-engines"] = ("gtk-css-engine", "bzr")
-#
-# Or just switch branches
-#
-# branches["gtk+"] = (None, "gtk-2-18")
-#
-# Tarballs take a whole URL for branches:
-#
-# branches["python"] = "http://www.python.org/ftp/python/2.6.4/Python-2.6.4.tar.bz2"
-#
-# Note that if the module has hash, md5sum, or size attributes and the
-# branch download doesn't match, jhbuild will error out. Open a shell,
-# untar the tarball yourself, quit the shell, and select "ignore
-# error". Don't try this with modules that need patches unless you're
-# sure that the updated version doesn't need them.
-#
-# Set an environment variable:
-#
-# os.environ["CC"] = "/usr/bin/gcc-4.0"
-
-
-# And more...
+# not sure yet if this is needed
 #append_autogenargs ("dbus", "--with-x")
 
-#moduleset = "http://git.gnome.org/browse/gtk-osx/plain/modulesets-stable/gtk-osx.modules"
+setup_sdk(target="10.6", sdk_version="10.6", architectures=["i386"])
 os.environ['MAKEFLAGS'] = '-j 4'
+module_autogenargs['moonshot'] = '--enable-acceptor=no'
+module_autogenargs['gtk+'] = '--enable-introspection=no'
 moduleset=os.environ['HOME'] + '/moonshot/mac-client-installer/moonshot-mac.modules' 
+
index b1d898a..c310495 100644 (file)
@@ -1,6 +1,6 @@
-From df22702d72d30843193d98589fee090f2fe63201 Mon Sep 17 00:00:00 2001
+From d491bc19b59fd9d6d9a46fffef1ed82ddec2503d Mon Sep 17 00:00:00 2001
 From: Pete Fotheringham <pete.fotheringham@codethink.co.uk>
-Date: Thu, 29 Dec 2011 09:12:51 +0000
+Date: Thu, 29 Dec 2011 10:05:50 +0000
 Subject: [PATCH] Move moonshot files up
 
 ---
@@ -9,6 +9,7 @@ Subject: [PATCH] Move moonshot files up
  autogen.sh                            |   16 +
  build-aux/compile                     |  144 ++++
  configure.ac                          |   92 +++
+ libeap                                |    1 +
  m4/minuso.m4                          |   35 +
  mech_eap.spec.in                      |   62 ++
  mech_eap/.gitignore                   |   32 +
@@ -121,12 +122,13 @@ Subject: [PATCH] Move moonshot files up
  mech_eap/wrap_iov.c                   |  379 +++++++++++
  mech_eap/wrap_iov_length.c            |  234 +++++++
  mech_eap/wrap_size_limit.c            |   97 +++
- 117 files changed, 24690 insertions(+), 0 deletions(-)
+ 118 files changed, 24691 insertions(+), 0 deletions(-)
  create mode 100644 Makefile.am
  create mode 100644 acinclude.m4
  create mode 100755 autogen.sh
  create mode 100755 build-aux/compile
  create mode 100644 configure.ac
+ create mode 160000 libeap
  create mode 100644 m4/minuso.m4
  create mode 100644 mech_eap.spec.in
  create mode 100644 mech_eap/.gitignore
@@ -243,13 +245,13 @@ Subject: [PATCH] Move moonshot files up
 
 diff --git a/Makefile.am b/Makefile.am
 new file mode 100644
-index 0000000..f9690bd
+index 0000000..0165219
 --- /dev/null
 +++ b/Makefile.am
 @@ -0,0 +1,4 @@
 +AUTOMAKE_OPTIONS = foreign
 +ACLOCAL_AMFLAGS = -I m4
-+SUBDIRS = mech_eap
++SUBDIRS = libeap mech_eap
 +EXTRA_DIST = mech_eap.spec
 diff --git a/acinclude.m4 b/acinclude.m4
 new file mode 100644
@@ -795,7 +797,7 @@ index 0000000..5360806
 +# End:
 diff --git a/configure.ac b/configure.ac
 new file mode 100644
-index 0000000..ba23c32
+index 0000000..4297345
 --- /dev/null
 +++ b/configure.ac
 @@ -0,0 +1,92 @@
@@ -888,9 +890,16 @@ index 0000000..ba23c32
 +fi
 +
 +AX_CHECK_LIBMOONSHOT
-+AC_CONFIG_FILES([Makefile mech_eap/Makefile
++AC_CONFIG_FILES([Makefile libeap/Makefile mech_eap/Makefile
 +                        mech_eap.spec])
 +AC_OUTPUT
+diff --git a/libeap b/libeap
+new file mode 160000
+index 0000000..3c68005
+--- /dev/null
++++ b/libeap
+@@ -0,0 +1 @@
++Subproject commit 3c6800594dbfcba5d36cfa5556288eae999f83ba
 diff --git a/m4/minuso.m4 b/m4/minuso.m4
 new file mode 100644
 index 0000000..d8b1620
index 41d1baf..599eec7 100644 (file)
@@ -1,3 +1,23 @@
+### Building Mac OS Installer using jhbuild
+
+## Preparation
+Install jhbuild, which Creates working folder ~/gtk
+
+Need Kerberos installed in ~/gtk/inst - in the Krb5 src directory 
+$ export CFLAGS="-arch i386"
+$ ./configure --prefix=/Users/pete/gtk/inst/
+$ make
+$ make install
+
+## Building the moonshot SW
+copy file moonshot/mac-client-installer/.jhbuildrc-custom to $HOME
+then
+$ jhbuild bootstrap
+
+
+
+
+
 ###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.
index b2650a5..90677dd 100644 (file)
@@ -24,7 +24,7 @@
         <dependencies>
             <dep package="moonshot-ui"/>
             <dep package="cyrus-sasl"/> 
-<!--            <dep package="moonshot"/> -->
+            <dep package="moonshot"/> 
         </dependencies>
     </metamodule>