Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=bouletmp.git;a=commitdiff;h=29ca11b7a5bd313e5ffaca17ce6f9bff656c093b

commit 29ca11b7a5bd313e5ffaca17ce6f9bff656c093b
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Sun Oct 24 21:14:45 2010 +0200

mono-2.8-8-ppc
*added ppc thread fix

diff --git a/source/devel/mono/FrugalBuild b/source/devel/mono/FrugalBuild
index 2a0db86..82e4561 100644
--- a/source/devel/mono/FrugalBuild
+++ b/source/devel/mono/FrugalBuild
@@ -3,7 +3,7 @@

pkgname=mono
pkgver=2.8
-pkgrel=7
+pkgrel=8
pkgdesc="Mono runtime and class libraries, a C# compiler/interpreter"
url="http://www.mono-project.com/";
depends=('zlib')
@@ -13,7 +13,7 @@ groups=('devel')
archs=('i686' 'x86_64' 'ppc')
Finclude mono
up2date="lynx -dump http://www.go-mono.com/sources-stable/|grep -m1 'mono-'|sed 
's/.*-\(.*\).t.*/\1/'"
-source=(http://www.go-mono.com/sources/$pkgname/$pkgname-$pkgver.tar.bz2 
rc.mono rc.mono-hu.po)
+source=(http://www.go-mono.com/sources/$pkgname/$pkgname-$pkgver.tar.bz2 
rc.mono rc.mono-hu.po ppc_thread.diff)
Fconfopts="$Fconfopts -with-ikvm-native=yes --with-jit=yes --with-xen_opt=n \
--with-libgdiplus=installed
--enable-static \
@@ -36,7 +36,8 @@ fi

sha1sums=('a724de68dccb583b54d2e08c5a1e5760c18225ab' \
'1a6826fb1bb13f906a1465be43bb592a2a9e0e10' \
-          '6c19f98462d7bb1ecba79a3ad284ea02a1eac2ec')
+          '6c19f98462d7bb1ecba79a3ad284ea02a1eac2ec' \
+          '3dda8a39085fddec0b0e25e31743d49762575605')

build() {
unset MAKEFLAGS
diff --git a/source/devel/mono/ppc_thread.diff 
b/source/devel/mono/ppc_thread.diff
new file mode 100644
index 0000000..ca999f6
--- /dev/null
+++ b/source/devel/mono/ppc_thread.diff
@@ -0,0 +1,21 @@
+#Binds ppc to use only one core to workaround threading problems for ppc.
+http://cvs.fedoraproject.org/viewvc/rpms/mono/devel/mono-2.2-ppc-threading.patch?view=log
+
+--- mono-2.2/mono/mini/main.c  2008-11-18 19:00:26.000000000 +0000
++++ mono-2.2/mono/mini/main-new.c      2008-11-18 19:16:11.000000000 +0000
+@@ -26,10 +26,14 @@
+ }
+
+ #else
+-
++#include <sched.h>
+ int
+ main (int argc, char* argv[])
+ {
++#ifdef __powerpc__
++  unsigned long mask = 1;
++  sched_setaffinity(0, sizeof(mask), &mask);
++#endif
+       mono_build_date = build_date;
+       return mono_main (argc, argv);
+ }
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to