Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZIL-5355: upgrade to OpenSSL 3 #1243

Merged
merged 1 commit into from
Sep 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions vcpkg-registry/ports/cryptoutils/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "cryptoutils",
"version": "8.3.0",
"port-version": 1,
"version": "9.3",
"port-version": 0,
"description": "CryptoUtils",
"homepage": "https://github.com/Zilliqa/cryptoutils",
"dependencies": [
Expand All @@ -12,7 +12,8 @@
{
"name": "vcpkg-cmake-config",
"host": true
}
},
"openssl"
]
}

17 changes: 17 additions & 0 deletions vcpkg-registry/ports/schnorr/fix-compiler-flags.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2791bb1..450905d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -47,12 +47,6 @@ set(CPACK_DEBIAN_PACKAGE_DEPENDS "libboost-system-dev, libboost-test-dev, libssl
set(CPACK_PACKAGE_CONTACT "[email protected]")
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Members of [email protected]")

-# compiler and linker options
-
-add_compile_options(-Wall)
-add_compile_options(-Werror)
-add_compile_options(-Wextra)
-
if (THREAD_SANITIZER AND ADDRESS_SANITIZER)
message(FATAL_ERROR "Cannot use ThreadSanitizer (THREAD_SANITIZER=ON) and AddressSanitizer (ADDRESS_SANITIZER=ON) at the same time")
endif()
22 changes: 9 additions & 13 deletions vcpkg-registry/ports/schnorr/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,19 @@ vcpkg_from_github(
REF c54f4cadc88234d58bfdf83a4d7348444ea7845d #v8.2.0
SHA512 7f445c407fd1049ab41ad580b91263698af405b6015ec4a33715a40e488459afb5f2a8f06e6db9759b18b4f9ba443e2da746408821931ccd31e4caf4101048a7
HEAD_REF master
PATCHES
fix-compiler-flags.patch
)

if (UNIX AND NOT APPLE)
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS
-DCMAKE_CXX_FLAGS=-Wno-dev
-DCMAKE_C_FLAGS=-Wno-dev
)
else()
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
)
endif()
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS
-DCMAKE_CXX_STANDARD=20
-DCMAKE_CXX_FLAGS="-Wall -Werror -Wextra -Wno-dev -Wno-deprecated-declarations"
-DCMAKE_C_FLAGS="-Wall -Werror -Wextra -Wno-dev -Wno-deprecated-declarations"
)

vcpkg_cmake_install()

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)

8 changes: 6 additions & 2 deletions vcpkg-registry/ports/schnorr/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "schnorr",
"version": "8.2.0",
"version": "9.3",
"port-version": 0,
"description": "Schnorr",
"homepage": "https://github.com/Zilliqa/schnorr",
Expand All @@ -12,6 +12,10 @@
{
"name": "vcpkg-cmake-config",
"host": true
}
},
"boost-algorithm",
"boost-functional",
"boost-test",
"openssl"
]
}
4 changes: 2 additions & 2 deletions vcpkg-registry/versions/baseline.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"default": {
"schnorr": { "baseline": "8.2.0", "port-version": 0 },
"cryptoutils": { "baseline": "8.3.0", "port-version": 1 }
"schnorr": { "baseline": "9.3", "port-version": 0 },
"cryptoutils": { "baseline": "9.3", "port-version": 0 }
}
}
4 changes: 2 additions & 2 deletions vcpkg-registry/versions/c-/cryptoutils.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"versions": [
{
"path": "$/ports/cryptoutils",
"version": "8.3.0",
"port-version": 1
"version": "9.3",
"port-version": 0
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion vcpkg-registry/versions/s-/schnorr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"versions": [
{
"path": "$/ports/schnorr",
"version": "8.2.0",
"version": "9.3",
"port-version": 0
}
]
Expand Down
8 changes: 2 additions & 6 deletions vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,13 @@
"name": "jsoncpp",
"version-string": "1.8.1-1"
},
{
"name": "openssl",
"version-string": "1.1.1n"
},
{
"name": "schnorr",
"version": "8.2.0"
"version": "9.3"
},
{
"name": "cryptoutils",
"version": "8.3.0#1"
"version": "9.3"
}
]
}
Loading