Skip Menu |

This queue is for tickets about the GnuPG CPAN distribution.

Report information
The Basics
Id: 1364
Status: resolved
Priority: 0/
Queue: GnuPG

People
Owner: Nobody in particular
Requestors: mark [...] summersault.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: (no value)
Fixed in: (no value)



Subject: patch to fix POSIX::_SC_OPEN_MAX build failure
I was experiencing a bug when using this module, version .09: " Bareword "POSIX::_SC_OPEN_MAX" not allowed while "strict subs" in use at /usr/local/lib/perl5/site_perl/5.8.0/GnuPG.pm line 267." The attached patch fixes the bug which appears to be causes several cases of the breakage reported in CPAN Testers. I'm using Perl 5.8.0 on FreeBSD 4.5.
--- /usr/local/lib/perl5/site_perl/5.005/GnuPG.pm Fri Jun 8 11:28:53 2001 +++ GnuPG.pm Tue Jul 30 15:31:28 2002 @@ -264,7 +264,7 @@ # some ends must be closed in the child. # # Besides this is just plain good hygiene - my $max_fd = POSIX::sysconf( POSIX::_SC_OPEN_MAX ) || 256; + my $max_fd = POSIX::sysconf( POSIX::_SC_OPEN_MAX() ) || 256; foreach my $f ( 3 .. $max_fd ) { next if $f == fileno $self->{status_fd}; POSIX::close( $f );
From: Richard Soderberg <rsod [...] cpan.org>
[MARKSTOS - Tue Jul 30 17:09:26 2002]: Show quoted text
> I was experiencing a bug when using this module, version .09: > " Bareword "POSIX::_SC_OPEN_MAX" not allowed while "strict subs" in > use at /usr/local/lib/perl5/site_perl/5.8.0/GnuPG.pm line 267." > The attached patch fixes the bug which appears to be causes several > cases of the breakage reported in CPAN Testers. I'm using Perl 5.8.0 > on FreeBSD 4.5.
Also Perl 5.6.0 on OS X 10.2.6. - R. uname='darwin traffic 6.0 darwin kernel version 6.0: sat jul 27 13:18:52 pdt 2002; root:xnuxnu-344.obj~1release_ppc power macintosh powerpc '
From: Perl_Junkie
[guest - Mon Aug 25 22:37:39 2003]: Show quoted text
> [MARKSTOS - Tue Jul 30 17:09:26 2002]: >
> > I was experiencing a bug when using this module, version .09: > > " Bareword "POSIX::_SC_OPEN_MAX" not allowed while "strict subs" in > > use at /usr/local/lib/perl5/site_perl/5.8.0/GnuPG.pm line 267." > > The attached patch fixes the bug which appears to be causes several > > cases of the breakage reported in CPAN Testers. I'm using Perl 5.8.0 > > on FreeBSD 4.5.
> > Also Perl 5.6.0 on OS X 10.2.6. > > - R. > > uname='darwin traffic 6.0 darwin kernel version 6.0: sat jul 27 > 13:18:52 pdt 2002; > root:xnuxnu-344.obj~1release_ppc power macintosh powerpc '
Add a "&" without quotes to prevent perl from parsing that string as a bareword. I've emailed the author about it, and havent' gotten a reply.
Version 0.10 has just been released and should resolve the problem