Skip to content

Commit

Permalink
Update some ports to use OpenSSL 3.
Browse files Browse the repository at this point in the history
  • Loading branch information
yaron-zilliqa committed Sep 10, 2023
1 parent 287b72f commit df30f5e
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 29 deletions.
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"
}
]
}

0 comments on commit df30f5e

Please sign in to comment.