Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 361759 - sys-apps/portage: repoman: New QA warning for files installed to /etc/udev/rules.d
Summary: sys-apps/portage: repoman: New QA warning for files installed to /etc/udev/ru...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal QA (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on: 273282
Blocks: 409383 455606
  Show dependency tree
 
Reported: 2011-04-03 08:36 UTC by Samuli Suominen (RETIRED)
Modified: 2013-02-05 14:19 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 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.