Comment 1 for bug 57486

Revision history for this message
In , Tilman Koschnick (til) wrote : Re: Bug#338745: requires the obsolete /etc/hotplug/usb/ interface

On Sat, 2005-11-12 at 12:22 +0100, Marco d'Itri wrote:
> Package: gpsd
> Version: 2.28-2
> Severity: important
>
> Your package installs files in the /etc/hotplug/usb/ directory, but
> does not provide an udev rules file. The /etc/hotplug/usb/ interface has
> been obsolete for a long time and is not supported by udev.

Hi Marco,

thanks for your report. I finally get round to prepare a new upload with
udev support.

> For more information about this you can look at the debian-devel@
> threads of last october.
> The libgphoto2 package is a good example of how to provide udev support,
> please let me know if you have any doubts.
> I will also be happy to review your changes before they are uploaded, if
> you want.

I'd be glad if you could have a look at my changes. All changes related
to udev are attached as a diff; the package itself is at
<http://www.subnetz.org/~til/gpsd-preview/>.

> I also noticed that the script installed by your package uses python.
> Please remember that udev RUN rules are run at the very beginning of the
> boot process, where /usr may not be available.
> You probably need to use a wrapper shell script which waits for /usr to
> appear, /lib/udev/hotplug.functions provides a wait_for_file function
> you could use for this.

I assume /lib/udev/hotplug.functions is not guarenteed to be around on
other distributions? I want to pass my changes upstream, so I don't
source /lib/udev/hotplug.functions, but duplicate the wait_for_file
function.

Cheers, Til