You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Stas Bekman <st...@stason.org> on 2003/12/04 21:40:25 UTC

Re: [mp2] 3rd-party module porting status

[moving this discussion to the users list where it'll get the most attention]

We are discussing how to bring the list of the ported to mp2 modules up to date:
http://perl.apache.org/products/apache-modules.html#Porting_CPAN_modules_to_mod_perl_2_0_Status

Enrico Sorcinelli wrote:
> On Wed, 03 Dec 2003 10:31:57 -0800
> Stas Bekman <st...@stason.org> wrote:
> 
> 
>>Can you please send a patch for other missing modules, including the first 
>>version number they started to work with mp2 (I guess you need to check at the 
>>Changes file). Thanks.
> 
> 
> In reality, I dont know all mod_perl modules status, but with this simple
> script:
> 
> ---CUT HERE---
> use CPAN;
> use LWP::Simple qw(get);
> foreach $dist ( CPAN::Shell->expand('Distribution','/Apache/') ) {
>         my $id = $dist->id;
>         $id =~ s/.*\/([^\/]+)\.t(ar\.)?gz$/$1/;
>         my $changes_url = 'http://search.cpan.org/src/' . $dist->cpan_userid . '/' . $id;
>         my $changes = get("$changes_url/Changes") || get("$changes_url/CHANGES") ;
>         if ( $changes =~ /(mod_?perl 1 and 2|both (versions of )?mod_?perl|(mp|mod_?perl)\s*\n*\s*(2|two|ii|1\.99))/i ) {
>                 push(@mp2,$id);
>         }
> }    
> ---CUT HERE---

Nice. I'd grep .pm files too, if changes don't contain the reference to this 
change.

Also I'd choose some CPAN mirror and not http://search.cpan.org/ as it's 
always overloaded ;)

> these modules seem to have some relationships with mod_perl 2:
> 
> 	Apache-DBI-0.92 
> 	Apache-ASP-2.55 
> 	MasonX-Request-WithApacheSession-0.24
> 	Apache-SessionManager-1.00 
> 	Apache-Test-1.05
> 	Apache-Test-1.06
> 	Apache-Sybase-CTlib-2.00
> 	Apache-PAR-0.30
> 	Apache-GeoIP-1.215
> 	Apache-AuthNetLDAP-0.26
> 	Apache-AuthenNIS-0.11
> 	Apache-AuthenPasswd-0.12
> 	Apache-AuthenSmb-0.70
> 	Apache-AuthzNIS-0.11
> 	Apache-AuthzNetLDAP-0.07
> 	Apache-Peek-1.01
> 	Apache-AuthChecker-0.20
> 
> So, these modules are missing in perl.apache.org mp2 list:
> 
> 	Apache-DBI-0.92 (from 0.91)

I haven't used it myself with mp2. Does it work just fine?

> 	Apache-ASP-2.55 (I'm not sure of porting status because it seems 
>                          to load Apache::compat)

We shouldn't list it as ported till Apache::compat is removed. I've emailed 
the asp list telling this to Josh.

> 	Apache-Sybase-CTlib-2.00 (from 2.00)
> 	Apache-PAR-0.30 (seems to be stable from 0.20)
> 	Apache-GeoIP-1.215 (from beginning)
> 	Apache-AuthChecker-0.20 (from 0.20)

I haven't used any of these. Can someone (the best respective module authors) 
confirm that they work fine under mp2?

I think Apache::PAR should be fine, since I remember applying patches to mp2 
related to this module.

> For MasonX-Request-WithApacheSession-0.24, the question is: is Mason mod_perl 2
> compliant?

I don't know.

> I can run this check every week, and post the mod_perl status modules diff to
> this list.

bi-weekly is probably better.

> Some considerations:
> 
> 1. No-mod_perl related modules live in the Apache::* namespace (Apache::Session,
>    Apache::Config, and so on)
> 2. mod_perl related modules doesn't live under Apache::* namespace (HTML::Mason,
>    libapreq)

We used to have an explicit list, but as with time it was neglected, it was 
abandoned: http://perl.apache.org/products/old-modules-categorized.html
If someone decides to fix and maintain it that would be great. If this is done 
it can have a status column telling whether it's mp2 or mp1 complient. And 
then you only need to poll for unknown modules or those who weren't mp2 compiled.

> 3. The report is strictly tied to description in Changes distribution files

True. But this can be polished with time.

> Obviously the script can be improved (for example by fetching README, by tuning
> regex matching, etc).
> But, in fact, we must annotate that currently there isn't a possibility to add
> metadata info in order to tag a distribution as a mod_perl (1 or 2) module. 
> It would be nice... :-)

That's where META.yml kicks in. I'm not sure which tag can we use though.
http://module-build.sourceforge.net/META-spec.html
but eventually that's what we are going to use.

