bugGPSD - Bugs: bug #37377, Device hook script path is...

 
 

bug #37377: Device hook script path is incorrect (leading / is missing)

Submitted by:  None
Submitted on:  Mon 17 Sep 2012 04:43:44 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 17 Sep 2012 04:43:44 PM UTC, original submission:

While attempting to utilise a device-hook script located at /etc/gpsd/device-hook as per the documentation, I received the following message whilst running with debug as normal user from command line:

gpsd:PROG: no etc/gpsd/device-hook present, skipped running DEACTIVATE hook

If gpsd is started from command line after first doing 'cd /', then the device-hook script is found and run, indicating gpsd is indeed looking for etc/gpsd/device-hook instead of /etc/gpsd/device-hook. Some grepping of the source confirms this.

gpsd.h:#define SYSCONFDIR "etc"
gpsd.h:#define DEVICEHOOKPATH SYSCONFDIR"/gpsd/device-hook"

Changing line 180 of SConstruct by adding the '/' and rebuilding seems to solve the problem.

("sysconfdir", "/etc", "system configuration directory")

Now gpsd finds the device-hook script:

gpsd:INFO: running /etc/gpsd/device-hook /dev/ttyUSB0 DEACTIVATE
gpsd:INFO: /etc/gpsd/device-hook returned 0

Tested with Ubuntu 12.04 package and also with version 3.7 compiled from source.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by esr (Updated the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 22 Nov 2013 01:47:44 PM UTCesrOpen/ClosedOpen=>Closed
    Tue 18 Sep 2012 10:44:50 PM UTCesrStatusNone=>Fixed

    Back to the top


    Powered by Savane 3.1-cleanup1