Browse Source

tvheadend: Fix compilation on GCC8

New string warnings were introduced. Adding -Wno-error to TARGET_CFLAGS
does not work so patch it out.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
lilik-openwrt-22.03
Rosen Penev 6 years ago
parent
commit
9eea417e92
No known key found for this signature in database GPG Key ID: 36D31CFA845F0E3B
2 changed files with 14 additions and 3 deletions
  1. +1
    -3
      multimedia/tvheadend/Makefile
  2. +13
    -0
      multimedia/tvheadend/patches/020-strncpy-issue.patch

+ 1
- 3
multimedia/tvheadend/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=tvheadend
PKG_VERSION:=4.0.10
PKG_RELEASE:=3
PKG_RELEASE:=4
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/tvheadend/tvheadend/tar.gz/v$(PKG_VERSION)?
@ -72,8 +72,6 @@ CONFIGURE_ARGS += \
--disable-libav \
--enable-bundle
TARGET_CFLAGS += -Wno-error=pointer-compare
define Build/Prepare
$(call Build/Prepare/Default)
echo 'Tvheadend $(shell echo $(PKG_SOURCE_VERSION) | sed "s/^v//")~openwrt$(PKG_RELEASE)' \


+ 13
- 0
multimedia/tvheadend/patches/020-strncpy-issue.patch View File

@ -0,0 +1,13 @@
diff --git a/Makefile b/Makefile
index 8c5e380..baef144 100644
--- 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

Loading…
Cancel
Save