Re: Exceptions section dropped?

2000-08-14 Thread Stas Bekman

Hi, Andreas

> > On Mon, 14 Aug 2000 10:04:33 +0200 (CEST), Stas Bekman <[EMAIL PROTECTED]> said:
> 
> cpan> install mod_perl_guide
>  > Running make for S/ST/STAS/Apache-mod_perl_guide-1.22.tar.gz
> 
>  > Got another SIGINT
> cpan> install Apache::mod_perl_guide
>  > Running make for S/ST/STAS/Apache-mod_perl_guide-1.23.tar.gz
> 
>  > ...while the latest version is 1.25. Something is wrong.
> 
>  > I won't delete the previous versions of the Guide now, so whoever handles
>  > CPAN now (I think it's Jarkko Hietaniemi) will be able to verify and debug
>  > this apparently broken behavior.
> 
> If you want to use CPAN.pm as a distribution medium for the guide, you
> need to be careful about versioning. You need to tell people which
> module (or pseudo module) they should install in order to get the
> guide and you should then make sure that this module always carries
> the latest version number.
> 
> You need to know that PAUSE is parsing the *.pm files in order ot
> guess the $VERSION.

I do know that.

> So when I look at 1.25, I find only one file that contains the
> $VERSION=1.25 and that is src/Version.pm. And that file does not have
> a package declaration, so PAUSE has no chance to guess which package
> is referred to.

That's my fault. I was confused by Makefile.PL's:
   VERSION_FROM => 'src/Version.pm',

> Note that PAUSE is parsing, not interpreting the code, so perl tricks
> do not work. You need to write pretty straightforward code.

Ok

> So, I hear you asking, "what should I do"? I believe that you should
> include the $VERSION=1.25 in your mod_perl_guide.pm where there is
> already a package declaration. If it doesn't work, let me know shortly
> after the upload, and I'll find a better suggestion.

I know what should I do:

src/Version.pm:
package Apache::mod_perl_guide;
$VERSION = '1.26';
1;

Does this look good?

At this point I'll solve it by removing the old versions from CPAN. And
starting from the next release this should be clean.

Thanks a lot, Andreas!!!

_
Stas Bekman  JAm_pH --   Just Another mod_perl Hacker
http://stason.org/   mod_perl Guide  http://perl.apache.org/guide 
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://jazzvalley.com
http://singlesheaven.com http://perlmonth.com   perl.org   apache.org





Re: Exceptions section dropped?

2000-08-14 Thread Andreas J. Koenig

> On Mon, 14 Aug 2000 10:04:33 +0200 (CEST), Stas Bekman <[EMAIL PROTECTED]> said:

cpan> install mod_perl_guide
 > Running make for S/ST/STAS/Apache-mod_perl_guide-1.22.tar.gz

 > Got another SIGINT
cpan> install Apache::mod_perl_guide
 > Running make for S/ST/STAS/Apache-mod_perl_guide-1.23.tar.gz

 > ...while the latest version is 1.25. Something is wrong.

 > I won't delete the previous versions of the Guide now, so whoever handles
 > CPAN now (I think it's Jarkko Hietaniemi) will be able to verify and debug
 > this apparently broken behavior.


If you want to use CPAN.pm as a distribution medium for the guide, you
need to be careful about versioning. You need to tell people which
module (or pseudo module) they should install in order to get the
guide and you should then make sure that this module always carries
the latest version number.

You need to know that PAUSE is parsing the *.pm files in order ot
guess the $VERSION.

So when I look at 1.25, I find only one file that contains the
$VERSION=1.25 and that is src/Version.pm. And that file does not have
a package declaration, so PAUSE has no chance to guess which package
is referred to.

Note that PAUSE is parsing, not interpreting the code, so perl tricks
do not work. You need to write pretty straightforward code.

So, I hear you asking, "what should I do"? I believe that you should
include the $VERSION=1.25 in your mod_perl_guide.pm where there is
already a package declaration. If it doesn't work, let me know shortly
after the upload, and I'll find a better suggestion.

-- 
andreas



Re: Exceptions section dropped?

2000-08-14 Thread Stas Bekman

On Mon, 14 Aug 2000, Matt Sergeant wrote:

> On Mon, 14 Aug 2000, Stas Bekman wrote:
> 
> > > I went to patch the exceptions section of the guide 1.22, and found it
> > > gone... Has it been dropped permanently or been misplaced?
> > 
> > Huh? It's all there, see:
> > http://perl.apache.org/guide/perl.html#Exception_Handling_for_mod_perl
> > 
> > Matt, the latest version is 1.25.
> 
> I knew something was up... 1.22 is the version that I got when CPAN.pm
> installed it. I'll try again.

Ok, you it looks like you've hit some CPAN bug, indeed:

i /guide/
DistributionS/ST/STAS/Apache-mod_perl_guide-1.22.tar.gz
DistributionS/ST/STAS/Apache-mod_perl_guide-1.23.tar.gz
istributionS/ST/STAS/Apache-mod_perl_guide-1.25.tar.gz
Module  Apache::mod_perl_guide
(S/ST/STAS/Apache-mod_perl_guide-1.23.tar.gz)
Module  DB_File::Lock2
(S/ST/STAS/Apache-mod_perl_guide-1.25.tar.gz)
Module  Guide::Pod2Html
(S/ST/STAS/Apache-mod_perl_guide-1.23.tar.gz)
Module  Guide::Pod2HtmlPS
(S/ST/STAS/Apache-mod_perl_guide-1.23.tar.gz)
Module  My::DB
(S/ST/STAS/Apache-mod_perl_guide-1.25.tar.gz)
Module  Pod::HtmlPsPdf::Book
(S/ST/STAS/Apache-mod_perl_guide-1.25.tar.gz)
Module  Pod::HtmlPsPdf::Chapter
(S/ST/STAS/Apache-mod_perl_guide-1.25.tar.gz)
Module  Pod::HtmlPsPdf::Common
(S/ST/STAS/Apache-mod_perl_guide-1.25.tar.gz)
Module  Pod::HtmlPsPdf::Config
(S/ST/STAS/Apache-mod_perl_guide-1.25.tar.gz)
Module  Pod::HtmlPsPdf::Html
(S/ST/STAS/Apache-mod_perl_guide-1.25.tar.gz)
Module  Pod::HtmlPsPdf::RunTime
(S/ST/STAS/Apache-mod_perl_guide-1.25.tar.gz)
Module  mod_perl_guide
(S/ST/STAS/Apache-mod_perl_guide-1.22.tar.gz)

cpan> install mod_perl_guide
Running make for S/ST/STAS/Apache-mod_perl_guide-1.22.tar.gz

Got another SIGINT
cpan> install Apache::mod_perl_guide
Running make for S/ST/STAS/Apache-mod_perl_guide-1.23.tar.gz

...while the latest version is 1.25. Something is wrong.

I won't delete the previous versions of the Guide now, so whoever handles
CPAN now (I think it's Jarkko Hietaniemi) will be able to verify and debug
this apparently broken behavior.

BTW, my CPAN client's version is 1.56

search.cpan.org returns a correct version (the latest):
http://search.cpan.org/search?mode=module&query=mod_perl_guide
So Matt please use this link for now.

Thanks a lot!

_
Stas Bekman  JAm_pH --   Just Another mod_perl Hacker
http://stason.org/   mod_perl Guide  http://perl.apache.org/guide 
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://jazzvalley.com
http://singlesheaven.com http://perlmonth.com   perl.org   apache.org





Re: Exceptions section dropped?

2000-08-14 Thread Matt Sergeant

On Mon, 14 Aug 2000, Matt Sergeant wrote:

> > Matt, the latest version is 1.25.
> 
> I knew something was up... 1.22 is the version that I got when CPAN.pm
> installed it. I'll try again.

OK, again I typed in the CPAN shell:

install Apache-mod_perl_guide

And it tried to give me 1.22 again. Then I tried all sorts of ways of
adding 1.25 onto the end of that to no avail. The only way I managed to
get 1.25 installed by CPAN.pm was to type:

install My::DB

I seem to recall there was a better way via a Bundle:: or something, but I
can't recall what it was, and nothing showed up under "i /guide/".

-- 


Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org | AxKit: http://axkit.org




Re: Exceptions section dropped?

2000-08-14 Thread Matt Sergeant

On Mon, 14 Aug 2000, Stas Bekman wrote:

> > I went to patch the exceptions section of the guide 1.22, and found it
> > gone... Has it been dropped permanently or been misplaced?
> 
> Huh? It's all there, see:
> http://perl.apache.org/guide/perl.html#Exception_Handling_for_mod_perl
> 
> Matt, the latest version is 1.25.

I knew something was up... 1.22 is the version that I got when CPAN.pm
installed it. I'll try again.

-- 


Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org | AxKit: http://axkit.org




Re: Exceptions section dropped?

2000-08-14 Thread Stas Bekman

> I went to patch the exceptions section of the guide 1.22, and found it
> gone... Has it been dropped permanently or been misplaced?

Huh? It's all there, see:
http://perl.apache.org/guide/perl.html#Exception_Handling_for_mod_perl

Matt, the latest version is 1.25.


_
Stas Bekman  JAm_pH --   Just Another mod_perl Hacker
http://stason.org/   mod_perl Guide  http://perl.apache.org/guide 
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://jazzvalley.com
http://singlesheaven.com http://perlmonth.com   perl.org   apache.org





Exceptions section dropped?

2000-08-11 Thread Matt Sergeant

I went to patch the exceptions section of the guide 1.22, and found it
gone... Has it been dropped permanently or been misplaced?

-- 


Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org | AxKit: http://axkit.org