aboutsummaryrefslogtreecommitdiff
path: root/ports/opencl
diff options
context:
space:
mode:
authornicole mazzuca <mazzucan@outlook.com>2020-09-24 15:15:06 -0700
committerGitHub <noreply@github.com>2020-09-24 15:15:06 -0700
commit4cbbcbddfd42d94d6d8ee6c8b6ad00ef6a0927d3 (patch)
tree371509cc59c45895c85e5e049aaa2cd9c39cc7b0 /ports/opencl
parentc1acea1f044d3300b0c3791c2ce74d53e5a15548 (diff)
downloadvcpkg-4cbbcbddfd42d94d6d8ee6c8b6ad00ef6a0927d3.tar.gz
vcpkg-4cbbcbddfd42d94d6d8ee6c8b6ad00ef6a0927d3.zip
[vcpkg macos ci] Switch to using our own base boxes, to fix bringing up mac machines (#13619)
* [vcpkg ci:osx] Remove brew install * add instructions for creating a new vagrant box * fix the vagrant scripts for the new box * finish fixing the setup * [mecab jxrlib] fix ports for CI mecab needed to use an actual ref that wasn't master, and jxrlib needed a patch for xcode 12 CLTs. Additionally, this fixes the mecab version to be a date, the date of the last commit, since `1.0` is not the correct version (mecab doesn't have released versions) * [many ports] fix compile with Xcode 12 CLTs This mostly means fixing errors on implicit-function-declaration, and removing some Werrors * alac-decoder * apr * argtable2 * arrow * hyperscan * mcpp * minizip * mosquitto * stormlib * [many ports] even more Xcode 12 CLT fixes * [jxrlib darknet] fix the last ports! (hopefully) * CRs, plus minor wip changes to osx scripts
Diffstat (limited to 'ports/opencl')
-rw-r--r--ports/opencl/0001-include-unistd-for-gete-ug-id.patch27
-rw-r--r--ports/opencl/portfile.cmake2
2 files changed, 29 insertions, 0 deletions
diff --git a/ports/opencl/0001-include-unistd-for-gete-ug-id.patch b/ports/opencl/0001-include-unistd-for-gete-ug-id.patch
new file mode 100644
index 000000000..4674aff79
--- /dev/null
+++ b/ports/opencl/0001-include-unistd-for-gete-ug-id.patch
@@ -0,0 +1,27 @@
+From 0f783f1a8eac7a78bc92198e140d4a5c745382ca Mon Sep 17 00:00:00 2001
+From: Nicole Mazzuca <mazzucan@outlook.com>
+Date: Wed, 23 Sep 2020 11:50:21 -0700
+Subject: [PATCH] include unistd for gete?[ug]id
+
+---
+ loader/linux/icd_linux_envvars.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/loader/linux/icd_linux_envvars.c b/loader/linux/icd_linux_envvars.c
+index 4af5a08..92b0698 100644
+--- a/loader/linux/icd_linux_envvars.c
++++ b/loader/linux/icd_linux_envvars.c
+@@ -25,6 +25,10 @@
+
+ #include <stdlib.h>
+
++#if defined(__APPLE__)
++#include <unistd.h>
++#endif
++
+ char *khrIcd_getenv(const char *name) {
+ // No allocation of memory necessary for Linux.
+ return getenv(name);
+--
+2.24.3 (Apple Git-128)
+
diff --git a/ports/opencl/portfile.cmake b/ports/opencl/portfile.cmake
index 9fc56a9be..e7b5e132a 100644
--- a/ports/opencl/portfile.cmake
+++ b/ports/opencl/portfile.cmake
@@ -56,6 +56,8 @@ vcpkg_from_github(
REF e6e30ab9c7a61c171cf68d2e7f5c0ce28e2a4eae
SHA512 f3563c0a4c094d3795d8386ec0db41189d350ab8136d80ae5de611ee3db87fbb0ab851bad2b33e111eddf135add5dbfef77d96979473ca5a23c036608d443378
HEAD_REF master
+ PATCHES
+ 0001-include-unistd-for-gete-ug-id.patch
)
vcpkg_configure_cmake(