Date: Tue, 3 Jul 2001 09:34:23 +0800 From: Mars G Miro <mars@cannoncreek.com> To: "Peter Pentchev" <roam@orbitel.bg>, "Anton Berezin" <tobez@tobez.org>, freebsd-ports@freebsd.org Subject: Re: clarification on P5-CGI port Message-ID: <01070308584300.14737@hellraiser.cannoncreek.com> In-Reply-To: <003f01c1035d$92219200$4500a8c0@nomad> References: <003f01c1035d$92219200$4500a8c0@nomad>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 03 July 2001 09:14, you wrote: > > > > .. <snipped again to save bw & hard dick space> .. > > . > > > > > > CGI.pm) in /usr/local/lib/path/to/perl/modules..... > > > No, it shouldn't, for several reasons. > > First, the ports are not allowed to touch anything outside of > their PREFIX, usually /usr/local. If a Perl module is installed > under /usr/local/libdata/perl, I think that Perl would pick it up > first when searching for a .pm file by name. > Yeah, I didn't think of that. ;-( > Second, no, the p5-CGI module should not deinstall a CGI.pm, > if there is no CGI.pm file in the module itself. The fact that > the module is called 'CGI' does not necessarily mean that it has > to include a file named CGI.pm, which you include with 'use CGI'. > It might as well contain several files in a common CGI subdir, > which you include with 'use CGI::Base' and such. > > it > > > > gives some of the functionality. > > > Not your CGI.pm. Your Perl CGI module, yes. But not the actual > module that you use by 'use CGI'. To use the new functionality, > you have to use the new module's parts by 'use CGI::Base' or similar. > Okay, I'll try that. Thanks! > > G'luck, > > Peter > > > > -- > > No language can express every thought unambiguously, least of all this > > one. .. <next thread> .. > > Why do you think the new CGI module should have an actual CGI.pm > > module? :) I seem to remember somebody stating that as one of the > > differences along the upgrade path - that the new p5-CGI module does > > not have a CGI module per se, but it is broken into parts. > > It is not quite like this. To put it simply, p5-CGI port has basically > nothing to do with CGI.pm as such. >www/p5-CGI has a wrong name, it > should have been called www/p5-CGI-modules, since that what it is. > yeah, from http://stein.cshl.org/WWW/software/CGI::modules/ , but this port does give the functionality of the CGI.pm module (when combined with two other modules), the only thing is that it is broken into a few parts. Probably the confusion sets in because these CGI modules are v2.76 and that the latest CGI.pm (by the L. Stein is also 2.76, but 3.0 is already available). > At some point in the past, there used to be a www/p5-CGI.pm port, which > was removed when a version of perl containing CGI.pm was imported into > the base system. I would go as far as to claim that that was a mistake. > > The forthcoming import of 5.6.1 into -current (and then into -stable) is > supposed to solve the biggest problem with ports containing newer Will this be in time for FreeBSD 4.4R ? > versions of PM files which are in the base system - currently, even if > such a port exists, and is installed, the older version of a module will > be used if care is not taken, since the perl system path > (/usr/libdata/perl/...) precedes perl local path > (/usr/local/lib/perl5/... in the default @INC array. This is going to > change. > So w/c means that at some point in the future, if I install a ported perl module, the perl path will look for it first, instead of the base, correct? > That said, the revival of the www/p5-CGI.pm port is in order, as well as > the renaming of www/p5-CGI to www/p5-CGI-modules. > That would be fascinating! As there might be a few of us here who want the functionality of the latest CGI.pm (for mod_perl, eperl, etc.) > \Anton. > -- > May the tuna salad be with you. Thanks for the info guys, I really appreciate it! cheers mars To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01070308584300.14737>