commit 7c43709bc74787b5dad1a0dc8168cfd8f1cefb24
Author: Martin Gansser <mgansser(a)alice.de>
Date: Sat Mar 25 11:59:29 2017 +0100
Add tvheadend-4.0.9-gcc7.patch
tvheadend-4.0.9-gcc7.patch | 11 +++++++++++
tvheadend.spec | 2 ++
2 files changed, 13 insertions(+)
---
diff --git a/tvheadend-4.0.9-gcc7.patch b/tvheadend-4.0.9-gcc7.patch
new file mode 100644
index 0000000..2d64f62
--- /dev/null
+++ b/tvheadend-4.0.9-gcc7.patch
@@ -0,0 +1,11 @@
+--- src/lock.c.orig 2017-03-25 11:24:16.713127102 +0100
++++ src/lock.c 2017-03-25 11:25:07.499462345 +0100
+@@ -36,7 +36,7 @@
+ lck.l_type = lock ? F_WRLCK : F_UNLCK;
+ lck.l_whence = SEEK_SET;
+ lck.l_start = 0;
+- lck.l_len = 11;
++ lck.l_len = 12;
+ lck.l_pid = 0;
+ if (lock) {
+ snprintf(lcktxt, sizeof(lcktxt), "%10li\n", (long)getpid());
diff --git a/tvheadend.spec b/tvheadend.spec
index 96ffb85..3342e4f 100644
--- a/tvheadend.spec
+++ b/tvheadend.spec
@@ -32,6 +32,7 @@ Patch5: %{name}-4.0.9-service.patch
# Enforcing system crypto policies, see
#
https://fedoraproject.org/wiki/Packaging:CryptoPolicies
Patch6: %{name}-4.0.9-crypto_policies.patch
+Patch7: %{name}-4.0.9-gcc7.patch
BuildRequires: bzip2
BuildRequires: gcc
@@ -80,6 +81,7 @@ MPEG-TS stream generated by ffmpeg/libav from a V4L device.
%patch4 -p0 -b .dtv_scan_tables
%patch5 -p0 -b .service
%patch6 -p0 -b .crypto_policies
+%patch7 -p0 -b .gcc7
# Delete bundled system headers
rm -r vendor/{dvb-api,include}/