luasec: fix build with OPENSSL_NO_COMP 3035/head
authorJo-Philipp Wich <jo@mein.io>
Tue, 9 Aug 2016 07:35:21 +0000 (09:35 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 9 Aug 2016 07:35:21 +0000 (09:35 +0200)
commit32f6b85a52de9335bdfdd012ae718bed45f370f7
tree7cc55e6175144c814b58788c398775ca635ae66f
parent39f0b6f067217de83889110428890acad9accab4
luasec: fix build with OPENSSL_NO_COMP

Currently luasec fails to build if OpenSSL was built without compression
support due to an undefined COMP_METHOD type:

    ssl.c: In function 'meth_compression':
    ssl.c:404:9: error: unknown type name 'COMP_METHOD'
       const COMP_METHOD *comp;
             ^
    <builtin>: recipe for target 'ssl.o' failed
    make[6]: *** [ssl.o] Error 1

Add a local patch to stub the `meth_compression()` function if there is no
compression support available in the OpenSSL library in order to allow
luasec to build.

A similar fix has been added upstream with
https://github.com/brunoos/luasec/pull/30

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
lang/luasec/Makefile
lang/luasec/patches/200-compression-method-fix.patch [new file with mode: 0644]