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 2023-12-09 22:53:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-ExtUtils-CppGuess (Old)
and /work/SRC/openSUSE:Factory/.perl-ExtUtils-CppGuess.new.25432 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-ExtUtils-CppGuess"
Sat Dec 9 22:53:57 2023 rev:12 rq:1132227 version:0.270.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-ExtUtils-CppGuess/perl-ExtUtils-CppGuess.changes 2022-04-28 23:07:53.124682094 +0200
+++ /work/SRC/openSUSE:Factory/.perl-ExtUtils-CppGuess.new.25432/perl-ExtUtils-CppGuess.changes 2023-12-09 22:57:43.305455621 +0100
@@ -1,0 +2,9 @@
+Mon Nov 20 03:06:19 UTC 2023 - Tina Müller
+
+- updated to 0.27
+ see /usr/share/doc/packages/perl-ExtUtils-CppGuess/Changes
+
+ 0.27 2023-11-19
+ - support C++20 and C++23 standards, and vendored version output - thanks @tonycoz
+
+-------------------------------------------------------------------
Old:
----
ExtUtils-CppGuess-0.26.tar.gz
New:
----
ExtUtils-CppGuess-0.27.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-ExtUtils-CppGuess.spec ++++++
--- /var/tmp/diff_new_pack.bP82s5/_old 2023-12-09 22:57:43.877476613 +0100
+++ /var/tmp/diff_new_pack.bP82s5/_new 2023-12-09 22:57:43.877476613 +0100
@@ -1,7 +1,7 @@
#
# spec file for package perl-ExtUtils-CppGuess
#
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,12 +18,13 @@
%define cpan_name ExtUtils-CppGuess
Name: perl-ExtUtils-CppGuess
-Version: 0.26
+Version: 0.270.0
Release: 0
+%define cpan_version 0.27
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
+Source0: https://cpan.metacpan.org/authors/id/E/ET/ETJ/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
BuildRequires: perl
BuildRequires: perl-macros
@@ -34,6 +35,8 @@
BuildRequires: perl(Test::More) >= 0.88
Requires: perl(Capture::Tiny)
Requires: perl(ExtUtils::ParseXS) >= 3.35
+Provides: perl(ExtUtils::CppGuess) = %{version}
+%define __perllib_provides /bin/true
%{perl_requires}
# MANUAL BEGIN
BuildRequires: gcc-c++
@@ -47,7 +50,7 @@
to ExtUtils::MakeMaker's 'WriteMakefile' function.
%prep
-%autosetup -n %{cpan_name}-%{version}
+%autosetup -n %{cpan_name}-%{cpan_version}
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
++++++ ExtUtils-CppGuess-0.26.tar.gz -> ExtUtils-CppGuess-0.27.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ExtUtils-CppGuess-0.26/Changes new/ExtUtils-CppGuess-0.27/Changes
--- old/ExtUtils-CppGuess-0.26/Changes 2022-04-21 11:59:49.000000000 +0200
+++ new/ExtUtils-CppGuess-0.27/Changes 2023-11-19 20:20:10.000000000 +0100
@@ -1,3 +1,6 @@
+0.27 2023-11-19
+- support C++20 and C++23 standards, and vendored version output - thanks @tonycoz
+
0.26 2022-04-21
- fix test-failure caused if CXX is set - thanks @hroncok for report
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ExtUtils-CppGuess-0.26/META.json new/ExtUtils-CppGuess-0.27/META.json
--- old/ExtUtils-CppGuess-0.26/META.json 2022-04-21 12:00:17.000000000 +0200
+++ new/ExtUtils-CppGuess-0.27/META.json 2023-11-19 20:21:02.000000000 +0100
@@ -63,6 +63,6 @@
"web" : "https://github.com/tsee/extutils-cppguess"
}
},
- "version" : "0.26",
+ "version" : "0.27",
"x_serialization_backend" : "JSON::PP version 4.04"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ExtUtils-CppGuess-0.26/META.yml new/ExtUtils-CppGuess-0.27/META.yml
--- old/ExtUtils-CppGuess-0.26/META.yml 2022-04-21 12:00:16.000000000 +0200
+++ new/ExtUtils-CppGuess-0.27/META.yml 2023-11-19 20:21:02.000000000 +0100
@@ -33,5 +33,5 @@
resources:
bugtracker: https://github.com/tsee/extutils-cppguess/issues
repository: git://github.com/tsee/extutils-cppguess
-version: '0.26'
+version: '0.27'
x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ExtUtils-CppGuess-0.26/lib/ExtUtils/CppGuess.pm new/ExtUtils-CppGuess-0.27/lib/ExtUtils/CppGuess.pm
--- old/ExtUtils-CppGuess-0.26/lib/ExtUtils/CppGuess.pm 2022-04-21 11:59:55.000000000 +0200
+++ new/ExtUtils-CppGuess-0.27/lib/ExtUtils/CppGuess.pm 2023-11-19 20:19:51.000000000 +0100
@@ -171,6 +171,10 @@
=item * C<< C++17 >>
+=item * C<< C++20 >>
+
+=item * C<< C++23 >>
+
=back
returns a string with a flag that can be used to tell the compiler to support
@@ -201,7 +205,7 @@
use File::Spec::Functions qw(catfile);
use File::Temp qw(tempdir);
-our $VERSION = '0.26';
+our $VERSION = '0.27';
sub new {
my( $class, %args ) = @_;
@@ -405,7 +409,7 @@
$self->{is_clang} = 0;
my $cc_version = _capture( "$cc --version" );
if (
- $cc_version =~ m/\A(?:clang|apple llvm)/i
+ $cc_version =~ m/\A(?:(?:\S+ )?clang version|apple llvm)/i
|| $cc eq 'clang' # because why would they lie?
|| (($self->_config->{gccversion} || '') =~ /Clang|Apple LLVM/),
) {
@@ -565,12 +569,16 @@
'C++11' => [ "-std=c++11", "-std=c++0x" ],
'C++14' => [ "-std=c++14", "-std=c++1y" ],
'C++17' => [ "-std=c++17", "-std=c++1z" ],
+ 'C++20' => [ "-std=c++20", "-std=c++2a" ],
+ 'C++23' => [ "-std=c++23", "-std=c++2b" ],
},
is_clang => {
'C++98' => [ "-std=c++98", ],
'C++11' => [ "-std=c++11", ],
'C++14' => [ "-std=c++14", "-std=c++1y" ],
'C++17' => [ "-std=c++17", "-std=c++1z" ],
+ 'C++20' => [ "-std=c++20", "-std=c++2a" ],
+ 'C++23' => [ "-std=c++23", "-std=c++2b" ],
},
is_msvc => {
# Newer MSVC set C++14 as minimum version.
@@ -578,6 +586,8 @@
'C++11' => [ "" ],
'C++14' => [ "-std:c++14" ],
'C++17' => [ "-std:c++17" ],
+ 'C++20' => [ "-std:c++20" ],
+ # no C++23 specific option as of Visual Studio 2020 17.3
},
is_sunstudio => {
'C++98' => [ "" ],
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ExtUtils-CppGuess-0.26/t/002_icpp.t new/ExtUtils-CppGuess-0.27/t/002_icpp.t
--- old/ExtUtils-CppGuess-0.26/t/002_icpp.t 2022-04-21 11:00:43.000000000 +0200
+++ new/ExtUtils-CppGuess-0.27/t/002_icpp.t 2023-11-19 20:11:06.000000000 +0100
@@ -95,6 +95,61 @@
run_test(@$_) for @DATA;
+# mock some compiler output
+my $old_capture = \&ExtUtils::CppGuess::_capture;
+our $CAPTURES;
+{
+ no warnings "redefine";
+ *ExtUtils::CppGuess::_capture =
+ sub {
+ my @cmd = @_;
+ if (my $result = $CAPTURES->{"@cmd"}) {
+ note "Mocking output of @cmd: $result";
+ return $result;
+ }
+ goto &$old_capture;
+ };
+}
+my @CAPS =
+ (
+ [
+ { cc => "cc", config => { ccflags => '' } },
+ {
+ is_sunstudio => 0,
+ is_msvc => undef, is_gcc => undef, is_clang => 1,
+ compiler_command => 'clang++ -xc++ -Wno-reserved-user-defined-literal',
+ linker_flags => '-lstdc++',
+ },
+ { "cc --version" => "OpenBSD clang version 10.0.1" },
+ ],
+ [
+ { cc => "clang-15", config => { ccflags => '' } },
+ {
+ is_sunstudio => 0,
+ is_msvc => undef, is_gcc => undef, is_clang => 1,
+ compiler_command => 'clang++ -xc++ -Wno-reserved-user-defined-literal',
+ linker_flags => '-lstdc++',
+ },
+ { "clang-15 --version" => "Debian clang version 15.0.7" },
+ ],
+ [
+ { cc => "cc", config => { ccflags => '' } },
+ {
+ is_sunstudio => 0,
+ is_msvc => undef, is_gcc => 1, is_clang => 0,
+ compiler_command => 'g++ -xc++',
+ linker_flags => '-lstdc++',
+ },
+ { "cc --version" => "cc (Debian 12.2.0-14) 12.2.0" },
+ ],
+ );
+
+for my $test (@CAPS) {
+ my ($args, $expect, $cap) = @$test;
+ local $CAPTURES = $cap;
+ run_test($args, $expect);
+}
+
done_testing;
sub run_test {