From 57c6c5e73fd9a3e367364466ea1b7ec1ed8e69c4 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Thu, 24 Jun 2021 01:14:05 -0700 Subject: [PATCH] tvheadend: fix compilation with GCC 9 and 10 Without this, compilation fails because of a fortify-source header. There's something defining and undefining _GNU_SOURCE somewhere. Signed-off-by: Rosen Penev --- multimedia/tvheadend/Makefile | 2 +- multimedia/tvheadend/patches/040-fortify.patch | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 multimedia/tvheadend/patches/040-fortify.patch diff --git a/multimedia/tvheadend/Makefile b/multimedia/tvheadend/Makefile index e75e90cf0..12bb08103 100644 --- a/multimedia/tvheadend/Makefile +++ b/multimedia/tvheadend/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=tvheadend PKG_VERSION:=4.0.10 -PKG_RELEASE:=5 +PKG_RELEASE:=6 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/040-fortify.patch b/multimedia/tvheadend/patches/040-fortify.patch new file mode 100644 index 000000000..429791ad1 --- /dev/null +++ b/multimedia/tvheadend/patches/040-fortify.patch @@ -0,0 +1,9 @@ +--- a/src/intlconv.c ++++ b/src/intlconv.c +@@ -1,3 +1,6 @@ ++#ifndef _GNU_SOURCE ++#define _GNU_SOURCE ++#endif + #include + #include "tvheadend.h" + #include "intlconv.h"