bloombloombloom / Bloom

A debug interface for AVR-based embedded systems development on GNU/Linux.
https://bloom.oscillate.io/
Other
64 stars 3 forks source link

Install udev rules to `/usr/lib/udev` #64

Closed navnavnav closed 1 year ago

navnavnav commented 1 year ago

Currently, Bloom's Debian, RPM and Pacman packages install the udev rules in /etc/udev, but this directory is meant for overriding rules. Default rules should be placed in /usr/lib/udev.

This is a small change - will be included in v0.12.0.

navnavnav commented 1 year ago

Quick update on this:

I've done this as part of the build-tidying branch.

The RPM package now installs Bloom's udev rules in /usr/lib/udev/rules.d. However, after trying to install the rules in the same place on a Debian-based system (Ubuntu 18.04), I discovered that rules in that location are not even loaded. Debian-based systems expect them to be installed in /lib/udev/rules.d, so that's where I've configured the DEB package to install them.

And it looks like, since Ubuntu 20.04, /lib is symlinked to /usr/lib, so I could have avoided having to install the rules in /lib/udev/rules.d, if I didn't package for Ubuntu 18.04. Oh well.

navnavnav commented 1 year ago

This is done and merged into the develop branch. Changes will be in v0.12.0. Closing this now.