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
OTP-20 Support #617
Comments
Well on a positive note it appears |
From IRC:
|
RE using couch_crypto, I think that logically makes sense for the |
This was also reported here https://issues.apache.org/jira/browse/COUCHDB-3414, originating from https://bugs.archlinux.org/task/53499. During build, you can see the following messages:
Build does still success though, but on start-up attempt:
A rough patch was proposed here: https://bugs.archlinux.org/task/53499#comment158393 |
I did a build on OTP20 Debian Testing (Buster) - seems to be working fine. Deprication warnings along the way, but nothing critical IMHO. |
It compiles on 20.0 and EUnit tests run. |
port_compiler: auto-select C++ specific link template
Discussed on the [ML](https://lists.apache.org/thread.html/rebba9a43bfdf9696f2ce974b0fc7550a631c7b835e4c14e51cd27a87%40%3Cdev.couchdb.apache.org%3E) Based on the Fair Share Scheduler paper by [Judy Kay and Piers Lauder](https://proteusmaster.urcf.drexel.edu/urcfwiki/images/KayLauderFairShare.pdf)
While doing a fresh CouchDB build on OTP-20 I ran into blocking issues with the removal of the deprecated
crypto:rand_bytes/1
function. This function was deprecated in [1] in the OTP-19 release and has now been completely removed in OTP-20 with [2]. You can see in [1] that there is an alternative functioncrypto:strong_rand_bytes/1
that is now being used in Erlang. I don't know the nuances of that change well enough to conclude whether this would be appropriate for us to use. It does appear that the current incarnation ofcrypto:strong_rand_bytes/1
has been in since OTP-17 [3], and an earlier version even further.We currently used
crypto:rand_bytes
in a number of modules, and even in 3rd party deps like Mochiweb:In the ticket title I've intentionally left
crypto:rand_bytes
out as I have not verified this is the only deprecated function preventing CouchDB from building on OTP-20.[1] erlang/otp@1ad1883
[2] erlang/otp@a302543
[3] erlang/otp@973c10a
Expected Behavior
Expect to be able to boot CouchDB on OTP-20.
Current Behavior
Cannot boot CouchDB on OTP-20.
Possible Solution
Remove all uses of removed deprecated functions.
Steps to Reproduce (for bugs)
The text was updated successfully, but these errors were encountered: