[seal] Fix package hexl not found error (#38343)

Fixes #38323.

Fix package `hexl` not found error:
```
CMake Warning at vcpkg/scripts/buildsystems/vcpkg.cmake:859 (_find_package):
  Could not find a configuration file for package "HEXL" that is compatible
  with requested version "1.2.4".

  The following configuration files were considered but not accepted:

    vcpkg/installed/x64-linux/share/HEXL/HEXLConfig.cmake, version: 1.2.5
    /usr/local/lib/cmake/hexl-1.2.5/HEXLConfig.cmake, version: 1.2.5

Call Stack (most recent call first):
  CMakeLists.txt:226 (find_package)


CMake Error at CMakeLists.txt:228 (message):
  Intel HEXL: not found
```

Feature `hexl` is tested successfully in the following triplet:
```
x64-windows
x64-windows-static
```

- [x] Changes comply with the [maintainer
guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md).
- [ ] ~SHA512s are updated for each updated download.~
- [ ] ~The "supports" clause reflects platforms that may be fixed by
this new version.~
- [ ] ~Any fixed [CI
baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt)
entries are removed from that file.~
- [ ] ~Any patches that are no longer applied are deleted from the
port's directory.~
- [x] The version database is fixed by rerunning `./vcpkg x-add-version
--all` and committing the result.
- [x] Only one version is added to each modified port's versions file.

---------

Co-authored-by: Monica <v-liumonica@microsoft.com>
This commit is contained in:
MonicaLiu 2024-04-24 05:51:01 -07:00 committed by GitHub
parent 4064388226
commit b5ae18f755
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 21 additions and 2 deletions

13
ports/seal/fix-hexl.patch Normal file
View File

@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index edf69a3..e64672e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -223,7 +223,7 @@ if(SEAL_USE_INTEL_HEXL)
message(STATUS "Intel HEXL: download ...")
seal_fetch_thirdparty_content(ExternalIntelHEXL)
else()
- find_package(HEXL 1.2.4)
+ find_package(HEXL CONFIG REQUIRED)
if (NOT TARGET HEXL::hexl)
message(FATAL_ERROR "Intel HEXL: not found")
endif()

View File

@ -10,6 +10,7 @@ vcpkg_from_github(
HEAD_REF main
PATCHES
shared-zstd.patch
fix-hexl.patch
)
vcpkg_replace_string(

View File

@ -1,7 +1,7 @@
{
"name": "seal",
"version": "4.1.1",
"port-version": 1,
"port-version": 2,
"description": "Microsoft SEAL is an easy-to-use and powerful homomorphic encryption library.",
"homepage": "https://github.com/microsoft/SEAL",
"license": "MIT",

View File

@ -7974,7 +7974,7 @@
},
"seal": {
"baseline": "4.1.1",
"port-version": 1
"port-version": 2
},
"seasocks": {
"baseline": "1.4.6",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "90ddcfb2adf93a2bf7cbad776f62cb84f6145114",
"version": "4.1.1",
"port-version": 2
},
{
"git-tree": "b40b9aa4145e13facd191ec957a4cefa586d6f7f",
"version": "4.1.1",