gt: Silent failure if no configuration file found
I cloned and compiled gt, and installed it using make install.
When I tried to run “gt”, it appeared to succeed, but nothing happened. Eventually, running it under strace
revealed that it was existing because it could not find any configuration files.
stat64("~/.gt.conf", 0xbecf8a28) = -1 ENOENT (No such file or directory)
open("/etc/gt//gt.conf", O_RDONLY) = -1 ENOENT (No such file or directory)
exit_group(-1) = ?
+++ exited with 255 +++
Creating /etc/gt/gt.conf
as an empty file allowed it to continue.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 18 (6 by maintainers)
@JFreyberger I think that this is now fixed, I got rid of the “runtime prefix” in favour of the normal prefix plus
DESTDIR
when installing into a separate rootfs.Here is how to use install into
/usr/local
but use/etc
instead of/usr/local/etc
:Thanks, that clarifies a bit. I can see that gt is not using cmake in the normal ways so the config ends up in the wrong place. I’ll investigate the reason for this and come up with a patch soon.
– bye, pabs
https://bonedaddy.net/pabs3/
giving no prefix (using default cmake prefix)
Install the project… – Install configuration: “” – Up-to-date: /usr/local/etc/gt/ – Up-to-date: /usr/local/etc/gt/gt.conf – Up-to-date: /usr/local/bin/gt – Up-to-date: /usr/local/usr/share/man/man1/gt.1.gz
might explain the issues