aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>2020-09-12 03:48:42 +0800
committerGitHub <noreply@github.com>2020-09-11 12:48:42 -0700
commit1733814ced76770b2fffa0c1a55850046d94e594 (patch)
treeca36e9211196ed3fc8c2f48cdbe74fed008ac733
parentd923820d7bfdd30b65caa885b04a6b1480763213 (diff)
downloadvcpkg-1733814ced76770b2fffa0c1a55850046d94e594.tar.gz
vcpkg-1733814ced76770b2fffa0c1a55850046d94e594.zip
[shogun] Fix build error (#13425)
-rw-r--r--ports/shogun/CONTROL2
-rw-r--r--ports/shogun/fix-ASSERT-not-found.patch12
-rw-r--r--ports/shogun/portfile.cmake1
3 files changed, 14 insertions, 1 deletions
diff --git a/ports/shogun/CONTROL b/ports/shogun/CONTROL
index 580a8be31..e274c9d3f 100644
--- a/ports/shogun/CONTROL
+++ b/ports/shogun/CONTROL
@@ -1,6 +1,6 @@
Source: shogun
Version: 6.1.4
-Port-Version: 2
+Port-Version: 3
Build-Depends: bzip2, eigen3, liblzma, libxml2, openblas, nlopt, rxcpp, snappy, zlib, protobuf, curl, lzo, dirent
Homepage: https://github.com/shogun-toolbox/shogun
Description: Unified and efficient Machine Learning \ No newline at end of file
diff --git a/ports/shogun/fix-ASSERT-not-found.patch b/ports/shogun/fix-ASSERT-not-found.patch
new file mode 100644
index 000000000..ae8889caa
--- /dev/null
+++ b/ports/shogun/fix-ASSERT-not-found.patch
@@ -0,0 +1,12 @@
+diff --git a/src/shogun/base/Parallel.cpp b/src/shogun/base/Parallel.cpp
+index 78ba319..53ac6c0 100644
+--- a/src/shogun/base/Parallel.cpp
++++ b/src/shogun/base/Parallel.cpp
+@@ -12,6 +12,7 @@
+ #include <shogun/lib/RefCount.h>
+ #include <shogun/lib/config.h>
+ #include <shogun/lib/memory.h>
++#include <shogun/io/SGIO.h>
+
+ #ifdef HAVE_CXX11
+ #include <thread>
diff --git a/ports/shogun/portfile.cmake b/ports/shogun/portfile.cmake
index 47555a75b..05ca61af0 100644
--- a/ports/shogun/portfile.cmake
+++ b/ports/shogun/portfile.cmake
@@ -10,6 +10,7 @@ vcpkg_from_github(
cmake.patch
cmake-config.in.patch
fix-dirent.patch
+ fix-ASSERT-not-found.patch
)
vcpkg_find_acquire_program(PYTHON3)