aboutsummaryrefslogtreecommitdiffstats
path: root/main/erlang/0007-Split-off-webtool-dependency-from-tools.patch
diff options
context:
space:
mode:
authorMarlus Saraiva <marlus.saraiva@gmail.com>2015-07-27 18:40:52 +0200
committerFrancesco Colista <fcolista@alpinelinux.org>2015-07-28 08:42:13 +0000
commitdb593b70af9c24b02ca924678c8fd64dd0f8bc08 (patch)
tree564b13c71139fc0b5c3b25f1bc1f302690563805 /main/erlang/0007-Split-off-webtool-dependency-from-tools.patch
parentb8124bc07d2da8f957b43a5a2f1d72a8a96bdea9 (diff)
downloadaports-db593b70af9c24b02ca924678c8fd64dd0f8bc08.tar.bz2
aports-db593b70af9c24b02ca924678c8fd64dd0f8bc08.tar.xz
main/erlang: move from testing
Diffstat (limited to 'main/erlang/0007-Split-off-webtool-dependency-from-tools.patch')
-rw-r--r--main/erlang/0007-Split-off-webtool-dependency-from-tools.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/main/erlang/0007-Split-off-webtool-dependency-from-tools.patch b/main/erlang/0007-Split-off-webtool-dependency-from-tools.patch
new file mode 100644
index 0000000000..6a58f5cea0
--- /dev/null
+++ b/main/erlang/0007-Split-off-webtool-dependency-from-tools.patch
@@ -0,0 +1,38 @@
+From: Peter Lemenkov <lemenkov@gmail.com>
+Date: Sat, 8 Nov 2014 22:54:57 +0300
+Subject: [PATCH] Split off webtool dependency from tools
+
+Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
+
+--- otp_src_18.0-orig/lib/tools/src/cover_web.erl
++++ otp_src_18.0-fixed/lib/tools/src/cover_web.erl
+@@ -51,14 +51,25 @@
+ %%%----------------------------------------------------------------------
+ %% Start webtool and webcover from erlang shell
+ start() ->
+- webtool:start(),
+- webtool:start_tools([],"app=webcover"),
++ try
++ % Disable automatic dependency picking up
++ erlang:apply(webtool, start, []),
++ erlang:apply(webtool, start_tools, [[],"app=webcover"])
++ catch
++ error:undef -> error_logger:error_msg("No erlang-webtool found.~nPlease install erlang-webtool package first.~n")
++ end,
+ ok.
+
+ %% Stop webtool and webcover from erlang shell
+ stop() ->
+- webtool:stop_tools([],"app=webcover"),
+- webtool:stop().
++ try
++ % Disable automatic dependency picking up
++ erlang:apply(webtool, stop_tools, [[],"app=webcover"]),
++ erlang:apply(webtool, stop, [])
++ catch
++ error:undef -> error_logger:error_msg("No erlang-webtool found.~nPlease install erlang-webtool package first.~n")
++ end,
++ ok.
+
+
+