svn commit: r541100 - in head/devel/opencl: . files
Piotr Kubaj
pkubaj at FreeBSD.org
Fri Jul 3 12:04:03 UTC 2020
Author: pkubaj
Date: Fri Jul 3 12:04:02 2020
New Revision: 541100
URL: https://svnweb.freebsd.org/changeset/ports/541100
Log:
devel/opencl: don't include altivec.h
altivec.h shouldn't be included directly by users. It's managed with -maltivec / -mno-altivec compiler switches.
Including it causes compiler errors when using clang.
Already upstreamed.
PR: 247396
Approved by: ohartman at zedat.fu-berlin.de (maintainer timeout)
MFH: 2020Q3 (fixes build of some other ports)
Added:
head/devel/opencl/files/
head/devel/opencl/files/patch-cl__platform.h (contents, props changed)
Modified:
head/devel/opencl/Makefile
Modified: head/devel/opencl/Makefile
==============================================================================
--- head/devel/opencl/Makefile Fri Jul 3 11:50:50 2020 (r541099)
+++ head/devel/opencl/Makefile Fri Jul 3 12:04:02 2020 (r541100)
@@ -3,7 +3,7 @@
PORTNAME= opencl
PORTVERSION= 2.2
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel
MAINTAINER= ohartman at zedat.fu-berlin.de
Added: head/devel/opencl/files/patch-cl__platform.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/opencl/files/patch-cl__platform.h Fri Jul 3 12:04:02 2020 (r541100)
@@ -0,0 +1,13 @@
+--- cl_platform.h.orig 2020-06-18 22:38:47 UTC
++++ cl_platform.h
+@@ -429,7 +429,9 @@ typedef unsigned int cl_GLenum;
+
+ /* Define basic vector types */
+ #if defined( __VEC__ )
+- #include <altivec.h> /* may be omitted depending on compiler. AltiVec spec provides no way to detect whether the header is required. */
++# if !defined(__clang__)
++ #include <altivec.h> /* may be omitted depending on compiler. AltiVec spec provides no way to detect whether the header is required. */
++# endif
+ typedef vector unsigned char __cl_uchar16;
+ typedef vector signed char __cl_char16;
+ typedef vector unsigned short __cl_ushort8;
More information about the svn-ports-all
mailing list