[71401] trunk/dports/science/mpich

jmr at macports.org jmr at macports.org
Sat Sep 11 19:23:19 PDT 2010


Revision: 71401
          http://trac.macports.org/changeset/71401
Author:   jmr at macports.org
Date:     2010-09-11 19:23:18 -0700 (Sat, 11 Sep 2010)
Log Message:
-----------
mpich: patch processor arch detection to do something more reasonable (see #25362)

Modified Paths:
--------------
    trunk/dports/science/mpich/Portfile

Added Paths:
-----------
    trunk/dports/science/mpich/files/
    trunk/dports/science/mpich/files/patch-bin_tarch.diff

Modified: trunk/dports/science/mpich/Portfile
===================================================================
--- trunk/dports/science/mpich/Portfile	2010-09-12 02:08:15 UTC (rev 71400)
+++ trunk/dports/science/mpich/Portfile	2010-09-12 02:23:18 UTC (rev 71401)
@@ -22,6 +22,8 @@
 				rmd160  8192e0518f160c12b212ba260371db6159a34049
 use_bzip2		yes
 
+patchfiles      patch-bin_tarch.diff
+
 universal_variant	no
 
 build.target

Added: trunk/dports/science/mpich/files/patch-bin_tarch.diff
===================================================================
--- trunk/dports/science/mpich/files/patch-bin_tarch.diff	                        (rev 0)
+++ trunk/dports/science/mpich/files/patch-bin_tarch.diff	2010-09-12 02:23:18 UTC (rev 71401)
@@ -0,0 +1,16 @@
+--- bin/tarch.orig	2004-05-29 02:10:30.000000000 +1000
++++ bin/tarch	2010-06-21 17:42:59.000000000 +1000
+@@ -151,7 +151,12 @@
+         break;;
+ 	Darwin|Macintosh) 
+ 	    # We must distinquish the processor architecture
+-            FARCH=freebsd_ppc ; break ;;
++	        DARWINARCH=`$UNAME -m`
++	        case $DARWINARCH in
++	        *Power*|*power*) FARCH=freebsd_ppc ;;
++	        *) FARCH=freebsd ;;
++	        esac
++	        break ;;
+    esac
+    LLARCH=$LARCH
+ done
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100911/da5732af/attachment.html>


More information about the macports-changes mailing list