git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCHv2/RFC] gitweb: Prepare for splitting gitweb

From
Jakub Narebski <jnareb@gmail.com>
Date
Jul 14, 2010, 09:24 UTC
Message-ID
<201007141125.01863.jnareb@gmail.com>
In-Reply-To
<AANLkTikyxqPHkNnVaN6kLNdbjxl69e_8Yuf1-n7CwnEg@mail.gmail.com>
On Wed, 14 Jul 2010, Ævar Arnfjörð Bjarmason wrote:
Show 17 quoted lines
> On Tue, Jul 13, 2010 at 22:24, Jakub Narebski <jnareb@gmail.com> wrote:
> 
> > I wrote simple script that tests result of __DIR__ and $FindBin::Bin.
> > For cgi-bin / mod_cgi it was:
> >
> >  __DIR__       = /var/www/cgi-bin/gitweb (symlink to /home/local/gitweb)
> >  $FindBin::Bin = /home/local/gitweb
> >
> > For mod_perl (ModPerl::Registry handler) it was
> >
> >  __DIR__       = /var/www/perl/gitweb (symlink to /home/local/gitweb)
> >  $FindBin::Bin = /
> >
> > As you can see it's useless.  I have't checked the FastCGI case...
> 
> Thanks for spending time researching what was an offhand ignorant "hey
> wasn't .." comment. Also, sorry :)

Nothing to it. I wanted to check if there really is a problem with FindBin on mod_perl, as I was not sure with description in "Known Issues" section in FindBin manpage.

Note that using 'FindBin->again();' after 'use FindBin;' fixes this issue. So perhaps it would be beter to use FindBin than borrow code for __DIR__ from Dir::Self.

> But that's very informative. Good to know that FindBin is broken like
> that under mod_perl.
It might be only under ModPerl::Registry, but it might be not.
-- 
Jakub Narebski
Poland
Previous: Ævar Arnfjörð BjarmasonNext: Ævar Arnfjörð Bjarmason
Message 7 of 14 in “[PATCHv2/RFC] gitweb: Prepare for splitting gitweb”
  1. Jakub NarebskiJul 7, 2010
  2. Ævar Arnfjörð BjarmasonJul 7, 2010
  3. Jakub NarebskiJul 7, 2010
  4. Jakub NarebskiJul 8, 2010
  5. Jakub NarebskiJul 13, 2010
  6. Ævar Arnfjörð BjarmasonJul 13, 2010
  7. Jakub NarebskiJul 14, 2010
  8. Ævar Arnfjörð BjarmasonJul 14, 2010
  9. Jakub NarebskiJul 14, 2010
  10. Junio C HamanoJul 7, 2010
  11. Jakub NarebskiJul 7, 2010
  12. Junio C HamanoJul 8, 2010
  13. Jakub NarebskiJul 8, 2010
  14. [PATCHv3/RFC] gitweb: Prepare for splitting gitwebJakub Narebski, Jul 8, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.