Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 361759

Summary: sys-apps/portage: repoman: New QA warning for files installed to /etc/udev/rules.d
Product: Gentoo Linux Reporter: Samuli Suominen (RETIRED) <ssuominen>
Component: Current packagesAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: QA CC: qa, udev-bugs
Priority: Normal Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=455606
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 273282    
Bug Blocks: 409383, 455606    

Description Samuli Suominen (RETIRED) gentoo-dev 2011-04-03 08:36:52 UTC
Packages should be installing their rules to "/lib/udev/rules.d" instead of "/etc/udev/rules.d".   The "/etc/udev/rules.d" is for users own rules, and for overriding the rules in the "/lib/udev/rules.d". 

Please add a QA warning which prints something like "QA: Invalid udev rule install path /etc/udev/rules.d detected. Should be /lib/udev/rules.d."
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2012-03-20 23:26:17 UTC
This was committed a while back:

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=4faf6bc8c15124ea2f8bfb7b7c6212762b511b77

Could we have the same for this bug, please?

sys-fs/udev owns directory /etc/udev/rules.d/ but nothing should be putting files there, even the *persistent*.rules currently there are not part of the filelist of an package but created outside of it
Comment 3 Zac Medico gentoo-dev 2012-03-23 00:53:48 UTC
This is fixed in 2.1.10.50 and 2.2.0_alpha94.
Comment 4 Ulenrich 2012-03-23 12:47:12 UTC
(I as a normal user getting more into portage) 

I think this is a very strange thing in a portage shell function:
> eqawarn "QA Notice: udev rules should be installed in /lib/udev/rules.d:"

Already outdated as we get the upstream(fedora) /usr directive? 
Isn't this a baselayout thingy?

Better point to a list residing in 
$PORTDIR/profiles/$BASELAYOUT/QA-list
having a condition and message

??
Comment 5 Zac Medico gentoo-dev 2012-03-23 15:14:54 UTC
(In reply to comment #4)
> Already outdated as we get the upstream(fedora) /usr directive? 
> Isn't this a baselayout thingy?

The point is that /lib/udev/rules.d is currently the best place to install then on Gentoo. That may change in the future, but it doesn't change the fact that /etc/udev/rules.d has been deprecated for some time.

> Better point to a list residing in 
> $PORTDIR/profiles/$BASELAYOUT/QA-list
> having a condition and message

Yes, a plugin system like that would be really nice.