Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package perl-ExtUtils-CppGuess for
openSUSE:Factory checked in at 2022-04-28 23:07:49
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-ExtUtils-CppGuess (Old)
and /work/SRC/openSUSE:Factory/.perl-ExtUtils-CppGuess.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-ExtUtils-CppGuess"
Thu Apr 28 23:07:49 2022 rev:11 rq:973323 version:0.26
Changes:
--------
---
/work/SRC/openSUSE:Factory/perl-ExtUtils-CppGuess/perl-ExtUtils-CppGuess.changes
2021-06-02 22:12:17.808144700 +0200
+++
/work/SRC/openSUSE:Factory/.perl-ExtUtils-CppGuess.new.1538/perl-ExtUtils-CppGuess.changes
2022-04-28 23:07:53.124682094 +0200
@@ -1,0 +2,15 @@
+Fri Apr 22 03:09:00 UTC 2022 - Tina M??ller <[email protected]>
+
+- updated to 0.26
+ see /usr/share/doc/packages/perl-ExtUtils-CppGuess/Changes
+
+ 0.26 2022-04-21
+ - fix test-failure caused if CXX is set - thanks @hroncok for report
+
+ 0.25 2022-04-20
+ - ignore environment variables CXXFLAGS, CXXLDFLAGS (#26) - thanks @hroncok
for report
+
+ 0.24 2022-04-19
+ - support environment variables CXX, CXXFLAGS, CXXLDFLAGS - thanks @dpryan79
for suggestion
+
+-------------------------------------------------------------------
Old:
----
ExtUtils-CppGuess-0.23.tar.gz
New:
----
ExtUtils-CppGuess-0.26.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-ExtUtils-CppGuess.spec ++++++
--- /var/tmp/diff_new_pack.QpUwzS/_old 2022-04-28 23:07:53.696682717 +0200
+++ /var/tmp/diff_new_pack.QpUwzS/_new 2022-04-28 23:07:53.700682721 +0200
@@ -1,7 +1,7 @@
#
# spec file for package perl-ExtUtils-CppGuess
#
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,10 +18,10 @@
%define cpan_name ExtUtils-CppGuess
Name: perl-ExtUtils-CppGuess
-Version: 0.23
+Version: 0.26
Release: 0
-Summary: Guess C++ compiler and flags
License: Artistic-1.0 OR GPL-1.0-or-later
+Summary: Guess C++ compiler and flags
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
++++++ ExtUtils-CppGuess-0.23.tar.gz -> ExtUtils-CppGuess-0.26.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ExtUtils-CppGuess-0.23/Changes
new/ExtUtils-CppGuess-0.26/Changes
--- old/ExtUtils-CppGuess-0.23/Changes 2021-06-01 00:06:48.000000000 +0200
+++ new/ExtUtils-CppGuess-0.26/Changes 2022-04-21 11:59:49.000000000 +0200
@@ -1,3 +1,12 @@
+0.26 2022-04-21
+- fix test-failure caused if CXX is set - thanks @hroncok for report
+
+0.25 2022-04-20
+- ignore environment variables CXXFLAGS, CXXLDFLAGS (#26) - thanks @hroncok
for report
+
+0.24 2022-04-19
+- support environment variables CXX, CXXFLAGS, CXXLDFLAGS - thanks @dpryan79
for suggestion
+
0.23 2021-05-31
- added CI - thanks @zmughal
- now recognises MacOS clang - thanks @xenu
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ExtUtils-CppGuess-0.23/MANIFEST
new/ExtUtils-CppGuess-0.26/MANIFEST
--- old/ExtUtils-CppGuess-0.23/MANIFEST 2021-06-01 00:07:25.000000000 +0200
+++ new/ExtUtils-CppGuess-0.26/MANIFEST 2022-04-21 12:00:17.000000000 +0200
@@ -8,6 +8,7 @@
t/001_load.t
t/002_icpp.t
t/003_standard_flag.t
+t/004_env.t
t/010_module_build.t
t/011_makemaker.t
t/lib/Guess.pm
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ExtUtils-CppGuess-0.23/MANIFEST.SKIP
new/ExtUtils-CppGuess-0.26/MANIFEST.SKIP
--- old/ExtUtils-CppGuess-0.23/MANIFEST.SKIP 2021-06-01 00:05:20.000000000
+0200
+++ new/ExtUtils-CppGuess-0.26/MANIFEST.SKIP 2022-04-19 19:15:07.000000000
+0200
@@ -82,4 +82,6 @@
^t/module_build/
^t/makemaker/
+^\.github/
+
\.swp$
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ExtUtils-CppGuess-0.23/META.json
new/ExtUtils-CppGuess-0.26/META.json
--- old/ExtUtils-CppGuess-0.23/META.json 2021-06-01 00:07:25.000000000
+0200
+++ new/ExtUtils-CppGuess-0.26/META.json 2022-04-21 12:00:17.000000000
+0200
@@ -43,7 +43,6 @@
"requires" : {
"Capture::Tiny" : "0",
"Cwd" : "0",
- "Data::Dumper" : "0",
"ExtUtils::CBuilder" : "0.280231",
"ExtUtils::MakeMaker" : "0",
"ExtUtils::Manifest" : "0",
@@ -64,6 +63,6 @@
"web" : "https://github.com/tsee/extutils-cppguess"
}
},
- "version" : "0.23",
+ "version" : "0.26",
"x_serialization_backend" : "JSON::PP version 4.04"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ExtUtils-CppGuess-0.23/META.yml
new/ExtUtils-CppGuess-0.26/META.yml
--- old/ExtUtils-CppGuess-0.23/META.yml 2021-06-01 00:07:25.000000000 +0200
+++ new/ExtUtils-CppGuess-0.26/META.yml 2022-04-21 12:00:16.000000000 +0200
@@ -5,7 +5,6 @@
build_requires:
Capture::Tiny: '0'
Cwd: '0'
- Data::Dumper: '0'
ExtUtils::CBuilder: '0.280231'
ExtUtils::MakeMaker: '0'
ExtUtils::Manifest: '0'
@@ -34,5 +33,5 @@
resources:
bugtracker: https://github.com/tsee/extutils-cppguess/issues
repository: git://github.com/tsee/extutils-cppguess
-version: '0.23'
+version: '0.26'
x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ExtUtils-CppGuess-0.23/Makefile.PL
new/ExtUtils-CppGuess-0.26/Makefile.PL
--- old/ExtUtils-CppGuess-0.23/Makefile.PL 2021-06-01 00:05:20.000000000
+0200
+++ new/ExtUtils-CppGuess-0.26/Makefile.PL 2022-04-19 18:36:24.000000000
+0200
@@ -24,7 +24,6 @@
'ExtUtils::Manifest' => '0',
'Fatal' => '0',
'Cwd' => '0',
- 'Data::Dumper' => 0,
},
clean => { FILES => 't/module_build t/makemaker' },
META_MERGE => {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ExtUtils-CppGuess-0.23/lib/ExtUtils/CppGuess.pm
new/ExtUtils-CppGuess-0.26/lib/ExtUtils/CppGuess.pm
--- old/ExtUtils-CppGuess-0.23/lib/ExtUtils/CppGuess.pm 2021-06-01
00:05:41.000000000 +0200
+++ new/ExtUtils-CppGuess-0.26/lib/ExtUtils/CppGuess.pm 2022-04-21
11:59:55.000000000 +0200
@@ -39,6 +39,12 @@
constructor or to L<ExtUtils::MakeMaker>'s C<WriteMakefile>
function.
+=head1 ENVIRONMENT
+
+As of 0.24, the environment variable C<CXX>
+defines the obvious value, and will be used instead of any detection.
+Supplied arguments to L</new> will still win.
+
=head1 METHODS
=head2 new
@@ -195,14 +201,14 @@
use File::Spec::Functions qw(catfile);
use File::Temp qw(tempdir);
-our $VERSION = '0.23';
+our $VERSION = '0.26';
sub new {
my( $class, %args ) = @_;
- my $self = bless { %args }, $class;
+ my $self = bless \%args, $class;
# Allow override of default %Config::Config; useful in testing.
- if( ! exists $self->{config} || ! defined $self->{config} ) {
+ if( !defined $self->{config} ) {
if ($ExtUtils::MakeMaker::Config::VERSION) {
# tricksy hobbitses are overriding Config, go with it
$self->{config} = \%ExtUtils::MakeMaker::Config::Config;
@@ -211,30 +217,12 @@
}
}
- # Allow a 'cc' %args. If not supplied, pull from {config}, or $Config{cc}.
- if( ! exists $self->{cc} || ! defined $self->{cc} ) {
- $self->{cc}
- = exists $self->{config}{cc} && defined $self->{config}{cc}
- ? $self->{config}{cc}
- : $Config::Config{cc};
- }
-
- # Set up osname.
- if( ! exists $self->{os} || ! defined $self->{os} ) {
- $self->{os}
- = exists $self->{config}{osname} && defined $self->{config}{osname}
- ? $self->{config}{osname}
- : $^O;
+ for (['cc','cc',$Config::Config{cc}], ['os','osname',$^O],
['osvers','osvers','']) {
+ my ($key, $confkey, $fallback) = @$_;
+ next if defined $self->{$key};
+ $self->{$key} =
+ defined $self->{config}{$confkey} ? $self->{config}{$confkey} :
$fallback;
}
-
- # Set up osvers.
- if( ! exists $self->{osvers} || ! defined $self->{osvers} ) {
- $self->{osvers}
- = exists $self->{config}{osvers} && defined $self->{config}{osvers}
- ? $self->{config}{osvers}
- : '';
- }
-
return $self;
}
@@ -248,6 +236,9 @@
sub _os { shift->{os} }
sub _osvers { shift->{osvers} }
+our %ENV2VAL = (
+ CXX => 'compiler_command',
+);
# This is IBM's "how to compile on" list with lots of compilers:
#
https://www.ibm.com/support/knowledgecenter/en/SS4PJT_5.2.0/com.ibm.help.cd52.unix.doc/com.ibm.help.cdunix_user.doc/CDU_Compiling_Custom_Programs.html
sub guess_compiler {
@@ -288,7 +279,9 @@
extra_cflags => '-TP -EHsc',
extra_lflags => 'msvcprt.lib',
);
- } else {
+ }
+ $guess{$ENV2VAL{$_}} = $ENV{$_} for grep defined $ENV{$_}, keys %ENV2VAL;
+ if (!%guess) {
my $v1 = `$c_compiler -v`;
my $v2 = `$c_compiler -V`;
my $v3 = `$c_compiler --version`;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ExtUtils-CppGuess-0.23/t/001_load.t
new/ExtUtils-CppGuess-0.26/t/001_load.t
--- old/ExtUtils-CppGuess-0.23/t/001_load.t 2021-06-01 00:05:20.000000000
+0200
+++ new/ExtUtils-CppGuess-0.26/t/001_load.t 2022-04-19 18:35:56.000000000
+0200
@@ -1,6 +1,5 @@
use strict;
use warnings;
-use Data::Dumper;
use Test::More;
my $MODULE = 'ExtUtils::CppGuess';
@@ -9,15 +8,13 @@
my $guess = $MODULE->new;
isa_ok $guess, $MODULE;
-$Data::Dumper::Indent = $Data::Dumper::Sortkeys = $Data::Dumper::Terse = 1;
-
-diag 'EUMM:', Dumper { $guess->makemaker_options };
+diag 'EUMM:', explain { $guess->makemaker_options };
diag '---';
-diag 'MB:', Dumper { $guess->module_build_options };
+diag 'MB:', explain { $guess->module_build_options };
diag '---';
my $config = $guess->_config;
-diag 'Config:', Dumper {
+diag 'Config:', explain {
map { $_=>$config->{$_} } grep /cc|ld/, keys %$config
};
@@ -26,7 +23,7 @@
is_msvc is_gcc is_clang compiler_command linker_flags
iostream_fname cpp_flavor_defs
)) {
- diag "Method: $_ = ", Dumper $guess->$_;
+ diag "Method: $_ = ", explain $guess->$_;
}
done_testing;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ExtUtils-CppGuess-0.23/t/002_icpp.t
new/ExtUtils-CppGuess-0.26/t/002_icpp.t
--- old/ExtUtils-CppGuess-0.23/t/002_icpp.t 2021-06-01 00:05:20.000000000
+0200
+++ new/ExtUtils-CppGuess-0.26/t/002_icpp.t 2022-04-21 11:00:43.000000000
+0200
@@ -1,9 +1,10 @@
use strict;
use warnings;
-use Data::Dumper;
use Test::More;
use ExtUtils::CppGuess;
+delete $ENV{CXX};
+
my @DATA = (
[
{ os => 'MSWin32', cc => 'cl', config => {ccflags => ''} },
@@ -91,7 +92,6 @@
is_msvc is_gcc is_clang is_sunstudio
compiler_command linker_flags
);
-$Data::Dumper::Indent = $Data::Dumper::Sortkeys = $Data::Dumper::Terse = 1;
run_test(@$_) for @DATA;
@@ -101,5 +101,5 @@
my ($args, $expect) = @_;
my $guess = ExtUtils::CppGuess->new(%$args);
my %got = map {$_ => $guess->$_} @METHODS;
- is_deeply \%got, $expect or diag Dumper [ $args, \%got, $expect ];
+ is_deeply \%got, $expect or diag explain [ $args, \%got, $expect ];
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ExtUtils-CppGuess-0.23/t/004_env.t
new/ExtUtils-CppGuess-0.26/t/004_env.t
--- old/ExtUtils-CppGuess-0.23/t/004_env.t 1970-01-01 01:00:00.000000000
+0100
+++ new/ExtUtils-CppGuess-0.26/t/004_env.t 2022-04-20 19:48:36.000000000
+0200
@@ -0,0 +1,16 @@
+use strict;
+use warnings;
+use Test::More;
+
+@ENV{qw(CXX)} = qw(czz);
+my $MODULE = 'ExtUtils::CppGuess';
+use_ok($MODULE);
+
+my $guess = $MODULE->new;
+isa_ok $guess, $MODULE;
+
+diag 'EUMM env:', explain { $guess->makemaker_options };
+
+like $guess->compiler_command, qr/czz/;
+
+done_testing;