> I noted some difference between my report and the site list. Why?
> 
> 1) Apache::AuthExpire is in perl.apache.org list but not here.
>    But CPAN (1.7601) says:
> 
> 	cpan> m Apache::AuthExpire
> 	Module id = Apache::AuthExpire
> 	    DESCRIPTION  PerlAuthenHandler to implement time limits
> 	    CPAN_USERID  JJHORNER (J. J. Horner <jj...@bellsouth.net>)
> 	    CPAN_VERSION 0.36
> 	    CPAN_FILE    J/JJ/JJHORNER/Apache-AuthExpire-0.36.tar.gz
> 	    DSLI_STATUS  bdpf (beta,developer,perl,functions)
> 	    INST_FILE    (not installed)
> 
>    instead of version 0.38
 >
> 2) Apache::AuthPerLDAP - Again CPAN reports:
> 
> 	cpan> m Apache::AuthPerLDAP
> 	Module id = Apache::AuthPerLDAP
> 	    DESCRIPTION  LDAP authentication module (PerLDAP)
> 	    CPAN_USERID  HENRIK (Henrik Strom <he...@computer.org>)
> 	    CPAN_VERSION 0.5
> 	    CPAN_FILE    H/HE/HENRIK/Apache-AuthPerLDAP-0.5.tar.gz
> 	    DSLI_STATUS  bdpf (beta,developer,perl,functions)
> 	    INST_FILE    (not installed) 
> 
>    instead of version 2.01

Shannon, you ported the two, do you co-own the namespace of these modules? If 
not this may explain why CPAN.pm doesn't show them. Enrico, search.cpan.org 
does show the latest version.

> 3) Apache::AuthzPasswd: the only infos I've found about mod_perl 2 are in
>    Makefile.PL... :-\

You mean Changes doesn't mention that it works with mp2, and your script has 
failed to detect that it's working with mp2? ;)

> Notice that to avoid doubts about mirros problems, I also verified this infos
> directly in http://www.cpan.org/modules/03modlist.data.gz
> 
> As final stats, we have approximately:
> 
> 	262 mod_perl modules (only in Apache::* namespace, of course)
> 	21 ported modules (mp2 compliant without Apache::compat)
> 	6 port in progress
> 	0 mp2 only modules ?
> 
> It is the case to contact mod_perl modules authors in order to check their
> intentions to port modules or porting status?

I think that's the case.

> Sorry for this long post... :-)

Not at all, it's great that you are taking time to update things, Enrico. 
Thank you!


__________________________________________________________________
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


-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html


Re: [mp2] 3rd-party module porting status

Posted by speeves <sp...@unt.edu>.
>
> Did you send it to modules@perl.org?
>
Yeah, Graham Barr gave me rights to all of the other mods.  Just didn't 
hear from anyone else on those two...

>
> IMHO, it'd be silly to upload a new version for this purpose. Users 
> will try to get the new version which has no functional or even 
> documentation change. We know that your module is ported to 2.0, so 
> you can just leave it as is.
>
> As suggested in the other followup it's the META.yml that will need to 
> be updated, not Changes. But there is a lot of dust around it at the 
> moment and we need to wait for it to settle down.

Thanks, I agree.  Didn't know if I should just for kicks though...

speeves
cws


-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html


Re: [mp2] 3rd-party module porting status

Posted by Stas Bekman <st...@stason.org>.
speeves wrote:
>>
>>> I noted some difference between my report and the site list. Why?
>>>
>>> 1) Apache::AuthExpire is in perl.apache.org list but not here.
>>>    But CPAN (1.7601) says:
>>>
>>>     cpan> m Apache::AuthExpire
>>>     Module id = Apache::AuthExpire
>>>         DESCRIPTION  PerlAuthenHandler to implement time limits
>>>         CPAN_USERID  JJHORNER (J. J. Horner <jj...@bellsouth.net>)
>>>         CPAN_VERSION 0.36
>>>         CPAN_FILE    J/JJ/JJHORNER/Apache-AuthExpire-0.36.tar.gz
>>>         DSLI_STATUS  bdpf (beta,developer,perl,functions)
>>>         INST_FILE    (not installed)
>>>
>>>    instead of version 0.38
>>
>>
>> >
>>
>>> 2) Apache::AuthPerLDAP - Again CPAN reports:
>>>
>>>     cpan> m Apache::AuthPerLDAP
>>>     Module id = Apache::AuthPerLDAP
>>>         DESCRIPTION  LDAP authentication module (PerLDAP)
>>>         CPAN_USERID  HENRIK (Henrik Strom <he...@computer.org>)
>>>         CPAN_VERSION 0.5
>>>         CPAN_FILE    H/HE/HENRIK/Apache-AuthPerLDAP-0.5.tar.gz
>>>         DSLI_STATUS  bdpf (beta,developer,perl,functions)
>>>         INST_FILE    (not installed)
>>>    instead of version 2.01
>>
>>
>>
>> Shannon, you ported the two, do you co-own the namespace of these 
>> modules? If not this may explain why CPAN.pm doesn't show them. 
>> Enrico, search.cpan.org does show the latest version. 
> 
> 
> 
> I tried to find Henrik Strom, but to no avail, and the cpan people never 
> added me to the jjhorner module, (though I sent a message to the list).  
> I'll try again to get co-maintainer access so that the newest version 
> will be indexed by CPAN.

