Skip Menu |
 

This queue is for tickets about the Gantry CPAN distribution.

Report information
The Basics
Id: 27594
Status: open
Priority: 0/
Queue: Gantry

People
Owner: Nobody in particular
Requestors: andy [...] shitov.ru
Cc:
AdminCc:

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



Subject: Apache2::Request is an undeclared prereq
Download (untitled) / with headers
text/plain 111b
Gantry's tests require Apache2::Request but it isn't listed as a prerequisite. Not a huge problem of course :)
Subject: Re: [rt.cpan.org #27594] Apache2::Request is an undeclared prereq
Date: Fri, 15 Jun 2007 08:59:39 -0500
To: bug-Gantry [...] rt.cpan.org
From: "Tim Keefer" <tim [...] timkeefer.com>
Download (untitled) / with headers
text/plain 1024b
Gantry can run on mod_perl 1, 2 and CGI. This is the reason Apache2::Request can't be a prereq. However, Gantry does have some tests for Apache2::Request. If mod_perl2 is detected on your box then the mod_perl2 tests will run which includes and specific test for Apache2::Request. If Apache2::Request doesn't exist then it will fail with some libapreq2 install instructions. If you know of a better way to handle this, I'm all ears. Thanks for the feedback, Tim On 6/15/07, Andy Armstrong via RT <bug-Gantry@rt.cpan.org> wrote: Show quoted text
> > > Fri Jun 15 09:30:50 2007: Request 27594 was acted upon. > Transaction: Ticket created by ANDYA > Queue: Gantry > Subject: Apache2::Request is an undeclared prereq > Broken in: 3.49 > Severity: (no value) > Owner: Nobody > Requestors: ANDY@cpan.org > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=27594 > > > > Gantry's tests require Apache2::Request but it isn't listed as a > prerequisite. > > Not a huge problem of course :) >
Not really a bug.
From: jarich [...] perltraining.com.au
Download (untitled) / with headers
text/plain 883b
On Fri Jun 15 09:59:58 2007, tim@timkeefer.com wrote: Show quoted text
> However, Gantry does have some tests for Apache2::Request. If mod_perl2 is > detected on your box then the mod_perl2 tests will run which includes and > specific test for Apache2::Request. If Apache2::Request doesn't exist then > it will fail with some libapreq2 install instructions. > > If you know of a better way to handle this, I'm all ears.
Easy. Once you detect that mod_perl2 is available, then test for the existence of Apache2::Request: eval "use Apache2::Request"; if($@) { # Oops that didn't work! plan skip_all => "Need Apache2::Request to use mod_perl2"; } It is ugly to have these tests fail because an optional module is assumed to exist merely because something else does. This also makes it very difficult to compile Gantry into a Debian package. All the best, Jacinta
From: jarich [...] perltraining.com.au
Download (untitled) / with headers
text/plain 883b
On Fri Jun 15 09:59:58 2007, tim@timkeefer.com wrote: Show quoted text
> However, Gantry does have some tests for Apache2::Request. If mod_perl2 is > detected on your box then the mod_perl2 tests will run which includes and > specific test for Apache2::Request. If Apache2::Request doesn't exist then > it will fail with some libapreq2 install instructions. > > If you know of a better way to handle this, I'm all ears.
Easy. Once you detect that mod_perl2 is available, then test for the existence of Apache2::Request: eval "use Apache2::Request"; if($@) { # Oops that didn't work! plan skip_all => "Need Apache2::Request to use mod_perl2"; } It is ugly to have these tests fail because an optional module is assumed to exist merely because something else does. This also makes it very difficult to compile Gantry into a Debian package. All the best, Jacinta
Subject: Re: [rt.cpan.org #27594] Apache2::Request is an undeclared prereq
Date: Thu, 25 Sep 2008 18:26:47 -0700
To: bug-Gantry [...] rt.cpan.org
From: "Tim Keefer" <tim [...] timkeefer.com>
Download (untitled) / with headers
text/plain 1.1k
Fair enough, test fixed and committed. Thanks for the suggestion Jacinta. -Tim On Thu, Sep 25, 2008 at 2:11 AM, jarich@perltraining.com.au via RT <bug-Gantry@rt.cpan.org> wrote: Show quoted text
> Queue: Gantry > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=27594 > > > On Fri Jun 15 09:59:58 2007, tim@timkeefer.com wrote: >
>> However, Gantry does have some tests for Apache2::Request. If mod_perl2 is >> detected on your box then the mod_perl2 tests will run which includes and >> specific test for Apache2::Request. If Apache2::Request doesn't exist then >> it will fail with some libapreq2 install instructions. >> >> If you know of a better way to handle this, I'm all ears.
> > Easy. Once you detect that mod_perl2 is available, then test for the > existence of Apache2::Request: > > eval "use Apache2::Request"; > if($@) { # Oops that didn't work! > plan skip_all => "Need Apache2::Request to use mod_perl2"; > } > > It is ugly to have these tests fail because an optional module is > assumed to exist merely because something else does. This also makes it > very difficult to compile Gantry into a Debian package. > > All the best, > > Jacinta >


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.