From dd9d7cc35de3a1c000e202e49a5b65b1826d00b6 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Mon, 4 Mar 2019 17:06:58 +0100 Subject: [PATCH] build: Create the storage directory at install time Otherwise you could get into a state where the daemon could not start because the directory listed as a ReadWritePaths in the .service file is missing. Spotted by Will Thompson. See: !5 --- src/Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Makefile.am b/src/Makefile.am index e2c3c85..3ed2c81 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -50,3 +50,7 @@ fprintd-marshal.h: fprintd-marshal.list fprintd-marshal.c: fprintd-marshal.h ( $(GLIB_GENMARSHAL) --prefix=fprintd_marshal $(srcdir)/fprintd-marshal.list --body --header > fprintd-marshal.c ) +install-data-hook: + if test -w $(DESTDIR)$(prefix)/; then \ + mkdir -p $(DESTDIR)$(localstatedir)/lib/fprint; \ + fi