Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 345731 - media-libs/libgphoto2 installing udev rules in wrong location
Summary: media-libs/libgphoto2 installing udev rules in wrong location
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2010-11-16 10:09 UTC by Ben Sagal
Modified: 2010-11-21 22:54 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
fixed ebuild (libgphoto2-2.4.9-r1.ebuild,6.64 KB, text/plain)
2010-11-16 10:58 UTC, Ben Sagal
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Sagal 2010-11-16 10:09:47 UTC
udev looks for rules in 2 locations /etc/udev/rules.d/ and /lib/udev/rules.d/.
system defined rules are supposed to be installed in /lib/udev/rules.d/ and not in etc, however libgphoto2 installs the rules into /etc/udev/rules.d/.

Reproducible: Always




checked with version 2.4.9
Comment 1 Ben Sagal 2010-11-16 10:58:24 UTC
Created attachment 254483 [details]
fixed ebuild
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-11-16 21:53:13 UTC
I don't see any point in this unless udev upstream actually states so. As far as I know all distributions are doing the same. You should also really open a tracker bug if you want all gentoo package to follow.
Comment 3 Ben Sagal 2010-11-17 06:32:49 UTC
the man page udev(7) states:
The udev rules are read from the files located in the default rules directory /lib/udev/rules.d/, the custom rules directory /etc/udev/rules.d/ and the temporary rules directory /dev/.udev/rules.d/. 

my understanding is that default rules are gentoo provided rules and custom rules are user made rules.

the newer udev (as well as many others) kages moved all its rules to /lib/udev/rules.d/ (old udev packages, though not sure exactly which, used /etc/udev/rules.d/) imply a preference to the lib directory.

Debian testing (and probably Ubuntu) use exclusively /lib/udev/rules.d/ for system defined rules (as far as I can tell).

the latest fedora pacakge of libgphoto2 install its rules into /lib/udev/rules.d/
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-11-21 22:53:03 UTC
+*libgphoto2-2.4.10 (21 Nov 2010)
+
+  21 Nov 2010; Gilles Dartiguelongue <eva@gentoo.org>
+  +libgphoto2-2.4.10.ebuild:
+  Version bump. Enable jl2005c driver since it is now considered stable. Move
+  udev rules to /$(get_libdir)/udev/rules.d, bug #345731.
+
After re-checking how debian handles this, it seems everything indeed moved to this location. I only had left-overs in the other directory. Thanks for reporting.