Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151553486
D21216.id60741.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D21216.id60741.diff
View Options
Index: math/sleef/Makefile
===================================================================
--- math/sleef/Makefile
+++ math/sleef/Makefile
@@ -18,4 +18,12 @@
USE_GITHUB= yes
GH_ACCOUNT= shibatch
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc64
+PLIST_SUB+= NO_PPC64="@comment "
+.else
+PLIST_SUB+= NO_PPC64=""
+.endif
+
.include <bsd.port.mk>
Index: math/sleef/files/patch-src_libm-tester_tester3.c
===================================================================
--- /dev/null
+++ math/sleef/files/patch-src_libm-tester_tester3.c
@@ -0,0 +1,14 @@
+--- src/libm-tester/tester3.c.orig 2019-07-26 21:42:15 UTC
++++ src/libm-tester/tester3.c
+@@ -71,9 +71,9 @@ static INLINE float getsvfloat32_t(svfloat32_t v, int
+ #endif
+
+ #ifdef __VSX__
+-static INLINE vector_double setvector_double(double d, int r) { double a[2]; memrand(a, sizeof(a)); a[r & 1] = d; return (vector double) ( a[0], a[1] ); }
++static INLINE vector_double setvector_double(double d, int r) { double a[2]; memrand(a, sizeof(a)); a[r & 1] = d; return (vector double) { a[0], a[1] }; }
+ static INLINE double getvector_double(vector double v, int r) { double a[2]; return unifyValue(v[r & 1]); }
+-static INLINE vector_float setvector_float(float d, int r) { float a[4]; memrand(a, sizeof(a)); a[r & 3] = d; return (vector float) ( a[0], a[1], a[2], a[3] ); }
++static INLINE vector_float setvector_float(float d, int r) { float a[4]; memrand(a, sizeof(a)); a[r & 3] = d; return (vector float) { a[0], a[1], a[2], a[3] }; }
+ static INLINE float getvector_float(vector float v, int r) { float a[4]; return unifyValuef(v[r & 3]); }
+ #endif
+
Index: math/sleef/pkg-plist
===================================================================
--- math/sleef/pkg-plist
+++ math/sleef/pkg-plist
@@ -6,6 +6,6 @@
lib/libsleefdft.so
lib/libsleefdft.so.3
lib/libsleefdft.so.3.4.0
-lib/libsleefgnuabi.so
-lib/libsleefgnuabi.so.3
-lib/libsleefgnuabi.so.3.4
+%%NO_PPC64%%lib/libsleefgnuabi.so
+%%NO_PPC64%%lib/libsleefgnuabi.so.3
+%%NO_PPC64%%lib/libsleefgnuabi.so.3.4
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 10, 4:02 AM (4 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31197595
Default Alt Text
D21216.id60741.diff (2 KB)
Attached To
Mode
D21216: math/sleef: fix build on powerpc64
Attached
Detach File
Event Timeline
Log In to Comment