ports/math/cadabra2/files/patch-client__server_Server.cc
Yuri Victorovich f379a201bc math/cadabra2: Update 2.1.6 -> 2.2.0
Port changes:
* Remove the overriding patch of boost::asio:
  now EINPROGRESS is handled properly, before it was not.
* Remove the overriding patch of websocketpp:
  added an equivalent patch into cadabra2 source,
  it is easier this way. Before such function didn't
  exist in the websocketpp interface.
* Add the patch for pull/82:
  missing #include / removal of unnecessary prefix calculation.
* Change cmake -> cmake:outsource.
* Switch to python3 because it links to python3 anyway,
  even though it claims to support python2.
* Add DOS2UNIX_FILES for cmake/version.cmake for one patched file.
* Remove post-patch: added a similar patch under files/
* Remove post-install: stripping is now done by the project.
* Remove post-install-GUI-on: icons are now installed by the project.

Testing:
* Runs fine, shows correct results for examples from the online manual.
2018-03-31 22:55:33 +00:00

11 lines
478 B
C++

--- client_server/Server.cc.orig 2018-03-31 19:40:16 UTC
+++ client_server/Server.cc
@@ -466,7 +466,7 @@ void Server::run()
wserver.init_asio();
wserver.set_reuse_addr(true);
- wserver.listen(0);
+ wserver.listen(websocketpp::lib::asio::ip::tcp::v4(), 0); // makes up for a failed assumption that IPv6 is mapped into IPv4: (see net.inet6.ip6.v6only=0)
wserver.start_accept();
websocketpp::lib::asio::error_code ec;
auto p = wserver.get_local_endpoint(ec);