tvheadend: update to v4.2.8, remove static ffmpeg
authorMarius Dinu <m95d+git@psihoexpert.ro>
Sat, 14 Aug 2021 09:39:44 +0000 (12:39 +0300)
committerHannu Nyman <hannu.nyman@iki.fi>
Tue, 17 Aug 2021 15:34:18 +0000 (18:34 +0300)
 - refresh patches
 - add missing dependency: libffi

Signed-off-by: Marius Dinu <m95d+git@psihoexpert.ro>
[edited commit message and the maintainer line]

multimedia/tvheadend/Makefile
multimedia/tvheadend/patches/010-openssl-deprecated.patch
multimedia/tvheadend/patches/020-strncpy-issue.patch [deleted file]
multimedia/tvheadend/patches/030-gcc10.patch

index 12bb08103e1389a39a1deca70d5da0c18fde95eb..ebcc8f586811dd327ed924ab29895fe425d2aa50 100644 (file)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=tvheadend
-PKG_VERSION:=4.0.10
-PKG_RELEASE:=6
+PKG_VERSION:=4.2.8
+PKG_RELEASE:=$(AUTORELEASE)
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/tvheadend/tvheadend/tar.gz/v$(PKG_VERSION)?
-PKG_HASH:=f610e7d9f3bf6cff05cd73830a66ee0c74bc5291c4c9d08369364c4c681ebf23
+PKG_HASH:=1aef889373d5fad2a7bd2f139156d4d5e34a64b6d38b87b868a2df415f01f7ad
 
 PKG_LICENSE:=GPL-3.0
 PKG_LICENSE_FILES:=LICENSE.md
@@ -29,9 +29,9 @@ define Package/tvheadend
   SECTION:=multimedia
   CATEGORY:=Multimedia
   TITLE:=Tvheadend is a TV streaming server for Linux
-  DEPENDS:=+libopenssl +librt +zlib +TVHEADEND_AVAHI_SUPPORT:libavahi-client $(ICONV_DEPENDS)
+  DEPENDS:=+libopenssl +librt +zlib +libffi +TVHEADEND_AVAHI_SUPPORT:libavahi-client $(ICONV_DEPENDS)
   URL:=https://tvheadend.org
-  MAINTAINER:=Jan Čermák <jan.cermak@nic.cz>
+  MAINTAINER:=Marius Dinu <m95d+git@psihoexpert.ro>
 endef
 
 define Package/tvheadend/description
@@ -70,7 +70,9 @@ CONFIGURE_ARGS += \
        --arch=$(ARCH) \
        --disable-dbus_1 \
        --disable-libav \
-       --enable-bundle
+       --disable-ffmpeg_static \
+       --enable-bundle \
+       --nowerror=unused-variable
 
 define Build/Prepare
        $(call Build/Prepare/Default)
index 5416ef7fa8ff07f891a82803192b4d47a5f8a918..e1a4a948ac8b7502d5c0024e60097f5db2de6292 100644 (file)
@@ -1,6 +1,6 @@
 --- a/src/main.c
 +++ b/src/main.c
-@@ -965,10 +965,12 @@ main(int argc, char **argv)
+@@ -1155,10 +1155,12 @@ main(int argc, char **argv)
    sigprocmask(SIG_BLOCK, &set, NULL);
    trap_init(argv[0]);
  
    SSL_load_error_strings();
    SSL_library_init();
 +#endif
-   /* Initialise configuration */
-   notify_init();
-@@ -1159,8 +1161,11 @@ main(int argc, char **argv)
- #endif
-   free(opt_satip_xml.str);
+   /* Rand seed */
+   randseed.thread_id = (void *)main_tid;
+   gettimeofday(&randseed.tv, NULL);
+@@ -1346,8 +1348,11 @@ main(int argc, char **argv)
+   if(opt_fork)
+     unlink(opt_pidpath);
+     
 +#if OPENSSL_VERSION_NUMBER < 0x10100000L
    /* OpenSSL - welcome to the "cleanup" hell */
 +#ifndef OPENSSL_NO_ENGINE
    RAND_cleanup();
    CRYPTO_cleanup_all_ex_data();
    EVP_cleanup();
-@@ -1168,12 +1173,13 @@ main(int argc, char **argv)
- #ifndef OPENSSL_NO_COMP
+@@ -1355,12 +1360,13 @@ main(int argc, char **argv)
+ #if !defined(OPENSSL_NO_COMP)
    COMP_zlib_cleanup();
  #endif
 -  ERR_remove_state(0);
 +  ERR_remove_thread_state(NULL);
    ERR_free_strings();
- #ifndef OPENSSL_NO_COMP
+ #if !defined(OPENSSL_NO_COMP) && OPENSSL_VERSION_NUMBER < 0x1010006f
    sk_SSL_COMP_free(SSL_COMP_get_compression_methods());
  #endif
    /* end of OpenSSL cleanup code */
diff --git a/multimedia/tvheadend/patches/020-strncpy-issue.patch b/multimedia/tvheadend/patches/020-strncpy-issue.patch
deleted file mode 100644 (file)
index a8bb88d..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/Makefile
-+++ b/Makefile
-@@ -28,7 +28,7 @@ PROG    := $(BUILDDIR)/tvheadend
- #
- CFLAGS  += -g -O2 -Wunused-result
--CFLAGS  += -Wall -Werror -Wwrite-strings -Wno-deprecated-declarations
-+#CFLAGS  += -Wall -Werror -Wwrite-strings -Wno-deprecated-declarations
- CFLAGS  += -Wmissing-prototypes
- CFLAGS  += -fms-extensions -funsigned-char -fno-strict-aliasing
- CFLAGS  += -D_FILE_OFFSET_BITS=64
index 53a2b0e9e824b38c89d6eefa63ee8b8d9f2d62d3..b7a05a4af95ab286bcb0574b603bb3aa0af0e6c4 100644 (file)
@@ -1,6 +1,17 @@
+--- a/src/input/mpegts.h
++++ b/src/input/mpegts.h
+@@ -1132,7 +1132,7 @@ typedef struct mpegts_listener
+   void (*ml_mux_delete) (mpegts_mux_t *mm, void *p);
+ } mpegts_listener_t;
+-LIST_HEAD(,mpegts_listener) mpegts_listeners;
++static LIST_HEAD(,mpegts_listener) mpegts_listeners;
+ #define mpegts_add_listener(ml)\
+   LIST_INSERT_HEAD(&mpegts_listeners, ml, ml_link)
 --- a/src/input.h
 +++ b/src/input.h
-@@ -120,8 +120,8 @@ void tvh_hardware_delete ( tvh_hardware_
+@@ -128,8 +128,8 @@ void tvh_hardware_delete ( tvh_hardware_
  extern const idclass_t tvh_input_class;
  extern const idclass_t tvh_input_instance_class;
  
  
  #define TVH_INPUT_FOREACH(x) LIST_FOREACH(x, &tvh_inputs, ti_link)
  #define TVH_HARDWARE_FOREACH(x) LIST_FOREACH(x, &tvh_hardware, th_link)
---- a/src/input/mpegts.h
-+++ b/src/input/mpegts.h
-@@ -1017,7 +1017,7 @@ typedef struct mpegts_listener
-   void (*ml_mux_delete) (mpegts_mux_t *mm, void *p);
- } mpegts_listener_t;
--LIST_HEAD(,mpegts_listener) mpegts_listeners;
-+static LIST_HEAD(,mpegts_listener) mpegts_listeners;
- #define mpegts_add_listener(ml)\
-   LIST_INSERT_HEAD(&mpegts_listeners, ml, ml_link)