From 147c971aa4733fcbe450ee768a08204603b191f2 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 1 Nov 2020 03:19:48 +0000 Subject: media-tv/linuxtv-dvb-apps: fix gcc 10 build Thanks-to: Nico R Closes: https://bugs.gentoo.org/723420 Package-Manager: Portage-3.0.8, Repoman-3.0.2 Signed-off-by: Sam James --- .../files/linuxtv-dvb-apps-1.1.1.20140321-gcc10.patch | 11 +++++++++++ .../linuxtv-dvb-apps-1.1.1.20140321-r1.ebuild | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 media-tv/linuxtv-dvb-apps/files/linuxtv-dvb-apps-1.1.1.20140321-gcc10.patch (limited to 'media-tv/linuxtv-dvb-apps') diff --git a/media-tv/linuxtv-dvb-apps/files/linuxtv-dvb-apps-1.1.1.20140321-gcc10.patch b/media-tv/linuxtv-dvb-apps/files/linuxtv-dvb-apps-1.1.1.20140321-gcc10.patch new file mode 100644 index 000000000000..d218183be147 --- /dev/null +++ b/media-tv/linuxtv-dvb-apps/files/linuxtv-dvb-apps-1.1.1.20140321-gcc10.patch @@ -0,0 +1,11 @@ +https://723420.bugs.gentoo.org/attachment.cgi?id=639692 +--- a/util/alevt/vbi.c ++++ b/util/alevt/vbi.c +@@ -35,7 +35,6 @@ + + static u8 *rawbuf; // one common buffer for raw vbi data + static int rawbuf_size; // its current size +-u_int16_t sid; + static char *vbi_names[] + = { "/dev/vbi", "/dev/vbi0", "/dev/video0", "/dev/dvb/adapter0/demux0", + NULL }; // default device names if none was given at the command line diff --git a/media-tv/linuxtv-dvb-apps/linuxtv-dvb-apps-1.1.1.20140321-r1.ebuild b/media-tv/linuxtv-dvb-apps/linuxtv-dvb-apps-1.1.1.20140321-r1.ebuild index e0dddee3f36c..821333cff38e 100644 --- a/media-tv/linuxtv-dvb-apps/linuxtv-dvb-apps-1.1.1.20140321-r1.ebuild +++ b/media-tv/linuxtv-dvb-apps/linuxtv-dvb-apps-1.1.1.20140321-r1.ebuild @@ -38,6 +38,7 @@ PATCHES=( "${FILESDIR}"/${PN}-1.1.1.20100223-perl526.patch "${FILESDIR}"/${PN}-no-ca_set_pid.patch "${FILESDIR}"/${PN}-glibc-2.31.patch + "${FILESDIR}"/${PN}-1.1.1.20140321-gcc10.patch ) src_prepare() { @@ -89,5 +90,5 @@ src_install() { } pkg_postinst() { - elog "/usr/bin/scan has been installed as scan-dvb." + elog "${EPREFIX}/usr/bin/scan has been installed as scan-dvb." } -- cgit v1.2.3-65-gdbad