udev rules in /etc/udev/rules.d are symlinks but must be regular files

Bug #256882 reported by Thomas S.
6
Affects Status Importance Assigned to Milestone
libchipcard (Debian)
Fix Released
Undecided
Micha Lenk
libchipcard (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

In file /etc/udev/rules.d/README there is the statement:

" The udev daemon watches this directory
with inotify so that changes to these files are automatically picked
up, for this reason they must be files and not symlinks to another
location as in the case in Debian."

But the udev-rule from package libchipcard-tools is placed in /etc/udev, and there is a softlink to that file in /etc/udev/rules.d.

This doesn't work, the rules aren't evalutated. I copied the relevant rule from that file to a new file in /etc/udev/rules.d, and now it works.

So IMHO the place for the configuration file within that package should be changed.

This also applies to to file /ect/udev/logitechmouse.rules from package kcontrol, but I didn't know how to add to packages to one bug report...

Revision history for this message
No (11111nonononono-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote :

The attached debdiff fixes this issue by installing the file directly to /etc/udev/rules.d/ and not creating a link.

Revision history for this message
Micha Lenk (micha) wrote :

Simon, thanks for the patch. Once Debian Lenny has been released I will integrate it in the Debian package.

Right now I don't remember why the package installs the rules file into /etc/udev instead of /etc/udev/rules.d and does this symlink mess up. I guess it is owed to early udev versions, so it should be safe to move the file (as suggested) in Debian too. Anyone else with more udev history knowledge around?

Micha

Revision history for this message
Micha Lenk (micha) wrote :

A fix has been released to Debian in libchipcard 4.2.4-2

Changed in libchipcard (Debian):
assignee: nobody → mlenk
status: New → Fix Released
Revision history for this message
No (11111nonononono-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote :

This is fixed in jaunty in libchipcard (4.1.3-2ubuntu1)

Changed in libchipcard (Ubuntu):
assignee: nobody → simono
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.