diff -Nru libsignal-mask-perl-0.007/Changes libsignal-mask-perl-0.008/Changes --- libsignal-mask-perl-0.007/Changes 2014-03-06 23:48:23.000000000 +0000 +++ libsignal-mask-perl-0.008/Changes 2014-08-02 00:16:27.000000000 +0000 @@ -1,5 +1,9 @@ Revision history for Signal-Mask +0.008 2014-08-02 02:16:19+02:00 Europe/Amsterdam + Fix return values of block/unblock_signals + Make dependency on Thread::SigMask optional + 0.007 2014-03-07 00:48:17CET+0100 Europe/Amsterdam Drop dependency on Const::Fast Fix error message in Signal::Pending diff -Nru libsignal-mask-perl-0.007/debian/changelog libsignal-mask-perl-0.008/debian/changelog --- libsignal-mask-perl-0.007/debian/changelog 2014-05-10 12:10:37.000000000 +0000 +++ libsignal-mask-perl-0.008/debian/changelog 2014-08-02 12:41:34.000000000 +0000 @@ -1,3 +1,10 @@ +libsignal-mask-perl (0.008-1) unstable; urgency=medium + + * New upstream release. + * Move libthread-sigmask-perl to Recommends, it's optional now. + + -- gregor herrmann Sat, 02 Aug 2014 14:41:29 +0200 + libsignal-mask-perl (0.007-1) unstable; urgency=low * Initial release (closes: #747623). diff -Nru libsignal-mask-perl-0.007/debian/control libsignal-mask-perl-0.008/debian/control --- libsignal-mask-perl-0.007/debian/control 2014-05-10 12:10:37.000000000 +0000 +++ libsignal-mask-perl-0.008/debian/control 2014-08-02 12:41:34.000000000 +0000 @@ -16,8 +16,8 @@ Architecture: all Depends: ${misc:Depends}, ${perl:Depends}, - libipc-signal-perl, - libthread-sigmask-perl + libipc-signal-perl +Recommends: libthread-sigmask-perl Description: module for easy handling of signal masks Signal::Mask is an abstraction around your process or thread signal mask. It is used to fetch and/or change the signal mask of the calling process or diff -Nru libsignal-mask-perl-0.007/dist.ini libsignal-mask-perl-0.008/dist.ini --- libsignal-mask-perl-0.007/dist.ini 2014-03-06 23:48:23.000000000 +0000 +++ libsignal-mask-perl-0.008/dist.ini 2014-08-02 00:16:27.000000000 +0000 @@ -6,3 +6,8 @@ [@LEONT] install_tool = eumm +-remove = PodCoverageTests +[RemovePrereqs] +remove = Thread::SigMask +[Prereqs / RuntimeRecommends] +Thread::SigMask = 0 diff -Nru libsignal-mask-perl-0.007/lib/Signal/Mask.pm libsignal-mask-perl-0.008/lib/Signal/Mask.pm --- libsignal-mask-perl-0.007/lib/Signal/Mask.pm 2014-03-06 23:48:23.000000000 +0000 +++ libsignal-mask-perl-0.008/lib/Signal/Mask.pm 2014-08-02 00:16:27.000000000 +0000 @@ -1,11 +1,19 @@ package Signal::Mask; -$Signal::Mask::VERSION = '0.007'; +$Signal::Mask::VERSION = '0.008'; use strict; use warnings FATAL => 'all'; use Config; use POSIX qw/SIG_BLOCK SIG_UNBLOCK SIG_SETMASK/; -use Thread::SigMask 'sigmask'; +BEGIN { + if (eval { require Thread::SigMask }) { + *sigmask = \&Thread::SigMask::sigmask; + } + else { + require POSIX; + *sigmask = \&POSIX::sigprocmask; + } +} use IPC::Signal qw/sig_num sig_name/; use Carp qw/croak/; @@ -35,9 +43,8 @@ my ($self, $key) = @_; my $num = sig_num($key); croak "No such signal '$key'" if not defined $num; - my $ret = POSIX::SigSet->new($num); - sigmask(SIG_BLOCK, POSIX::SigSet->new($num), $ret) or croak "Couldn't block signal: $!"; - return $ret->ismember($ret); + sigmask(SIG_BLOCK, POSIX::SigSet->new($num)) or croak "Couldn't block signal: $!"; + return; }; my $unblock_signal = sub { @@ -46,7 +53,7 @@ croak "No such signal '$key'" if not defined $num; my $ret = POSIX::SigSet->new($num); sigmask(SIG_UNBLOCK, POSIX::SigSet->new($num), $ret) or croak "Couldn't unblock signal: $!"; - return $ret->ismember($ret); + return $ret->ismember($num); }; sub STORE { @@ -121,7 +128,7 @@ =head1 VERSION -version 0.007 +version 0.008 =head1 SYNOPSIS @@ -137,8 +144,6 @@ Signal::Mask is an abstraction around your process or thread signal mask. It is used to fetch and/or change the signal mask of the calling process or thread. The signal mask is the set of signals whose delivery is currently blocked for the caller. It is available as the global hash %Signal::Mask. -=for Pod::Coverage SCALAR - =head1 AUTHOR Leon Timmermans diff -Nru libsignal-mask-perl-0.007/lib/Signal/Pending.pm libsignal-mask-perl-0.008/lib/Signal/Pending.pm --- libsignal-mask-perl-0.007/lib/Signal/Pending.pm 2014-03-06 23:48:23.000000000 +0000 +++ libsignal-mask-perl-0.008/lib/Signal/Pending.pm 2014-08-02 00:16:27.000000000 +0000 @@ -1,5 +1,5 @@ package Signal::Pending; -$Signal::Pending::VERSION = '0.007'; +$Signal::Pending::VERSION = '0.008'; use strict; use warnings FATAL => 'all'; @@ -96,7 +96,7 @@ =head1 VERSION -version 0.007 +version 0.008 =head1 SYNOPSIS diff -Nru libsignal-mask-perl-0.007/LICENSE libsignal-mask-perl-0.008/LICENSE --- libsignal-mask-perl-0.007/LICENSE 2014-03-06 23:48:23.000000000 +0000 +++ libsignal-mask-perl-0.008/LICENSE 2014-08-02 00:16:27.000000000 +0000 @@ -22,7 +22,7 @@ Version 1, February 1989 Copyright (C) 1989 Free Software Foundation, Inc. - 51 Franklin St, Suite 500, Boston, MA 02110-1335 USA + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. diff -Nru libsignal-mask-perl-0.007/Makefile.PL libsignal-mask-perl-0.008/Makefile.PL --- libsignal-mask-perl-0.007/Makefile.PL 2014-03-06 23:48:23.000000000 +0000 +++ libsignal-mask-perl-0.008/Makefile.PL 2014-08-02 00:16:27.000000000 +0000 @@ -1,5 +1,5 @@ -# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.011. +# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.019. use strict; use warnings; @@ -12,7 +12,6 @@ my %WriteMakefileArgs = ( "ABSTRACT" => "Signal masks made easy", "AUTHOR" => "Leon Timmermans ", - "BUILD_REQUIRES" => {}, "CONFIGURE_REQUIRES" => { "ExtUtils::MakeMaker" => "6.30" }, @@ -24,7 +23,6 @@ "Carp" => 0, "IPC::Signal" => 0, "POSIX" => 0, - "Thread::SigMask" => 0, "strict" => 0, "warnings" => 0 }, @@ -34,7 +32,7 @@ "IPC::Open3" => 0, "Test::More" => 0 }, - "VERSION" => "0.007", + "VERSION" => "0.008", "test" => { "TESTS" => "t/*.t" } @@ -49,7 +47,6 @@ "IPC::Signal" => 0, "POSIX" => 0, "Test::More" => 0, - "Thread::SigMask" => 0, "strict" => 0, "warnings" => 0 ); diff -Nru libsignal-mask-perl-0.007/MANIFEST libsignal-mask-perl-0.008/MANIFEST --- libsignal-mask-perl-0.007/MANIFEST 2014-03-06 23:48:23.000000000 +0000 +++ libsignal-mask-perl-0.008/MANIFEST 2014-08-02 00:16:27.000000000 +0000 @@ -1,4 +1,4 @@ -# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.011. +# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.019. Changes INSTALL LICENSE @@ -12,5 +12,4 @@ lib/Signal/Pending.pm t/00-compile.t t/10-basics.t -t/release-pod-coverage.t t/release-pod-syntax.t diff -Nru libsignal-mask-perl-0.007/META.json libsignal-mask-perl-0.008/META.json --- libsignal-mask-perl-0.007/META.json 2014-03-06 23:48:23.000000000 +0000 +++ libsignal-mask-perl-0.008/META.json 2014-08-02 00:16:27.000000000 +0000 @@ -4,7 +4,7 @@ "Leon Timmermans " ], "dynamic_config" : 0, - "generated_by" : "Dist::Zilla version 5.011, CPAN::Meta::Converter version 2.132830", + "generated_by" : "Dist::Zilla version 5.019, CPAN::Meta::Converter version 2.140640", "license" : [ "perl_5" ], @@ -21,17 +21,17 @@ }, "develop" : { "requires" : { - "Pod::Coverage::TrustPod" : "0", - "Test::Pod" : "1.41", - "Test::Pod::Coverage" : "1.08" + "Test::Pod" : "1.41" } }, "runtime" : { + "recommends" : { + "Thread::SigMask" : "0" + }, "requires" : { "Carp" : "0", "IPC::Signal" : "0", "POSIX" : "0", - "Thread::SigMask" : "0", "perl" : "5.006", "strict" : "0", "warnings" : "0" @@ -42,18 +42,19 @@ "File::Spec" : "0", "IO::Handle" : "0", "IPC::Open3" : "0", - "Test::More" : "0" + "Test::More" : "0", + "perl" : "5.006" } } }, "provides" : { "Signal::Mask" : { "file" : "lib/Signal/Mask.pm", - "version" : "0.007" + "version" : "0.008" }, "Signal::Pending" : { "file" : "lib/Signal/Pending.pm", - "version" : "0.007" + "version" : "0.008" } }, "release_status" : "stable", @@ -68,6 +69,6 @@ "web" : "https://github.com/Leont/signal-mask" } }, - "version" : "0.007" + "version" : "0.008" } diff -Nru libsignal-mask-perl-0.007/META.yml libsignal-mask-perl-0.008/META.yml --- libsignal-mask-perl-0.007/META.yml 2014-03-06 23:48:23.000000000 +0000 +++ libsignal-mask-perl-0.008/META.yml 2014-08-02 00:16:27.000000000 +0000 @@ -3,35 +3,37 @@ author: - 'Leon Timmermans ' build_requires: - File::Spec: 0 - IO::Handle: 0 - IPC::Open3: 0 - Test::More: 0 + File::Spec: '0' + IO::Handle: '0' + IPC::Open3: '0' + Test::More: '0' + perl: '5.006' configure_requires: - ExtUtils::MakeMaker: 6.30 + ExtUtils::MakeMaker: '6.30' dynamic_config: 0 -generated_by: 'Dist::Zilla version 5.011, CPAN::Meta::Converter version 2.132830' +generated_by: 'Dist::Zilla version 5.019, CPAN::Meta::Converter version 2.140640' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html - version: 1.4 + version: '1.4' name: Signal-Mask provides: Signal::Mask: file: lib/Signal/Mask.pm - version: 0.007 + version: '0.008' Signal::Pending: file: lib/Signal/Pending.pm - version: 0.007 + version: '0.008' +recommends: + Thread::SigMask: '0' requires: - Carp: 0 - IPC::Signal: 0 - POSIX: 0 - Thread::SigMask: 0 - perl: 5.006 - strict: 0 - warnings: 0 + Carp: '0' + IPC::Signal: '0' + POSIX: '0' + perl: '5.006' + strict: '0' + warnings: '0' resources: bugtracker: http://rt.cpan.org/Public/Dist/Display.html?Name=Signal-Mask repository: git://github.com/Leont/signal-mask.git -version: 0.007 +version: '0.008' diff -Nru libsignal-mask-perl-0.007/README libsignal-mask-perl-0.008/README --- libsignal-mask-perl-0.007/README 2014-03-06 23:48:23.000000000 +0000 +++ libsignal-mask-perl-0.008/README 2014-08-02 00:16:27.000000000 +0000 @@ -1,7 +1,7 @@ This archive contains the distribution Signal-Mask, -version 0.007: +version 0.008: Signal masks made easy @@ -11,5 +11,5 @@ the same terms as the Perl 5 programming language system itself. -This README file was generated by Dist::Zilla::Plugin::Readme v5.011. +This README file was generated by Dist::Zilla::Plugin::Readme v5.019. diff -Nru libsignal-mask-perl-0.007/t/00-compile.t libsignal-mask-perl-0.008/t/00-compile.t --- libsignal-mask-perl-0.007/t/00-compile.t 2014-03-06 23:48:23.000000000 +0000 +++ libsignal-mask-perl-0.008/t/00-compile.t 2014-08-02 00:16:27.000000000 +0000 @@ -1,7 +1,8 @@ +use 5.006; use strict; use warnings; -# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.036 +# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.040 use Test::More tests => 2 + ($ENV{AUTHOR_TESTING} ? 1 : 0); @@ -16,17 +17,18 @@ # no fake home requested -my $inc_switch = q[-Mblib]; +my $inc_switch = -d 'blib' ? '-Mblib' : '-Ilib'; use File::Spec; use IPC::Open3; use IO::Handle; +open my $stdin, '<', File::Spec->devnull or die "can't open devnull: $!"; + my @warnings; for my $lib (@module_files) { # see L - open my $stdin, '<', File::Spec->devnull or die "can't open devnull: $!"; my $stderr = IO::Handle->new; my $pid = open3($stdin, '>&STDERR', $stderr, $^X, $inc_switch, '-e', "require q[$lib]"); diff -Nru libsignal-mask-perl-0.007/t/release-pod-coverage.t libsignal-mask-perl-0.008/t/release-pod-coverage.t --- libsignal-mask-perl-0.007/t/release-pod-coverage.t 2014-03-06 23:48:23.000000000 +0000 +++ libsignal-mask-perl-0.008/t/release-pod-coverage.t 1970-01-01 00:00:00.000000000 +0000 @@ -1,22 +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::PodCoverageTests. - -use Test::More; - -eval "use Test::Pod::Coverage 1.08"; -plan skip_all => "Test::Pod::Coverage 1.08 required for testing POD coverage" - if $@; - -eval "use Pod::Coverage::TrustPod"; -plan skip_all => "Pod::Coverage::TrustPod required for testing POD coverage" - if $@; - -all_pod_coverage_ok({ coverage_class => 'Pod::Coverage::TrustPod' }); diff -Nru libsignal-mask-perl-0.007/t/release-pod-syntax.t libsignal-mask-perl-0.008/t/release-pod-syntax.t --- libsignal-mask-perl-0.007/t/release-pod-syntax.t 2014-03-06 23:48:23.000000000 +0000 +++ libsignal-mask-perl-0.008/t/release-pod-syntax.t 2014-08-02 00:16:27.000000000 +0000 @@ -9,8 +9,6 @@ # This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests. use Test::More; - -eval "use Test::Pod 1.41"; -plan skip_all => "Test::Pod 1.41 required for testing POD" if $@; +use Test::Pod 1.41; all_pod_files_ok();