Richard Hipp <[email protected]> writes:
> On 11/4/15, Rolf Ade <[email protected]> wrote:
>> Updating from my local build 1.32 (which works fine) to a local build
>> (but not necessary with the same configure options) 1.34 I now get
>>
>> <p class="generalError">
>> cannot locate home directory - please set the FOSSIL_HOME or HOME
>> environment variables
>> </p>
>>
>> from fossil using in a cgi script. What changed? And the variables of
>> which environment? To which value?
>
> Fossil is trying to locate the "~/.fossil file that contains your
> global settings.  I don't know why it is trying to do this.  On the
> https://www.fossil-scm.org/fossil website (which also runs as CGI) the
> HOME environment variable is set to /root, but no such directory
> exists within the chroot jail in which Fossil is running.
>
> In the CGI script itself, you can add lines like this:
>
>      setenv: HOME /some/path
>
> Which will cause the HOME environment variable to be set to something.
> But, again, I don't understand why you need it.
>
> If you can figure out what is going wrong, we'd appreciate it if you
> would report your findings.

Turns out, that the behaviour depends on the configure options.

Build with

./configure

fossil works just fine (run via cgi), even with 1.34

Build with

./configure --with-th1-hooks

when run as cgi, fossil requires the HOME env variable pointing to a
writable .fossil file (or to a writable directory, if there isn't a
.fossil, it creates one then).

This was also true even for the 1.32 version, I reported as working. I
obviously had build the working 1.32 version without this configure
option. If build with the configure option --with-th1-hooks, 1.32 also
needs a writeable .fossil db.

So the remaining question boils down to: why does fossil need a writable
.fossil file, if --with-th1-hooks is enabled?

ro

_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to