Hello community, here is the log from the commit of package perl-Capture-Tiny for openSUSE:Factory checked in at 2012-02-21 12:23:03 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Capture-Tiny (Old) and /work/SRC/openSUSE:Factory/.perl-Capture-Tiny.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Capture-Tiny", Maintainer is "" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Capture-Tiny/perl-Capture-Tiny.changes 2011-12-27 18:13:55.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.perl-Capture-Tiny.new/perl-Capture-Tiny.changes 2012-02-21 12:23:08.000000000 +0100 @@ -1,0 +2,8 @@ +Tue Feb 21 09:02:47 UTC 2012 - co...@suse.com + +- updated to 0.16 + - Noted problems and workaround for FCGI's pathological tied STDIN + [RT#74681; thank you Karl Gaissmaier for testing the + workaround] + +------------------------------------------------------------------- Old: ---- Capture-Tiny-0.15.tar.gz New: ---- Capture-Tiny-0.16.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Capture-Tiny.spec ++++++ --- /var/tmp/diff_new_pack.jMTs4N/_old 2012-02-21 12:23:10.000000000 +0100 +++ /var/tmp/diff_new_pack.jMTs4N/_new 2012-02-21 12:23:10.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package perl-Capture-Tiny # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 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 @@ -16,38 +16,34 @@ # - Name: perl-Capture-Tiny -Version: 0.15 -Release: 1 -License: Apache-2.0 +Version: 0.16 +Release: 0 %define cpan_name Capture-Tiny Summary: Capture STDOUT and STDERR from Perl, XS or external programs -Url: http://search.cpan.org/dist/Capture-Tiny/ +License: Apache-2.0 Group: Development/Libraries/Perl +Url: http://search.cpan.org/dist/Capture-Tiny/ Source: http://www.cpan.org/authors/id/D/DA/DAGOLDEN/%{cpan_name}-%{version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros -BuildRequires: perl(ExtUtils::MakeMaker) >= 6.31 -BuildRequires: perl(Test::Differences) -BuildRequires: perl(Time::HiRes) -Requires: perl(Scalar::Util) -Recommends: perl(Time::HiRes) +#BuildRequires: perl(Capture::Tiny) +#BuildRequires: perl(Cases) +#BuildRequires: perl(Test::Differences) +#BuildRequires: perl(Test::Requires) +#BuildRequires: perl(TieLC) +#BuildRequires: perl(Utils) %{perl_requires} %description -Capture::Tiny provides a simple, portable way to capture anything sent to -STDOUT or STDERR, regardless of whether it comes from Perl, from XS code or -from an external program. Optionally, output can be teed so that it is -captured while being passed through to the original handles. Yes, it even -works on Windows. Stop guessing which of a dozen capturing modules to use -in any particular situation and just use this one. - -This module was heavily inspired by the IO::CaptureOutput manpage, which -provides similar functionality without the ability to tee output and with -more complicated code and API. +Capture::Tiny provides a simple, portable way to capture almost anything +sent to STDOUT or STDERR, regardless of whether it comes from Perl, from XS +code or from an external program. Optionally, output can be teed so that it +is captured while being passed through to the original handles. Yes, it +even works on Windows (usually). Stop guessing which of a dozen capturing +modules to use in any particular situation and just use this one. %prep %setup -q -n %{cpan_name}-%{version} @@ -67,11 +63,8 @@ %perl_process_packlist %perl_gen_filelist -%clean -%{__rm} -rf %{buildroot} - %files -f %{name}.files %defattr(-,root,root,755) -%doc Changes examples LICENSE perlcritic.rc README Todo +%doc Changes examples LICENSE perlcritic.rc README README.PATCHING Todo %changelog ++++++ Capture-Tiny-0.15.tar.gz -> Capture-Tiny-0.16.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Capture-Tiny-0.15/Changes new/Capture-Tiny-0.16/Changes --- old/Capture-Tiny-0.15/Changes 2011-12-23 17:10:53.000000000 +0100 +++ new/Capture-Tiny-0.16/Changes 2012-02-13 03:04:29.000000000 +0100 @@ -1,5 +1,13 @@ Revision history for Capture-Tiny +0.16 2012-02-12 21:04:24 EST5EDT + + Documented: + + - Noted problems and workaround for FCGI's pathological tied STDIN + [rt.cpan.org #74681; thank you Karl Gaissmaier for testing the + workaround] + 0.15 2011-12-23 11:10:47 EST5EDT Fixed: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Capture-Tiny-0.15/META.json new/Capture-Tiny-0.16/META.json --- old/Capture-Tiny-0.15/META.json 2011-12-23 17:10:53.000000000 +0100 +++ new/Capture-Tiny-0.16/META.json 2012-02-13 03:04:29.000000000 +0100 @@ -4,7 +4,7 @@ "David Golden <dagol...@cpan.org>" ], "dynamic_config" : 1, - "generated_by" : "Dist::Zilla version 4.300003, CPAN::Meta::Converter version 2.112580", + "generated_by" : "Dist::Zilla version 4.300005, CPAN::Meta::Converter version 2.112621", "license" : [ "apache_2_0" ], @@ -55,7 +55,7 @@ "provides" : { "Capture::Tiny" : { "file" : "lib/Capture/Tiny.pm", - "version" : "0.15" + "version" : "0.16" } }, "release_status" : "stable", @@ -71,6 +71,6 @@ "web" : "https://github.com/dagolden/capture-tiny" } }, - "version" : "0.15" + "version" : "0.16" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Capture-Tiny-0.15/META.yml new/Capture-Tiny-0.16/META.yml --- old/Capture-Tiny-0.15/META.yml 2011-12-23 17:10:53.000000000 +0100 +++ new/Capture-Tiny-0.16/META.yml 2012-02-13 03:04:29.000000000 +0100 @@ -10,7 +10,7 @@ configure_requires: ExtUtils::MakeMaker: 6.30 dynamic_config: 1 -generated_by: 'Dist::Zilla version 4.300003, CPAN::Meta::Converter version 2.112580' +generated_by: 'Dist::Zilla version 4.300005, CPAN::Meta::Converter version 2.112621' license: apache meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -27,7 +27,7 @@ provides: Capture::Tiny: file: lib/Capture/Tiny.pm - version: 0.15 + version: 0.16 requires: Carp: 0 Exporter: 0 @@ -42,4 +42,4 @@ bugtracker: http://rt.cpan.org/Public/Dist/Display.html?Name=Capture-Tiny homepage: https://github.com/dagolden/capture-tiny repository: https://github.com/dagolden/capture-tiny.git -version: 0.15 +version: 0.16 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Capture-Tiny-0.15/Makefile.PL new/Capture-Tiny-0.16/Makefile.PL --- old/Capture-Tiny-0.15/Makefile.PL 2011-12-23 17:10:53.000000000 +0100 +++ new/Capture-Tiny-0.16/Makefile.PL 2012-02-13 03:04:29.000000000 +0100 @@ -34,7 +34,7 @@ "strict" => 0, "warnings" => 0 }, - "VERSION" => "0.15", + "VERSION" => "0.16", "test" => { "TESTS" => "t/*.t" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Capture-Tiny-0.15/README new/Capture-Tiny-0.16/README --- old/Capture-Tiny-0.15/README 2011-12-23 17:10:53.000000000 +0100 +++ new/Capture-Tiny-0.16/README 2012-02-13 03:04:29.000000000 +0100 @@ -3,7 +3,7 @@ programs VERSION - version 0.15 + version 0.16 SYNOPSIS use Capture::Tiny ':all'; @@ -183,7 +183,7 @@ Capture::Tiny attempts to preserve the semantics of STDIN opened to a scalar reference. - Tied handles + Tied output handles If STDOUT or STDERR are tied prior to the call to "capture" or "tee", then Capture::Tiny will attempt to override the tie for the duration of @@ -196,8 +196,20 @@ determine appropriate layers like ":utf8" from the underlying handle and do the right thing. - Capture::Tiny attempts to preserve the semantics of tied STDIN, but - capturing or teeing when STDIN is tied is currently broken on Windows. + Tied input handle + + Capture::Tiny attempts to preserve the semantics of tied STDIN, but this + is not entirely stable or portable. For example: + + * Capturing or teeing with STDIN tied is broken on Windows + + * FCGI has been reported as having a pathological tied handle + implementation that causes fatal (and hard to diagnose) errors + + Unless having STDIN tied is crucial, it may be safest to localize STDIN + when capturing: + + my ($out, $err) = do { local *STDIN; capture { ... } }; Modifying handles during a capture Attempting to modify STDIN, STDOUT or STDERR *during* "capture" or "tee" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Capture-Tiny-0.15/lib/Capture/Tiny.pm new/Capture-Tiny-0.16/lib/Capture/Tiny.pm --- old/Capture-Tiny-0.15/lib/Capture/Tiny.pm 2011-12-23 17:10:53.000000000 +0100 +++ new/Capture-Tiny-0.16/lib/Capture/Tiny.pm 2012-02-13 03:04:29.000000000 +0100 @@ -3,7 +3,7 @@ use warnings; package Capture::Tiny; # ABSTRACT: Capture STDOUT and STDERR from Perl, XS or external programs -our $VERSION = '0.15'; # VERSION +our $VERSION = '0.16'; # VERSION use Carp (); use Exporter (); use IO::Handle (); @@ -406,7 +406,7 @@ =head1 VERSION -version 0.15 +version 0.16 =head1 SYNOPSIS @@ -594,7 +594,7 @@ Capture::Tiny attempts to preserve the semantics of STDIN opened to a scalar reference. -B<Tied handles> +B<Tied output handles> If STDOUT or STDERR are tied prior to the call to C<<< capture >>> or C<<< tee >>>, then Capture::Tiny will attempt to override the tie for the duration of the @@ -607,8 +607,28 @@ appropriate layers like C<<< :utf8 >>> from the underlying handle and do the right thing. -Capture::Tiny attempts to preserve the semantics of tied STDIN, but capturing -or teeing when STDIN is tied is currently broken on Windows. +B<Tied input handle> + +Capture::Tiny attempts to preserve the semantics of tied STDIN, but this is not +entirely stable or portable. For example: + +=over + +=item * + +Capturing or teeing with STDIN tied is broken on Windows + +=item * + +L<FCGI> has been reported as having a pathological tied handle implementation +that causes fatal (and hard to diagnose) errors + +=back + +Unless having STDIN tied is crucial, it may be safest to localize STDIN when +capturing: + + my ($out, $err) = do { local *STDIN; capture { ... } }; =head2 Modifying handles during a capture diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Capture-Tiny-0.15/t/00-compile.t new/Capture-Tiny-0.16/t/00-compile.t --- old/Capture-Tiny-0.15/t/00-compile.t 2011-12-23 17:10:53.000000000 +0100 +++ new/Capture-Tiny-0.16/t/00-compile.t 2012-02-13 03:04:29.000000000 +0100 @@ -24,19 +24,33 @@ 'lib', ); -my @scripts; -if ( -d 'bin' ) { +sub _find_scripts { + my $dir = shift @_; + + my @found_scripts = (); find( sub { return unless -f; my $found = $File::Find::name; # nothing to skip - push @scripts, $found; + open my $FH, '<', $_ or do { + note( "Unable to open $found in ( $! ), skipping" ); + return; + }; + my $shebang = <$FH>; + return unless $shebang =~ /^#!.*?\bperl\b\s*$/; + push @found_scripts, $found; }, - 'bin', + $dir, ); + + return @found_scripts; } +my @scripts; +do { push @scripts, _find_scripts($_) if -d $_ } + for qw{ bin script scripts }; + my $plan = scalar(@modules) + scalar(@scripts); $plan ? (plan tests => $plan) : (plan skip_all => "no tests to run"); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Capture-Tiny-0.15/xt/release/portability.t new/Capture-Tiny-0.16/xt/release/portability.t --- old/Capture-Tiny-0.15/xt/release/portability.t 2011-12-23 17:10:53.000000000 +0100 +++ new/Capture-Tiny-0.16/xt/release/portability.t 2012-02-13 03:04:29.000000000 +0100 @@ -2,7 +2,7 @@ use Test::More; -eval "use Test::Portability::Files"; -plan skip_all => "Test::Portability::Files required for testing portability" - if $@; +eval 'use Test::Portability::Files'; +plan skip_all => 'Test::Portability::Files required for testing portability' + if $@; run_tests(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Capture-Tiny-0.15/xt/release/test-version.t new/Capture-Tiny-0.16/xt/release/test-version.t --- old/Capture-Tiny-0.15/xt/release/test-version.t 2011-12-23 17:10:53.000000000 +0100 +++ new/Capture-Tiny-0.16/xt/release/test-version.t 2012-02-13 03:04:29.000000000 +0100 @@ -4,9 +4,9 @@ use warnings; use Test::More; -eval "use Test::Version 0.04"; -plan skip_all => "Test::Version 0.04 required for testing versions" - if $@; +use Test::Requires { + 'Test::Version' => 0.04, +}; -version_all_ok(); +version_all_ok; done_testing; -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org