Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: Dev

Apache::Test version issues

 

 

ModPerl dev RSS feed   Index | Next | Previous | View Threaded


fred at redhotpenguin

Apr 18, 2009, 2:18 AM

Post #1 of 2 (1578 views)
Permalink
Apache::Test version issues

Can someone explain to me why we need version here? Is it for older
versions of perl?

http://rt.cpan.org/Public/Bug/Display.html?id=32992


#! /bin/sh /usr/share/dpatch/dpatch-run
## 01-version.dpatch by <mhershberger [at] intrahealth>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fix up the version checking

@DPATCH@

diff -ub Apache-Test-1.30/Makefile.PL\~ Apache-Test-1.30/Makefile.PL
--- Apache-Test-1.30/Makefile.PL~ 2007-11-14 01:44:36.000000000 -0500
+++ Apache-Test-1.30/Makefile.PL 2008-01-29 21:56:49.000000000 -0500
@@ -2,7 +2,7 @@

use lib qw(lib);
use Apache::Test5005compat;
-
+use version;
use strict;
use warnings;

@@ -147,7 +147,7 @@
}
}

-if (TOP_LEVEL && $ExtUtils::MakeMaker::VERSION < 6.06) {
+if (TOP_LEVEL && version->new($ExtUtils::MakeMaker::VERSION) < version->new(6.0
6)) {
# now that we're using subversion, make sure that
# .svn directories are skipped during the build process
# for old versions of MakeMaker
@@ -223,3 +223,4 @@
$string;
};
}

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe [at] perl
For additional commands, e-mail: dev-help [at] perl


pgollucci at p6m7g8

Apr 24, 2009, 10:30 PM

Post #2 of 2 (1430 views)
Permalink
Re: Apache::Test version issues [In reply to]

Fred Moyer wrote:
> Can someone explain to me why we need version here? Is it for older
> versions of perl?

Because sometimes it compares wrong b/c of string vs numberic depending
on the version of MakeMaker.


>
> http://rt.cpan.org/Public/Bug/Display.html?id=32992

I remember the only catch being that version wasn't in perl 5.6.x but I
mean seriously .... who cares. ditch that branch. I'd rather 5.10.x
worked then 5.6.x.

--
------------------------------------------------------------------------
Philip M. Gollucci (philip [at] ridecharge)
did: 703.579.6947, o: 703.549.2050x206
Senior System Admin - RideCharge Inc.
http://ridecharge.com
1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70 3F8C 75B8 8FFB DB9B 8C1C

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe [at] perl
For additional commands, e-mail: dev-help [at] perl

ModPerl dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.