I've recently renamed my /etc/make.conf to /etc/portage/make.conf as that seemed to me the more appropriate location of the file. Now euses fails for me: # euses ssl sh: /etc/make.conf: No such file or directory PORTDIR not found It would be nice to have this fixed. Unfortunately the code simply sources a number of files into a shell opened via popen, so adding more possible locations will result in error messages for each of those which doesn't exist. One solution would be adding file existance checks to the shell code, but that feels kind of wrong for a C application.
Well, make.conf(5) clearly states two locations for the file (since when?) so I guess adding the second one in the shell code wouldn't harm. Also, I could redirect the output to /dev/null or similar (but I am not aware how portable that is).
Created attachment 316793 [details, diff] Check if files exist before sourcing them Would this do?
(In reply to comment #2) > Created attachment 316793 [details, diff] [details, diff] > Check if files exist before sourcing them > > Would this do? Works for me.
Thank you for reporting and testing. This bug is fixed in 2.5.8.