TIP: Click on subject to list as thread! ANSI
echo: fidosoft.husky
to: Alan Ianson
from: andrew clarke
date: 2021-03-13 20:21:00
subject: FIDOCONFIG environment

On 2021-03-12 00:46:30, Alan Ianson (1:153/757) wrote to All:

 AI> I just built husky on my desktop fresh just for a look. I haven't set a
 AI> FIDOCONFIG environment previously and hpt and htick could always find
 AI> the config as I set it in huskymak.cfg but currently husky can't find
 AI> it's config unless I set the FIDOCONFIG environment.

 AI> No a problem really, I can set that environment but is it supposed to
 AI> 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)

SOURCE: echomail via QWK@pharcyde.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.