FS#35943 - [gpsd] udev hotplug broken (fix inside)

Attached to Project: Arch Linux
Opened by Robin Kreis (rkreis) - Wednesday, 26 June 2013, 17:41 GMT
Last edited by Doug Newgard (Scimmia) - Saturday, 31 May 2014, 16:42 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Tom Gundersen (tomegun)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
gpsd calls setgid(dialout) to drop privileges, whereas /dev/tty* is owned by uucp on Arch (the group dialout doesn't even exist). gpsd must be configured to use the group uucp by changing the scons parameters in the PKGBUILD:

scons prefix=/usr \
systemd=yes \
libQgpsmm=no \
gpsd_group=uucp \ <-- this one
PYTHONPATH=/usr/bin/python2

Steps to reproduce:
Run gpsd in foreground with debugging enabled and attach a GPS receiver over USB. gpsd will report "Permission denied".
This task depends upon

Closed by  Doug Newgard (Scimmia)
Saturday, 31 May 2014, 16:42 GMT
Reason for closing:  Fixed
Comment by Danny (useradmn) - Tuesday, 08 October 2013, 03:22 GMT
What shoudl I do to fix this??
Comment by Tom Gundersen (tomegun) - Tuesday, 08 October 2013, 06:59 GMT
Does the package in [testing] fix the problem?
Comment by Danny (useradmn) - Tuesday, 08 October 2013, 16:37 GMT
I've tried installing the testing package. but running into problems.

I'm running this on raspberry pi (Arch ARMv6h) and I'm getting:


error: failed to prepare transaction (package architecture is not valid)
:: package gpsd-3.9-4-x86_64 does not have a valid architecture.

i get that when i run pacman -U http://<URL-TO-Package&gt;


Comment by Danny (useradmn) - Tuesday, 08 October 2013, 16:55 GMT
i've also gone into edit /etc/pacman.conf

and changed the architecture there from "armv6h" to "x86_64".

pacman was then able to install without errors. but now when I attempt to run gpsd i get:

"cannot execute binary file"
Comment by Dave Reisner (falconindy) - Tuesday, 08 October 2013, 17:02 GMT
This bug tracker is only for x86.
Comment by Danny (useradmn) - Tuesday, 08 October 2013, 17:16 GMT
figures.... Is there a bug tracker for ARM?
Comment by Danny (useradmn) - Tuesday, 08 October 2013, 17:26 GMT
also, i can get gpsd to run under 3.9-4 if I run:

chmod a+rw /dev/ttyUSB0
gpsd /dev/ttyUSB0


having to do that is painful each time I want to run gpsd.
Comment by Tom Gundersen (tomegun) - Tuesday, 08 October 2013, 17:39 GMT
@useradmn: ArchLinux ARM is not related to ArchLinux, so please contact them if you have problems on your pi: http://archlinuxarm.org/
Comment by Doug Newgard (Scimmia) - Saturday, 31 May 2014, 02:41 GMT
@rkreis, have you tested this?
Comment by Robin Kreis (rkreis) - Saturday, 31 May 2014, 09:33 GMT
@tomegun, Scimmia: Sorry, I missed that one message. I can't test gpsd because I don't have any GPS hardware at the moment. Of course, I verified that the fix I mentioned in the bug report works. I suggest closing this bug as "Fixed".

Loading...