Hello community,

here is the log from the commit of package perl-Devel-CheckLib for 
openSUSE:Factory checked in at 2016-02-25 22:05:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Devel-CheckLib (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Devel-CheckLib.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Devel-CheckLib"

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Devel-CheckLib/perl-Devel-CheckLib.changes  
2015-09-24 06:14:44.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.perl-Devel-CheckLib.new/perl-Devel-CheckLib.changes 
    2016-02-26 00:38:20.000000000 +0100
@@ -1,0 +2,6 @@
+Sun Feb 21 09:47:59 UTC 2016 - [email protected]
+
+- updated to 1.06
+   see /usr/share/doc/packages/perl-Devel-CheckLib/CHANGES
+
+-------------------------------------------------------------------

Old:
----
  Devel-CheckLib-1.05.tar.gz

New:
----
  Devel-CheckLib-1.06.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-Devel-CheckLib.spec ++++++
--- /var/tmp/diff_new_pack.VJ9uYp/_old  2016-02-26 00:38:21.000000000 +0100
+++ /var/tmp/diff_new_pack.VJ9uYp/_new  2016-02-26 00:38:21.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-Devel-CheckLib
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
 
 
 Name:           perl-Devel-CheckLib
-Version:        1.05
+Version:        1.06
 Release:        0
 %define cpan_name Devel-CheckLib
 Summary:        Check That a Library Is Available
@@ -38,7 +38,7 @@
 
 %prep
 %setup -q -n %{cpan_name}-%{version}
-find . -type f -print0 | xargs -0 chmod 644
+find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
 
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"

++++++ Devel-CheckLib-1.05.tar.gz -> Devel-CheckLib-1.06.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Devel-CheckLib-1.05/CHANGES 
new/Devel-CheckLib-1.06/CHANGES
--- old/Devel-CheckLib-1.05/CHANGES     2015-09-16 13:20:30.000000000 +0200
+++ new/Devel-CheckLib-1.06/CHANGES     2016-02-19 17:23:31.000000000 +0100
@@ -1,6 +1,8 @@
-1.05   2015-09-16      Fix handling $PERL_MM_OPT.
+1.06    2016-02-20      Fix linking on MSVC.
 
-1.04   2015-09-16      Handle $PERL_MM_OPT.
+1.05    2015-09-16      Fix handling $PERL_MM_OPT.
+
+1.04    2015-09-16      Handle $PERL_MM_OPT.
 
 1.03    2015-01-04      Update travis.yml
                         Fix possible crash bug on windows.
@@ -12,7 +14,7 @@
 1.00    2013-07-26      Deprecate use-devel-checklib script.
 
 0.99    2013-04-02      Allow -R rpaths as libpaths used with solaris cc
-                         (see RT #81330)
+                        (see RT #81330)
 
 0.98    2012-03-17      Merge ldflags & perllibs.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Devel-CheckLib-1.05/META.json 
new/Devel-CheckLib-1.06/META.json
--- old/Devel-CheckLib-1.05/META.json   2015-09-16 13:21:40.000000000 +0200
+++ new/Devel-CheckLib-1.06/META.json   2016-02-19 17:27:16.000000000 +0100
@@ -46,5 +46,5 @@
          "url" : "http://github.com/mattn/p5-Devel-CheckLib";
       }
    },
-   "version" : "1.05"
+   "version" : "1.06"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Devel-CheckLib-1.05/META.yml 
new/Devel-CheckLib-1.06/META.yml
--- old/Devel-CheckLib-1.05/META.yml    2015-09-16 13:21:40.000000000 +0200
+++ new/Devel-CheckLib-1.06/META.yml    2016-02-19 17:27:16.000000000 +0100
@@ -25,4 +25,4 @@
   perl: 5.00405
 resources:
   repository: http://github.com/mattn/p5-Devel-CheckLib
-version: 1.05
+version: 1.06
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Devel-CheckLib-1.05/lib/Devel/CheckLib.pm 
new/Devel-CheckLib-1.06/lib/Devel/CheckLib.pm
--- old/Devel-CheckLib-1.05/lib/Devel/CheckLib.pm       2015-09-16 
13:20:18.000000000 +0200
+++ new/Devel-CheckLib-1.06/lib/Devel/CheckLib.pm       2016-02-19 
17:23:39.000000000 +0100
@@ -5,7 +5,7 @@
 use 5.00405; #postfix foreach
 use strict;
 use vars qw($VERSION @ISA @EXPORT);
-$VERSION = '1.05';
+$VERSION = '1.06';
 use Config qw(%Config);
 use Text::ParseWords 'quotewords';
 
@@ -283,7 +283,7 @@
         }
     }
 
-    my ($cc, $ld) = _findcc();
+    my ($cc, $ld) = _findcc($args{debug});
     my @missing;
     my @wrongresult;
     my @use_headers;
@@ -310,7 +310,8 @@
                 "/Fe$exefile",
                 (map { '/I'.Win32::GetShortPathName($_) } @incpaths),
                "/link",
