Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Feb 2022 21:33:40 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 3de021f57d29 - main - www/firefox: fix build on powerpc64le
Message-ID:  <202202102133.21ALXe4v083529@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3de021f57d298cfba9739a0c79fba48c0ce9f638

commit 3de021f57d298cfba9739a0c79fba48c0ce9f638
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-02-10 21:30:21 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-02-10 21:30:21 +0000

    www/firefox: fix build on powerpc64le
    
    /wrkdirs/usr/ports/www/firefox/work/firefox-97.0/third_party/libwebrtc/third_party/pffft/src/pffft.c:110:45: error: implicit declaration of function 'vec_lde' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    inline v4sf ld_ps1(const float *p) { v4sf v=vec_lde(0,p); return vec_splat(vec_perm(v, v, vec_lvsl(0, p)), 0); }
                                                ^
---
 ...patch-third__party_libwebrtc_third__party_pffft_src_pffft.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/www/firefox/files/patch-third__party_libwebrtc_third__party_pffft_src_pffft.c b/www/firefox/files/patch-third__party_libwebrtc_third__party_pffft_src_pffft.c
new file mode 100644
index 000000000000..465d6b7f01c7
--- /dev/null
+++ b/www/firefox/files/patch-third__party_libwebrtc_third__party_pffft_src_pffft.c
@@ -0,0 +1,10 @@
+--- third_party/libwebrtc/third_party/pffft/src/pffft.c.orig	2022-02-10 18:57:48 UTC
++++ third_party/libwebrtc/third_party/pffft/src/pffft.c
+@@ -100,6 +100,7 @@
+    Altivec support macros 
+ */
+ #if !defined(PFFFT_SIMD_DISABLE) && (defined(__ppc__) || defined(__ppc64__))
++#include <altivec.h>
+ typedef vector float v4sf;
+ #  define SIMD_SZ 4
+ #  define VZERO() ((vector float) vec_splat_u8(0))



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202202102133.21ALXe4v083529>