Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix udev rules directory #131

Merged
merged 1 commit into from Jun 27, 2013
Merged

Fix udev rules directory #131

merged 1 commit into from Jun 27, 2013

Conversation

jorti
Copy link

@jorti jorti commented Jun 12, 2013

The udev rules always must be installed in /lib/udev/rules.d even when it is
a 64 bits OS

The udev rules always must be installed in /lib/udev/rules.d even when it is
a 64 bits OS
@Benjamin-Dobell
Copy link
Owner

I did actually wonder about this myself. You wouldn't happen to be able to provide a reference to documentation on the matter?

Honestly, I have no idea why the udev developers decided to use /usr/lib instead of /usr/share.

Anyway, I'll quickly test this out on a couple of my VMs to verify, but I imagine you're quite correct, in which case I'll merge this in.

@jorti
Copy link
Author

jorti commented Jun 12, 2013

It's placed in /lib because it's architecture independent. (Or in /usr/lib in distributions like Fedora or Arch, see: http://www.freedesktop.org/wiki/Software/systemd/TheCaseForTheUsrMerge/ )

@Benjamin-Dobell
Copy link
Owner

Your link does not refer to the usage of /usr/lib (or /lib) vs. /usr/lib64 (/lib64).

Whilst you're probably right that the udev rules need to be in /usr/lib, this seems more like an error in implementation by the udev developers. /usr/lib is by no means for architecture independent files, it's for 32-bit binaries, which is why there is a separate /usr/lib64 for 64-bit binaries. /usr/share is the correct directory for architecture independent files (text-based file formats specifically): http://www.pathname.com/fhs/2.2/fhs-4.11.html

floppym added a commit to floppym/Heimdall that referenced this pull request Jun 27, 2013
@floppym
Copy link

floppym commented Jun 27, 2013

See my commit above for a more robust solution which uses pkg-config.

As for documentation, please see the udev_rules_new function in the udev source code. The rules are loaded from /etc/udev/rules.d, /run/udev/rules.d, and UDEVLIBEXECDIR/rules.d. The latter path is exposed to consumers via the udev.pc file.

http://cgit.freedesktop.org/systemd/systemd/tree/src/udev/udev-rules.c#n1578

Benjamin-Dobell added a commit that referenced this pull request Jun 27, 2013
Fix udev rules directory
@Benjamin-Dobell Benjamin-Dobell merged commit f956190 into Benjamin-Dobell:master Jun 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants