Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 449304 - systemd.eclass doesn't handle User unit directories
Summary: systemd.eclass doesn't handle User unit directories
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-30 14:58 UTC by Pacho Ramos
Modified: 2012-12-31 13:09 UTC (History)
0 users

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


Attachments
Patch to the eclass (0001-Add-systemd_get_userunitdir-as-requested-in-bug-4493.patch,1.07 KB, patch)
2012-12-30 17:21 UTC, Michał Górny
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2012-12-30 14:58:11 UTC
When going to bump bluez-5.0 I found that setting systemd user unit directory is required to get it built (if I don't want to use a systemd USE flag to turn systemd support on/off).

From:
http://www.freedesktop.org/software/systemd/man/systemd.html

Looks like I could use pkgconfig for getting it:
User unit directories
Similar rules apply for the user unit directories. However, here the XDG Base Directory specification is followed to find units. Applications should place their unit files in the directory returned by pkg-config systemd --variable=systemduserunitdir. Global configuration is done in the directory reported by pkg-config systemd --variable=systemduserconfdir. The enable and disable commands of the systemctl(1) tool can handle both global (i.e. for all users) and private (for one user) enabling/disabling of units.

but that would require to use a systemd USE flag to pull it as DEPEND.

Thanks for your help

Reproducible: Always
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-12-30 16:39:50 UTC
Just to make it clear, you need userunitdir and not userconfdir, correct?
Comment 2 Pacho Ramos gentoo-dev 2012-12-30 16:48:32 UTC
configure help says:
  --with-systemduserunitdir=DIR
                          path to systemd user unit directory
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-12-30 17:21:43 UTC
Created attachment 333788 [details, diff]
Patch to the eclass

Please let me know if this patch is fine with you.
Comment 4 Pacho Ramos gentoo-dev 2012-12-30 19:51:31 UTC
Works fine for me
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-12-31 13:09:22 UTC
/var/cvsroot/gentoo-x86/eclass/systemd.eclass,v  <--  systemd.eclass
new revision: 1.21; previous revision: 1.20

Here you are.