Source: libwebsockets
Severity: normal
Tags: patch
Dear Maintainer,
libwebsockets 4.0.15 recently landed to Debian testing, and I noticed that one
of my own programs using it failed to build against it, as the new version
apparently is not built with extensions support enabled (appearing as undefined
reference to `lws_extension_callback_pm_deflate').
I am attaching a patch to debian/rules to enable the extensions support, as it
was enabled in previous (3.2 etc) versions of this package.
-- System Information:
Debian Release: bullseye/sid
APT prefers testing-debug
APT policy: (500, 'testing-debug'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.6.18-qcmm (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
diff -ur lws-orig/libwebsockets-4.0.15/debian/rules
lws-fix/libwebsockets-4.0.15/debian/rules
--- lws-orig/libwebsockets-4.0.15/debian/rules 2019-12-28 12:13:56.000000000
+0200
+++ lws-fix/libwebsockets-4.0.15/debian/rules 2020-06-14 21:06:51.836172331
+0300
@@ -24,7 +24,8 @@
dh_auto_configure -- -DCMAKE_LIBRARY_ARCHITECTURE=${arch} \
-DLIB_SUFFIX=/${arch} -DLWS_WITHOUT_DAEMONIZE=OFF \
-DLWS_WITH_LIBEV=ON -DLWS_WITH_LIBUV=ON \
- -DLWS_UNIX_SOCK=ON -DLWS_IPV6=ON
+ -DLWS_UNIX_SOCK=ON -DLWS_IPV6=ON \
+ -DLWS_WITH_ZLIB=ON -DLWS_WITHOUT_EXTENSIONS=OFF
override_dh_install-arch:
$(RM)
$(CURDIR)/debian/tmp/usr/lib/${arch}/pkgconfig/libwebsockets_static.pc