tvheadend: update libhdhomerun
authorJosef Schlehofer <pepe.schlehofer@gmail.com>
Wed, 27 Oct 2021 06:48:42 +0000 (08:48 +0200)
committerRosen Penev <rosenp@gmail.com>
Thu, 28 Oct 2021 06:15:29 +0000 (23:15 -0700)
Recently, silicondust (developers of hdhomerun) did some cleanup and
removed old versions for hdhomerun library.

```
WGET            http://download.silicondust.com/hdhomerun/libhdhomerun_20150826.tgz
http://download.silicondust.com/hdhomerun/libhdhomerun_20150826.tgz:
2021-10-26 05:15:14 ERROR 404: Not Found.
```

And because of that, it is not possible to compile tvheadend, it ends
with following error:

```
In file included from src/input/mpegts/tvhdhomerun/tvhdhomerun.c:25:0:
src/input/mpegts/tvhdhomerun/tvhdhomerun_private.h:27:10: fatal error: libhdhomerun/hdhomerun.h: No such file or directory
 #include <libhdhomerun/hdhomerun.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
```

Let's fix it by updating libdhdhomerun to newer version.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
multimedia/tvheadend/Makefile
multimedia/tvheadend/patches/100-libhdhomerun-upgrade-to-20180817.patch [new file with mode: 0644]

index 9108b92963604a9b4c952caa3c27fe96de309956..e75e90cf042a482cdb86979f9ca0f4d795c7257f 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=tvheadend
 PKG_VERSION:=4.0.10
-PKG_RELEASE:=4
+PKG_RELEASE:=5
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/tvheadend/tvheadend/tar.gz/v$(PKG_VERSION)?
diff --git a/multimedia/tvheadend/patches/100-libhdhomerun-upgrade-to-20180817.patch b/multimedia/tvheadend/patches/100-libhdhomerun-upgrade-to-20180817.patch
new file mode 100644 (file)
index 0000000..e95b84a
--- /dev/null
@@ -0,0 +1,35 @@
+From fa245accd43adfbafbd60aea74fb1fc87b551b1a Mon Sep 17 00:00:00 2001
+From: Josef Schlehofer <pepe.schlehofer@gmail.com>
+Date: Wed, 27 Oct 2021 13:46:14 +0200
+Subject: [PATCH] libhdhomerun: upgrade to 20180817
+
+This version of libhdhomerun was tested in tvheadend master and works
+with version 4.2 (there was submitted PR by me, but still not accepted)
+
+I dont have any plans to submit this against ancient version of
+tvheadend (4.0), feel free to send this to upstream.
+---
+ Makefile.hdhomerun | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/Makefile.hdhomerun b/Makefile.hdhomerun
+index 943ffec24..c5d9dd41f 100644
+--- a/Makefile.hdhomerun
++++ b/Makefile.hdhomerun
+@@ -49,10 +49,10 @@ LIBHDHRDIR = $(ROOTDIR)/libhdhomerun_static
+ export PATH := $(LIBHDHRDIR)/build/bin:$(PATH)
+-LIBHDHR         = libhdhomerun_20150826
++LIBHDHR         = libhdhomerun_20180817
+ LIBHDHR_TB      = $(LIBHDHR).tgz
+-LIBHDHR_URL     = http://download.silicondust.com/hdhomerun/$(LIBHDHR_TB)
+-LIBHDHR_SHA1    = 24ce6003b1e815ec4c642d180b621c1d524ca1cf
++LIBHDHR_URL     = https://download.silicondust.com/hdhomerun/$(LIBHDHR_TB)
++LIBHDHR_SHA1    = 052868bde3a5713c55b4d060b77e0bc3a0d891d6
+ .PHONY: build
+ build: $(LIBHDHRDIR)/$(LIBHDHR)/.tvh_build
+-- 
+2.30.2
+