Return-Path: Delivered-To: apmail-httpd-test-dev-archive@www.apache.org Received: (qmail 27152 invoked from network); 9 Jul 2004 21:24:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 9 Jul 2004 21:24:12 -0000 Received: (qmail 32528 invoked by uid 500); 9 Jul 2004 21:24:05 -0000 Delivered-To: apmail-httpd-test-dev-archive@httpd.apache.org Received: (qmail 32473 invoked by uid 500); 9 Jul 2004 21:24:04 -0000 Mailing-List: contact test-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: test-dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list test-dev@httpd.apache.org Received: (qmail 32414 invoked by uid 99); 9 Jul 2004 21:24:04 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [195.154.174.52] (HELO mail.logilune.com) (195.154.174.52) by apache.org (qpsmtpd/0.27.1) with ESMTP; Fri, 09 Jul 2004 14:24:04 -0700 Received: from [127.0.0.1] (localhost.logilune.com [127.0.0.1]) by mail.logilune.com (Postfix) with ESMTP id 836511E1A01; Fri, 9 Jul 2004 23:23:59 +0200 (CEST) Message-ID: <40EF0CEE.3080607@stason.org> Date: Fri, 09 Jul 2004 14:23:58 -0700 From: Stas Bekman Organization: Hope, Humanized User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040617 X-Accept-Language: en-us, en, he, ru MIME-Version: 1.0 To: test-dev@httpd.apache.org Cc: David Wheeler , modperl@perl.apache.org Subject: Re: Apache-Test module skeletons References: <40EC0235.1060804@modperlcookbook.org> <40EEE6E2.204@stason.org> <60709966-D1E1-11D8-AB4A-000A95972D84@kineticode.com> <40EEFB8A.8060204@stason.org> <555A0986-D1E4-11D8-AB4A-000A95972D84@kineticode.com> <40EF022F.2060601@stason.org> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Randy Kobes wrote: > On Fri, 9 Jul 2004, Stas Bekman wrote: > > >>Randy Kobes wrote: > > [ ... ] > >>>What about requiring 'Apache' for mp1-related modules >>>(since 'Apache' doesn't exist within mp2), and for mp2 >>>modules, requiring 'Apache2' (which doesn't exist within >>>mp1)? >> >>It won't work since the version number lives in the >>package mod_perl. and most likely you'd want to require a >>minimal version at some point. > > > That's true - I forgot about that ... One could tie the > version of Apache.pm (for mp1) or Apache2.pm (for mp2) to > the corresponding mod_perl.pm version, and make a note of > that in the RELEASE notes, but I agree, that's not > addressing the underlying issue. I don't know how M::B does the version checking, but EU::MM does file parsing, searching for the $VERSION line, so the version number must be hardcoded there, unless you do something like: $VERSION = do { require Apache2; require mod_perl.pm; $mod_perl::VERSION } since EU::MM is going to run that in eval STRING. I thikn CPAN.pm does the same, not sure about CPANPLUS. -- __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:stas@stason.org http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com