I was following the tutorial here[0] to publish my hg repositories located on my Gentoo Box. After I set up hgweb.config, I executed hgwebdir.cgi it failed to execute. Please see hgwebdir.log file attached to this bug. After I searched on the web for a while, I realized that this is a known bug with mercurial. Pleasee see the link here[1] So I patched the package and the ebuild file. Please see patches for the package and the ebuild attached to this. Tested with 'ebuild test' and worked fine for me. [0] http://mercurial.selenic.com/wiki/PublishingRepositories#multiple [1] http://mercurial.selenic.com/bts/issue1778 Reproducible: Always Steps to Reproduce:
Created attachment 222357 [details] Runtime log file for hgwebdir.
Created attachment 222361 [details, diff] Fix
Created attachment 222363 [details, diff] Ebuild patch
Created attachment 222365 [details, diff] emerge --info
*** Bug 308119 has been marked as a duplicate of this bug. ***
*** Bug 308121 has been marked as a duplicate of this bug. ***
Dirkjan: is this a bug that should be taken upstream? 1.5.1 has the same code.
Krzysztof: there's already an upstream bug, issue1778. And I still stand by my comments there, namely that this is a bug in the environment the CGI is being executed in. M. Gokturk Yuksek: how exactly are you setting this up? Is the web server apache? Can you paste any apache config data you have?
(In reply to comment #8) > Krzysztof: there's already an upstream bug, issue1778. And I still stand by my > comments there, namely that this is a bug in the environment the CGI is being > executed in. > > M. Gokturk Yuksek: how exactly are you setting this up? Is the web server > apache? Can you paste any apache config data you have? > It's been a long time since i set this up, but as far as a i remember i followed the instructions in this link[0]. My installation is system-wide so i used the generic hgwebdir script. I'm using virtual hosts in apache. Here is a portion of the config file: DocumentRoot "/var/www/<my_domain>/cgi-bin/hgwebdir" Options ExecCGI <Files hgwebdir.cgi> SetHandler cgi-script </Files> ScriptAlias /cgi-bin/ "/var/www/<my_domain>/cgi-bin/" DirectoryIndex hgwebdir.cgi AddHandler cgi-script cgi pl [0] http://mercurial.selenic.com/wiki/PublishingRepositories#multiple
This doesn't look like something that should be in this Bugzilla, please add relevant information to upstream bug.