[svn:parrot] r45364 - trunk/config/auto

jkeenan at svn.parrot.org jkeenan at svn.parrot.org
Thu Apr 1 02:29:54 UTC 2010


Author: jkeenan
Date: Thu Apr  1 02:29:54 2010
New Revision: 45364
URL: https://trac.parrot.org/parrot/changeset/45364

Log:
Apply patch with approach suggested by AndyD re http://trac.parrot.org/parrot/ticket/1504.

Modified:
   trunk/config/auto/arch.pm

Modified: trunk/config/auto/arch.pm
==============================================================================
--- trunk/config/auto/arch.pm	Wed Mar 31 22:10:35 2010	(r45363)
+++ trunk/config/auto/arch.pm	Thu Apr  1 02:29:54 2010	(r45364)
@@ -60,12 +60,11 @@
     # the above split fails because archname is "darwin-thread-multi-2level".
     if ( $cpuarch =~ /darwin/ ) {
         $osname = 'darwin';
-         if ( $conf->data->get('byteorder') =~ /^1234/ ) {
-            $cpuarch = 'i386';
-        }
-        else {
-            $cpuarch = 'ppc';
-        }
+        my $unamep = `uname -p`;
+        chomp $unamep;
+        $cpuarch = ( $unamep eq 'powerpc' )
+            ? 'ppc'
+            : 'i386';
     }
 
     # cpuarch and osname are reversed in archname on windows


More information about the parrot-commits mailing list