Bug 16211 - gpsd does not use the configured device node
Summary: gpsd does not use the configured device node
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 5
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: All Packagers
QA Contact:
URL:
Whiteboard:
Keywords: Junior_job, NEEDINFO
Depends on:
Blocks:
 
Reported: 2015-06-25 23:53 CEST by Theodoros Kalamatianos
Modified: 2018-05-03 07:55 CEST (History)
6 users (show)

See Also:
Source RPM: gpsd-3.11-4.mga5.src.rpm
CVE:
Status comment:


Attachments

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


Note You need to log in before you can comment on or make changes to this bug.