Did you send it to modules@perl.org?

>>> 3) Apache::AuthzPasswd: the only infos I've found about mod_perl 2 
>>> are in
>>>    Makefile.PL... :-\
>>
>>
>>
>> You mean Changes doesn't mention that it works with mp2, and your 
>> script has failed to detect that it's working with mp2? ;)
> 
> 
> My bad, I forgot to add that to the Changes file.  Will do it and upload.

IMHO, it'd be silly to upload a new version for this purpose. Users will try 
to get the new version which has no functional or even documentation change. 
We know that your module is ported to 2.0, so you can just leave it as is.

As suggested in the other followup it's the META.yml that will need to be 
updated, not Changes. But there is a lot of dust around it at the moment and 
we need to wait for it to settle down.

__________________________________________________________________
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


-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html


Re: [mp2] 3rd-party module porting status

Posted by speeves <sp...@unt.edu>.
>
>> I noted some difference between my report and the site list. Why?
>>
>> 1) Apache::AuthExpire is in perl.apache.org list but not here.
>>    But CPAN (1.7601) says:
>>
>>     cpan> m Apache::AuthExpire
>>     Module id = Apache::AuthExpire
>>         DESCRIPTION  PerlAuthenHandler to implement time limits
>>         CPAN_USERID  JJHORNER (J. J. Horner <jj...@bellsouth.net>)
>>         CPAN_VERSION 0.36
>>         CPAN_FILE    J/JJ/JJHORNER/Apache-AuthExpire-0.36.tar.gz
>>         DSLI_STATUS  bdpf (beta,developer,perl,functions)
>>         INST_FILE    (not installed)
>>
>>    instead of version 0.38
>
> >
>
>> 2) Apache::AuthPerLDAP - Again CPAN reports:
>>
>>     cpan> m Apache::AuthPerLDAP
>>     Module id = Apache::AuthPerLDAP
>>         DESCRIPTION  LDAP authentication module (PerLDAP)
>>         CPAN_USERID  HENRIK (Henrik Strom <he...@computer.org>)
>>         CPAN_VERSION 0.5
>>         CPAN_FILE    H/HE/HENRIK/Apache-AuthPerLDAP-0.5.tar.gz
>>         DSLI_STATUS  bdpf (beta,developer,perl,functions)
>>         INST_FILE    (not installed)
>>    instead of version 2.01
>
>
> Shannon, you ported the two, do you co-own the namespace of these 
> modules? If not this may explain why CPAN.pm doesn't show them. 
> Enrico, search.cpan.org does show the latest version. 


I tried to find Henrik Strom, but to no avail, and the cpan people never 
added me to the jjhorner module, (though I sent a message to the list).  
I'll try again to get co-maintainer access so that the newest version 
will be indexed by CPAN.

>
>
>> 3) Apache::AuthzPasswd: the only infos I've found about mod_perl 2 
>> are in
>>    Makefile.PL... :-\
>
>
> You mean Changes doesn't mention that it works with mp2, and your 
> script has failed to detect that it's working with mp2? ;)

My bad, I forgot to add that to the Changes file.  Will do it and upload.

speeves
cws


-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html


Re: [mp2] 3rd-party module porting status

Posted by Stas Bekman <st...@stason.org>.
Geoffrey Young wrote:
> 
> Stas Bekman wrote:
> 
>>[moving this discussion to the users list where it'll get the most
>>attention]
>>
>>We are discussing how to bring the list of the ported to mp2 modules up
>>to date:
>>http://perl.apache.org/products/apache-modules.html#Porting_CPAN_modules_to_mod_perl_2_0_Status
> 
> 
> should we start a new header for 2.0 specific modules?  Apache::AuthenHook
> and Apache::IncludeHook both have no mp1 equivalents.

+1, this is temp thing anyway, hopefully CPAN+META.yml will have the proper 
support soonish and we won't need to do this manually. META.yml will specify 
the required version via:

# any
requires:
      mod_perl: 1.01

# only mp1
requires:
      mod_perl: < 1.99

# only mp2
requires:
      mod_perl: >= 1.99

then we can autogenerate the 3 categories...

> I'll add Apache::Clean as ported and Apache::Template as in progress.

geoff++


__________________________________________________________________
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


-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html


Re: [mp2] 3rd-party module porting status

Posted by Geoffrey Young <ge...@modperlcookbook.org>.

Stas Bekman wrote:
> [moving this discussion to the users list where it'll get the most
> attention]
> 
> We are discussing how to bring the list of the ported to mp2 modules up
> to date:
> http://perl.apache.org/products/apache-modules.html#Porting_CPAN_modules_to_mod_perl_2_0_Status

should we start a new header for 2.0 specific modules?  Apache::AuthenHook
and Apache::IncludeHook both have no mp1 equivalents.

I'll add Apache::Clean as ported and Apache::Template as in progress.

--Geoff



-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html