Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 451152 - sys-fs/udev-197: installs systemd unit files in wrong location
Summary: sys-fs/udev-197: installs systemd unit files in wrong location
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: udev maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-10 10:27 UTC by Michał Górny
Modified: 2013-01-11 07:39 UTC (History)
1 user (show)

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


Attachments
Proposed ebuild patch (udev-197.patch,701 bytes, patch)
2013-01-10 22:27 UTC, Mike Gilbert
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-01-10 10:27:33 UTC
* Messages for package sys-fs/udev-197:

 * QA Notice: package installs systemd unit files (/lib/systemd/system)
 *            but does not inherit systemd.eclass.

In other words, you have to install them to /usr.
Comment 1 William Hubbs gentoo-dev 2013-01-10 17:13:45 UTC
I spoke to Kay about this, and what it comes down to is we need to both
use the same settings for --with-rootprefix and --with-rootlibdir.
Those need to be the following since /usr is splitt from / in gentoo:
--with-rootprefix= --with-rootlibdir=/lib

Also, any other packages that install systemd units should look up the
location to install them with pkgconfig.

It should be easy to make the systemd.eclass smart enough to figure out
where to put systemd units if we still want to install them when systemd
is not installed.

I personally will volunteer to do this work so all you have to do is
review it. :-)
Comment 2 Mike Gilbert gentoo-dev 2013-01-10 19:49:47 UTC
Since we build systemd with --enable-split-usr, having the udev units in /lib/systemd will "just work".

Having all units in the same place would be preferable though.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-01-10 20:52:11 UTC
(In reply to comment #1)
> Also, any other packages that install systemd units should look up the
> location to install them with pkgconfig.

pkg-config == variancy. I don't want variancy. I want to control the location in once place, and be able to control it easily. Using pkg-config will mean that random events will change the install location and nothing will be expectable.
Comment 4 William Hubbs gentoo-dev 2013-01-10 21:16:39 UTC
The problem with moving systemd to / is that it is going to require that
dbus at least be moved to /, so this is a concern...

But, if systemd is configured with the --enable-split-usr switch, it
should be able to find the udev units in /lib/systemd/system.
Comment 5 Mike Gilbert gentoo-dev 2013-01-10 21:57:47 UTC
(In reply to comment #4)
> But, if systemd is configured with the --enable-split-usr switch, it
> should be able to find the udev units in /lib/systemd/system.

I think it is not a matter of a technical limitation but rather a distro policy that we are enforcing here.
Comment 6 Mike Gilbert gentoo-dev 2013-01-10 22:27:17 UTC
Created attachment 335114 [details, diff]
Proposed ebuild patch
Comment 7 William Hubbs gentoo-dev 2013-01-11 07:39:06 UTC
This is fixed in 197-r1.