Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop supporting R15B03 and older #582

Closed
michalwski opened this issue Nov 12, 2015 · 4 comments
Closed

Stop supporting R15B03 and older #582

michalwski opened this issue Nov 12, 2015 · 4 comments

Comments

@michalwski
Copy link
Contributor

I think we can stop supporting older Erlang/OTP versions than R16. Here are some reasons (and action points) regarding this:

  1. We can merge with paulgray/exml and benefit from he's NIF's reductions introduced in paulgray/exml@3e9d223
  2. We can remove custom cowboy dep [1].
  3. We can start using application:get_env/3 instead of application:get_env/2 and additional lines of code holding default value.
  4. One job less on travis.

Probably some other improvements can be done but I let (and encourage) the team @esl/mongooseim-developers to comment on this issue and share other ideas :)

[1].

"R15" ++ _ ->
{deps, Deps} = lists:keyfind(deps, 1, CONFIG),
io:format("using patched cowboy 1.0.1 for Erlang/OTP R15B03~n"),
CowDep = {cowboy,".*", {git,"git://github.com/michalwski/cowboy.git",{branch,"1.0.1-R15"}}},
NewDeps = lists:keyreplace(cowboy, 1, Deps, CowDep),
lists:keyreplace(deps, 1, CONFIG, {deps, NewDeps});

@fenek
Copy link
Member

fenek commented Nov 12, 2015

👍

We could remove walkaround for binary_to_integer and integer_to_binary as well!

@pzel
Copy link
Contributor

pzel commented Nov 12, 2015

Yes, this would allow us to clean up quite a bit of accumulated kludges!

On Thu, Nov 12, 2015 at 11:34 AM, Piotr Nosek notifications@github.com
wrote:

[image: 👍]

We could remove walkaround for binary_to_integer and integer_to_binary as
well!


Reply to this email directly or view it on GitHub
#582 (comment).

Simon Zelazny
Erlang Solutions, Ltd.

@michalwski michalwski added this to the MongooseIM 1.6.2 milestone Nov 27, 2015
@michalwski
Copy link
Contributor Author

TODO list after ditching support for R15

  • merge Merge with paulgray/exml exml#16
  • remve custom cowboy version see reabar.config.script
  • use application:get_env/3 when default value is needed
  • use application:ensure_all_started instead of custom mechanism
  • remove workaround for binary_to_integer in rebar.config and look for all places where no_binary_to_integer is used. Remember to remove ejabberd_binary:binary_to_integer and ejabberd_binary:integer_to_binary
  • remove workaround for crypto:hmac in rebar.config and look for all places where no_crypto_hmac is used

@michalwski
Copy link
Contributor Author

Closed by #613.
To benefit this change we should also merge esl/exml#16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants