Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Apr 2021 01:22:16 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: d9db2548a52a - main - sysutils/R-cran-processx: fix build on big-endian
Message-ID:  <202104210122.13L1MG0P097702@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=d9db2548a52a00a1f296a1a3c33eb606b3fad68b

commit d9db2548a52a00a1f296a1a3c33eb606b3fad68b
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-04-21 01:22:15 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2021-04-21 01:22:15 +0000

    sysutils/R-cran-processx: fix build on big-endian
    
    cc -I"/usr/local/lib/R/include" -DNDEBUG   -DLIBICONV_PLUG -I/usr/local/include -isystem /usr/local/include   -fPIC  -O2 -pipe  -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing   -c unix/processx.c -o unix/processx.o
    unix/processx.c:36:10: fatal error: 'libkern/OSByteOrder.h' file not found
---
 sysutils/R-cran-processx/files/patch-src_unix_processx.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/sysutils/R-cran-processx/files/patch-src_unix_processx.c b/sysutils/R-cran-processx/files/patch-src_unix_processx.c
new file mode 100644
index 000000000000..8102eb1e5cd7
--- /dev/null
+++ b/sysutils/R-cran-processx/files/patch-src_unix_processx.c
@@ -0,0 +1,11 @@
+--- src/unix/processx.c.orig	2021-04-21 01:17:03 UTC
++++ src/unix/processx.c
+@@ -30,6 +30,8 @@ void processx__create_connections(processx_handle_t *h
+ #ifdef WORDS_BIGENDIAN
+ #if (defined(__sun) && defined(__SVR4))
+ #include <sys/byteorder.h>
++#elif defined(__FreeBSD__)
++#include <sys/endian.h>
+ #elif (defined(__APPLE__) && defined(__ppc__) || defined(__ppc64__))
+ #include <libkern/OSByteOrder.h>
+ #define BSWAP_32 OSSwapInt32



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