Errr... how the above addresses "not being able to install Perl modules
that web server can use without help from sysadmin", or in other words
"not being able to tell web server where to find locally installed /
/ additional Perl modules"? If you can't set PERL5LIB for 'apache'
or 'web' or 'nobody' user, and you can't edit web server configuration
files...
Well, perhaps
use lib (grep { -d } split /:/, "++GITWEBPERLLIB++");
and associated change to gitweb/Makefile would help here.
Tatsuhiko Miyagawa addressed the issue of "2.5MB tarball". PSGI is
specification, Plack is utilities (and includes reference implementation).
Using PSGI / Plack / PSGI compatibile web framework would give us ability
to run gitweb on many web servers: CGI, FastCGI, mod_perl (all those via
adapters from Plack), mod_psgi, HTTP::Server::PSGI (included in Plack),...
and give us Test::Plack.
But not less important would be ability to use Plack middleware; for
example gitweb output caching could be as simple as
use Plack::Builder;
...
builder {
enable "Cache", ...
$app;
};
Thanks for the research on those Perl web frameworks.
Or HTTP::Server::PSGI from Plack.
Errr... isn't FindBin considered harmful, and current best practice is
using Self::Dir, or just
# __DIR__ is taken from Dir::Self __DIR__ fragment
sub __DIR__ () {
File::Spec->rel2abs(join '', (File::Spec->splitpath(__FILE__))[0, 1]);
}
use lib __DIR__ . '/lib';
And there is also App::FatPacker and PAR solution; pity that neither is
in core (well, for App::FatPacker it would be build time dependency only).
--
Jakub Narebski
Poland
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html