[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 7/7] Makefile: create ".../var/run" when installing
From: |
Michael Roth |
Subject: |
[Qemu-devel] [PATCH 7/7] Makefile: create ".../var/run" when installing the POSIX guest agent |
Date: |
Thu, 30 May 2013 13:59:01 -0500 |
From: Laszlo Ersek <address@hidden>
Otherwise the default local state directory of POSIX qga won't exist after
installation with a non-standard ${prefix} or DESTDIR.
For now qga is the only user of ".../var" (= $qemu_localstatedir) too, so
don't create that directory either unless we're installing the agent.
Signed-off-by: Laszlo Ersek <address@hidden>
Signed-off-by: Michael Roth <address@hidden>
---
Makefile | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 9695c9d..a96736b 100644
--- a/Makefile
+++ b/Makefile
@@ -318,13 +318,21 @@ endif
install-datadir:
$(INSTALL_DIR) "$(DESTDIR)$(qemu_datadir)"
+install-localstatedir:
+ifdef CONFIG_POSIX
+ifneq (,$(findstring qemu-ga,$(TOOLS)))
+ $(INSTALL_DIR) "$(DESTDIR)$(qemu_localstatedir)"/run
+endif
+endif
+
install-confdir:
$(INSTALL_DIR) "$(DESTDIR)$(qemu_confdir)"
install-sysconfig: install-datadir install-confdir
$(INSTALL_DATA) $(SRC_PATH)/sysconfigs/target/target-x86_64.conf
"$(DESTDIR)$(qemu_confdir)"
-install: all $(if $(BUILD_DOCS),install-doc) install-sysconfig install-datadir
+install: all $(if $(BUILD_DOCS),install-doc) install-sysconfig \
+install-datadir install-localstatedir
$(INSTALL_DIR) "$(DESTDIR)$(bindir)"
ifneq ($(TOOLS),)
$(INSTALL_PROG) $(STRIP_OPT) $(TOOLS) "$(DESTDIR)$(bindir)"
--
1.7.9.5
- [Qemu-devel] [PULL 0/7] qemu-ga: local state directory fixes for win32, Michael Roth, 2013/05/30
- [Qemu-devel] [PATCH 3/7] configure: don't save any fixed local_statedir for win32, Michael Roth, 2013/05/30
- [Qemu-devel] [PATCH 2/7] qga: determine default state dir and pidfile dynamically, Michael Roth, 2013/05/30
- [Qemu-devel] [PATCH 1/7] osdep: add qemu_get_local_state_pathname(), Michael Roth, 2013/05/30
- [Qemu-devel] [PATCH 6/7] qga: save state directory in ga_install_service(), Michael Roth, 2013/05/30
- [Qemu-devel] [PATCH 5/7] qga: remove undefined behavior in ga_install_service(), Michael Roth, 2013/05/30
- [Qemu-devel] [PATCH 7/7] Makefile: create ".../var/run" when installing the POSIX guest agent,
Michael Roth <=
- [Qemu-devel] [PATCH 4/7] qga: create state directory on win32, Michael Roth, 2013/05/30