Skip Menu |

This queue is for tickets about the Apache-SizeLimit CPAN distribution.

Report information
The Basics
Id: 37178
Status: open
Priority: 0/
Queue: Apache-SizeLimit

People
Owner: Nobody in particular
Requestors: dlf2 [...] cornell.edu
Cc: kbb2 [...] psulias.psu.edu
AdminCc:

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



CC: Kurt Baker <kbb2 [...] psulias.psu.edu>
Subject: Solaris version check doesn't parse versions correctly
We have run into a problem with the Apache::SizeLimit on Solaris 2.10. Note that 2.10 is not > 2.6 so we receive the error below. [Fri Jun 20 15:39:28 2008] [error] Apache::SizeLimit is not implemented on your platform. at if ( $Config{'osname'} eq 'solaris' && $Config{'osvers'} >= 2.6 ) { *_platform_check_size = \&_solaris_2_6_size_check; *_platform_getppid = \&_perl_getppid; }
On Fri Jun 27 13:37:42 2008, PERRIN wrote: Show quoted text
> We have run into a problem with the Apache::SizeLimit on Solaris 2.10. > Note that 2.10 is not > 2.6 so we receive the error below.
Is 2.6 still commonly seen? Maybe we can just drop this check now. - Perrin
CC: dlf2 [...] cornell.edu, kbb2 [...] psulias.psu.edu
Subject: Re: [rt.cpan.org #37178] Solaris version check doesn't parse versions correctly
Date: Fri, 27 Jun 2008 14:37:05 -0400 (EDT)
To: bug-Apache-SizeLimit [...] rt.cpan.org
From: "David L. Fielding" <dlf2 [...] cornell.edu>
David, I believe I saw something that indicated the os function size limit uses was added to Solaris as of 2.6. Removing it would mean the code would simply not work for versions earlier than 2.6. Even though most Solaris systems that are maintained have likely been upgraded to 2.6 and above there are likely a few out there. Why not simply split the version on '.' and only compare the right side if the left side equals 2. $version =~ /(\d+)\.(\d+)/; if ($1 > 2 or ($1 == 2 and $2 >=6)) { { ... } This would work for 2.10 or 3.1. David Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=37178 > > > On Fri Jun 27 13:37:42 2008, PERRIN wrote:
>> We have run into a problem with the Apache::SizeLimit on Solaris 2.10. >> Note that 2.10 is not > 2.6 so we receive the error below.
> > Is 2.6 still commonly seen? Maybe we can just drop this check now. > > - Perrin >