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
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
|
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
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>
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"
chmod a+rw /dev/ttyUSB0
gpsd /dev/ttyUSB0
having to do that is painful each time I want to run gpsd.