Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 433916 (udevdir) - [Tracker] Packages not respecting udevdir= variable from udev.pc (and not using udev.eclass for it)
Summary: [Tracker] Packages not respecting udevdir= variable from udev.pc (and not usi...
Status: CONFIRMED
Alias: udevdir
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords: Tracker
Depends on: 430112 430424 433904 433906 433908 433910 433912 436206 436658 438114 438350 447116 509484
Blocks:
  Show dependency tree
 
Reported: 2012-09-04 11:38 UTC by Martin von Gagern
Modified: 2022-04-30 19:13 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2012-09-04 11:38:57 UTC
The emerge log for sys-fs/udev-189 wrote:

"This version of udev moves the files that were installed in
 /lib/udev to /usr/lib/udev.
 We include a backward compatibility patch for gentoo to
 allow the rules in /lib/udev/rules.d to be read. However,
 bugs should be filed against packages that are installing
 files in /lib/udev so they can be fixed."

As I just filed a bunch of these bugs, and found some more which already have been filed, I decided to organize things using this tracker bug. The idea is that maintainers can copy solutions from one another, and won't have to reinvent the wheel.

The usual disclaimer for tracker bugs: If you encounter a package with the above problem, don't comment here, but instead file a bug for that package and mark it blocking this bug here.
Comment 1 Larry the Git Cow gentoo-dev 2022-04-30 19:13:49 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe2c69be92364e912384cd07c0b122b0e80168f0

commit fe2c69be92364e912384cd07c0b122b0e80168f0
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-04-28 03:06:40 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-04-30 19:13:18 +0000

    metadata/install-qa-check.d: add new QA check for udev rules
    
    Very similar to tmpfiles.eclass check (60tmpfiles-paths).
    
    Three checks:
    1) Verify packages don't install udev rules to /etc/udev/rules.d, which
    is a forbidden (user-configuration) location;
    
    2) Check whether packages inherit udev.eclass if they're
    installing files to /lib/udev/rules.d/..
    
    (This helps to catch packages not calling udev_reload
    in pkg_postinst).
    
    3) Check for missing udev_process calls in pkg_postinst.
    
    Bug: https://bugs.gentoo.org/433916
    See: c7fe1066a8fcd35f965de4ea16c9cd1001830642
    Signed-off-by: Sam James <sam@gentoo.org>

 metadata/install-qa-check.d/60udev-eclass | 63 +++++++++++++++++++++++++++++++
 1 file changed, 63 insertions(+)