Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package perl-ExtUtils-F77 for openSUSE:Factory checked in at 2021-02-16 22:40:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-ExtUtils-F77 (Old) and /work/SRC/openSUSE:Factory/.perl-ExtUtils-F77.new.28504 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-ExtUtils-F77" Tue Feb 16 22:40:27 2021 rev:28 rq:872789 version:1.26 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-ExtUtils-F77/perl-ExtUtils-F77.changes 2019-07-22 17:18:38.689946317 +0200 +++ /work/SRC/openSUSE:Factory/.perl-ExtUtils-F77.new.28504/perl-ExtUtils-F77.changes 2021-02-16 22:50:55.142700045 +0100 @@ -1,0 +2,6 @@ +Tue Feb 16 03:07:43 UTC 2021 - Tina M??ller <timueller+p...@suse.de> + +- updated to 1.26 + see /usr/share/doc/packages/perl-ExtUtils-F77/CHANGES + +------------------------------------------------------------------- Old: ---- ExtUtils-F77-1.24.tar.gz New: ---- ExtUtils-F77-1.26.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-ExtUtils-F77.spec ++++++ --- /var/tmp/diff_new_pack.xrUryX/_old 2021-02-16 22:50:55.674700737 +0100 +++ /var/tmp/diff_new_pack.xrUryX/_new 2021-02-16 22:50:55.678700742 +0100 @@ -1,7 +1,7 @@ # # spec file for package perl-ExtUtils-F77 # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,18 +16,16 @@ # +%define cpan_name ExtUtils-F77 Name: perl-ExtUtils-F77 -Version: 1.24 +Version: 1.26 Release: 0 -%define cpan_name ExtUtils-F77 Summary: Simple interface to F77 libs License: Artistic-1.0 OR GPL-1.0-or-later -Group: Development/Libraries/Perl -Url: https://metacpan.org/release/%{cpan_name} -Source0: https://cpan.metacpan.org/authors/id/K/KG/KGB/%{cpan_name}-%{version}.tar.gz +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/E/ET/ETJ/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(File::Which) @@ -44,7 +42,7 @@ runtime libraries. The problem is their location and name varies with each OS/compiler combination! It was originally developed to make building and installation of the PGPLOT module easier, which links to the pgplot Fortran -graphics library. It is now used by a numnber of perl modules. +graphics library. It is now used by a number of perl modules. This module tries to implement a simple 'rule-of-thumb' database for various flavours of UNIX systems. A simple self-documenting Perl database @@ -58,19 +56,25 @@ usage) and then find the appropriate link libraries automatically. (This is the 'Generic' 'GNU' database entry in the code.) +The target compiler can be explicitly overriden by setting the environment +variable F77, e.g. + + % setenv F77 "x86_64-pc-linux-gnu-gfortran" + % perl -MExtUtils::F77 -e 'print ExtUtils::F77->compiler, "\n"' + The library list which the module returns can be explicitly overridden by setting the environment variable F77LIBS, e.g. % setenv F77LIBS "-lfoo -lbar" - % perl -MExtUtils::F77 -e 'print ExtUtils::F77->compiler, "\n"' + % perl -MExtUtils::F77 -e 'print ExtUtils::F77->runtime, "\n"' ... %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{version} %build perl Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} +%make_build %check make test @@ -81,7 +85,6 @@ %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) %doc CHANGES README %license COPYING ++++++ ExtUtils-F77-1.24.tar.gz -> ExtUtils-F77-1.26.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ExtUtils-F77-1.24/CHANGES new/ExtUtils-F77-1.26/CHANGES --- old/ExtUtils-F77-1.24/CHANGES 2019-07-21 06:46:04.000000000 +0200 +++ new/ExtUtils-F77-1.26/CHANGES 2021-02-16 02:01:01.000000000 +0100 @@ -1,8 +1,15 @@ -ExtUtils::F77 Changes list --------------------------- +1.26 2021-02-16 +- Parse fortran compilers with complicated names - thanks @d-lamb +- Get compiler from %ENV - thanks @d-lamb + +v1.25 released Jan 27th 2020 +--------------------------- + +* Fix of version number comparison in F77.pm link_gnufortran_compiler routine v1.24 released Jul 21st 2019 ---------------------------- +--------------------------- + * Fix of library order of -lgfortran and -lquadmath which effected MS Windows v1.23 released Jan 5th 2019 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ExtUtils-F77-1.24/F77.pm new/ExtUtils-F77-1.26/F77.pm --- old/ExtUtils-F77-1.24/F77.pm 2019-07-21 06:43:50.000000000 +0200 +++ new/ExtUtils-F77-1.26/F77.pm 2021-02-16 02:01:07.000000000 +0100 @@ -8,7 +8,7 @@ use File::Which qw(which); use List::Util qw(first); -our $VERSION = "1.24"; +our $VERSION = "1.26"; our $DEBUG; sub debug { return if !$DEBUG; warn @_ } @@ -63,6 +63,10 @@ $fallback_compiler = 'G77'; } +$gcc = $ENV{CC} if $ENV{CC}; +$gfortran = $ENV{F77} if $ENV{F77}; +$fallback_compiler = $ENV{F77} if $ENV{F77}; + ############## End of Win32 Specific ############## # Database starts here. Basically we have a large hash specifying @@ -129,7 +133,7 @@ gfortran_make_linkline($dir, "gfortran", "/usr/local/lib", "", '-lquadmath'); }; $F77config{MinGW}{GFortran}{Trail_} = 1; -$F77config{MinGW}{GFortran}{Compiler} = "$gfortran"; +$F77config{MinGW}{GFortran}{Compiler} = $gfortran; $F77config{MinGW}{GFortran}{Cflags} = '-O'; ### SunOS (use this as a template for new entries) ### @@ -236,8 +240,8 @@ $F77config{Generic}{GNU}{Trail_} = 1; $F77config{Generic}{GNU}{Cflags} = ' '; # <---need this space! -$F77config{Generic}{GNU}{Link} = link_gnufortran_compiler('gfortran', 'g77', 'g95', 'fort77'); -$F77config{Generic}{GNU}{Compiler} = find_in_path("$gfortran", 'g77', 'g95','fort77'); +$F77config{Generic}{GNU}{Link} = link_gnufortran_compiler($gfortran, 'g77', 'g95', 'fort77'); +$F77config{Generic}{GNU}{Compiler} = find_in_path($gfortran, 'g77', 'g95','fort77'); $F77config{Generic}{DEFAULT} = 'GNU'; @@ -246,7 +250,7 @@ $F77config{Cygwin}{GNU}{Trail_} = 1; $F77config{Cygwin}{GNU}{Cflags} = '-O'; # <---need this space! $F77config{Cygwin}{GNU}{Link} = link_gnufortran_compiler('g77', 'gfortran', 'g95', 'fort77'); -$F77config{Cygwin}{GNU}{Compiler} = find_in_path('g77', "$gfortran", 'g95','fort77'); +$F77config{Cygwin}{GNU}{Compiler} = find_in_path('g77', $gfortran, 'g95','fort77'); $F77config{Cygwin}{DEFAULT} = 'GNU'; @@ -314,7 +318,7 @@ $libs = "-L/usr/lib -lF77 -lI77 -lU77 -lisam -lm"; } $F77config{Irix}{F77}{Cflags} = "$abi $mips"; - $F77config{Irix}{F77}{Link} = "$libs"; + $F77config{Irix}{F77}{Link} = $libs; $F77config{Irix}{F77}{Trail_} = 1; $F77config{Irix}{F77}{Compiler} = "f77 $abi"; @@ -331,7 +335,7 @@ ### FreeBSD ### if($^O =~ /Freebsd/i) { - $gfortran = 'gfortran48'; # requires rewrite + $gfortran = 'gfortran'; $fallback_compiler = 'G77'; } @@ -348,7 +352,7 @@ gfortran_make_linkline($dir, "gfortran", "/usr/local/lib", ""); }; $F77config{Freebsd}{GFortran}{Trail_} = 1; -$F77config{Freebsd}{GFortran}{Compiler} = "$gfortran"; +$F77config{Freebsd}{GFortran}{Compiler} = $gfortran; $F77config{Freebsd}{GFortran}{Cflags} = '-O2'; $F77config{Freebsd}{DEFAULT} = 'GFortran'; @@ -424,7 +428,7 @@ # If it doesn't work try Generic + GNU77 - unless (("$Runtime" ne "-LSNAFU -lwontwork") && $ok) { + unless (($Runtime ne "-LSNAFU -lwontwork") && $ok) { $system = $Config{cc} =~ /\bgcc/ && $^O =~ /MSWin32/i ? "MinGW" : $^O =~ /Freebsd/i ? "Freebsd" @@ -568,6 +572,7 @@ print OUT " end\n"; close(OUT); debug "Compiling the test Fortran program...\n"; + debug "Command: $Compiler $Cflags $file.f -o ${file}_exe"; system "$Compiler $Cflags $file.f -o ${file}_exe"; debug "Executing the test program...\n"; if (`${file}_exe` ne " Hello World\n") { @@ -592,7 +597,7 @@ sub gcclibs { my $flibs = shift; # Fortran libs - my $isgcc = $Config{'cc'} eq "$gcc"; + my $isgcc = $Config{'cc'} eq $gcc; if (!$isgcc && $^O ne 'VMS') { debug "Checking for gcc in disguise:\n"; $isgcc = 1 if $Config{gccversion}; @@ -635,18 +640,23 @@ my @try = @_; my $compiler = find_in_path( @try ); return () unless defined $compiler; + # Get compiler "family" + $compiler=~/(g77|f77|fort77|gfortran|g95)/; + my $comp_fam = $1; + debug "ExtUtils::F77: compiler family is $comp_fam\n"; # Get compiler version number - my @t =`$compiler --version`; $t[0] =~ /(\d+).(\d)+.(\d+)/; + my @t =`$compiler --version`; $t[0] =~ /(\d+)\.(\d+)\.(\d+)/; my $version = "$1.$2"; # Major version number debug "ExtUtils::F77: $compiler version $version.$3\n"; # Sigh special case random extra gfortran libs to avoid PERL_DL_NONLAZY meltdowns. KG 25/10/2015 my $append = ""; - if ( $Config{osname} =~ /darwin/ && $Config{osvers} >= 14 - && $compiler eq 'gfortran' && $version >= 4.9 ) { + my $osvers = (split(/\./,$Config{osvers}))[0]; # Extract first digit in X.Y.Z version numbers + if ( $Config{osname} =~ /darwin/ && $osvers >= 14 + && $comp_fam eq 'gfortran' && $version >= 4.9 ) { # Add extra libs for gfortran versions >= 4.9 and OS X $append = "-lgcc_ext.10.5 -lgcc_s.10.5 -lquadmath"; } - my @libs = @{$COMPLIBS{$compiler}}; + my @libs = @{$COMPLIBS{$comp_fam}}; my ($dir, $lib, $test); foreach $test (@libs) { $dir = gfortran_find_libdir($compiler, $test); @@ -670,7 +680,7 @@ of Fortran runtime libraries. The problem is their location and name varies with each OS/compiler combination! It was originally developed to make building and installation of the L<PGPLOT> module easier, -which links to the pgplot Fortran graphics library. It is now used by a numnber +which links to the pgplot Fortran graphics library. It is now used by a number of perl modules. This module tries to implement a simple @@ -686,12 +696,18 @@ the appropriate link libraries automatically. (This is the 'Generic' 'GNU' database entry in the code.) +The target compiler can be explicitly overriden by setting the +environment variable F77, e.g. + + % setenv F77 "x86_64-pc-linux-gnu-gfortran" + % perl -MExtUtils::F77 -e 'print ExtUtils::F77->compiler, "\n"' + The library list which the module returns can be explicitly overridden by setting the environment variable F77LIBS, e.g. % setenv F77LIBS "-lfoo -lbar" - % perl -MExtUtils::F77 -e 'print ExtUtils::F77->compiler, "\n"' + % perl -MExtUtils::F77 -e 'print ExtUtils::F77->runtime, "\n"' ... =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ExtUtils-F77-1.24/META.json new/ExtUtils-F77-1.26/META.json --- old/ExtUtils-F77-1.24/META.json 2019-07-21 06:52:54.000000000 +0200 +++ new/ExtUtils-F77-1.26/META.json 2021-02-16 02:02:04.000000000 +0100 @@ -4,13 +4,13 @@ "Karl Glazebrook <karl_pgp...@mac.com>" ], "dynamic_config" : 0, - "generated_by" : "ExtUtils::MakeMaker version 6.66, CPAN::Meta::Converter version 2.133380", + "generated_by" : "ExtUtils::MakeMaker version 7.44, CPAN::Meta::Converter version 2.150010", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", - "version" : "2" + "version" : 2 }, "name" : "ExtUtils-F77", "no_index" : { @@ -19,6 +19,30 @@ "inc" ] }, + "prereqs" : { + "build" : { + "requires" : { + "ExtUtils::MakeMaker" : "0" + } + }, + "configure" : { + "requires" : { + "ExtUtils::MakeMaker" : "0" + } + }, + "develop" : { + "requires" : { + "CPAN::Changes" : "0" + } + }, + "runtime" : { + "requires" : { + "File::Which" : "0", + "List::Util" : "0", + "Text::ParseWords" : "0" + } + } + }, "release_status" : "stable", "resources" : { "bugtracker" : { @@ -31,5 +55,6 @@ }, "x_IRC" : "irc://irc.perl.org/#pdl" }, - "version" : "1.24" + "version" : "1.26", + "x_serialization_backend" : "JSON::PP version 4.04" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ExtUtils-F77-1.24/META.yml new/ExtUtils-F77-1.26/META.yml --- old/ExtUtils-F77-1.24/META.yml 2019-07-21 06:52:54.000000000 +0200 +++ new/ExtUtils-F77-1.26/META.yml 2021-02-16 02:02:04.000000000 +0100 @@ -2,20 +2,28 @@ abstract: 'a simple interface to F77 libs' author: - 'Karl Glazebrook <karl_pgp...@mac.com>' -build_requires: {} +build_requires: + ExtUtils::MakeMaker: '0' +configure_requires: + ExtUtils::MakeMaker: '0' dynamic_config: 0 -generated_by: 'ExtUtils::MakeMaker version 6.66, CPAN::Meta::Converter version 2.133380' +generated_by: 'ExtUtils::MakeMaker version 7.44, CPAN::Meta::Converter version 2.150010' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html - version: 1.4 + version: '1.4' name: ExtUtils-F77 no_index: directory: - t - inc +requires: + File::Which: '0' + List::Util: '0' + Text::ParseWords: '0' resources: IRC: irc://irc.perl.org/#pdl bugtracker: https://github.com/PDLPorters/extutils-f77/issues repository: git://github.com/PDLPorters/extutils-f77.git -version: 1.24 +version: '1.26' +x_serialization_backend: 'CPAN::Meta::YAML version 0.018' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ExtUtils-F77-1.24/Makefile.PL new/ExtUtils-F77-1.26/Makefile.PL --- old/ExtUtils-F77-1.24/Makefile.PL 2019-07-21 06:31:30.000000000 +0200 +++ new/ExtUtils-F77-1.26/Makefile.PL 2021-02-15 22:49:03.000000000 +0100 @@ -22,5 +22,12 @@ }, x_IRC => 'irc://irc.perl.org/#pdl', }, + prereqs => { + develop => { + requires => { + 'CPAN::Changes' => '0', + }, + }, + }, }, );