git: 13c8a9add943 - main - mail/thunderbird: fix build on powerpc64*
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 03 Dec 2023 11:13:57 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=13c8a9add943139112f55e09b975a9783de959c1
commit 13c8a9add943139112f55e09b975a9783de959c1
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-12-03 09:17:15 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-12-03 11:13:49 +0000
mail/thunderbird: fix build on powerpc64*
In file included from Unified_cpp_dom_media_flac0.cpp:2:
/wrkdirs/usr/ports/mail/thunderbird/work/thunderbird-115.5.1/dom/media/flac/FlacDecoder.cpp:21:10: error: value of type 'media::DecodeSupportSet' (aka 'EnumSet<mozilla::media::DecodeSupport, unsigned long>') is not contextually convertible to 'bool'
platform->SupportsMimeType("audio/flac"_ns);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/mail/thunderbird/work/thunderbird-115.5.1/dom/media/flac/FlacDecoder.cpp:20:44: error: invalid operands to binary expression ('StripAtomic<mozilla::RelaxedAtomicBool>' (aka 'bool') and 'media::DecodeSupportSet' (aka 'EnumSet<mozilla::media::DecodeSupport, unsigned long>'))
return StaticPrefs::media_flac_enabled() &&
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
2 errors generated.
---
mail/thunderbird/files/patch-dom_media_flac_FlacDecoder.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mail/thunderbird/files/patch-dom_media_flac_FlacDecoder.cpp b/mail/thunderbird/files/patch-dom_media_flac_FlacDecoder.cpp
index 954b78f5bf37..6dc197d9455e 100644
--- a/mail/thunderbird/files/patch-dom_media_flac_FlacDecoder.cpp
+++ b/mail/thunderbird/files/patch-dom_media_flac_FlacDecoder.cpp
@@ -17,7 +17,7 @@ Enable FLAC on platforms without ffvpx like powerpc*
+#elif defined(MOZ_FFMPEG)
+ RefPtr<PDMFactory> platform = new PDMFactory();
+ return StaticPrefs::media_flac_enabled() &&
-+ platform->SupportsMimeType("audio/flac"_ns);
++ !platform->SupportsMimeType("audio/flac"_ns).isEmpty();
#else
return false;
#endif