[arch-commits] Commit in mono/trunk (PKGBUILD mini_amd64.patch)

daniel at archlinux.org daniel at archlinux.org
Sat Apr 18 10:56:16 UTC 2009


    Date: Saturday, April 18, 2009 @ 06:56:16
  Author: daniel
Revision: 35935

Add mini_amd64.patch to fix compile issues of synapse on x86_64. Patch is from http://lists.ximian.com/pipermail/mono-patches/2009-March/144636.html

Added:
  mono/trunk/mini_amd64.patch
Modified:
  mono/trunk/PKGBUILD

------------------+
 PKGBUILD         |   11 ++++++++---
 mini_amd64.patch |   13 +++++++++++++
 2 files changed, 21 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-04-18 10:50:11 UTC (rev 35934)
+++ PKGBUILD	2009-04-18 10:56:16 UTC (rev 35935)
@@ -4,7 +4,7 @@
 
 pkgname=mono
 pkgver=2.4
-pkgrel=1
+pkgrel=2
 pkgdesc="Free implementation of the .NET platform including runtime and compiler"
 arch=(i686 x86_64)
 license=('GPL' 'LGPL2' 'MPL' 'custom:MITX11')
@@ -15,9 +15,11 @@
 provides=('monodoc')
 conflicts=('monodoc')
 source=(http://ftp.novell.com/pub/mono/sources/${pkgname}/${pkgname}-${pkgver}.tar.bz2
-        mono.rc.d)
+        mono.rc.d
+	mini_amd64.patch)
 md5sums=('da2bf1c0aba2958d26c5e8a9a49fd9d1'
-         '8315e46c6a6e9625502521fc0ad1a322')
+         '8315e46c6a6e9625502521fc0ad1a322'
+         '332530de044cabff941c712b7f2ace8e')
 
 build() {
   # get rid of that .wapi errors; thanks to brice
@@ -26,6 +28,9 @@
   mkdir -p ${startdir}/pkg/usr/share/licenses/$pkgname
   # build mono
   cd ${startdir}/src/${pkgname}-${pkgver}
+
+  patch -p0 < ${srcdir}/mini_amd64.patch || return 1
+
   rm -f libgc/libtool.m4
   autoreconf --force --install
   autoreconf --force --install libgc

Added: mini_amd64.patch
===================================================================
--- mini_amd64.patch	                        (rev 0)
+++ mini_amd64.patch	2009-04-18 10:56:16 UTC (rev 35935)
@@ -0,0 +1,13 @@
+--- mono/mini/mini-amd64.c	2009-03-19 21:08:18 UTC (rev 129824)
++++ mono/mini/mini-amd64.c	2009-03-19 21:09:53 UTC (rev 129825)
+@@ -1009,7 +1009,7 @@
+ 		locals_size += mono_type_size (ins->inst_vtype, &ialign);
+ 	}
+ 
+-	if ((cfg->num_varinfo > 10000) || (locals_size >= (1 << 15))) {
++	if ((cfg->num_varinfo > 5000) || (locals_size >= (1 << 15)) || (header->code_size > 110000)) {
+ 		/* Avoid hitting the stack_alloc_size < (1 << 16) assertion in emit_epilog () */
+ 		cfg->arch.omit_fp = FALSE;
+ 	}
+
+ 			




More information about the arch-commits mailing list