aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornicole mazzuca <mazzucan@outlook.com>2020-12-03 13:24:26 -0800
committerGitHub <noreply@github.com>2020-12-03 13:24:26 -0800
commitef0c3036fcb540957c381b2a8d21448062ac23ae (patch)
tree9e4a8965788d0b81085408f913342aed135f7631
parenta2135fd97e834e83a705b1cff0d91a0e45a0fb00 (diff)
downloadvcpkg-ef0c3036fcb540957c381b2a8d21448062ac23ae.tar.gz
vcpkg-ef0c3036fcb540957c381b2a8d21448062ac23ae.zip
[vcpkg baseline][vtk-m] fix the sha512 (#14884)
* [vtk-m] fix the sha512 * Bump version * add FILE_DISAMBIGUATOR to vcpkg_from_gitlab * actually use the file disambiguator * regenerate docs * [moos-core] Add DISABLE_PARALLEL_CONFIGURE Co-authored-by: NancyLi1013 <lirui09@beyondsoft.com>
-rw-r--r--docs/maintainers/vcpkg_from_github.md1
-rw-r--r--docs/maintainers/vcpkg_from_gitlab.md4
-rw-r--r--ports/moos-core/CONTROL3
-rw-r--r--ports/moos-core/portfile.cmake1
-rw-r--r--ports/vtk-m/CONTROL1
-rw-r--r--ports/vtk-m/portfile.cmake3
-rw-r--r--scripts/cmake/vcpkg_from_github.cmake1
-rw-r--r--scripts/cmake/vcpkg_from_gitlab.cmake14
8 files changed, 24 insertions, 4 deletions
diff --git a/docs/maintainers/vcpkg_from_github.md b/docs/maintainers/vcpkg_from_github.md
index 64ff2b195..ded5dfb0d 100644
--- a/docs/maintainers/vcpkg_from_github.md
+++ b/docs/maintainers/vcpkg_from_github.md
@@ -13,6 +13,7 @@ vcpkg_from_github(
[PATCHES <patch1.patch> <patch2.patch>...]
[GITHUB_HOST <https://github.com>]
[AUTHORIZATION_TOKEN <${SECRET_FROM_FILE}>]
+ [FILE_DISAMBIGUATOR <N>]
)
```
diff --git a/docs/maintainers/vcpkg_from_gitlab.md b/docs/maintainers/vcpkg_from_gitlab.md
index ceef6f2d4..aa5cc800d 100644
--- a/docs/maintainers/vcpkg_from_gitlab.md
+++ b/docs/maintainers/vcpkg_from_gitlab.md
@@ -12,6 +12,7 @@ vcpkg_from_gitlab(
[SHA512 <45d0d7f8cc350...>]
[HEAD_REF <master>]
[PATCHES <patch1.patch> <patch2.patch>...]
+ [FILE_DISAMBIGUATOR <N>]
)
```
@@ -51,6 +52,9 @@ A list of patches to be applied to the extracted sources.
Relative paths are based on the port directory.
+### FILE_DISAMBIGUATOR
+A token to uniquely identify the resulting filename if the SHA512 changes even though a git ref does not, to avoid stepping on the same file name.
+
## Notes:
At least one of `REF` and `HEAD_REF` must be specified, however it is preferable for both to be present.
diff --git a/ports/moos-core/CONTROL b/ports/moos-core/CONTROL
index 15a5a5e1f..1d1e20d09 100644
--- a/ports/moos-core/CONTROL
+++ b/ports/moos-core/CONTROL
@@ -1,4 +1,5 @@
Source: moos-core
-Version: 10.4.0-4
+Version: 10.4.0
+Port-Version: 5
Description: A very light weight, easy to use middleware.
Homepage: https://sites.google.com/site/moossoftware/
diff --git a/ports/moos-core/portfile.cmake b/ports/moos-core/portfile.cmake
index b3bdda6ff..197467428 100644
--- a/ports/moos-core/portfile.cmake
+++ b/ports/moos-core/portfile.cmake
@@ -13,6 +13,7 @@ vcpkg_from_github(
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
+ DISABLE_PARALLEL_CONFIGURE
OPTIONS
-DCMAKE_ENABLE_EXPORT=OFF
)
diff --git a/ports/vtk-m/CONTROL b/ports/vtk-m/CONTROL
index 6fe2933c2..e221eecce 100644
--- a/ports/vtk-m/CONTROL
+++ b/ports/vtk-m/CONTROL
@@ -1,5 +1,6 @@
Source: vtk-m
Version: 1.5.0
+Port-Version: 1
Homepage: https://gitlab.kitware.com/vtk/vtk-m/
Description: VTK-m is a toolkit of scientific visualization algorithms for emerging processor architectures.
Supports: x64 & !uwp
diff --git a/ports/vtk-m/portfile.cmake b/ports/vtk-m/portfile.cmake
index 658a12d2e..c33eb065f 100644
--- a/ports/vtk-m/portfile.cmake
+++ b/ports/vtk-m/portfile.cmake
@@ -41,7 +41,8 @@ vcpkg_from_gitlab(GITLAB_URL "https://gitlab.kitware.com"
OUT_SOURCE_PATH SOURCE_PATH
REPO vtk/vtk-m
REF f2aa6ad5be1a97e3fb41ef4680ee2c76c3434ac0 # v1.5.0 Version is strongly locked to VTK 9.0. Upgrading will most likly brake the VTK build
- SHA512 2f2a273f74d9a583df9e25a4792440d8d89652fa14b3153f2ea5afbd329b50970e7b9bd68e0ccd036baf5c1f3ad7a8302d95c01dbb30d9a46c045987eebf5370)
+ SHA512 35e8a2c0ad6cd3c1f02a71a50d781c89f93909ad27030b406fd69f4fea5c1862c48a6e541fd07562947322c3a69bdfdb54206ae51bb86ef7a710f9e9898e9638
+ FILE_DISAMBIGUATOR 1)
# For people only wanting vtk-m and not VTK
#REF 74ffad9bd0679d061bc87e544a728f1c3c926269 # v1.5.1
#SHA512 c9e1c18432b6c11ae086445255acf9477fe4c888122a2b2a9713dc63a40d2e4c2375742157526b5f0869f14c62a4ad66d81ee58d6cc75a1d53a1d615525a03c9)
diff --git a/scripts/cmake/vcpkg_from_github.cmake b/scripts/cmake/vcpkg_from_github.cmake
index f52538c8e..1c1b71679 100644
--- a/scripts/cmake/vcpkg_from_github.cmake
+++ b/scripts/cmake/vcpkg_from_github.cmake
@@ -14,6 +14,7 @@ vcpkg_from_github(
[PATCHES <patch1.patch> <patch2.patch>...]
[GITHUB_HOST <https://github.com>]
[AUTHORIZATION_TOKEN <${SECRET_FROM_FILE}>]
+ [FILE_DISAMBIGUATOR <N>]
)
```
diff --git a/scripts/cmake/vcpkg_from_gitlab.cmake b/scripts/cmake/vcpkg_from_gitlab.cmake
index 354ff85b9..865c5326e 100644
--- a/scripts/cmake/vcpkg_from_gitlab.cmake
+++ b/scripts/cmake/vcpkg_from_gitlab.cmake
@@ -13,6 +13,7 @@ vcpkg_from_gitlab(
[SHA512 <45d0d7f8cc350...>]
[HEAD_REF <master>]
[PATCHES <patch1.patch> <patch2.patch>...]
+ [FILE_DISAMBIGUATOR <N>]
)
```
@@ -52,6 +53,9 @@ A list of patches to be applied to the extracted sources.
Relative paths are based on the port directory.
+### FILE_DISAMBIGUATOR
+A token to uniquely identify the resulting filename if the SHA512 changes even though a git ref does not, to avoid stepping on the same file name.
+
## Notes:
At least one of `REF` and `HEAD_REF` must be specified, however it is preferable for both to be present.
@@ -66,7 +70,7 @@ This exports the `VCPKG_HEAD_VERSION` variable during head builds.
include(vcpkg_execute_in_download_mode)
function(vcpkg_from_gitlab)
- set(oneValueArgs OUT_SOURCE_PATH GITLAB_URL USER REPO REF SHA512 HEAD_REF)
+ set(oneValueArgs OUT_SOURCE_PATH GITLAB_URL USER REPO REF SHA512 HEAD_REF FILE_DISAMBIGUATOR)
set(multipleValuesArgs PATCHES)
# parse parameters such that semicolons in options arguments to COMMAND don't get erased
cmake_parse_arguments(PARSE_ARGV 0 _vdud "" "${oneValueArgs}" "${multipleValuesArgs}")
@@ -119,11 +123,17 @@ function(vcpkg_from_gitlab)
endif()
string(REPLACE "/" "-" SANITIZED_REF "${_vdud_REF}")
+ set(downloaded_file_name "${ORG_NAME}-${REPO_NAME}-${SANITIZED_REF}")
+ if (_vdud_FILE_DISAMBIGUATOR)
+ set(downloaded_file_name "${downloaded_file_name}-${_vdud_FILE_DISAMBIGUATOR}")
+ endif()
+
+ set(downloaded_file_name "${downloaded_file_name}.tar.gz")
vcpkg_download_distfile(ARCHIVE
URLS "${GITLAB_LINK}/-/archive/${_vdud_REF}/${REPO_NAME}-${_vdud_REF}.tar.gz"
SHA512 "${_vdud_SHA512}"
- FILENAME "${ORG_NAME}-${REPO_NAME}-${SANITIZED_REF}.tar.gz"
+ FILENAME "${downloaded_file_name}"
)
vcpkg_extract_source_archive_ex(