Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Jul 2020 12:04:02 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r541100 - in head/devel/opencl: . files
Message-ID:  <202007031204.063C4247043587@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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@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;



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