* Disable parallel make, mono does not like it.
* Add a patch to get mono cross compile for x86 target.
* add mono_cv_sizeof_sunpath to site files, becasue
previously it was called cv_mono_sizeof_sunpath
Signed-off-by: Khem Raj <raj.khem@gmail.com>
--- /dev/null
+DESCRIPTION = "Mono Programming Language"
+SECTION = "devel/mono"
+LICENSE = "GPL LGPL X11"
+
+SRC_URI = "http://ftp.novell.com/pub/mono/sources/mono/mono-2.4.2.3.tar.bz2"
+
+INC_PR = "r3"
+
+S = "${WORKDIR}/mono-${PV}"
+
+# parallel make does not work for mono (currently)
+
+PARALLEL_MAKE = ""
+
+do_fix_dolt_libtool() {
+ # look for libtool prefixed with HOST_SYS
+ sed -e "s/slash\}libtool/slash\}${HOST_SYS}-libtool/" -i acinclude.m4
+ echo No acinclude!
+}
+
+inherit autotools
+EXTRA_OECONF_arm = "--without-tls"
+EXTRA_OECONF_mipsel = "--without-tls"
+
+addtask fix_dolt_libtool after do_patch before do_configure
--- /dev/null
+This is a workaround for bug 515050
+https://bugzilla.novell.com/show_bug.cgi?id=515050#c2
+
+Real fix is something else which did not make into 2.4.2
+http://lists.ximian.com/pipermail/mono-patches/2009-June/151386.html
+http://lists.ximian.com/pipermail/mono-patches/2009-June/151387.html
+
+but we are ok with workaround its safe.
+
+-Khem
+Index: mono-2.4.2.3/mono/mini/genmdesc.pl
+===================================================================
+--- mono-2.4.2.3.orig/mono/mini/genmdesc.pl 2009-10-15 18:21:45.000000000 -0700
++++ mono-2.4.2.3/mono/mini/genmdesc.pl 2009-10-15 18:22:19.000000000 -0700
+@@ -47,7 +47,7 @@ sub load_opcodes
+ $arch_define = "TARGET_ARM";
+ }
+
+- $cpp .= " -D$arch_define $srcdir/mini-ops.h|";
++ $cpp .= " -DMONO_ARCH_SUPPORT_SIMD_INTRINSICS -D$arch_define $srcdir/mini-ops.h|";
+ #print "Running: $cpp\n";
+ open (OPS, $cpp) || die "Cannot execute cpp: $!";
+ while (<OPS>) {
# package in step 2.
# See http://www.mono-project.com/Mono:ARM
-require mono_2.4.2.3.inc
+require mono-${PV}.inc
require mono-mcs-intermediate.inc
DEFAULT_PREFERENCE = "-1"
SRC_URI += ""
PR = "${INC_PR}.1"
-
-
-require mono_2.4.2.3.inc
+require mono-${PV}.inc
DEPENDS = "glib-2.0-native perl-native"
PR = "${INC_PR}.1"
-require mono_2.4.2.3.inc
+require mono-${PV}.inc
DEPENDS = "mono-native mono-mcs-intermediate glib-2.0 perl-native"
SRC_URI += "file://configure.patch;patch=1\
file://mini-arm.patch;patch=1\
- file://0001-remove-docs-dir-from-build.patch;patch=1"
+ file://0001-remove-docs-dir-from-build.patch;patch=1 \
+ file://mono-cross-compilation-for-amd64.patch;patch=1 \
+ "
# Per http://www.mono-project.com/Mono:ARM
EXTRA_OECONF += " --disable-mcs-build "
+++ /dev/null
-DESCRIPTION = "Mono Programming Language"
-SECTION = "devel/mono"
-LICENSE = "GPL LGPL X11"
-
-SRC_URI = "http://ftp.novell.com/pub/mono/sources/mono/mono-2.4.2.3.tar.bz2"
-
-INC_PR = "r3"
-
-S = "${WORKDIR}/mono-2.4.2.3"
-
-do_fix_dolt_libtool() {
- # look for libtool prefixed with HOST_SYS
- sed -e "s/slash\}libtool/slash\}${HOST_SYS}-libtool/" -i acinclude.m4
- echo No acinclude!
-}
-
-inherit autotools
-EXTRA_OECONF_arm = "--without-tls"
-EXTRA_OECONF_mipsel = "--without-tls"
-
-addtask fix_dolt_libtool after do_patch before do_configure
# mono
cv_mono_sizeof_sunpath=108
+mono_cv_sizeof_sunpath=108
# mysql
mysql_cv_func_atomic_sub=${mysql_cv_func_atomic_sub=no}
# mono
cv_mono_sizeof_sunpath=108
+mono_cv_sizeof_sunpath=108
# mysql
mysql_cv_func_atomic_sub=${mysql_cv_func_atomic_sub=yes}
# mono
cv_mono_sizeof_sunpath=108
+mono_cv_sizeof_sunpath=108
mono_cv_uscore=${mono_cv_uscore=no}
# mono
cv_mono_sizeof_sunpath=108
+mono_cv_sizeof_sunpath=108
mono_cv_uscore=${mono_cv_uscore=no}
# mono
cv_mono_sizeof_sunpath=108
+mono_cv_sizeof_sunpath=108
# mysql
mysql_cv_func_atomic_sub=${mysql_cv_func_atomic_sub=no}