metomi / fcm

:hammer: FCM: a modern Fortran build system + wrappers to Subversion for scientific software development
http://metomi.github.io/fcm/doc/
GNU General Public License v3.0
40 stars 17 forks source link

Config files are loaded from paths incosistent with debian packaging #251

Open poobarb opened 6 years ago

poobarb commented 6 years ago

The FCM documentation states that config files (such as keywords.cfg) are located from the following list of paths:

However, the Debian package for FCM (cf. here) installs the confing files to /etc/fcm (a choice which is not unreasonable), whilst it installs FCM itself to /usr/bin/. This leads to the expected config path being /usr/etc/fcm/ rather than /etc/fcm. Hence the config files are ignored.

Could FCM be modified to search the path /etc/fcm as well, leading to the following search order?

matthewrmshin commented 6 years ago

Hi, the Debian package is not actually maintained by us. I think it is maintained by @amckinstry so you may want to check with him as well.

Otherwise, the search location is defined here: https://github.com/metomi/fcm/blob/master/lib/FCM/Util.pm#L106 So, it should be very easy to add /etc/fcm/ to it.

Note: the $HOME/.fcm location is obsolete.

amckinstry commented 6 years ago

This change will be in Debian version fcm_2017.10.0-3, uploaded to unstable today.

matthewrmshin commented 6 years ago

Hi @poobarb do you want us to make a change or are you happy with the solution provided by @amckinstry ?

poobarb commented 4 years ago

Hi, sorry - just realised I never responded to this...

Thanks for changing the Debian version, that fixed the issue. However, I guess it would still be good to get this fixed upstream too!