Couchdb: Erlang/OTP 22 Support

Created on 9 Jul 2019  路  5Comments  路  Source: apache/couchdb

Summary

Erlang/OTP 22 was released in May https://www.erlang.org/news/132. Would it be possible to add support for this?

Desired Behaviour

Support for building/running CouchDB with OTP 22

Possible Solution

Simply adding 22 to the version regex doesn't seem to have been enough, at least. Fails at ==> couchdb (compile).

EDIT: Upon further investigation, it may be a Fauxton compilation issue that's my fault. Checking now.

The compilation is successful without Fauxton - I think I just have some missing dependacies for that.

Additional context

Currently, Void Linux cannot run/build CouchDB, because it provides OTP 22.

build chore

Most helpful comment

Just built from erlang-22-support. Fauxton reports a good installation!

All 5 comments

Thanks for reporting the issue, @maciozo

I tried installing erlang 22 and elixir build on erlang 22 locally with asdf

$ asdf current
elixir         v1.8.2-otp-22 (set by ASDF_ELIXIR_VERSION environment variable)
erlang         22.0.5   (set by ASDF_ERLANG_VERSION environment variable)

Then did git clean -xffd to clean all current build artifacts, added 22 to rebar.conf.script in main repo and for snappy dependency and got make eunit and make elixir tests to pass.

Created a PR to update snappy:
https://github.com/apache/couchdb-snappy/commit/0f73f2b1b3508c31dd1129e2d7233ff9a469c775

And then one update the main repo with that new snappy version and bumped rebar.config.script values:
https://github.com/apache/couchdb/pull/2070

Though that also required bumping elixir from 1.6.6. to 1.7.4

Just built from erlang-22-support. Fauxton reports a good installation!

@nickva could you be sure to update apache/couchdb-ci to bump the minimum version of Elixir required to 1.7.4? Thanks.

One line fix: https://github.com/apache/couchdb-ci/blob/master/bin/install-elixir.sh#L31

@wohali thanks for the reminder!

https://github.com/apache/couchdb-ci/pull/22

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wohali picture wohali  路  5Comments

dpdornseifer picture dpdornseifer  路  3Comments

col-panic picture col-panic  路  5Comments

stheobald picture stheobald  路  4Comments

YC picture YC  路  5Comments