Bug 16211

Summary: gpsd does not use the configured device node
Product: Mageia Reporter: Theodoros Kalamatianos <thkala>
Component: RPM PackagesAssignee: All Packagers <pkg-bugs>
Status: RESOLVED OLD QA Contact:
Severity: normal    
Priority: Normal CC: fundawang, luigiwalser, marja11, r.wobben, rwobben, shlomif
Version: 5Keywords: Junior_job, NEEDINFO
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: gpsd-3.11-4.mga5.src.rpm CVE:
Status comment:

Description Theodoros Kalamatianos 2015-06-25 23:53:11 CEST
Description of problem:

(Found after a debugging session with a user on IRC)

When gpsd is started via systemd, it ignores the device node configured in /etc/sysconfig/gpsd. From /usr/lib/systemd/system/gpsd.service:

ExecStart=/usr/sbin/gpsd -N $GPSD_OPTIONS $OPTIONS $DEVICES

From /etc/sysconfig/gpsd:

DEVICE="/dev/ttyUSB0"

i.e. the variable defined in the configuration file is DEVICE, rather than DEVICES. A quick look at gpsd(8) reveals that multiple devices may be defined, so DEVICES is the more correct naming.


Version-Release number of selected component (if applicable):

gpsd-3.11-4.mga5

How reproducible:

Without access to a GPS device I can only guess "always".

Steps to Reproduce:
1. Get a GPS device
2. Change the DEVICE variable in /etc/sysconfig/gpsd to reflect its device node
3. Start gpsd
4. Verify that it tries to open another device node


Reproducible: 

Steps to Reproduce:
Comment 1 Theodoros Kalamatianos 2015-06-26 00:03:45 CEST
I neglected to mention the fix for this issue: Just edit /etc/sysconfig/gpsd and change the variable name from DEVICE to DEVICES.

The same change in the default version of the file from the RPM should permanently fix the issue for new users. There is, however, a question about upgrades in this case - if DEVICE was the variable used in mga4, it might just be easier to change /usr/lib/systemd/system/gpsd.service instead. Or maybe add both variables in /usr/lib/systemd/system/gpsd.service for compatibility?
Comment 2 Samuel Verschelde 2015-07-02 10:12:33 CEST
Unfortunately this package has no dedicated maintainer. Adding in CC some packagers who did update it in the past.

Seems an easy fix.

Keywords: (none) => Junior_job
CC: (none) => fundawang, luigiwalser, r.wobben, rwobben, shlomif

Comment 3 Shlomi Fish 2015-07-02 10:32:37 CEST
Hi Theodoros!

Can you provide a patch against "mgarepo co gpsd" to fix the problem? Generated by "svn diff".

Regards,

-- Shlomi Fish
Comment 4 Marja Van Waes 2016-10-30 18:55:48 CET
Is this bug still valid?

Keywords: (none) => NEEDINFO
CC: (none) => marja11
Assignee: bugsquad => pkg-bugs

Comment 5 Marja Van Waes 2018-05-03 07:55:51 CEST
No replies to the two questions and it's almost 3 and 1½ years later, respectively.

Closing

Status: NEW => RESOLVED
Resolution: (none) => OLD