commit:     147c971aa4733fcbe450ee768a08204603b191f2
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Nov  1 03:19:48 2020 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Nov  1 03:19:48 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=147c971a

media-tv/linuxtv-dvb-apps: fix gcc 10 build

Thanks-to: Nico R <n-roeser <AT> gmx.net>
Closes: https://bugs.gentoo.org/723420
Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../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(-)

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 00000000000..d218183be14
--- /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 e0dddee3f36..821333cff38 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."
 }

Reply via email to