#1504: config/auto/arch.pm:  Uninitialized value warning on Darwin due to change
in order of configuration steps
-----------------------+----------------------------------------------------
 Reporter:  jkeenan    |       Owner:  jkeenan                 
     Type:  bug        |      Status:  new                     
 Priority:  normal     |   Milestone:                          
Component:  configure  |     Version:  2.1.0                   
 Severity:  medium     |    Keywords:  configure byteorder arch
     Lang:             |       Patch:  applied                 
 Platform:  darwin     |  
-----------------------+----------------------------------------------------
Changes (by jkeenan):

 * cc: dukeleto (added)
  * owner:  => jkeenan
  * patch:  => applied


Comment:

 Pursuant to AndyD's suggestion, I applied the following patch in r45364:
 {{{
 $ svn diff config/auto/arch.pm
 Index: config/auto/arch.pm
 ===================================================================
 --- config/auto/arch.pm (revision 45363)
 +++ config/auto/arch.pm (working copy)
 @@ -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
 }}}
 dukeleto and other Mac users:  Please test this out.  I will close ticket
 in 3-4 days if there are no objections.

 Thank you very much.

 kid51

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/1504#comment:8>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to