matrix-org / matrix-ircd

An IRCd implementation backed by Matrix.
Apache License 2.0
224 stars 41 forks source link

Fails to build with OpenSSL >= 1.1.1 #57

Closed madduck closed 5 years ago

madduck commented 5 years ago

For reference on why matrix-ircd won't build anymore with OpenSSL 1.1.1 and above: https://github.com/sfackler/rust-openssl/issues/994

madduck commented 5 years ago

Thanks to eeeeeta on Freenode, the following is a hack to make it work for now:

diff --git a/Cargo.toml b/Cargo.toml
index 4d9ae64..d2f8b2c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -28,7 +28,7 @@ tokio-tls = "0.1.1"
 url = "1.2.1"

 [dependencies.openssl]
-version = "0.9.0"
+version = "0.9.24"

 [dependencies.tasked-futures]
 git = "https://github.com/erikjohnston/tasked-futures.git"
@@ -44,3 +44,6 @@ trace_logging = [
     "slog/max_level_trace",
     "slog/release_max_level_warn",
 ]
+
+[replace]
+"openssl:0.9.24" = { git = "https://github.com/ishitatsuyuki/rust-openssl", branch = "0.9.x" }
erikjohnston commented 5 years ago

I've updated the dependencies to remove all deps on openssl v0.9, which I think fixes this?