aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLarryIII <33021067+LarryIII@users.noreply.github.com>2019-03-27 22:02:31 -0700
committerPhil Christensen <philc@microsoft.com>2019-03-27 22:02:31 -0700
commit78a8de6cf468dc3d3301b26fedae7969bb366a75 (patch)
tree07e482b1da0c6bdc1d2ee6d215155802094408a7
parent493b76284dd0b075ac9486be6c9bd60af105bd3b (diff)
downloadvcpkg-78a8de6cf468dc3d3301b26fedae7969bb366a75.tar.gz
vcpkg-78a8de6cf468dc3d3301b26fedae7969bb366a75.zip
[pcre2/caffe2] Fix space issue (#5827)
* [pcre2/caffe2] Fix space issue
-rw-r--r--ports/caffe2/CONTROL2
-rw-r--r--ports/caffe2/fix-space.patch13
-rw-r--r--ports/caffe2/portfile.cmake3
-rw-r--r--ports/pcre2/CONTROL2
-rw-r--r--ports/pcre2/portfile.cmake11
5 files changed, 23 insertions, 8 deletions
diff --git a/ports/caffe2/CONTROL b/ports/caffe2/CONTROL
index 2f40d9825..bbef1f62b 100644
--- a/ports/caffe2/CONTROL
+++ b/ports/caffe2/CONTROL
@@ -1,4 +1,4 @@
Source: caffe2
-Version: 0.8.1-1
+Version: 0.8.1-2
Build-Depends: lmdb, gflags, glog, eigen3, protobuf
Description: Caffe2 is a lightweight, modular, and scalable deep learning framework.
diff --git a/ports/caffe2/fix-space.patch b/ports/caffe2/fix-space.patch
new file mode 100644
index 000000000..910f52f9c
--- /dev/null
+++ b/ports/caffe2/fix-space.patch
@@ -0,0 +1,13 @@
+diff --git a/cmake/Utils.cmake b/cmake/Utils.cmake
+index e082298..25186e4 100644
+--- a/cmake/Utils.cmake
++++ b/cmake/Utils.cmake
+@@ -386,7 +386,7 @@ function(caffe_add_whole_archive_flag lib output_var)
+ set(${output_var} -Wl,-force_load,$<TARGET_FILE:${lib}> PARENT_SCOPE)
+ elseif(MSVC)
+ # In MSVC, we will add whole archive in default.
+- set(${output_var} -WHOLEARCHIVE:$<TARGET_FILE:${lib}> PARENT_SCOPE)
++ set(${output_var} -WHOLEARCHIVE:"$<TARGET_FILE:${lib}>" PARENT_SCOPE)
+ else()
+ # Assume everything else is like gcc
+ set(${output_var} -Wl,--whole-archive ${lib} -Wl,--no-whole-archive PARENT_SCOPE)
diff --git a/ports/caffe2/portfile.cmake b/ports/caffe2/portfile.cmake
index 41abd403e..b3e0b2978 100644
--- a/ports/caffe2/portfile.cmake
+++ b/ports/caffe2/portfile.cmake
@@ -16,7 +16,8 @@ vcpkg_from_github(
SHA512 505a8540b0c28329c4e2ce443ac8e198c1ee613eb6b932927ee9d04c8afdc95081f3c4581408b7097d567840427b31f6d7626ea80f27e56532f2f2e6acd87023
HEAD_REF master
PATCHES
- ${CMAKE_CURRENT_LIST_DIR}/msvc-fixes.patch
+ msvc-fixes.patch
+ fix-space.patch
)
if(VCPKG_CRT_LINKAGE STREQUAL static)
diff --git a/ports/pcre2/CONTROL b/ports/pcre2/CONTROL
index 79982525a..37f3a6da3 100644
--- a/ports/pcre2/CONTROL
+++ b/ports/pcre2/CONTROL
@@ -1,3 +1,3 @@
Source: pcre2
-Version: 10.30-2
+Version: 10.30-3
Description: PCRE2 is a re-working of the original Perl Compatible Regular Expressions library
diff --git a/ports/pcre2/portfile.cmake b/ports/pcre2/portfile.cmake
index 34e4cf726..e2f5a702a 100644
--- a/ports/pcre2/portfile.cmake
+++ b/ports/pcre2/portfile.cmake
@@ -1,12 +1,16 @@
set(PCRE2_VERSION 10.30)
include(vcpkg_common_functions)
-set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/pcre2-${PCRE2_VERSION})
+
vcpkg_download_distfile(ARCHIVE
URLS "https://ftp.pcre.org/pub/pcre/pcre2-${PCRE2_VERSION}.zip" "https://sourceforge.net/projects/pcre/files/pcre2/${PCRE2_VERSION}/pcre2-${PCRE2_VERSION}.zip/download"
FILENAME "pcre2-${PCRE2_VERSION}.zip"
SHA512 03e570b946ac29498a114b27e715a0fcf25702bfc9623f9fc085ee8a3214ab3c303baccb9c0af55da6916e8ce40d931d97f1ee9628690563041a943f0aa2bc54)
-vcpkg_extract_source_archive(${ARCHIVE})
+vcpkg_extract_source_archive_ex(
+ OUT_SOURCE_PATH SOURCE_PATH
+ ARCHIVE ${ARCHIVE}
+ PATCHES fix-space.patch
+)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
@@ -20,9 +24,6 @@ vcpkg_configure_cmake(
-DPCRE2_BUILD_TESTS=OFF
-DPCRE2_BUILD_PCRE2GREP=OFF)
-vcpkg_apply_patches(SOURCE_PATH ${SOURCE_PATH}
- PATCHES ${CMAKE_CURRENT_LIST_DIR}/fix-space.patch)
-
vcpkg_install_cmake()
file(READ ${CURRENT_PACKAGES_DIR}/include/pcre2.h PCRE2_H)