diff options
author | Michał Górny <mgorny@gentoo.org> | 2019-09-11 13:24:14 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2019-09-11 18:19:00 +0200 |
commit | 00c13984ea69992456dad6dcee2397f44b413324 (patch) | |
tree | cfc81afd6cc6882c267479a6a0372da5d4e3a64a /dev-erlang/lager | |
parent | dev-erlang/jose: Drop old (diff) | |
download | gentoo-00c13984ea69992456dad6dcee2397f44b413324.tar.gz gentoo-00c13984ea69992456dad6dcee2397f44b413324.tar.bz2 gentoo-00c13984ea69992456dad6dcee2397f44b413324.zip |
dev-erlang/lager: Drop old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-erlang/lager')
10 files changed, 0 insertions, 398 deletions
diff --git a/dev-erlang/lager/Manifest b/dev-erlang/lager/Manifest index 86f6fb0fc62a..0b547a4c7996 100644 --- a/dev-erlang/lager/Manifest +++ b/dev-erlang/lager/Manifest @@ -1,6 +1,2 @@ -DIST lager-3.2.0.tar.gz 244340 BLAKE2B 4330956a82e376bb2527f1883d8481982d313d64ad22662950fc29376db0b902df64a96b086c6f065a7c2cf1b7acb231e5da0725eccd4da8d20b32e8d8908b3a SHA512 136274c8d1715d996b599317e4ac02e597c084351d3f7aea806ed9f0236a47c41dfff0b42a989dd4b6404e75e66b334600643aaec20d182edc9504d123920092 -DIST lager-3.2.1.tar.gz 244701 BLAKE2B 03d09c1fd42b4b1365264a2c5bd9f67032bd1f725c73bc06e875d60e9d5abd8eb38da44c75c1eada11d782d859c154dab40ace6d93d2e234201e6a39d34aa347 SHA512 2b9f82224943fd196f8aa12f228618996c3dcb2e83c8bf2633375e38771a4817e791db1d54493ab02835382796444266b623fce5686c864e21e49affddabea32 -DIST lager-3.2.2.tar.gz 244979 BLAKE2B 79b895c2a4df313fa582c3573c23d2ea233db1ad694d9425dc5217853c14d2ea1d40524ff634ba0f001ca85ac7833b52709840b9bb68d6b609e19d2acd906a36 SHA512 c183f141b50343c5892ee4417ab76cdd69862a53ccd9c0840b2df52c7034f08e5ac92546d6bdfc8014c8e7561cb75cfb20b3967e0146996907c9594d341095b6 DIST lager-3.2.4.tar.gz 245002 BLAKE2B 4d6197cbefed0f9d53d4ef522b2f0827e86e404e108710a0c615befb8d033b77cef3a2fd53a9c9b8a98fd0f708be95e7d0a6d5f64802cf061d5171f343971c7c SHA512 765e132c19c46593f79f73400d04801d27767192dfeb75c3d3aef5a20963dc6113e544db35dccee2a975476a5653954a79ac49eb923d84daade0dc64a8c1e6f7 -DIST lager-3.6.7.tar.gz 266527 BLAKE2B b26fbd07b8db0a366d5adf74e56a28f3898fa4853f5c3383cc32043b7fefb58e996309d12c77ea0d94ee98eefe2b81c32a4d0c40a0f5608ed94e71c9d754d992 SHA512 7dde8196204c6e65f78a95705151d4681edd4d2e9c3a1a3b37135e777ed3b653124fbfa43192ebf56328b5f2d6daec1b4e1055399c3cd47d5969bfc3cbc822bc DIST lager-3.8.0.tar.gz 271830 BLAKE2B 13e84cfb561493d3fdec2d8fe9d585eed8716aa831425616b73e84cbca1c1951186bf7c378dcf21df0006a910e56458b9d9cdbf69eefd85e519fca2a1d98e8f3 SHA512 bcbd522bdc39e19466dc3e6fe8fc81ba10358cbcc167e278402e91164992fc0ee7c02e02a5bc223664c0d5974a1ba107756b073509453386003c9d02b3dc388b diff --git a/dev-erlang/lager/files/3.2.0-0001-Support-typed-records-newly-exposed-in-OTP-19.patch b/dev-erlang/lager/files/3.2.0-0001-Support-typed-records-newly-exposed-in-OTP-19.patch deleted file mode 100644 index b9ade5f5698f..000000000000 --- a/dev-erlang/lager/files/3.2.0-0001-Support-typed-records-newly-exposed-in-OTP-19.patch +++ /dev/null @@ -1,55 +0,0 @@ -From d35670e01a3c6f9f9bcb3150217d26cc92513586 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Johannes=20Wei=C3=9Fl?= <jargon@molb.org> -Date: Sun, 21 Feb 2016 14:22:28 +0100 -Subject: [PATCH 1/5] Support typed records newly exposed in OTP 19 - -Otherwise `lager_transform` fails after https://github.com/erlang/otp/commit/de9012628a6b0e97d2f1325bf2f72817f69f84ee - -The error message is: - - test/pr_nested_record_test.erl: error in parse transform 'lager_transform': {function_clause, - [{lager_transform, - '-walk_ast/2-fun-0-', - [{typed_record_field, - {record_field,5, - {atom,5,field1}}, - {type,5,term,[]}}], - [{file, - "src/lager_transform.erl"}, - {line,62}]}, ---- - src/lager_transform.erl | 13 ++++++++----- - 1 file changed, 8 insertions(+), 5 deletions(-) - -diff --git a/src/lager_transform.erl b/src/lager_transform.erl -index 7648c46..8cea5a3 100644 ---- a/src/lager_transform.erl -+++ b/src/lager_transform.erl -@@ -59,16 +59,19 @@ walk_ast(Acc, [{function, Line, Name, Arity, Clauses}|T]) -> - walk_ast([{function, Line, Name, Arity, - walk_clauses([], Clauses)}|Acc], T); - walk_ast(Acc, [{attribute, _, record, {Name, Fields}}=H|T]) -> -- FieldNames = lists:map(fun({record_field, _, {atom, _, FieldName}}) -> -- FieldName; -- ({record_field, _, {atom, _, FieldName}, _Default}) -> -- FieldName -- end, Fields), -+ FieldNames = lists:map(fun record_field_name/1, Fields), - stash_record({Name, FieldNames}), - walk_ast([H|Acc], T); - walk_ast(Acc, [H|T]) -> - walk_ast([H|Acc], T). - -+record_field_name({record_field, _, {atom, _, FieldName}}) -> -+ FieldName; -+record_field_name({record_field, _, {atom, _, FieldName}, _Default}) -> -+ FieldName; -+record_field_name({typed_record_field, Field, _Type}) -> -+ record_field_name(Field). -+ - walk_clauses(Acc, []) -> - lists:reverse(Acc); - walk_clauses(Acc, [{clause, Line, Arguments, Guards, Body}|T]) -> --- -2.8.3 - diff --git a/dev-erlang/lager/files/3.2.0-0002-Fix-get_env-bug.patch b/dev-erlang/lager/files/3.2.0-0002-Fix-get_env-bug.patch deleted file mode 100644 index 51972d8c4fcd..000000000000 --- a/dev-erlang/lager/files/3.2.0-0002-Fix-get_env-bug.patch +++ /dev/null @@ -1,63 +0,0 @@ -From 4c87abcd4f9d70a1136fff8f573dc7adcc833e43 Mon Sep 17 00:00:00 2001 -From: Alexander Petrovsky <askjuise@gmail.com> -Date: Tue, 10 May 2016 22:37:22 +0300 -Subject: [PATCH 2/5] Fix get_env bug - ---- - src/lager_app.erl | 20 +++++++++++--------- - 1 file changed, 11 insertions(+), 9 deletions(-) - -diff --git a/src/lager_app.erl b/src/lager_app.erl -index 8f1464d..8efd26b 100644 ---- a/src/lager_app.erl -+++ b/src/lager_app.erl -@@ -138,11 +138,10 @@ maybe_install_sink_killer(_Sink, HWM, ReinstallTimer) -> - error_logger:error_msg("Invalid value for 'killer_hwm': ~p or 'killer_reinstall_after': ~p", [HWM, ReinstallTimer]), - throw({error, bad_config}). - --start_error_logger_handler({ok, false}, _HWM, _Whitelist) -> -+-spec start_error_logger_handler(boolean(), pos_integer(), list()) -> list(). -+start_error_logger_handler(false, _HWM, _Whitelist) -> - []; --start_error_logger_handler(_, HWM, undefined) -> -- start_error_logger_handler(ignore_me, HWM, {ok, []}); --start_error_logger_handler(_, HWM, {ok, WhiteList}) -> -+start_error_logger_handler(true, HWM, WhiteList) -> - GlStrategy = case application:get_env(lager, error_logger_groupleader_strategy) of - undefined -> - handle; -@@ -200,13 +199,16 @@ configure_extra_sinks(Sinks) -> - lists:foreach(fun({Sink, Proplist}) -> configure_sink(Sink, Proplist) end, - Sinks). - -+-spec get_env(atom(), atom()) -> term(). - get_env(Application, Key) -> - get_env(Application, Key, undefined). -+ - %% R15 doesn't know about application:get_env/3 -+-spec get_env(atom(), atom(), term()) -> term(). - get_env(Application, Key, Default) -> -- get_env_default(application:get_env(Application, Key), -- Default). -+ get_env_default(application:get_env(Application, Key), Default). - -+-spec get_env_default('undefined' | {'ok', term()}, term()) -> term(). - get_env_default(undefined, Default) -> - Default; - get_env_default({ok, Value}, _Default) -> -@@ -235,9 +237,9 @@ boot() -> - lager:update_loglevel_config(?DEFAULT_SINK), - - SavedHandlers = start_error_logger_handler( -- get_env(lager, error_logger_redirect), -- interpret_hwm(get_env(lager, error_logger_hwm)), -- get_env(lager, error_logger_whitelist) -+ get_env(lager, error_logger_redirect, true), -+ interpret_hwm(get_env(lager, error_logger_hwm, 0)), -+ get_env(lager, error_logger_whitelist, []) - ), - - SavedHandlers. --- -2.8.3 - diff --git a/dev-erlang/lager/files/3.2.0-0003-Add-get_env-unit-test.patch b/dev-erlang/lager/files/3.2.0-0003-Add-get_env-unit-test.patch deleted file mode 100644 index affc347fdc45..000000000000 --- a/dev-erlang/lager/files/3.2.0-0003-Add-get_env-unit-test.patch +++ /dev/null @@ -1,64 +0,0 @@ -From 09aee4b601e0a11b31e99392bdb14ec67a79c80f Mon Sep 17 00:00:00 2001 -From: Alexander Petrovsky <askjuise@gmail.com> -Date: Wed, 11 May 2016 22:52:09 +0300 -Subject: [PATCH 3/5] Add get_env unit test - ---- - rebar.config | 4 +++- - test/lager_app_tests.erl | 22 ++++++++++++++++++++++ - 2 files changed, 25 insertions(+), 1 deletion(-) - create mode 100644 test/lager_app_tests.erl - -diff --git a/rebar.config b/rebar.config -index 77272c7..278df9c 100644 ---- a/rebar.config -+++ b/rebar.config -@@ -40,9 +40,12 @@ - - {eunit_opts, [verbose]}. - {eunit_compile_opts, [ -+ export_all, -+ - nowarn_untyped_record, - nowarn_export_all - ]}. -+ - {deps, [ - {goldrush, ".*", {git, "git://github.com/DeadZen/goldrush.git", {tag, "0.1.8"}}} - ]}. -@@ -53,4 +56,3 @@ - {cover_enabled, true}. - {edoc_opts, [{stylesheet_file, "./priv/edoc.css"}]}. - --{eunit_opts, [verbose]}. -diff --git a/test/lager_app_tests.erl b/test/lager_app_tests.erl -new file mode 100644 -index 0000000..80fe985 ---- /dev/null -+++ b/test/lager_app_tests.erl -@@ -0,0 +1,22 @@ -+-module(lager_app_tests). -+ -+-compile([{parse_transform, lager_transform}]). -+ -+-include_lib("eunit/include/eunit.hrl"). -+ -+ -+get_env_default_test() -> -+ ?assertEqual(<<"Some">>, lager_app:get_env_default(undefined, <<"Some">>)), -+ ?assertEqual(<<"Value">>, lager_app:get_env_default({ok, <<"Value">>}, <<"Some">>)), -+ ok. -+ -+get_env_test() -> -+ application:set_env(myapp, mykey1, <<"Value">>), -+ -+ ?assertEqual(<<"Some">>, lager_app:get_env(myapp, mykey0, <<"Some">>)), -+ ?assertEqual(<<"Value">>, lager_app:get_env(myapp, mykey1, <<"Some">>)), -+ -+ ?assertEqual(undefined, lager_app:get_env(myapp, mykey0)), -+ ?assertEqual(<<"Value">>, lager_app:get_env(myapp, mykey1)), -+ ok. -+ --- -2.8.3 - diff --git a/dev-erlang/lager/files/3.2.0-0004-Undo-unnecessary-whitespace.patch b/dev-erlang/lager/files/3.2.0-0004-Undo-unnecessary-whitespace.patch deleted file mode 100644 index cefbc7ea4203..000000000000 --- a/dev-erlang/lager/files/3.2.0-0004-Undo-unnecessary-whitespace.patch +++ /dev/null @@ -1,71 +0,0 @@ -From 0d428368e3c71fdefab39927ca142e3bccabd543 Mon Sep 17 00:00:00 2001 -From: "John R. Daily" <git@epep.us> -Date: Thu, 19 May 2016 14:55:51 -0400 -Subject: [PATCH 4/5] * Undo unnecessary whitespace * Make - lager_handler_watcher test more resilient by scanning for messages of - interest rather than assuming we know exactly what messages will arrive at - the test backend - ---- - src/lager_app.erl | 4 ++-- - src/lager_handler_watcher.erl | 22 ++++++++++++++++------ - 2 files changed, 18 insertions(+), 8 deletions(-) - -diff --git a/src/lager_app.erl b/src/lager_app.erl -index 8efd26b..7b02e54 100644 ---- a/src/lager_app.erl -+++ b/src/lager_app.erl -@@ -237,9 +237,9 @@ boot() -> - lager:update_loglevel_config(?DEFAULT_SINK), - - SavedHandlers = start_error_logger_handler( -- get_env(lager, error_logger_redirect, true), -+ get_env(lager, error_logger_redirect, true), - interpret_hwm(get_env(lager, error_logger_hwm, 0)), -- get_env(lager, error_logger_whitelist, []) -+ get_env(lager, error_logger_whitelist, []) - ), - - SavedHandlers. -diff --git a/src/lager_handler_watcher.erl b/src/lager_handler_watcher.erl -index d5fe140..4e595e4 100644 ---- a/src/lager_handler_watcher.erl -+++ b/src/lager_handler_watcher.erl -@@ -178,12 +178,10 @@ reinstall_on_runtime_failure_test_() -> - try - ?assert(lists:member(lager_crash_backend, gen_event:which_handlers(lager_event))), - timer:sleep(6000), -- _ = lager_test_backend:pop(), %% throw away application start up message -- _ = lager_test_backend:pop(), %% throw away gen_event crash message -- {_Severity, _Date, Msg, _Metadata} = lager_test_backend:pop(), -- ?assertEqual("Lager event handler lager_crash_backend exited with reason crash", lists:flatten(Msg)), -- {_Severity2, _Date2, Msg2, _Metadata2} = lager_test_backend:pop(), -- ?assertMatch("Lager failed to install handler lager_crash_backend into lager_event, retrying later :"++_, lists:flatten(Msg2)), -+ -+ pop_until("Lager event handler lager_crash_backend exited with reason crash", fun lists:flatten/1), -+ pop_until("Lager failed to install handler lager_crash_backend into lager_event, retrying later", -+ fun(Msg) -> string:substr(lists:flatten(Msg), 1, 84) end), - ?assertEqual(false, lists:member(lager_crash_backend, gen_event:which_handlers(lager_event))) - after - application:stop(lager), -@@ -194,5 +192,17 @@ reinstall_on_runtime_failure_test_() -> - ] - }. - -+pop_until(String, Fun) -> -+ try_backend_pop(lager_test_backend:pop(), String, Fun). -+ -+try_backend_pop(undefined, String, _Fun) -> -+ throw("Not found: " ++ String); -+try_backend_pop({_Severity, _Date, Msg, _Metadata}, String, Fun) -> -+ case Fun(Msg) of -+ String -> -+ ok; -+ _ -> -+ try_backend_pop(lager_test_backend:pop(), String, Fun) -+ end. - - -endif. --- -2.8.3 - diff --git a/dev-erlang/lager/files/3.2.0-0005-R15-does-not-appear-to-properly-handle-the-export.patch b/dev-erlang/lager/files/3.2.0-0005-R15-does-not-appear-to-properly-handle-the-export.patch deleted file mode 100644 index 9c27abd5c430..000000000000 --- a/dev-erlang/lager/files/3.2.0-0005-R15-does-not-appear-to-properly-handle-the-export.patch +++ /dev/null @@ -1,25 +0,0 @@ -From 124ba14f188fd3b63735b73828fa3d99ebfdb7af Mon Sep 17 00:00:00 2001 -From: "John R. Daily" <git@epep.us> -Date: Thu, 19 May 2016 15:26:02 -0400 -Subject: [PATCH 5/5] R15 does not appear to properly handle the export_all - directive added to rebar.config - ---- - src/lager_app.erl | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/src/lager_app.erl b/src/lager_app.erl -index 7b02e54..b76da53 100644 ---- a/src/lager_app.erl -+++ b/src/lager_app.erl -@@ -23,6 +23,7 @@ - -behaviour(application). - -include("lager.hrl"). - -ifdef(TEST). -+-compile([export_all]). - -include_lib("eunit/include/eunit.hrl"). - -endif. - -export([start/0, --- -2.8.3 - diff --git a/dev-erlang/lager/lager-3.2.0.ebuild b/dev-erlang/lager/lager-3.2.0.ebuild deleted file mode 100644 index 3c88ed5979cb..000000000000 --- a/dev-erlang/lager/lager-3.2.0.ebuild +++ /dev/null @@ -1,34 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit rebar - -DESCRIPTION="Logging framework for Erlang/OTP" -HOMEPAGE="https://github.com/basho/lager" -SRC_URI="https://github.com/basho/${PN}/archive/${PV}.tar.gz - -> ${P}.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="amd64 ~arm ~ia64 ppc ~sparc x86" - -DEPEND=">=dev-erlang/goldrush-0.1.7 - >=dev-lang/erlang-17.1" -RDEPEND="${DEPEND}" - -DOCS=( README.md TODO ) -PATCHES=( - "${FILESDIR}/${PV}-0001-Support-typed-records-newly-exposed-in-OTP-19.patch" - "${FILESDIR}/${PV}-0002-Fix-get_env-bug.patch" - "${FILESDIR}/${PV}-0003-Add-get_env-unit-test.patch" - "${FILESDIR}/${PV}-0004-Undo-unnecessary-whitespace.patch" - "${FILESDIR}/${PV}-0005-R15-does-not-appear-to-properly-handle-the-export.patch" -) - -src_prepare() { - rebar_src_prepare - # 'priv' directory contains only edoc.css, but doc isn't going to be built. - rm -r "${S}/priv" || die -} diff --git a/dev-erlang/lager/lager-3.2.1.ebuild b/dev-erlang/lager/lager-3.2.1.ebuild deleted file mode 100644 index 33d8d1ae27cc..000000000000 --- a/dev-erlang/lager/lager-3.2.1.ebuild +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit rebar - -DESCRIPTION="Logging framework for Erlang/OTP" -HOMEPAGE="https://github.com/basho/lager" -SRC_URI="https://github.com/basho/${PN}/archive/${PV}.tar.gz - -> ${P}.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="amd64 ~arm ~ia64 ~ppc ~sparc ~x86" - -DEPEND=">=dev-erlang/goldrush-0.1.8 - >=dev-lang/erlang-17.1" -RDEPEND="${DEPEND}" - -DOCS=( README.md TODO ) - -src_prepare() { - rebar_src_prepare - # 'priv' directory contains only edoc.css, but doc isn't going to be built. - rm -r "${S}/priv" || die -} diff --git a/dev-erlang/lager/lager-3.2.2.ebuild b/dev-erlang/lager/lager-3.2.2.ebuild deleted file mode 100644 index 4be62a4907a6..000000000000 --- a/dev-erlang/lager/lager-3.2.2.ebuild +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit rebar - -DESCRIPTION="Logging framework for Erlang/OTP" -HOMEPAGE="https://github.com/basho/lager" -SRC_URI="https://github.com/basho/${PN}/archive/${PV}.tar.gz - -> ${P}.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="amd64 ~arm ~ia64 ppc ~sparc x86" - -DEPEND=">=dev-erlang/goldrush-0.1.8 - >=dev-lang/erlang-17.1" -RDEPEND="${DEPEND}" - -DOCS=( README.md TODO ) - -src_prepare() { - rebar_src_prepare - # 'priv' directory contains only edoc.css, but doc isn't going to be built. - rm -r "${S}/priv" || die -} diff --git a/dev-erlang/lager/lager-3.6.7.ebuild b/dev-erlang/lager/lager-3.6.7.ebuild deleted file mode 100644 index 126dde8f4bb1..000000000000 --- a/dev-erlang/lager/lager-3.6.7.ebuild +++ /dev/null @@ -1,28 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit rebar - -DESCRIPTION="Logging framework for Erlang/OTP" -HOMEPAGE="https://github.com/erlang-lager/lager" -SRC_URI="https://github.com/erlang-lager/${PN}/archive/${PV}.tar.gz - -> ${P}.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~sparc ~x86" - -DEPEND=">=dev-erlang/goldrush-0.1.9 - >=dev-lang/erlang-17.1" -RDEPEND="${DEPEND}" - -DOCS=( README.md TODO ) - -src_prepare() { - rebar_src_prepare - sed -i '/goldrush/d' rebar.config.script - # 'priv' directory contains only edoc.css, but doc isn't going to be built. - rm -r "${S}/priv" || die -} |