Hello community, here is the log from the commit of package perl-Carton for openSUSE:Factory checked in at 2016-05-30 09:57:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Carton (Old) and /work/SRC/openSUSE:Factory/.perl-Carton.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Carton" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Carton/perl-Carton.changes 2015-08-27 08:56:37.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.perl-Carton.new/perl-Carton.changes 2016-05-30 09:57:43.000000000 +0200 @@ -1,0 +2,26 @@ +Sat May 28 09:33:01 UTC 2016 - co...@suse.com + +- updated to 1.0.28 + see /usr/share/doc/packages/perl-Carton/Changes + + v1.0.28 2016-05-23 22:30:48 PDT + - Emit the line when parser error happened + + v1.0.27 2016-05-23 12:34:58 PDT + - revert v1.0.25 undef special casing + + v1.0.26 2016-05-21 20:29:11 PDT + - Make sure 'undef' and '0' are encoded properly writing 02packages as well + + v1.0.25 2016-05-21 20:21:22 PDT + - Handle 'undef' in snapshot and 02packages, separate from '0' + + v1.0.24 2016-05-08 11:56:14 PDT + - Same as v1.0.23, repackaging + + v1.0.23 2016-05-08 11:50:00 PDT + - Update FAQ to use with perlbrew #202 + - Update github URL + - Fix regular expression warnings in perl 5.22 #204 + +------------------------------------------------------------------- Old: ---- Carton-v1.0.22.tar.gz New: ---- Carton-v1.0.28.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Carton.spec ++++++ --- /var/tmp/diff_new_pack.GyKqwh/_old 2016-05-30 09:57:44.000000000 +0200 +++ /var/tmp/diff_new_pack.GyKqwh/_new 2016-05-30 09:57:44.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package perl-Carton # -# 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-Carton -Version: 1.0.22 +Version: 1.0.28 Release: 0 %define cpan_name Carton Summary: Perl module dependency manager (aka Bundler for Perl) @@ -63,17 +63,17 @@ %description carton is a command line tool to track the Perl module dependencies for -your Perl application. Dependencies are declared using the cpanfile manpage -format, and the managed dependencies are tracked in a _cpanfile.snapshot_ -file, which is meant to be version controlled, and the snapshot file allows -other developers of your application will have the exact same versions of -the modules. +your Perl application. Dependencies are declared using cpanfile format, and +the managed dependencies are tracked in a _cpanfile.snapshot_ file, which +is meant to be version controlled, and the snapshot file allows other +developers of your application will have the exact same versions of the +modules. -For 'cpanfile' syntax, see the cpanfile manpage documentation. +For 'cpanfile' syntax, see cpanfile documentation. %prep %setup -q -n %{cpan_name}-v%{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 ++++++ Carton-v1.0.22.tar.gz -> Carton-v1.0.28.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Carton-v1.0.22/Changes new/Carton-v1.0.28/Changes --- old/Carton-v1.0.22/Changes 2015-08-12 07:17:46.000000000 +0200 +++ new/Carton-v1.0.28/Changes 2016-05-24 07:30:51.000000000 +0200 @@ -1,5 +1,25 @@ Revision history for carton +v1.0.28 2016-05-23 22:30:48 PDT + - Emit the line when parser error happened + +v1.0.27 2016-05-23 12:34:58 PDT + - revert v1.0.25 undef special casing + +v1.0.26 2016-05-21 20:29:11 PDT + - Make sure 'undef' and '0' are encoded properly writing 02packages as well + +v1.0.25 2016-05-21 20:21:22 PDT + - Handle 'undef' in snapshot and 02packages, separate from '0' + +v1.0.24 2016-05-08 11:56:14 PDT + - Same as v1.0.23, repackaging + +v1.0.23 2016-05-08 11:50:00 PDT + - Update FAQ to use with perlbrew #202 + - Update github URL + - Fix regular expression warnings in perl 5.22 #204 + v1.0.22 2015-08-11 22:17:44 PDT - Fixed a bug where carton update gives an error when there's nothing to update - Update a link to point to the new IRC chatroom #cpanm on irc.perl.org diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Carton-v1.0.22/MANIFEST new/Carton-v1.0.28/MANIFEST --- old/Carton-v1.0.22/MANIFEST 2015-08-12 07:17:46.000000000 +0200 +++ new/Carton-v1.0.28/MANIFEST 2016-05-24 07:30:51.000000000 +0200 @@ -1,4 +1,4 @@ -# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.039. +# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.005. Changes LICENSE MANIFEST @@ -39,7 +39,7 @@ lib/Carton/Tree.pm lib/Carton/Util.pm script/carton -t/release-pod-syntax.t +t/author-pod-syntax.t xt/CLI.pm xt/cli/bundle.t xt/cli/check.t diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Carton-v1.0.22/META.json new/Carton-v1.0.28/META.json --- old/Carton-v1.0.22/META.json 2015-08-12 07:17:46.000000000 +0200 +++ new/Carton-v1.0.28/META.json 2016-05-24 07:30:51.000000000 +0200 @@ -4,7 +4,7 @@ "Tatsuhiko Miyagawa" ], "dynamic_config" : 0, - "generated_by" : "Dist::Zilla version 5.039, Dist::Milla version v1.0.15, CPAN::Meta::Converter version 2.150005", + "generated_by" : "Dist::Zilla version 6.005, Dist::Milla version v1.0.16, CPAN::Meta::Converter version 2.150005", "license" : [ "perl_5" ], @@ -15,12 +15,12 @@ "name" : "Carton", "no_index" : { "directory" : [ - "t", - "xt", + "eg", + "examples", "inc", "share", - "eg", - "examples" + "t", + "xt" ] }, "prereqs" : { @@ -33,7 +33,7 @@ "develop" : { "requires" : { "Capture::Tiny" : "0", - "Dist::Milla" : "v1.0.15", + "Dist::Milla" : "v1.0.16", "Test::More" : "0.9", "Test::Pod" : "1.41", "Test::Requires" : "0" @@ -74,22 +74,24 @@ "web" : "https://github.com/perl-carton/carton" } }, - "version" : "v1.0.22", + "version" : "v1.0.28", "x_contributors" : [ "Christian Walde <walde.christ...@googlemail.com>", "David Golden <dagol...@cpan.org>", "David Steinbrunner <dsteinbrun...@pobox.com>", - "ikasam_a <masaki.nakag...@gmail.com>", "Jonathan Steinert <ha...@fastly.com>", + "Jose Luis Martinez <jlmarti...@capside.com>", "Kan Fushihara <kan.fushih...@gmail.com>", "Masahiro Chiba <ch...@everqueue.com>", "NAKAGAWA Masaki <masaki.nakag...@gmail.com>", "Olaf Alders <o...@wundersolutions.com>", "Pedro Figueiredo <m...@pedrofigueiredo.org>", + "Pedro Melo <m...@simplicidade.org>", "Peter Oliver <g...@mavit.org.uk>", "shiba_yu36 <shibay...@gmail.com>", "Tatsuhiko Miyagawa <miyag...@bulknews.net>", "Tatsuhiko Miyagawa <miyag...@gmail.com>", + "WATANABE Hiroaki <h...@mac.com>", "Yanick Champoux <yan...@babyl.dyndns.org>" ] } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Carton-v1.0.22/META.yml new/Carton-v1.0.28/META.yml --- old/Carton-v1.0.22/META.yml 2015-08-12 07:17:46.000000000 +0200 +++ new/Carton-v1.0.28/META.yml 2016-05-24 07:30:51.000000000 +0200 @@ -7,7 +7,7 @@ ExtUtils::MakeMaker: '0' version: '0.77' dynamic_config: 0 -generated_by: 'Dist::Zilla version 5.039, Dist::Milla version v1.0.15, CPAN::Meta::Converter version 2.150005' +generated_by: 'Dist::Zilla version 6.005, Dist::Milla version v1.0.16, CPAN::Meta::Converter version 2.150005' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -15,12 +15,12 @@ name: Carton no_index: directory: - - t - - xt - - inc - - share - eg - examples + - inc + - share + - t + - xt recommends: App::FatPacker: '0.009018' File::pushd: '0' @@ -43,20 +43,22 @@ bugtracker: https://github.com/perl-carton/carton/issues homepage: https://github.com/perl-carton/carton repository: https://github.com/perl-carton/carton.git -version: v1.0.22 +version: v1.0.28 x_contributors: - 'Christian Walde <walde.christ...@googlemail.com>' - 'David Golden <dagol...@cpan.org>' - 'David Steinbrunner <dsteinbrun...@pobox.com>' - - 'ikasam_a <masaki.nakag...@gmail.com>' - 'Jonathan Steinert <ha...@fastly.com>' + - 'Jose Luis Martinez <jlmarti...@capside.com>' - 'Kan Fushihara <kan.fushih...@gmail.com>' - 'Masahiro Chiba <ch...@everqueue.com>' - 'NAKAGAWA Masaki <masaki.nakag...@gmail.com>' - 'Olaf Alders <o...@wundersolutions.com>' - 'Pedro Figueiredo <m...@pedrofigueiredo.org>' + - 'Pedro Melo <m...@simplicidade.org>' - 'Peter Oliver <g...@mavit.org.uk>' - 'shiba_yu36 <shibay...@gmail.com>' - 'Tatsuhiko Miyagawa <miyag...@bulknews.net>' - 'Tatsuhiko Miyagawa <miyag...@gmail.com>' + - 'WATANABE Hiroaki <h...@mac.com>' - 'Yanick Champoux <yan...@babyl.dyndns.org>' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Carton-v1.0.22/Makefile.PL new/Carton-v1.0.28/Makefile.PL --- old/Carton-v1.0.22/Makefile.PL 2015-08-12 07:17:46.000000000 +0200 +++ new/Carton-v1.0.28/Makefile.PL 2016-05-24 07:30:51.000000000 +0200 @@ -1,4 +1,4 @@ -# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.039. +# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.005. use strict; use warnings; @@ -35,7 +35,7 @@ "Try::Tiny" => "0.09", "parent" => "0.223" }, - "VERSION" => "v1.0.22", + "VERSION" => "v1.0.28", "test" => { "TESTS" => "t/*.t" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Carton-v1.0.22/README new/Carton-v1.0.28/README --- old/Carton-v1.0.22/README 2015-08-12 07:17:46.000000000 +0200 +++ new/Carton-v1.0.28/README 2016-05-24 07:30:51.000000000 +0200 @@ -127,7 +127,7 @@ COMMUNITY - https://github.com/miyagawa/carton + https://github.com/perl-carton/carton Code repository, Wiki and Issue Tracker diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Carton-v1.0.22/lib/Carton/CLI.pm new/Carton-v1.0.28/lib/Carton/CLI.pm --- old/Carton-v1.0.22/lib/Carton/CLI.pm 2015-08-12 07:17:46.000000000 +0200 +++ new/Carton-v1.0.28/lib/Carton/CLI.pm 2016-05-24 07:30:51.000000000 +0200 @@ -358,6 +358,13 @@ $env->snapshot->save; } +sub cmd_run { + my($self, @args) = @_; + + local $UseSystem = 1; + $self->cmd_exec(@args); +} + sub cmd_exec { my($self, @args) = @_; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Carton-v1.0.22/lib/Carton/Doc/FAQ.pod new/Carton-v1.0.28/lib/Carton/Doc/FAQ.pod --- old/Carton-v1.0.22/lib/Carton/Doc/FAQ.pod 2015-08-12 07:17:46.000000000 +0200 +++ new/Carton-v1.0.28/lib/Carton/Doc/FAQ.pod 2016-05-24 07:30:51.000000000 +0200 @@ -101,7 +101,7 @@ I<myapp> local::lib path. Then run C<carton install> like you normally do. -Becuase I<devel> and I<myapp> are isolated, the modules you installed +Because I<devel> and I<myapp> are isolated, the modules you installed into I<devel> doesn't affect the process when carton builds the dependency tree for your new project at all. This could often be critical when you have a conditional dependency in your tree, like @@ -109,4 +109,20 @@ =back +=head2 I'm using perlbrew, but C<< carton install >> uses system perl, how to fix? +The issue is most likelly caused by a inital bad install of C<cpanm> +or C<carton> or both, that ended up with a shebang line pointed to the +(wrong) system perl. + +=over 4 + +=item Re-install Carton on you perlbrew environment + +Run C<< cpanm -f Carton >>. This will force-install Carton, +and because your C<cpanm> is now using the correct C<perl>, +the same will happen with C<carton>. + +=back + +Make sure the shebang (the first line) of your C<carton> script points to the right perl path, rather than C</usr/bin/perl>. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Carton-v1.0.22/lib/Carton/Index.pm new/Carton-v1.0.28/lib/Carton/Index.pm --- old/Carton-v1.0.22/lib/Carton/Index.pm 2015-08-12 07:17:46.000000000 +0200 +++ new/Carton-v1.0.28/lib/Carton/Index.pm 2016-05-24 07:30:51.000000000 +0200 @@ -35,7 +35,7 @@ EOF for my $p ($self->packages) { - print $fh $self->_format_line($p->name, $p->version || 'undef', $p->pathname); + print $fh $self->_format_line($p->name, $p->version_format, $p->pathname); } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Carton-v1.0.22/lib/Carton/Package.pm new/Carton-v1.0.28/lib/Carton/Package.pm --- old/Carton-v1.0.22/lib/Carton/Package.pm 2015-08-12 07:17:46.000000000 +0200 +++ new/Carton-v1.0.28/lib/Carton/Package.pm 2016-05-24 07:30:51.000000000 +0200 @@ -7,6 +7,11 @@ return { name => $args[0], version => $args[1], pathname => $args[2] }; } +sub version_format { + my $self = shift; + defined $self->version ? $self->version : 'undef'; +} + 1; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Carton-v1.0.22/lib/Carton/Packer.pm new/Carton-v1.0.28/lib/Carton/Packer.pm --- old/Carton-v1.0.22/lib/Carton/Packer.pm 2015-08-12 07:17:46.000000000 +0200 +++ new/Carton-v1.0.28/lib/Carton/Packer.pm 2016-05-24 07:30:51.000000000 +0200 @@ -50,7 +50,7 @@ # HACK: File::Spec bundled into arch in < 5.16, but is loadable as pure-perl use Config; - $fatpacked =~ s/\$fatpacked{"$Config{archname}\/(Cwd|File)/\$fatpacked{"$1/g; + $fatpacked =~ s/\$fatpacked\{"$Config{archname}\/(Cwd|File)/\$fatpacked{"$1/g; $fatpacked; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Carton-v1.0.22/lib/Carton/Snapshot/Emitter.pm new/Carton-v1.0.28/lib/Carton/Snapshot/Emitter.pm --- old/Carton-v1.0.22/lib/Carton/Snapshot/Emitter.pm 2015-08-12 07:17:46.000000000 +0200 +++ new/Carton-v1.0.28/lib/Carton/Snapshot/Emitter.pm 2016-05-24 07:30:51.000000000 +0200 @@ -15,7 +15,9 @@ $data .= " provides:\n"; for my $package (sort keys %{$dist->provides}) { - $data .= " $package @{[$dist->provides->{$package}{version} || 'undef' ]}\n"; + my $version = $dist->provides->{$package}{version}; + $version = 'undef' unless defined $version; + $data .= " $package $version\n"; } $data .= " requirements:\n"; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Carton-v1.0.22/lib/Carton/Snapshot/Parser.pm new/Carton-v1.0.28/lib/Carton/Snapshot/Parser.pm --- old/Carton-v1.0.22/lib/Carton/Snapshot/Parser.pm 2015-08-12 07:17:46.000000000 +0200 +++ new/Carton-v1.0.28/lib/Carton/Snapshot/Parser.pm 2016-05-24 07:30:51.000000000 +0200 @@ -71,7 +71,6 @@ re => qr/^\s{6}([0-9A-Za-z_:]+) ([v0-9\._,=\!<>\s]+|undef)/, code => sub { my($stash, $snapshot, $module, $version) = @_; - if ($stash->{property} eq 'provides') { $stash->{dist}->provides->{$module} = { version => $version }; } else { @@ -118,7 +117,7 @@ } } - Carton::Error::SnapshotParseError->throw(error => "Could not parse snapshot file."); + Carton::Error::SnapshotParseError->throw(error => "Could not parse snapshot file: $line"); } } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Carton-v1.0.22/lib/Carton.pm new/Carton-v1.0.28/lib/Carton.pm --- old/Carton-v1.0.22/lib/Carton.pm 2015-08-12 07:17:46.000000000 +0200 +++ new/Carton-v1.0.28/lib/Carton.pm 2016-05-24 07:30:51.000000000 +0200 @@ -1,7 +1,7 @@ package Carton; use strict; use 5.008_005; -use version; our $VERSION = version->declare("v1.0.22"); +use version; our $VERSION = version->declare("v1.0.28"); 1; __END__ @@ -138,7 +138,7 @@ =over 4 -=item L<https://github.com/miyagawa/carton> +=item L<https://github.com/perl-carton/carton> Code repository, Wiki and Issue Tracker diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Carton-v1.0.22/t/author-pod-syntax.t new/Carton-v1.0.28/t/author-pod-syntax.t --- old/Carton-v1.0.22/t/author-pod-syntax.t 1970-01-01 01:00:00.000000000 +0100 +++ new/Carton-v1.0.28/t/author-pod-syntax.t 2016-05-24 07:30:51.000000000 +0200 @@ -0,0 +1,15 @@ +#!perl + +BEGIN { + unless ($ENV{AUTHOR_TESTING}) { + require Test::More; + Test::More::plan(skip_all => 'these tests are for testing by the author'); + } +} + +# This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests. +use strict; use warnings; +use Test::More; +use Test::Pod 1.41; + +all_pod_files_ok(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Carton-v1.0.22/t/release-pod-syntax.t new/Carton-v1.0.28/t/release-pod-syntax.t --- old/Carton-v1.0.22/t/release-pod-syntax.t 2015-08-12 07:17:46.000000000 +0200 +++ new/Carton-v1.0.28/t/release-pod-syntax.t 1970-01-01 01:00:00.000000000 +0100 @@ -1,14 +0,0 @@ -#!perl - -BEGIN { - unless ($ENV{RELEASE_TESTING}) { - require Test::More; - Test::More::plan(skip_all => 'these tests are for release candidate testing'); - } -} - -# This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests. -use Test::More; -use Test::Pod 1.41; - -all_pod_files_ok(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Carton-v1.0.22/xt/cli/install.t new/Carton-v1.0.28/xt/cli/install.t --- old/Carton-v1.0.22/xt/cli/install.t 2015-08-12 07:17:46.000000000 +0200 +++ new/Carton-v1.0.28/xt/cli/install.t 2016-05-24 07:30:51.000000000 +0200 @@ -35,8 +35,11 @@ $app->run("install"); $app->run("check"); - like $app->stdout, qr/are satisfied/; - unlike $app->stderr, qr/is not installed/; + SKIP: { + skip "MakeMaker installs CPAN::Meta and fails on carton check", 2 if $] < 5.14; + like $app->stdout, qr/are satisfied/; + unlike $app->stderr, qr/is not installed/; + } }; subtest 'meta info for modules with qv()' => sub { @@ -48,8 +51,11 @@ $app->run("install"); $app->run("check"); - like $app->stdout, qr/are satisfied/; - unlike $app->stderr, qr/is not installed/; + SKIP: { + skip "MakeMaker installs CPAN::Meta and fails on carton check", 2 if $] < 5.14; + like $app->stdout, qr/are satisfied/; + unlike $app->stderr, qr/is not installed/; + } }; done_testing;