On 2021-03-12 00:46:30, Alan Ianson (1:153/757) wrote to All:
I just built husky on my desktop fresh just for a look. I haven't set a FIDOCONFIG environment previously and hpt and htick could always find
the config as I set it in huskymak.cfg but currently husky can't find
it's config unless I set the FIDOCONFIG environment.
No a problem really, I can set that environment but is it supposed to
work that way?
In your huskymak.cfg it's possible the CFGDIR variable changed because you modified PREFIX.
But it may be something else.
In Linux you can unset FIDOCONFIG, install strace (Ubuntu: "apt install strace") then run:
$ strace -o strace.out hpt toss
$ grep open strace.out | tail
...
openat(AT_FDCWD, "/etc/ftnconfig", O_RDONLY) = -1 ENOENT (No such file or directory)
In my case it took me a while to find the source of "ftnconfig". I build HPT with CMake (which does not use huskymak.cfg), and it turns out this is set in fidoconf/CMakeLists.txt:
set(CFGDIR "/etc/ftn" CACHE STRING "CFGDIR")
But if you don't build with CMake, CFGDIR is found in huskymak.cfg.
--- GoldED+/BSD 1.1.5-b20180707
* Origin: Blizzard of Ozz, Melbourne, Victoria, Australia (3:633/267)