Blob Blame History Raw
From: Peter Lemenkov <lemenkov@gmail.com>
Date: Mon, 7 Mar 2016 16:51:03 +0300
Subject: [PATCH] Allow ignoring missing deps

Some deps cannot be satisfied (upstream requires %appname%-1.8.2 while we
provide %appname%-1.8.3). So let's allow ignoring this.

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>

diff --git a/macros.erlang b/macros.erlang
index b956ced..778ff92 100644
--- a/macros.erlang
+++ b/macros.erlang
@@ -12,7 +12,8 @@
 	FCFLAGS="${FCFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}}" ; export FCFLAGS ; \
 	%{?__global_ldflags:LDFLAGS="${LDFLAGS:-%__global_ldflags}" ; export LDFLAGS ;} \
 	VSN="%{version}" ; export VSN ; \
-	%__rebar compile -vv
+	IGNORE_MISSING_DEPS="TRUE" ; export IGNORE_MISSING_DEPS ; \
+	%__rebar compile skip_deps=true -vv
 # deprecated backwards compatibility
 %__rebar_compile %rebar_compile