#1 patch Proc-PID-File to not emit warnings
Merged 5 years ago by jehane. Opened 5 years ago by eseyman.
Unknown source master  into  master

@@ -0,0 +1,14 @@

+ Description: fix for undef input into regex match

+ Author: Alexander Zangerl <az@debian.org>

+ --- a/File.pm

+ +++ b/File.pm

+ @@ -285,7 +285,8 @@ sub read {

+  		|| die qq/Cannot open pid file "$self->{path}": $!\n/;

+  	flock($fh, LOCK_EX | LOCK_NB)

+          || die qq/pid "$self->{path}" already locked: $!\n/;

+ -	my ($pid) = <$fh> =~ /^(\d+)/;

+ +	my $maybe = <$fh>;

+ +	my ($pid) = $maybe =~ /^(\d+)/ if (defined $maybe);

+  	close $fh if @_ == 1;

+  

+  	$self->debug("read(\"$self->{path}\") = " . ($pid || ""));

@@ -0,0 +1,2 @@

+ from Config import *

+ addFilter("spelling-error .* pidfiles");

file modified
+3 -1
@@ -3,9 +3,10 @@

  Release:        1%{?dist}

  Summary:        Module to manage process id files

  License:        GPLv2+

- Group:          Development/Libraries

+ 

  URL:            https://metacpan.org/release/Proc-PID-File

  Source0:        https://cpan.metacpan.org/authors/id/D/DM/DMITRI/Proc-PID-File-%{version}.tar.gz

+ Patch0:         perl-Proc-PID-File-1.29-undef.patch

  

  

  BuildArch:      noarch
@@ -41,6 +42,7 @@

  

  %prep

  %setup -q -n Proc-PID-File-%{version}

+ %patch0 -p1

  

  

  %build

A few fixes. The main point of this is to fix bug #1456817.

Pull-Request has been merged by jehane

5 years ago