xref: /OK3568_Linux_fs/buildroot/package/asterisk/0004-install-samples-need-the-data-files.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From 05680ea9899c2246c23d11860c2c8e10aa8f80c7 Mon Sep 17 00:00:00 2001
2From: "Yann E. MORIN" <yann.morin.1998@free.fr>
3Date: Fri, 1 Dec 2017 11:08:16 +0100
4Subject: [PATCH] install: samples need the data files
5
6When installing samples, "sample voicemail" is generated from the
7already-installed sound files.
8
9However, when doing the install and the samples at the same time in a
10parallel install, it is possible that the sound files are not already
11installed at the time we try to generate the voicemail data.
12
13Ensure the needed dependency.
14
15Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
16---
17 Makefile | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20diff --git a/Makefile b/Makefile
21index f29c07f680..b58f707b61 100644
22--- a/Makefile
23+++ b/Makefile
24@@ -779,7 +779,7 @@ adsi:
25 		$(INSTALL) -m 644 "$$x" "$(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x`" ; \
26 	done
27
28-samples: adsi
29+samples: adsi datafiles
30 	@echo Installing other config files...
31 	$(call INSTALL_CONFIGS,samples,.sample)
32 	$(INSTALL) -d "$(DESTDIR)$(ASTSPOOLDIR)/voicemail/default/1234/INBOX"
33--
342.11.0
35
36