Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 509484 - gnome-base/gnome-settings-daemon: wrong udev rule location
Summary: gnome-base/gnome-settings-daemon: wrong udev rule location
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: udevdir gnome-3.12
  Show dependency tree
 
Reported: 2014-05-03 17:11 UTC by poncho
Modified: 2017-01-31 21:59 UTC (History)
3 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 poncho 2014-05-03 17:11:14 UTC
gnome-settings-daemon is the only package that installs udev rules to /usr/lib/udev/rules.d/ (instead of /lib/udev/rules.d)

% qfile /usr/lib/udev/rules.d/61-gnome-settings-daemon-rfkill.rules
gnome-base/gnome-settings-daemon (/usr/lib/udev/rules.d/61-gnome-settings-daemon-rfkill.rules)

% pkg-config --variable=udevdir udev
/lib/udev

the makefile doesn't use pkg-config for udevrulesdir
see https://git.gnome.org/browse/gnome-settings-daemon/tree/plugins/rfkill/Makefile.am#n62

gnome-base/gnome-settings-daemon-3.12.1 was built with the following:
USE="colord cups policykit short-touchpad-timeout udev -debug -i18n (-openrc-force) (-packagekit) -smartcard -test" INPUT_DEVICES="-wacom"
Comment 1 Pacho Ramos gentoo-dev 2014-05-27 18:50:26 UTC
I have seen all distros are happy with it living in /usr... @udev, can you explain me the reasoning for installing it in / and what is the proper way to do so? (to report to upstream and be able to explain them the reasoning, otherwise I guess they won't want to make the build system more complicated without a clear gain)

Thanks
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2014-05-27 19:03:02 UTC
(In reply to Pacho Ramos from comment #1)
> I have seen all distros are happy with it living in /usr... @udev, can you
> explain me the reasoning for installing it in / and what is the proper way
> to do so? (to report to upstream and be able to explain them the reasoning,
> otherwise I guess they won't want to make the build system more complicated
> without a clear gain)
> 
> Thanks

use udev.eclass and $(get_udevdir), see bug 433916, and comments in the eclass, and just something like:

cd /usr/portage
grep get_udevdir */*/*.ebuild

and you'll find examples to go around

this is about respecting udevdir= variable in udev.pc

(and of course udev must be installed to / because it's required in early boot and not everyone uses initramfs)
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2014-05-27 19:04:32 UTC
so something like...

inherit udev

and in src_install():

emake DESTDIR="${D}" udevrulesdir="$(get_udevdir)"/rules.d install

i'm sure you can figure rest :)
Comment 4 Pacho Ramos gentoo-dev 2014-05-31 07:45:02 UTC
+*gnome-settings-daemon-3.12.2 (31 May 2014)
+
+  31 May 2014; Pacho Ramos <pacho@gentoo.org>
+  +gnome-settings-daemon-3.12.2.ebuild:
+  Version bump, fix udev rule installation (#509484 by poncho and ssuominen)
+
Comment 5 Matt Turner gentoo-dev 2017-01-29 19:10:37 UTC
This seems to be a problem again. Tested 3.20.1 and ~3.22.1.
Comment 6 Alexander Tsoy 2017-01-29 20:28:23 UTC
(In reply to Matt Turner from comment #5)
> This seems to be a problem again. Tested 3.20.1 and ~3.22.1.

Yes, due to EAPI bump. I've already filed bug 606826
Comment 7 Pacho Ramos gentoo-dev 2017-01-31 21:59:02 UTC
yeah, it's better explain in the other bug report (is due to a different issue than this original one)