aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Penant <thieum22@hotmail.com>2021-03-31 17:29:14 -0400
committerGitHub <noreply@github.com>2021-03-31 14:29:14 -0700
commit13640c56717dec1bba16c6eb0815d3889dbe1c4d (patch)
tree02461c5d438b4d0ba5f7ca5928e06ba0586bccf7
parentf22705fd158e09d432cc23b36ed249ca99386718 (diff)
downloadvcpkg-13640c56717dec1bba16c6eb0815d3889dbe1c4d.tar.gz
vcpkg-13640c56717dec1bba16c6eb0815d3889dbe1c4d.zip
[zstd] update to 1.4.9 (#16865)
* [zstd] update to 1.4.9 Fixes #16642 Update zstd to the latest version 1.4.9: https://github.com/facebook/zstd/releases/tag/v1.4.9 * update baseline / version * Update vcpkg.json * Update vcpkg.json apply suggested diff file * attempt to fix build errors (missing file libzstd?) * Update zstd.json * Update portfile.cmake * fix version Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>
-rw-r--r--ports/zstd/0002-crosscompile-windows.patch12
-rw-r--r--ports/zstd/CONTROL5
-rw-r--r--ports/zstd/fix_assert.patch13
-rw-r--r--ports/zstd/install_dll.patch12
-rw-r--r--ports/zstd/install_pkgpc.patch9
-rw-r--r--ports/zstd/portfile.cmake7
-rw-r--r--ports/zstd/vcpkg.json6
-rw-r--r--versions/baseline.json4
-rw-r--r--versions/z-/zstd.json5
9 files changed, 20 insertions, 53 deletions
diff --git a/ports/zstd/0002-crosscompile-windows.patch b/ports/zstd/0002-crosscompile-windows.patch
deleted file mode 100644
index c084da1ff..000000000
--- a/ports/zstd/0002-crosscompile-windows.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff --git a/build/cmake/CMakeModules/AddZstdCompilationFlags.cmake b/build/cmake/CMakeModules/AddZstdCompilationFlags.cmake
-index 7adca875..8835d1c6 100644
---- a/build/cmake/CMakeModules/AddZstdCompilationFlags.cmake 2019-11-04 17:54:32.000000000 +0000
-+++ b/build/cmake/CMakeModules/AddZstdCompilationFlags.cmake 2020-09-09 20:54:13.817515706 +0000
-@@ -52,7 +52,6 @@
- CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO)
- if( ${flag_var} )
- separate_arguments(${flag_var})
-- list(REMOVE_DUPLICATES ${flag_var})
- string(REPLACE ";" " " ${flag_var} "${${flag_var}}")
- endif()
- endforeach ()
diff --git a/ports/zstd/CONTROL b/ports/zstd/CONTROL
deleted file mode 100644
index f87e519c9..000000000
--- a/ports/zstd/CONTROL
+++ /dev/null
@@ -1,5 +0,0 @@
-Source: zstd
-Version: 1.4.5
-Port-Version: 1
-Description: Zstandard - Fast real-time compression algorithm
-Homepage: https://facebook.github.io/zstd/
diff --git a/ports/zstd/fix_assert.patch b/ports/zstd/fix_assert.patch
deleted file mode 100644
index b7fa3dc8d..000000000
--- a/ports/zstd/fix_assert.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/lib/decompress/zstd_decompress.c b/lib/decompress/zstd_decompress.c
-index be5c7cfc3..539190998 100644
---- a/lib/decompress/zstd_decompress.c
-+++ b/lib/decompress/zstd_decompress.c
-@@ -721,7 +721,7 @@ static size_t ZSTD_decompressMultiFrame(ZSTD_DCtx* dctx,
- decodedSize = ZSTD_decompressLegacy(dst, dstCapacity, src, frameSize, dict, dictSize);
- if (ZSTD_isError(decodedSize)) return decodedSize;
-
-- assert(decodedSize <=- dstCapacity);
-+ assert(decodedSize <= dstCapacity);
- dst = (BYTE*)dst + decodedSize;
- dstCapacity -= decodedSize;
-
diff --git a/ports/zstd/install_dll.patch b/ports/zstd/install_dll.patch
deleted file mode 100644
index 569b481f1..000000000
--- a/ports/zstd/install_dll.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff --git a/build/cmake/lib/CMakeLists.txt b/build/cmake/lib/CMakeLists.txt
-index 4274cbdd3..ea1b5f088 100644
---- a/build/cmake/lib/CMakeLists.txt
-+++ b/build/cmake/lib/CMakeLists.txt
-@@ -163,6 +163,7 @@ install(TARGETS ${library_targets}
- INCLUDES DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
- ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
- LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
-+ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
- )
-
- # uninstall target
diff --git a/ports/zstd/install_pkgpc.patch b/ports/zstd/install_pkgpc.patch
index 4936f05f6..61c8a956a 100644
--- a/ports/zstd/install_pkgpc.patch
+++ b/ports/zstd/install_pkgpc.patch
@@ -1,13 +1,14 @@
diff --git a/build/cmake/lib/CMakeLists.txt b/build/cmake/lib/CMakeLists.txt
-index 666da60c1..4274cbdd3 100644
+index 179c9762..f86efdbc 100644
--- a/build/cmake/lib/CMakeLists.txt
+++ b/build/cmake/lib/CMakeLists.txt
@@ -134,7 +134,7 @@ if (ZSTD_BUILD_STATIC)
OUTPUT_NAME ${STATIC_LIBRARY_BASE_NAME})
endif ()
-
--if (UNIX)
+
+-if (UNIX OR MINGW)
+if (1)
# pkg-config
set(PREFIX "${CMAKE_INSTALL_PREFIX}")
- set(LIBDIR "${CMAKE_INSTALL_LIBDIR}")
+ set(EXEC_PREFIX "\${prefix}")
+ \ No newline at end of file
diff --git a/ports/zstd/portfile.cmake b/ports/zstd/portfile.cmake
index 73cc2b185..656ee5714 100644
--- a/ports/zstd/portfile.cmake
+++ b/ports/zstd/portfile.cmake
@@ -1,14 +1,11 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO facebook/zstd
- REF b706286adbba780006a47ef92df0ad7a785666b6 # v1.4.5
- SHA512 1be43e8cc1dad9dd59036f86a7dd579b8fcbf16b3ebae62f38aa0397f45ab0eab2e97e924cede40428fa9125a2e5e567694bb04a0c9ec0c4275a79cd2ef8eb11
+ REF v1.4.9
+ SHA512 f529db9c094f9ae26428bf1fdfcc91c6d783d400980e0f0d802d2cf13c2be2931465ef568907e03841ff76a369a1447e7371f8799d8526edb9a513ba5c6db133
HEAD_REF dev
PATCHES
- 0002-crosscompile-windows.patch
- fix_assert.patch
install_pkgpc.patch
- install_dll.patch
)
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
diff --git a/ports/zstd/vcpkg.json b/ports/zstd/vcpkg.json
new file mode 100644
index 000000000..6ac7d4b52
--- /dev/null
+++ b/ports/zstd/vcpkg.json
@@ -0,0 +1,6 @@
+{
+ "name": "zstd",
+ "version": "1.4.9",
+ "description": "Zstandard - Fast real-time compression algorithm",
+ "homepage": "https://facebook.github.io/zstd/"
+}
diff --git a/versions/baseline.json b/versions/baseline.json
index a4d3b16e6..5a417e53c 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -6529,8 +6529,8 @@
"port-version": 0
},
"zstd": {
- "baseline": "1.4.5",
- "port-version": 1
+ "baseline": "1.4.9",
+ "port-version": 0
},
"zstr": {
"baseline": "1.0.4",
diff --git a/versions/z-/zstd.json b/versions/z-/zstd.json
index a44171036..8e7a2ef0f 100644
--- a/versions/z-/zstd.json
+++ b/versions/z-/zstd.json
@@ -1,6 +1,11 @@
{
"versions": [
{
+ "git-tree": "3a0ffa2a8fe8246a3937d9f6a77d577e351dd445",
+ "version": "1.4.9",
+ "port-version": 0
+ },
+ {
"git-tree": "b592e9dd5ab7aa6c1b46e0d23e0d31093edd73ca",
"version-string": "1.4.5",
"port-version": 1