[systemd-devel] [PATCH] build-sys: add creation of /var/lib/systemd path, used by logind

Mike Kazantsev mk.fraggod at gmail.com
Wed Jan 25 07:52:00 PST 2012


On Wed, 25 Jan 2012 16:43:35 +0100
Kay Sievers <kay.sievers at vrfy.org> wrote:

> On Wed, Jan 25, 2012 at 16:33, Mike Kazantsev <mk.fraggod at gmail.com> wrote:
...
> >
> > Not sure if it has to be abstracted via localstatedir or something, but
> > since it's hard-coded in logind anyway, I thought not to bother with it.
> >  logind-install-data-hook:
> >        $(MKDIR_P) -m 0755 \
> > +               $(DESTDIR)$(rootprefix)/var/lib/systemd
> > +       $(MKDIR_P) -m 0755 \
> 
> It probably is: $(localstatedir)/lib. Rootprefix must not be involved.
> That stuff is never in /usr.

Fair enough. Updated version follows.


From c48f23ae82a8efac59f025e2534a97754b279f60 Mon Sep 17 00:00:00 2001
From: Mike Kazantsev <mk.fraggod at gmail.com>
Date: Wed, 25 Jan 2012 21:24:02 +0600
Subject: [PATCH] build-sys: add creation of /var/lib/systemd path, used by
 logind

---
 Makefile.am |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 15190b4..9f2a893 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1979,6 +1979,8 @@ polkitpolicy_in_files += \
 
 logind-install-data-hook:
 	$(MKDIR_P) -m 0755 \
+		$(DESTDIR)$(localstatedir)/lib/systemd
+	$(MKDIR_P) -m 0755 \
 		$(DESTDIR)$(systemunitdir)/multi-user.target.wants
 	( cd $(DESTDIR)$(systemunitdir) && \
 		rm -f dbus-org.freedesktop.login1.service && \
-- 
1.7.8.1

-- 
Mike Kazantsev // fraggod.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20120125/6cd8e581/attachment.pgp>


More information about the systemd-devel mailing list