summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2023-04-22 12:02:08 -0300
committerSam James <sam@gentoo.org>2023-04-22 16:19:28 +0100
commit81e99f1c753d1cb564be29b22dcd8927830c4b9a (patch)
tree77d7b5b25f5ca69e8413383979c5ec4243e45b61 /media-tv/linuxtv-dvb-apps
parentsys-boot/grub: Stabilize 2.06-r6 sparc, #903704 (diff)
downloadgentoo-81e99f1c753d1cb564be29b22dcd8927830c4b9a.tar.gz
gentoo-81e99f1c753d1cb564be29b22dcd8927830c4b9a.tar.bz2
gentoo-81e99f1c753d1cb564be29b22dcd8927830c4b9a.zip
media-tv/linuxtv-dvb-apps: fix build w/ -Wint-conversion
Closes: https://bugs.gentoo.org/885539 Closes: https://github.com/gentoo/gentoo/pull/30703 Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-tv/linuxtv-dvb-apps')
-rw-r--r--media-tv/linuxtv-dvb-apps/files/linuxtv-dvb-apps-1.1.1.20140321-dvbdate.patch11
-rw-r--r--media-tv/linuxtv-dvb-apps/linuxtv-dvb-apps-1.1.1.20140321-r2.ebuild (renamed from media-tv/linuxtv-dvb-apps/linuxtv-dvb-apps-1.1.1.20140321-r1.ebuild)4
2 files changed, 14 insertions, 1 deletions
diff --git a/media-tv/linuxtv-dvb-apps/files/linuxtv-dvb-apps-1.1.1.20140321-dvbdate.patch b/media-tv/linuxtv-dvb-apps/files/linuxtv-dvb-apps-1.1.1.20140321-dvbdate.patch
new file mode 100644
index 000000000000..87d9a62ad9f5
--- /dev/null
+++ b/media-tv/linuxtv-dvb-apps/files/linuxtv-dvb-apps-1.1.1.20140321-dvbdate.patch
@@ -0,0 +1,11 @@
+--- a/util/dvbdate/dvbdate.c
++++ b/util/dvbdate/dvbdate.c
+@@ -310,7 +310,7 @@
+ int set_time(time_t * new_time)
+ {
+ struct timespec s = {0};
+- s.tv_sec = new_time;
++ s.tv_sec = *new_time;
+
+ if (clock_settime(CLOCK_REALTIME, &s)) {
+ perror("Unable to set time");
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-r2.ebuild
index dcb2c62d3f2c..2b5377d5ba58 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-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -27,6 +27,7 @@ RDEPEND="
DEPEND="${RDEPEND}
dev-lang/perl
virtual/linuxtv-dvb-headers
+ dev-libs/libusb-compat
"
RDEPEND+="
media-tv/dtv-scan-tables
@@ -39,6 +40,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-no-ca_set_pid.patch
"${FILESDIR}"/${PN}-glibc-2.31.patch
"${FILESDIR}"/${PN}-1.1.1.20140321-gcc10.patch
+ "${FILESDIR}"/${PN}-1.1.1.20140321-dvbdate.patch
)
src_prepare() {