Public bug reported:

Binary package hint: gpsd

When plugging in a USB GPS receiver (GlobalSat ND-100 in my case), udev
tries to add the device to the running gpsd (assuming gpsd is correctly
configured, see below).

The script executed by udev is /lib/udev/gpsd.hotplug.wrapper. This script 
depends on /lib/udev/hotplug.functions, which is not installed on my system. 
Hotplugging therefore does not work.
After a quick workaround (comment out the sourcing of hotplug.functions and the 
calls to 'wait_for_file') hotplugging works perfectly, at least as long as the 
system is up and running when the device gets plugged in.

Is there a replacement for /lib/udev/hotplug.functions, or does the gpsd
package not list all dependencies?

Steps to reproduce:
Note that in order for gpsd.hotplug.wrapper to work at all, one needs to 
'dpkg-reconfigure gpsd', and have it start the daemon at boot, specify no 
device to use, let it use USB devices automatically and specify a control 
socket in the options to gpsd: '-F /var/run/gpsd.sock'. The control socket path 
is hardcoded in the hotplug script (/lib/udev/gpsd.hotplug). After 
dpkg-reconfigure, /etc/defaults/gpsd should have the following settings:
  START_DAEMON="true"
  DAEMON_OPTS="-F /var/run/gpsd.sock"
  DEVICES=""
  USBAUTO="true"

See also: Bug #112494 reports the same problem (among others) and is
marked as fixed. I still see the problem on Ubuntu 9.04 (Jaunty) with
gpsd 2.38-1ubuntu3

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
Package: gpsd 2.38-1ubuntu3 [modified: lib/udev/gpsd.hotplug.wrapper]
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: gpsd
Uname: Linux 2.6.28-11-generic i686

** Affects: gpsd (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386

-- 
gpsd depends on nonexistent /lib/udev/hotplug.functions
https://bugs.launchpad.net/bugs/367197
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to