tvheadend: Fix compilation without deprecated OpenSSL 1.0.2 APIs
authorRosen Penev <rosenp@gmail.com>
Wed, 2 Jan 2019 05:46:47 +0000 (21:46 -0800)
committerRosen Penev <rosenp@gmail.com>
Tue, 23 Jul 2019 03:30:05 +0000 (20:30 -0700)
Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry-picked from c59e53619e0b0b3c19651023456e500e6906dbd2)

multimedia/tvheadend/Makefile
multimedia/tvheadend/patches/010-openssl-deprecated.patch

index 634ed7eacb7cc59b8cfe9e7728efb1e0e78e8b81..4a41a9f38c9a97d27792a179e2226608930b18a0 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=tvheadend
 PKG_VERSION:=4.0.10
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/tvheadend/tvheadend/tar.gz/v$(PKG_VERSION)?
index 93b6072d3d27309937cee9ff83347699de1067d8..5416ef7fa8ff07f891a82803192b4d47a5f8a918 100644 (file)
    RAND_cleanup();
    CRYPTO_cleanup_all_ex_data();
    EVP_cleanup();
-@@ -1174,6 +1179,7 @@ main(int argc, char **argv)
+@@ -1168,12 +1173,13 @@ main(int argc, char **argv)
+ #ifndef OPENSSL_NO_COMP
+   COMP_zlib_cleanup();
+ #endif
+-  ERR_remove_state(0);
++  ERR_remove_thread_state(NULL);
+   ERR_free_strings();
+ #ifndef OPENSSL_NO_COMP
    sk_SSL_COMP_free(SSL_COMP_get_compression_methods());
  #endif
    /* end of OpenSSL cleanup code */