Skip Menu |
 
rt.cpan.org will be shut down on March 1st, 2021.

This queue is for tickets about the ExtUtils-F77 CPAN distribution.

Report information
The Basics
Id: 28723
Status: resolved
Priority: 0/
Queue: ExtUtils-F77

People
Owner: Nobody in particular
Requestors: djerius [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.16
Fixed in: (no value)



Subject: Solaris fix for new compilers, OSX gfortran support
Download (untitled) / with headers
text/plain 146b
The attached patch helps Solaris Studio 10 limp along and adds gfortran checking on OS X (everything was set up, but it wasn't being checked for)
Subject: ExtUtils-F77-1.16.patch
# This is a patch for ExtUtils-F77-1.16.old to update it to ExtUtils-F77-1.16 # # To apply this patch: # STEP 1: Chdir to the source directory. # STEP 2: Run the 'applypatch' program with this patch file as input. # # If you do not have 'applypatch', it is part of the 'makepatch' package # that you can fetch from the Comprehensive Perl Archive Network: # http://www.perl.com/CPAN/authors/Johan_Vromans/makepatch-x.y.tar.gz # In the above URL, 'x' should be 2 or higher. # # To apply this patch without the use of 'applypatch': # STEP 1: Chdir to the source directory. # STEP 2: Run the 'patch' program with this file as input. # #### End of Preamble #### #### Patch data follows #### diff -c 'ExtUtils-F77-1.16.old/F77.pm' 'ExtUtils-F77-1.16/F77.pm' Index: ./F77.pm *** ./F77.pm Mon Apr 2 00:40:23 2007 --- ./F77.pm Tue Aug 7 17:22:21 2007 *************** *** 128,136 **** my @libs; ! # determine libraries. Forte 7 doesn't have F77 or M77 ! if ( qx/$F77config{Solaris}{F77}{Compiler} -V 2>&1/ ! =~ /Forte Developer 7/ ) { push @libs, qw/ -lf77compat --- 128,139 ---- my @libs; ! # determine libraries. F77 and M77 aren't available in the latest ! # compilers ! my $vcruft = qx/$F77config{Solaris}{F77}{Compiler} -V 2>&1/; ! if ( $vcruft =~ /Forte Developer 7/ ! || $vcruft =~ /f90:/ ! ) { push @libs, qw/ -lf77compat *************** *** 346,351 **** --- 349,367 ---- $F77config{Darwin}{DEFAULT} = 'G77'; + # check for 'non g77' DEFAULT compilers on Darwin: + if (ucfirst($Config{'osname'}) eq "Darwin") + { + my $default; + + # check for gfortran compiler: + $default = find_in_path('gfortran'); + + if( $default =~ /gfortran/ ) + { + $F77config{Darwin}{DEFAULT} = 'GFortran'; + } + } ############ End of database is here ############ =head1 SYNOPSIS #### End of Patch data #### #### ApplyPatch data follows #### # Data version : 1.0 # Date generated : Tue Aug 7 17:22:48 2007 # Generated by : makepatch 2.00 # Recurse directories : Yes # p 'F77.pm' 18772 1186521741 0100644 #### End of ApplyPatch data #### #### End of Patch kit [created: Tue Aug 7 17:22:48 2007] #### #### Checksum: 79 2316 33866 ####
Download (untitled) / with headers
text/plain 126b
solaris - accepted gfortran - Adopted with mods - only makes gfortran the default if present AND if g77 is not also present


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.