git: 792f2abbfa8e - main - devel/R-cran-rlang: fix build on powerpc64le

Piotr Kubaj pkubaj at FreeBSD.org
Tue Apr 6 12:27:29 UTC 2021


The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=792f2abbfa8e991b949bc3f8ed6843fafa815358

commit 792f2abbfa8e991b949bc3f8ed6843fafa815358
Author:     Piotr Kubaj <pkubaj at FreeBSD.org>
AuthorDate: 2021-04-06 12:27:37 +0000
Commit:     Piotr Kubaj <pkubaj at FreeBSD.org>
CommitDate: 2021-04-06 12:27:37 +0000

    devel/R-cran-rlang: fix build on powerpc64le
    
    In file included from ./internal/xxhash/xxhash.h:2412:
    /usr/lib/clang/11.0.1/include/altivec.h:55:19: error: unknown type name 'vector'
    static __inline__ vector bool char __ATTRS_o_ai
---
 devel/R-cran-rlang/patch-src_internal_xxhash_xxhash.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/devel/R-cran-rlang/patch-src_internal_xxhash_xxhash.h b/devel/R-cran-rlang/patch-src_internal_xxhash_xxhash.h
new file mode 100644
index 000000000000..4728619066d6
--- /dev/null
+++ b/devel/R-cran-rlang/patch-src_internal_xxhash_xxhash.h
@@ -0,0 +1,10 @@
+--- src/internal/xxhash/xxhash.h.orig	2021-03-31 12:18:19 UTC
++++ src/internal/xxhash/xxhash.h
+@@ -2409,6 +2409,7 @@ XXH_PUBLIC_API XXH64_hash_t XXH64_hashFromCanonical(co
+ #    if defined(__GNUC__) && !defined(__APPLE_ALTIVEC__)
+ #      define __APPLE_ALTIVEC__
+ #    endif
++#    define vector __vector
+ #    include <altivec.h>
+ #  endif
+ 


More information about the dev-commits-ports-all mailing list