blob: 020ac2c3b85a2f602804b00db07eda944ac6a4a9 [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001From b04eeea777df32364df74bd63fc5b7fb05d21c8d Mon Sep 17 00:00:00 2001
2From: Jackie Huang <jackie.huang@windriver.com>
3Date: Tue, 27 Mar 2018 10:21:09 +0800
4Subject: [PATCH] init.d/Makefile.am: add missing dependency
5
Brad Bishop19323692019-04-05 15:28:33 -04006install-data-hook should depend on install-exec-hook, or the
Brad Bishop316dfdd2018-06-25 12:45:53 -04007haveged.service might be installed incorrectly when build
8with -j option.
9
Brad Bishop19323692019-04-05 15:28:33 -040010Upstream-Status: Submitted [https://github.com/jirka-h/haveged/pull/13]
Brad Bishop316dfdd2018-06-25 12:45:53 -040011
12Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Brad Bishop19323692019-04-05 15:28:33 -040013Signed-off-by: Khem Raj raj.khem@gmail.com
Brad Bishop316dfdd2018-06-25 12:45:53 -040014---
15 init.d/Makefile.am | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/init.d/Makefile.am b/init.d/Makefile.am
19index 5940f78..07bcdf7 100644
20--- a/init.d/Makefile.am
21+++ b/init.d/Makefile.am
22@@ -33,7 +33,7 @@ if ENABLE_SYSTEMD
23 install-exec-hook:
24 $(do_subst) < $(srcdir)/$(src_tmpl) > haveged.service;
Brad Bishop19323692019-04-05 15:28:33 -040025
Brad Bishop316dfdd2018-06-25 12:45:53 -040026-install-data-hook:
27+install-data-hook: install-exec-hook
28 if ENABLE_SYSTEMD_LOOKUP
29 install -p -D -m644 haveged.service $(DESTDIR)`pkg-config --variable=systemdsystemunitdir systemd`/haveged.service;
30 else
Brad Bishop19323692019-04-05 15:28:33 -040031--
Brad Bishop316dfdd2018-06-25 12:45:53 -0400322.11.0