gnutls: fix build with zabbix
authorTianling Shen <cnsztl@immortalwrt.org>
Fri, 19 May 2023 07:42:22 +0000 (15:42 +0800)
committerTianling Shen <cnsztl@gmail.com>
Sat, 20 May 2023 05:06:29 +0000 (13:06 +0800)
commit7730e8ea1e028246af8df2284ed5e556bdddef6e
tree4f5dc4a2c49ba87dea51aebc1da1be515145b266
parentf03a2827ea2c2a8d8b63733b3dc75652b8530ae1
gnutls: fix build with zabbix

Zabbix verifies the version of gnutls by search in the header gnutls.h.
This is done with 'cat' and 'egrep'. The problem here is now that the
preprocess definition did changed in gnutls.h, so the regex does not
match anymore.

The following error message acourse in the log:
> configure: error: GnuTLS library version requirement not met (>= 3.1.18)

To fix this backport an upstream patch to let the regex work again.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
libs/gnutls/Makefile
libs/gnutls/patches/040-build-use-clang-format-on-off-annotation.patch [new file with mode: 0644]