Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 882005 - sys-apps/systemd-utils[udev,-split-usr] installs rules.d,hwdb.d to /lib/udev
Summary: sys-apps/systemd-utils[udev,-split-usr] installs rules.d,hwdb.d to /lib/udev
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
Depends on:
Blocks: usrmerge, usrmerge-fixes
  Show dependency tree
Reported: 2022-11-19 14:53 UTC by Matt Whitlock
Modified: 2022-11-21 16:00 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Matt Whitlock 2022-11-19 14:53:29 UTC
The multilib_src_install() function takes care to install udev data files beneath "${rootprefix}/lib/udev/", where ${rootprefix} depends on USE="split-usr", but the multilib_src_install_all() function installs udev data files beneath /lib/udev/ unconditionally. udev does not search for rules in /lib/udev/rules.d when built with USE="-split-usr", and consequently most of the shipped rules are not applied in this case, leading to potential boot breakage.

Please add "${rootprefix}" to the 'insinto' lines for /lib/udev/rules.d and /lib/udev/hwdb.d in multilib_src_install_all().
Comment 1 Mike Gilbert gentoo-dev 2022-11-21 15:52:41 UTC
Note that USE="-split-usr" should only be used on merged-usr systems, where /lib is a symlink to /usr/lib.

Thus, rules installed to /lib/udev/rules.d will end up in /usr/lib/udev/rules.d due to the /lib symlink.
Comment 2 Larry the Git Cow gentoo-dev 2022-11-21 16:00:00 UTC
The bug has been closed via the following commit(s):

commit 238a652babbbfb38d69c9eccf7074f56aea18a2a
Author:     Mike Gilbert <>
AuthorDate: 2022-11-21 15:57:57 +0000
Commit:     Mike Gilbert <>
CommitDate: 2022-11-21 15:57:57 +0000

    sys-apps/systemd-utils: fix install paths for USE="-split-usr"
    Signed-off-by: Mike Gilbert <>

 sys-apps/systemd-utils/systemd-utils-251.4-r2.ebuild | 4 ++--
 sys-apps/systemd-utils/systemd-utils-251.7.ebuild    | 4 ++--
 sys-apps/systemd-utils/systemd-utils-251.8.ebuild    | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)