Skip to content

Commit 36b8ec0

Browse files
authored
Merge pull request microsoft#194 from JoergAtGithub/update_2.7_from_upstream
Merge upstream changes to 2.7 branch
2 parents 59eccb2 + b1e2178 commit 36b8ec0

File tree

1,670 files changed

+14676
-7065
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,670 files changed

+14676
-7065
lines changed

ports/7zip/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ endif()
412412
# CPP/7zip/Bundles/Format7zF/makefile[_gcc].mak
413413
# CPP/7zip/7zip[_gcc].mak
414414

415-
target_compile_definitions(7zip PRIVATE Z7_EXTERNAL_CODECS)
415+
target_compile_definitions(7zip PRIVATE Z7_EXTERNAL_CODECS Z7_PPMD_SUPPORT)
416416
target_sources(7zip PRIVATE
417417
CPP/7zip/Archive/ArchiveExports.cpp
418418
CPP/7zip/Archive/DllExports2.cpp

ports/7zip/vcpkg.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "7zip",
33
"version": "25.1",
4+
"port-version": 1,
45
"description": "Library for archiving file with a high compression ratio.",
56
"homepage": "https://www.7-zip.org",
67
"license": "LGPL-2.1-or-later",
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/CMake/AbseilDll.cmake b/CMake/AbseilDll.cmake
2+
index 38d09364..7d158be6 100644
3+
--- a/CMake/AbseilDll.cmake
4+
+++ b/CMake/AbseilDll.cmake
5+
@@ -721,7 +721,7 @@ int main() { return 0; }
6+
7+
if(ABSL_INTERNAL_AT_LEAST_CXX20)
8+
set(ABSL_INTERNAL_CXX_STD_FEATURE cxx_std_20)
9+
-elseif(ABSL_INTERNAL_AT_LEAST_CXX17)
10+
+elseif(1)
11+
set(ABSL_INTERNAL_CXX_STD_FEATURE cxx_std_17)
12+
else()
13+
message(FATAL_ERROR "The compiler defaults to or is configured for C++ < 17. C++ >= 17 is required and Abseil and all libraries that use Abseil must use the same C++ language standard")

ports/abseil/portfile.cmake

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ vcpkg_from_github(
66
OUT_SOURCE_PATH SOURCE_PATH
77
REPO abseil/abseil-cpp
88
REF "${VERSION}"
9-
SHA512 d3ba654ed7dd7b432494918b2de5d8e2b0ad1c42752c5d726f20d6fe2841828fb4e8beb853e3570a11efecef725029ce5ffa3ebc434efff007e7f60735eb9856
9+
SHA512 7083b73c3cf763f6f7a7edb70a5171f44d27045a0f5e52ca043e0a86379af2c50cf85dbfea30ebaa22a7bb2929452581d26b1ba18945023b057267d4c3bad2f7
1010
HEAD_REF master
1111
PATCHES
12-
"001-mingw-dll.patch" # Upstreamed (not yet in a release): https://github.com/abseil/abseil-cpp/commit/f2dee57baf19ceeb6d12cf9af7cbb3c049396ba5
13-
"string-view.patch"
12+
001-mingw-dll.patch # Upstreamed (not yet in a release): https://github.com/abseil/abseil-cpp/commit/f2dee57baf19ceeb6d12cf9af7cbb3c049396ba5
13+
002-string-view.patch
14+
003-force-cxx-17.patch
1415
)
1516

1617
set(ABSL_TEST_HELPERS_OPTIONS "")

ports/abseil/vcpkg.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "abseil",
3-
"version": "20250512.1",
3+
"version": "20250814.1",
44
"description": [
55
"Abseil is an open-source collection of C++ library code designed to augment the C++ standard library. The Abseil library code is collected from Google's own C++ code base, has been extensively tested and used in production, and is the same code we depend on in our daily coding lives.",
66
"In some cases, Abseil provides pieces missing from the C++ standard; in others, Abseil provides alternatives to the standard for special needs we've found through usage in the Google code base. We denote those cases clearly within the library code we provide you.",
@@ -23,12 +23,7 @@
2323
"description": "Build Abseil's test helpers",
2424
"dependencies": [
2525
"abseil",
26-
{
27-
"name": "gtest",
28-
"features": [
29-
"cxx17"
30-
]
31-
}
26+
"gtest"
3227
]
3328
}
3429
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
diff --git a/CMakeLists.txt b/CMakeLists.txt
2+
index 803fb6a..ad7ae72 100644
3+
--- a/CMakeLists.txt
4+
+++ b/CMakeLists.txt
5+
@@ -97,9 +97,35 @@ target_compile_definitions(ripe PRIVATE
6+
ELPP_NO_DEFAULT_LOG_FILE
7+
ELPP_DEFAULT_LOGGING_FLAGS=4096
8+
)
9+
-install (TARGETS ripe DESTINATION lib)
10+
+
11+
+include(GNUInstallDirs)
12+
+include(CMakePackageConfigHelpers)
13+
+
14+
+write_basic_package_version_file(
15+
+ ${CMAKE_CURRENT_BINARY_DIR}/unofficial-ripe-config-version.cmake
16+
+ VERSION "${RIPE_VERSION}"
17+
+ COMPATIBILITY AnyNewerVersion
18+
+)
19+
+install(FILES
20+
+ ${CMAKE_CURRENT_BINARY_DIR}/unofficial-ripe-config-version.cmake
21+
+ ${CMAKE_CURRENT_SOURCE_DIR}/cmake/unofficial-ripe-config.cmake
22+
+ DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/unofficial-ripe
23+
+)
24+
+
25+
+install (TARGETS ripe
26+
+ EXPORT unofficial-ripe-targets
27+
+ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
28+
+ LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
29+
+ ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
30+
+)
31+
install (FILES include/Ripe.h DESTINATION "include")
32+
33+
+install(
34+
+ EXPORT unofficial-ripe-targets
35+
+ NAMESPACE unofficial::ripe::
36+
+ DESTINATION "${CMAKE_INSTALL_DATADIR}/unofficial-ripe"
37+
+)
38+
+
39+
################################################ RIPE ##############################################
40+
41+
add_executable (ripe-bin src/ripe.cc lib/Ripe.cc)

ports/abumq-ripe/devendoring.patch

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
diff --git a/CMakeLists.txt b/CMakeLists.txt
2+
index 4500382..e1a2c95 100644
3+
--- a/CMakeLists.txt
4+
+++ b/CMakeLists.txt
5+
@@ -36,8 +36,6 @@ if (APPLE)
6+
endif()
7+
endif()
8+
9+
-list (APPEND CMAKE_CXX_FLAGS " ")
10+
-
11+
if (dll)
12+
add_definitions (-DRIPE_DLL)
13+
endif()
14+
@@ -48,9 +46,8 @@ endif()
15+
16+
# Check for cryptopp (static)
17+
set(CryptoPP_USE_STATIC_LIBS ON)
18+
-find_package(CryptoPP REQUIRED)
19+
-message ("-- Crypto++ binary: " ${CRYPTOPP_LIBRARY})
20+
-include_directories (${CRYPTOPP_INCLUDE_DIRS})
21+
+find_package(CRYPTOPP NAMES cryptopp CONFIG REQUIRED)
22+
+set(CRYPTOPP_LIBRARIES cryptopp::cryptopp)
23+
24+
find_package(ZLIB REQUIRED)
25+
if (ZLIB_FOUND)
26+
@@ -92,7 +89,7 @@ set_target_properties(ripe PROPERTIES
27+
)
28+
29+
target_link_libraries(ripe
30+
- ${CRYPTOPP_LIBRARIES}
31+
+ cryptopp::cryptopp
32+
${ZLIB_LIBRARIES}
33+
)
34+
35+
@@ -107,7 +104,7 @@ install (FILES include/Ripe.h DESTINATION "include")
36+
37+
add_executable (ripe-bin src/ripe.cc lib/Ripe.cc)
38+
#target_link_libraries (ripe-bin ripe)
39+
-target_link_libraries (ripe-bin ${CRYPTOPP_LIBRARIES} ${ZLIB_LIBRARIES})
40+
+target_link_libraries (ripe-bin cryptopp::cryptopp ${ZLIB_LIBRARIES})
41+
42+
set_target_properties (ripe-bin PROPERTIES
43+
OUTPUT_NAME "ripe"
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/lib/Ripe.cc b/lib/Ripe.cc
2+
index 1111111..2222222 100644
3+
--- a/lib/Ripe.cc
4+
+++ b/lib/Ripe.cc
5+
@@ -242,7 +242,7 @@ Ripe::KeyPair Ripe::generateRSAKeyPair(unsigned int length, const std::string&
6+
if (secret.empty()) {
7+
PEM_Save(snk, privateKey);
8+
} else {
9+
- PEM_Save(snk, rng, privateKey, PRIVATE_RSA_ALGORITHM, secret.data(), secret.size());
10+
+ PEM_Save(snk, privateKey, rng, PRIVATE_RSA_ALGORITHM, secret.data(), secret.size());
11+
}
12+
snk.MessageEnd();
13+
}

ports/abumq-ripe/portfile.cmake

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
if(VCPKG_TARGET_IS_WINDOWS)
2+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY) # Ripe has several issues with dynamic linkage on Windows
3+
endif()
4+
5+
vcpkg_from_github(
6+
OUT_SOURCE_PATH SOURCE_PATH
7+
REPO abumq/ripe
8+
REF v${VERSION}
9+
SHA512 d89c80349eb7a245f825755b703401a412f934390c869607cfcaa02907f375e410d6ad2220255de475e215e7fea9a17c3fba61423e2632c1be7a40cadb69ad86
10+
HEAD_REF master
11+
PATCHES
12+
devendoring.patch
13+
cmake-config-exports.patch
14+
fix-cryptopp-pem-api.patch
15+
)
16+
17+
file(REMOVE_RECURSE "${SOURCE_PATH}/cmake")
18+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/unofficial-ripe-config.cmake"
19+
DESTINATION "${SOURCE_PATH}/cmake")
20+
21+
vcpkg_cmake_configure(
22+
SOURCE_PATH "${SOURCE_PATH}"
23+
OPTIONS
24+
-Dtest=OFF
25+
${FEATURE_OPTIONS}
26+
)
27+
28+
vcpkg_cmake_install()
29+
30+
vcpkg_cmake_config_fixup(PACKAGE_NAME "unofficial-ripe")
31+
32+
vcpkg_copy_tools(TOOL_NAMES ripe AUTO_CLEAN)
33+
34+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
35+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
36+
37+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

0 commit comments

Comments
 (0)