Hello community, here is the log from the commit of package perl-Data-Dumper-Concise for openSUSE:Factory checked in at 2014-03-09 18:35:23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Data-Dumper-Concise (Old) and /work/SRC/openSUSE:Factory/.perl-Data-Dumper-Concise.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Data-Dumper-Concise" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Data-Dumper-Concise/perl-Data-Dumper-Concise.changes 2012-01-04 07:26:24.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.perl-Data-Dumper-Concise.new/perl-Data-Dumper-Concise.changes 2014-03-09 18:35:24.000000000 +0100 @@ -1,0 +2,7 @@ +Fri Mar 7 09:01:10 UTC 2014 - co...@suse.com + +- updated to 2.021 + - Make Dwarn output all arguments even in scalar context + (retun val is still the same though) + +------------------------------------------------------------------- Old: ---- Data-Dumper-Concise-2.020.tar.gz New: ---- Data-Dumper-Concise-2.021.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Data-Dumper-Concise.spec ++++++ --- /var/tmp/diff_new_pack.S0nAj9/_old 2014-03-09 18:35:24.000000000 +0100 +++ /var/tmp/diff_new_pack.S0nAj9/_new 2014-03-09 18:35:24.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package perl-Data-Dumper-Concise # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products 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-Data-Dumper-Concise -Version: 2.020 +Version: 2.021 Release: 0 %define cpan_name Data-Dumper-Concise Summary: Less indentation and newlines plus sub deparsing @@ -29,17 +29,6 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros -#BuildRequires: perl(Data::Dumper::Concise) -#BuildRequires: perl(Data::Dumper::Concise::Sugar) -#BuildRequires: perl(Devel::ArgNames) -#BuildRequires: perl(Devel::Dwarn) -#BuildRequires: perl(inc::Module::Install) >= 0.91 -#BuildRequires: perl(JSON) -#BuildRequires: perl(LWP::Simple) -#BuildRequires: perl(Module::Build) -#BuildRequires: perl(Module::Install::Base) -#BuildRequires: perl(Parse::CPAN::Meta) -#BuildRequires: perl(YAML::Tiny) %{perl_requires} %description ++++++ Data-Dumper-Concise-2.020.tar.gz -> Data-Dumper-Concise-2.021.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-Dumper-Concise-2.020/Changes new/Data-Dumper-Concise-2.021/Changes --- old/Data-Dumper-Concise-2.020/Changes 2011-01-20 19:46:55.000000000 +0100 +++ new/Data-Dumper-Concise-2.021/Changes 2014-01-01 01:56:43.000000000 +0100 @@ -1,3 +1,7 @@ +2.021 Dec 31 2013 + - Make Dwarn output all arguments even in scalar context + (retun val is still the same though) + 2.020 Jan 20 2011 - Add DumperObject for getting at the underlying obj - create DwarnF for formatting Dumper'd output diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-Dumper-Concise-2.020/META.yml new/Data-Dumper-Concise-2.021/META.yml --- old/Data-Dumper-Concise-2.020/META.yml 2011-01-20 19:47:07.000000000 +0100 +++ new/Data-Dumper-Concise-2.021/META.yml 2014-01-01 01:58:03.000000000 +0100 @@ -3,11 +3,12 @@ author: - 'mst - Matt S. Trout <m...@shadowcat.co.uk>' build_requires: - ExtUtils::MakeMaker: 6.42 + ExtUtils::MakeMaker: 6.59 configure_requires: - ExtUtils::MakeMaker: 6.42 + ExtUtils::MakeMaker: 6.59 distribution_type: module -generated_by: 'Module::Install version 1.00' +dynamic_config: 1 +generated_by: 'Module::Install version 1.06' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -22,4 +23,4 @@ perl: 5.6.0 resources: license: http://dev.perl.org/licenses/ -version: 2.020 +version: 2.021 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-Dumper-Concise-2.020/inc/Module/Install/Base.pm new/Data-Dumper-Concise-2.021/inc/Module/Install/Base.pm --- old/Data-Dumper-Concise-2.020/inc/Module/Install/Base.pm 2011-01-20 19:47:06.000000000 +0100 +++ new/Data-Dumper-Concise-2.021/inc/Module/Install/Base.pm 2014-01-01 01:58:03.000000000 +0100 @@ -4,7 +4,7 @@ use strict 'vars'; use vars qw{$VERSION}; BEGIN { - $VERSION = '1.00'; + $VERSION = '1.06'; } # Suspend handler for "redefined" warnings diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-Dumper-Concise-2.020/inc/Module/Install/Can.pm new/Data-Dumper-Concise-2.021/inc/Module/Install/Can.pm --- old/Data-Dumper-Concise-2.020/inc/Module/Install/Can.pm 2011-01-20 19:47:06.000000000 +0100 +++ new/Data-Dumper-Concise-2.021/inc/Module/Install/Can.pm 2014-01-01 01:58:03.000000000 +0100 @@ -3,13 +3,12 @@ use strict; use Config (); -use File::Spec (); use ExtUtils::MakeMaker (); use Module::Install::Base (); use vars qw{$VERSION @ISA $ISCORE}; BEGIN { - $VERSION = '1.00'; + $VERSION = '1.06'; @ISA = 'Module::Install::Base'; $ISCORE = 1; } @@ -29,7 +28,7 @@ eval { require $mod; $pkg->VERSION($ver || 0); 1 }; } -# check if we can run some command +# Check if we can run some command sub can_run { my ($self, $cmd) = @_; @@ -38,14 +37,88 @@ for my $dir ((split /$Config::Config{path_sep}/, $ENV{PATH}), '.') { next if $dir eq ''; - my $abs = File::Spec->catfile($dir, $_[1]); + require File::Spec; + my $abs = File::Spec->catfile($dir, $cmd); return $abs if (-x $abs or $abs = MM->maybe_command($abs)); } return; } -# can we locate a (the) C compiler +# Can our C compiler environment build XS files +sub can_xs { + my $self = shift; + + # Ensure we have the CBuilder module + $self->configure_requires( 'ExtUtils::CBuilder' => 0.27 ); + + # Do we have the configure_requires checker? + local $@; + eval "require ExtUtils::CBuilder;"; + if ( $@ ) { + # They don't obey configure_requires, so it is + # someone old and delicate. Try to avoid hurting + # them by falling back to an older simpler test. + return $self->can_cc(); + } + + # Do we have a working C compiler + my $builder = ExtUtils::CBuilder->new( + quiet => 1, + ); + unless ( $builder->have_compiler ) { + # No working C compiler + return 0; + } + + # Write a C file representative of what XS becomes + require File::Temp; + my ( $FH, $tmpfile ) = File::Temp::tempfile( + "compilexs-XXXXX", + SUFFIX => '.c', + ); + binmode $FH; + print $FH <<'END_C'; +#include "EXTERN.h" +#include "perl.h" +#include "XSUB.h" + +int main(int argc, char **argv) { + return 0; +} + +int boot_sanexs() { + return 1; +} + +END_C + close $FH; + + # Can the C compiler access the same headers XS does + my @libs = (); + my $object = undef; + eval { + local $^W = 0; + $object = $builder->compile( + source => $tmpfile, + ); + @libs = $builder->link( + objects => $object, + module_name => 'sanexs', + ); + }; + my $result = $@ ? 0 : 1; + + # Clean up all the build files + foreach ( $tmpfile, $object, @libs ) { + next unless defined $_; + 1 while unlink; + } + + return $result; +} + +# Can we locate a (the) C compiler sub can_cc { my $self = shift; my @chunks = split(/ /, $Config::Config{cc}) or return; @@ -78,4 +151,4 @@ __END__ -#line 156 +#line 236 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-Dumper-Concise-2.020/inc/Module/Install/Fetch.pm new/Data-Dumper-Concise-2.021/inc/Module/Install/Fetch.pm --- old/Data-Dumper-Concise-2.020/inc/Module/Install/Fetch.pm 2011-01-20 19:47:06.000000000 +0100 +++ new/Data-Dumper-Concise-2.021/inc/Module/Install/Fetch.pm 2014-01-01 01:58:03.000000000 +0100 @@ -6,7 +6,7 @@ use vars qw{$VERSION @ISA $ISCORE}; BEGIN { - $VERSION = '1.00'; + $VERSION = '1.06'; @ISA = 'Module::Install::Base'; $ISCORE = 1; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-Dumper-Concise-2.020/inc/Module/Install/Makefile.pm new/Data-Dumper-Concise-2.021/inc/Module/Install/Makefile.pm --- old/Data-Dumper-Concise-2.020/inc/Module/Install/Makefile.pm 2011-01-20 19:47:06.000000000 +0100 +++ new/Data-Dumper-Concise-2.021/inc/Module/Install/Makefile.pm 2014-01-01 01:58:03.000000000 +0100 @@ -8,7 +8,7 @@ use vars qw{$VERSION @ISA $ISCORE}; BEGIN { - $VERSION = '1.00'; + $VERSION = '1.06'; @ISA = 'Module::Install::Base'; $ISCORE = 1; } @@ -215,18 +215,22 @@ require ExtUtils::MakeMaker; if ( $perl_version and $self->_cmp($perl_version, '5.006') >= 0 ) { - # MakeMaker can complain about module versions that include - # an underscore, even though its own version may contain one! - # Hence the funny regexp to get rid of it. See RT #35800 - # for details. - my $v = $ExtUtils::MakeMaker::VERSION =~ /^(\d+\.\d+)/; - $self->build_requires( 'ExtUtils::MakeMaker' => $v ); - $self->configure_requires( 'ExtUtils::MakeMaker' => $v ); + # This previous attempted to inherit the version of + # ExtUtils::MakeMaker in use by the module author, but this + # was found to be untenable as some authors build releases + # using future dev versions of EU:MM that nobody else has. + # Instead, #toolchain suggests we use 6.59 which is the most + # stable version on CPAN at time of writing and is, to quote + # ribasushi, "not terminally fucked, > and tested enough". + # TODO: We will now need to maintain this over time to push + # the version up as new versions are released. + $self->build_requires( 'ExtUtils::MakeMaker' => 6.59 ); + $self->configure_requires( 'ExtUtils::MakeMaker' => 6.59 ); } else { # Allow legacy-compatibility with 5.005 by depending on the # most recent EU:MM that supported 5.005. - $self->build_requires( 'ExtUtils::MakeMaker' => 6.42 ); - $self->configure_requires( 'ExtUtils::MakeMaker' => 6.42 ); + $self->build_requires( 'ExtUtils::MakeMaker' => 6.36 ); + $self->configure_requires( 'ExtUtils::MakeMaker' => 6.36 ); } # Generate the MakeMaker params @@ -241,7 +245,6 @@ 'all_from' if you prefer) in Makefile.PL. EOT - $DB::single = 1; if ( $self->tests ) { my @tests = split ' ', $self->tests; my %seen; @@ -412,4 +415,4 @@ __END__ -#line 541 +#line 544 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-Dumper-Concise-2.020/inc/Module/Install/Metadata.pm new/Data-Dumper-Concise-2.021/inc/Module/Install/Metadata.pm --- old/Data-Dumper-Concise-2.020/inc/Module/Install/Metadata.pm 2011-01-20 19:47:06.000000000 +0100 +++ new/Data-Dumper-Concise-2.021/inc/Module/Install/Metadata.pm 2014-01-01 01:58:03.000000000 +0100 @@ -6,7 +6,7 @@ use vars qw{$VERSION @ISA $ISCORE}; BEGIN { - $VERSION = '1.00'; + $VERSION = '1.06'; @ISA = 'Module::Install::Base'; $ISCORE = 1; } @@ -151,15 +151,21 @@ sub install_as_vendor { $_[0]->installdirs('vendor') } sub dynamic_config { - my $self = shift; - unless ( @_ ) { - warn "You MUST provide an explicit true/false value to dynamic_config\n"; - return $self; + my $self = shift; + my $value = @_ ? shift : 1; + if ( $self->{values}->{dynamic_config} ) { + # Once dynamic we never change to static, for safety + return 0; } - $self->{values}->{dynamic_config} = $_[0] ? 1 : 0; + $self->{values}->{dynamic_config} = $value ? 1 : 0; return 1; } +# Convenience command +sub static_config { + shift->dynamic_config(0); +} + sub perl_version { my $self = shift; return $self->{values}->{perl_version} unless @_; @@ -170,7 +176,7 @@ # Normalize the version $version = $self->_perl_version($version); - # We don't support the reall old versions + # We don't support the really old versions unless ( $version >= 5.005 ) { die "Module::Install only supports 5.005 or newer (use ExtUtils::MakeMaker)\n"; } @@ -515,6 +521,7 @@ 'GNU Free Documentation license' => 'unrestricted', 1, 'GNU Affero General Public License' => 'open_source', 1, '(?:Free)?BSD license' => 'bsd', 1, + 'Artistic license 2\.0' => 'artistic_2', 1, 'Artistic license' => 'artistic', 1, 'Apache (?:Software )?license' => 'apache', 1, 'GPL' => 'gpl', 1, @@ -550,9 +557,9 @@ sub _extract_bugtracker { my @links = $_[0] =~ m#L<( - \Qhttp://rt.cpan.org/\E[^>]+| - \Qhttp://github.com/\E[\w_]+/[\w_]+/issues| - \Qhttp://code.google.com/p/\E[\w_\-]+/issues/list + https?\Q://rt.cpan.org/\E[^>]+| + https?\Q://github.com/\E[\w_]+/[\w_]+/issues| + https?\Q://code.google.com/p/\E[\w_\-]+/issues/list )>#gx; my %links; @links{@links}=(); @@ -581,7 +588,7 @@ sub requires_from { my $self = shift; my $content = Module::Install::_readperl($_[0]); - my @requires = $content =~ m/^use\s+([^\W\d]\w*(?:::\w+)*)\s+([\d\.]+)/mg; + my @requires = $content =~ m/^use\s+([^\W\d]\w*(?:::\w+)*)\s+(v?[\d\.]+)/mg; while ( @requires ) { my $module = shift @requires; my $version = shift @requires; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-Dumper-Concise-2.020/inc/Module/Install/Win32.pm new/Data-Dumper-Concise-2.021/inc/Module/Install/Win32.pm --- old/Data-Dumper-Concise-2.020/inc/Module/Install/Win32.pm 2011-01-20 19:47:06.000000000 +0100 +++ new/Data-Dumper-Concise-2.021/inc/Module/Install/Win32.pm 2014-01-01 01:58:03.000000000 +0100 @@ -6,7 +6,7 @@ use vars qw{$VERSION @ISA $ISCORE}; BEGIN { - $VERSION = '1.00'; + $VERSION = '1.06'; @ISA = 'Module::Install::Base'; $ISCORE = 1; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-Dumper-Concise-2.020/inc/Module/Install/WriteAll.pm new/Data-Dumper-Concise-2.021/inc/Module/Install/WriteAll.pm --- old/Data-Dumper-Concise-2.020/inc/Module/Install/WriteAll.pm 2011-01-20 19:47:06.000000000 +0100 +++ new/Data-Dumper-Concise-2.021/inc/Module/Install/WriteAll.pm 2014-01-01 01:58:03.000000000 +0100 @@ -6,7 +6,7 @@ use vars qw{$VERSION @ISA $ISCORE}; BEGIN { - $VERSION = '1.00'; + $VERSION = '1.06'; @ISA = qw{Module::Install::Base}; $ISCORE = 1; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-Dumper-Concise-2.020/inc/Module/Install.pm new/Data-Dumper-Concise-2.021/inc/Module/Install.pm --- old/Data-Dumper-Concise-2.020/inc/Module/Install.pm 2011-01-20 19:47:06.000000000 +0100 +++ new/Data-Dumper-Concise-2.021/inc/Module/Install.pm 2014-01-01 01:58:03.000000000 +0100 @@ -31,7 +31,7 @@ # This is not enforced yet, but will be some time in the next few # releases once we can make sure it won't clash with custom # Module::Install extensions. - $VERSION = '1.00'; + $VERSION = '1.06'; # Storage for the pseudo-singleton $MAIN = undef; @@ -451,7 +451,7 @@ } sub _cmp ($$) { - _version($_[0]) <=> _version($_[1]); + _version($_[1]) <=> _version($_[2]); } # Cloned from Params::Util::_CLASS @@ -467,4 +467,4 @@ 1; -# Copyright 2008 - 2010 Adam Kennedy. +# Copyright 2008 - 2012 Adam Kennedy. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-Dumper-Concise-2.020/lib/Data/Dumper/Concise/Sugar.pm new/Data-Dumper-Concise-2.021/lib/Data/Dumper/Concise/Sugar.pm --- old/Data-Dumper-Concise-2.020/lib/Data/Dumper/Concise/Sugar.pm 2011-01-20 19:46:55.000000000 +0100 +++ new/Data-Dumper-Concise-2.021/lib/Data/Dumper/Concise/Sugar.pm 2014-01-01 01:48:37.000000000 +0100 @@ -12,7 +12,7 @@ $Ddie $DdieN Ddie DdieS DdieL DdieN DdieD ); -sub Dwarn { return DwarnL(@_) if wantarray; DwarnS($_[0]) } +sub Dwarn { DwarnL(@_); return wantarray ? @_ : $_[0] } our $Dwarn = \&Dwarn; our $DwarnN = \&DwarnN; @@ -29,7 +29,7 @@ sub DwarnF (&@) { my $c = shift; warn &Data::Dumper::Concise::DumperF($c, @_); @_ } -sub Ddie { DdieL(@_) if wantarray; DdieS($_[0]) } +sub Ddie { DdieL(@_); return wantarray ? @_ : $_[0] } our $Ddie = \&Ddie; our $DdieN = \&DdieN; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-Dumper-Concise-2.020/lib/Data/Dumper/Concise.pm new/Data-Dumper-Concise-2.021/lib/Data/Dumper/Concise.pm --- old/Data-Dumper-Concise-2.020/lib/Data/Dumper/Concise.pm 2011-01-20 19:46:55.000000000 +0100 +++ new/Data-Dumper-Concise-2.021/lib/Data/Dumper/Concise.pm 2014-01-01 01:57:10.000000000 +0100 @@ -2,7 +2,7 @@ use 5.006; -$VERSION = '2.020'; +$VERSION = '2.021'; require Exporter; require Data::Dumper; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-Dumper-Concise-2.020/t/sugar.t new/Data-Dumper-Concise-2.021/t/sugar.t --- old/Data-Dumper-Concise-2.020/t/sugar.t 2011-01-20 19:46:55.000000000 +0100 +++ new/Data-Dumper-Concise-2.021/t/sugar.t 2014-01-01 01:55:07.000000000 +0100 @@ -34,7 +34,7 @@ ok eq_array(\@foo, ['warn','friend']), 'Dwarn passes lists through correctly'; my $bar = Dwarn 'robot',2,3; - is $warned_string,qq{"robot"\n}, 'Dwarn warns scalars correctly'; + is $warned_string,qq{"robot"\n2\n3\n}, 'Dwarn warns scalars correctly'; is $bar, 'robot', 'Dwarn passes scalars through correctly'; } -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org