80217ca5fb8ab10461e4c1bd26931c6fa4ac9ab0
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / ejabberd / 0002-disable-rebar-deps.patch
1 Description: remove make targets for deps
2  Without this patch, dependencies would be downloaded and compiled
3  using rebar at build time.
4 Author: Philipp Huebner <debalance@debian.org>
5
6 Index: ejabberd/Makefile.in
7 ===================================================================
8 --- ejabberd.orig/Makefile.in
9 +++ ejabberd/Makefile.in
10 @@ -68,26 +68,11 @@ else
11    INIT_USER=$(INSTALLUSER)
12  endif
13  
14 -all: deps src
15 +all: src
16  
17 -deps: deps/.got
18 -
19 -deps/.got:
20 -       rm -rf deps/.got
21 -       rm -rf deps/.built
22 -       $(REBAR) get-deps && :> deps/.got
23 -
24 -deps/.built: deps/.got
25 -       $(REBAR) compile && :> deps/.built
26 -
27 -src: deps/.built
28 +src:
29         $(REBAR) skip_deps=true compile
30  
31 -update:
32 -       rm -rf deps/.got
33 -       rm -rf deps/.built
34 -       $(REBAR) update-deps && :> deps/.got
35 -
36  translations:
37         contrib/extract_translations/prepare-translation.sh -updateall
38  
39 @@ -103,8 +88,6 @@ spec:
40         $(ERL) -noinput +B -pa ebin -pa deps/*/ebin -eval \
41         'case xml_gen:compile("tools/xmpp_codec.spec") of ok -> halt(0); _ -> halt(1) end.'
42  
43 -DLLs := $(wildcard deps/*/priv/*.so) $(wildcard deps/*/priv/lib/*.so)
44 -
45  install: all
46         #
47         # Configuration files
48 @@ -139,14 +122,11 @@ install: all
49         $(INSTALL) -d $(BEAMDIR)
50         $(INSTALL) -m 644 ebin/*.app $(BEAMDIR)
51         $(INSTALL) -m 644 ebin/*.beam $(BEAMDIR)
52 -       $(INSTALL) -m 644 deps/*/ebin/*.app $(BEAMDIR)
53 -       $(INSTALL) -m 644 deps/*/ebin/*.beam $(BEAMDIR)
54         rm -f $(BEAMDIR)/configure.beam
55         #
56         # ejabberd header files
57         $(INSTALL) -d $(INCLUDEDIR)
58         $(INSTALL) -m 644 include/*.hrl $(INCLUDEDIR)
59 -       $(INSTALL) -m 644 deps/*/include/*.hrl $(INCLUDEDIR)
60         #
61         # Binary C programs
62         $(INSTALL) -d $(PBINDIR)
63 @@ -156,7 +136,6 @@ install: all
64         #
65         # Binary system libraries
66         $(INSTALL) -d $(SODIR)
67 -       $(INSTALL) -m 644 $(DLLs) $(SODIR)
68         #
69         # Translated strings
70         $(INSTALL) -d $(MSGSDIR)