Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 May 2022 00:19:00 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: 835d26dd3d7c - main - graphics/s2: fix build on big-endian
Message-ID:  <202205260019.24Q0J0wV048077@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=835d26dd3d7c88cd1f0bda17a50e569dddb12579

commit 835d26dd3d7c88cd1f0bda17a50e569dddb12579
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-05-26 00:07:20 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-05-26 00:07:20 +0000

    graphics/s2: fix build on big-endian
    
    /usr/bin/c++ -DS2_USE_GFLAGS -DS2_USE_GLOG -Ds2_EXPORTS -I/wrkdirs/usr/ports/graphics/s2/work/s2geometry-0.10.0/src -O2 -pipe  -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing   -mcpu=power7 -isystem /usr/local/include -std=c++11 -O2 -pipe  -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing   -mcpu=power7 -isystem /usr/local/include -std=c++11 -fPIC   -Wno-attributes -Wno-deprecated-declarations -pthread -std=c++11 -MD -MT CMakeFiles/s2.dir/src/s2/util/math/exactfloat/exactfloat.cc.o -MF CMakeFiles/s2.dir/src/s2/util/math/exactfloat/exactfloat.cc.o.d -o CMakeFiles/s2.dir/src/s2/util/math/exactfloat/exactfloat.cc.o -c /wrkdirs/usr/ports/graphics/s2/work/s2geometry-0.10.0/src/s2/util/math/exactfloat/exactfloat.cc
    /wrkdirs/usr/ports/graphics/s2/work/s2geometry-0.10.0/src/s2/util/math/exactfloat/exactfloat.cc:144:20: error: expected value in expression
---
 .../s2/files/patch-src_s2_util_math_exactfloat_exactfloat.cc  | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/graphics/s2/files/patch-src_s2_util_math_exactfloat_exactfloat.cc b/graphics/s2/files/patch-src_s2_util_math_exactfloat_exactfloat.cc
new file mode 100644
index 000000000000..fd6dfaec318c
--- /dev/null
+++ b/graphics/s2/files/patch-src_s2_util_math_exactfloat_exactfloat.cc
@@ -0,0 +1,11 @@
+--- src/s2/util/math/exactfloat/exactfloat.cc.orig	2022-05-24 22:12:24 UTC
++++ src/s2/util/math/exactfloat/exactfloat.cc
+@@ -141,7 +141,7 @@ inline static uint64 BN_ext_get_uint64(const BIGNUM* b
+ #ifdef IS_LITTLE_ENDIAN
+   S2_CHECK_EQ(BN_bn2lebinpad(bn, reinterpret_cast<unsigned char*>(&r),
+               sizeof(r)), sizeof(r));
+-#elif IS_BIG_ENDIAN
++#elif defined(IS_BIG_ENDIAN)
+   S2_CHECK_EQ(BN_bn2binpad(bn, reinterpret_cast<unsigned char*>(&r),
+               sizeof(r)), sizeof(r));
+ #else



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