git: 3110f3a0dcfd - main - www/firefox: fix build on powerpc64
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 16 Jun 2023 00:19:48 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=3110f3a0dcfdf1d5be165bbbb1ff08d720c63c48 commit 3110f3a0dcfdf1d5be165bbbb1ff08d720c63c48 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2023-06-16 00:09:58 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2023-06-16 00:19:43 +0000 www/firefox: fix build on powerpc64 Cast to uint32_t on big-endian, since byte-swapping to big-endian function, which returns uint32_t, doesn't run on big-endian: /wrkdirs/usr/ports/www/firefox/work/firefox-114.0.1/gfx/skia/skia/src/encode/SkICC.cpp:122:13: error: non-constant-expression cannot be narrowed from type 'SkFixed' (aka 'int') to 'uint32_t' (aka 'unsigned int') in initializer list [-Wc++11-narrowing] --- www/firefox/files/patch-gfx_skia_skia_src_base_SkEndian.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/www/firefox/files/patch-gfx_skia_skia_src_base_SkEndian.h b/www/firefox/files/patch-gfx_skia_skia_src_base_SkEndian.h new file mode 100644 index 000000000000..656127071a78 --- /dev/null +++ b/www/firefox/files/patch-gfx_skia_skia_src_base_SkEndian.h @@ -0,0 +1,11 @@ +--- gfx/skia/skia/src/base/SkEndian.h.orig 2023-06-16 01:32:16.999830000 +0200 ++++ gfx/skia/skia/src/base/SkEndian.h 2023-06-16 01:32:41.701673000 +0200 +@@ -131,7 +131,7 @@ + #define SkTEndian_SwapLE64(n) (n) + #else // SK_CPU_BENDIAN + #define SkEndian_SwapBE16(n) (n) +- #define SkEndian_SwapBE32(n) (n) ++ #define SkEndian_SwapBE32(n) uint32_t(n) + #define SkEndian_SwapBE64(n) (n) + #define SkEndian_SwapLE16(n) SkEndianSwap16(n) + #define SkEndian_SwapLE32(n) SkEndianSwap32(n)