nwdigitalradio / rmsgw

Linux RMS Gateway
GNU General Public License v2.0
21 stars 12 forks source link

rmsgw_aci fails/rmschanstat variable substitution broken #6

Closed ve7fet closed 4 years ago

ve7fet commented 5 years ago

rmsgw_aci fails due to variable substitution of @axports@ being broken for rmschanstat (when rmschanstat.in is processed).

This is due to the appropriate variable substitution missing from rmschanstat/Makefile.am

Appropriate sed command needs to be added and tested to ensure it picks up the location of axports from the configure script.

This is the error you get (note there is also an issue with missing the python requests module that is un-related to this issue):

pi@raspberrypi:/etc/cron.d $ rmsgw_aci
grep: @axports@: No such file or directory
channel vhfdrop unavailable
Traceback (most recent call last):
  File "/etc/rmsgw/updateversion.py", line 37, in 
    import requests
ImportError: No module named requests
n7nix commented 5 years ago

Need advice on when/where these scripts are created sbindir, sysconfdir, prefix, datadir. Otherwise will add:

    -e 's|@datadir[@]|\/etc\/ax25\/axports|g'
ve7fet commented 5 years ago

I need to set up a test environment and confirm. Configure tests for the location of the axports file, and should set a define (AXPORTS) based on where it found it. Should be able to use that variable in the substitution.

I will submit a patch, once I do some test compilations.

n7nix commented 4 years ago

Thanks Lee!