libwebsockets without -DLWS_WITH_LIBUV=ON breaks ttyd package
$ apk add ttyd
$ ttyd -p 8080 bash
says:
[2020/09/09 14:17:44:2873] N: ttyd 1.6.0-1ccec5add2 (libwebsockets 3.2.2)
[2020/09/09 14:17:44:2874] N: tty configuration:
[2020/09/09 14:17:44:2874] N: start command: bash
[2020/09/09 14:17:44:2874] N: close signal: SIGHUP (1)
[2020/09/09 14:17:44:2874] N: terminal type: xterm-256color
[2020/09/09 14:17:44:2875] E: Requested event library support not configured, available:
[2020/09/09 14:17:44:2875] E: - poll
[2020/09/09 14:17:44:2875] E: libwebsockets context creation failed
this is because libwebsockets
package is missing -DLWS_WITH_LIBUV=ON
, see https://github.com/void-linux/void-packages/issues/19441
I hacked my own version of these successfully here:
- https://github.com/matti/docker-alpine-libwebsockets-with-libuv
- https://github.com/matti/docker-alpine-ttyd-with-libuv-websockets
When I install my package of ttyd
, it works as expected.