git: c42ea9673625 - main - multimedia/mythtv: enable on powerpc
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 09 May 2023 20:00:57 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=c42ea9673625a08451314ccd2931fcca965aa138 commit c42ea9673625a08451314ccd2931fcca965aa138 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2023-05-09 19:54:48 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2023-05-09 19:54:48 +0000 multimedia/mythtv: enable on powerpc --- multimedia/mythtv/Makefile | 2 +- .../files/patch-libs_libmythtv_recorders_dvbchannel.cpp | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/multimedia/mythtv/Makefile b/multimedia/mythtv/Makefile index f67e7a313b5b..fb2d61a49e7f 100644 --- a/multimedia/mythtv/Makefile +++ b/multimedia/mythtv/Makefile @@ -11,7 +11,7 @@ WWW= https://www.mythtv.org/ LICENSE= GPLv2+ -ONLY_FOR_ARCHS= aarch64 amd64 i386 powerpc64 powerpc64le +ONLY_FOR_ARCHS= aarch64 amd64 i386 powerpc powerpc64 powerpc64le .if ${/usr/bin/ld:L:tA} == /usr/bin/ld.lld BROKEN_i386= ld: error: can't create dynamic relocation R_386_32 against local symbol in readonly segment .endif diff --git a/multimedia/mythtv/files/patch-libs_libmythtv_recorders_dvbchannel.cpp b/multimedia/mythtv/files/patch-libs_libmythtv_recorders_dvbchannel.cpp new file mode 100644 index 000000000000..27cf5d5857ec --- /dev/null +++ b/multimedia/mythtv/files/patch-libs_libmythtv_recorders_dvbchannel.cpp @@ -0,0 +1,11 @@ +--- libs/libmythtv/recorders/dvbchannel.cpp.orig 2023-05-09 18:32:34 UTC ++++ libs/libmythtv/recorders/dvbchannel.cpp +@@ -1589,7 +1589,7 @@ bool DVBChannel::WaitForBackend(std::chrono::milliseco + const int fd = m_fdFrontend; + auto seconds = duration_cast<std::chrono::seconds>(timeout_ms); + auto usecs = duration_cast<std::chrono::microseconds>(timeout_ms) - seconds; +- struct timeval select_timeout = { seconds.count(), usecs.count()}; ++ struct timeval select_timeout = { seconds.count(), static_cast<suseconds_t>(usecs.count())}; + fd_set fd_select_set; + FD_ZERO( &fd_select_set); // NOLINT(readability-isolate-declaration) + FD_SET (fd, &fd_select_set);