-               @$ld
+               @$ld,
+               split(' ', $Config{libs}),
             );
         } elsif($Config{cc} =~ /bcc32(\.exe)?/) {    # Borland
             @sys_cmd = (
@@ -333,7 +334,6 @@
         my $rv = $args{debug} ? system(@sys_cmd) : _quiet_system(@sys_cmd);
         push @missing, $header if $rv != 0 || ! -x $exefile;
         _cleanup_exe($exefile);
-        unlink $ofile if -e $ofile;
         unlink $cfile;
     } 
 
@@ -363,6 +363,7 @@
                 (map { '/I'.Win32::GetShortPathName($_) } @incpaths),
                 "/link",
                 @$ld,
+                split(' ', $Config{libs}),
                 (map {'/libpath:'.Win32::GetShortPathName($_)} @libpaths),
             );
         } elsif($Config{cc} eq 'CC/DECC') {          # VMS
@@ -393,7 +394,6 @@
         my $absexefile = File::Spec->rel2abs($exefile);
         $absexefile = '"'.$absexefile.'"' if $absexefile =~ m/\s/;
         push @wrongresult, $lib if $rv == 0 && -x $exefile && 
system($absexefile) != 0;
-        unlink $ofile if -e $ofile;
         _cleanup_exe($exefile);
     } 
     unlink $cfile;
@@ -408,17 +408,21 @@
     my ($exefile) = @_;
     my $ofile = $exefile;
     $ofile =~ s/$Config{_exe}$/$Config{_o}/;
-    unlink $exefile if -f $exefile;
-    unlink $ofile if -f $ofile;
-    unlink "$exefile\.manifest" if -f "$exefile\.manifest";
+    # List of files to remove
+    my @rmfiles;
+    push @rmfiles, $exefile, $ofile, "$exefile\.manifest";
     if ( $Config{cc} eq 'cl' ) {
         # MSVC also creates foo.ilk and foo.pdb
         my $ilkfile = $exefile;
         $ilkfile =~ s/$Config{_exe}$/.ilk/;
         my $pdbfile = $exefile;
         $pdbfile =~ s/$Config{_exe}$/.pdb/;
-        unlink $ilkfile if -f $ilkfile;
-        unlink $pdbfile if -f $pdbfile;
+       push @rmfiles, $ilkfile, $pdbfile;
+    }
+    foreach (@rmfiles) {
+       if ( -f $_ ) {
+           unlink $_ or warn "Could not remove $_: $!";
+       }
     }
     return
 }
@@ -427,6 +431,7 @@
 # where $cc is an array ref of compiler name, compiler flags
 # where $ld is an array ref of linker flags
 sub _findcc {
+    my ($debug) = @_;
     # Need to use $keep=1 to work with MSWin32 backslashes and quotes
     my $Config_ccflags =  $Config{ccflags};  # use copy so ASPerl will compile
     my @Config_ldflags = ();
@@ -437,19 +442,43 @@
     my @ldflags = grep { length } quotewords('\s+', 1, @Config_ldflags);
     my @paths = split(/$Config{path_sep}/, $ENV{PATH});
     my @cc = split(/\s+/, $Config{cc});
-    return ( [ @cc, @ccflags ], \@ldflags ) if -x $cc[0];
+    if (check_compiler ($cc[0], $debug)) {
+       return ( [ @cc, @ccflags ], \@ldflags );
+    }
+    # Find the extension for executables.
+    my $exe = $Config{_exe};
+    if ($^O eq 'cygwin') {
+       $exe = '';
+    }
     foreach my $path (@paths) {
-        my $compiler = File::Spec->catfile($path, $cc[0]) . ($^O eq 'cygwin' ? 
'' : $Config{_exe});
-        return ([ $compiler, @cc[1 .. $#cc], @ccflags ], \@ldflags)
-            if -x $compiler;
-        next if ! length $Config{_exe};
+       # Look for "$path/$cc[0].exe"
+        my $compiler = File::Spec->catfile($path, $cc[0]) . $exe;
+       if (check_compiler ($compiler, $debug)) {
+           return ([ $compiler, @cc[1 .. $#cc], @ccflags ], \@ldflags)
+       }
+        next if ! $exe;
+       # Look for "$path/$cc[0]" without the .exe, if necessary.
         $compiler = File::Spec->catfile($path, $cc[0]);
-        return ([ $compiler, @cc[1 .. $#cc], @ccflags ], \@ldflags)
-            if -x $compiler;
+       if (check_compiler ($compiler, $debug)) {
+           return ([ $compiler, @cc[1 .. $#cc], @ccflags ], \@ldflags)
+       }
     }
-    die("Couldn't find your C compiler\n");
+    die("Couldn't find your C compiler.\n");
 }
 
+sub check_compiler
+{
+    my ($compiler, $debug) = @_;
+    if (-f $compiler && -x $compiler) {
+       if ($debug) {
+           warn("# Compiler seems to be $compiler\n");
+       }
+       return 1;
+    }
+    return '';
+}
+
+
 # code substantially borrowed from IPC::Run3
 sub _quiet_system {
     my (@cmd) = @_;


Reply via email to