Skip to content

Commit

Permalink
[zeromq] Cherry pick patches to fix build issues (#22681)
Browse files Browse the repository at this point in the history
* [zeromq] Update to 2022-01-19

* update version

* [zeromq] update license

* update version

* [zeromq] update commit

* update version

* [zeromq] update vcpkg.json

* update version

* Update versions/z-/zeromq.json

* update portfile.cmake

* update version

* resolve conflicts

* update version

* update patch name

* update version

Co-authored-by: Lily Wang <v-lilywang@microsoft.com>
Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
  • Loading branch information
3 people authored Jan 27, 2022
1 parent a4f5801 commit 04cca61
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 6 deletions.
23 changes: 19 additions & 4 deletions ports/zeromq/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
vcpkg_download_distfile(patch4310
URLS "https://patch-diff.githubusercontent.com/raw/zeromq/libzmq/pull/4310.diff"
FILENAME "zeromq-libzmq-4310.diff"
SHA512 64e6d37ab843e5b9aa9e56ba7904423ce0a2c6b4101dbd86b7b8b22c52c384ed7ea9764f9e0a53be04e7ade09923ca95452104e9760b66ebc0ed3ffef08a75c5
)

vcpkg_download_distfile(patch4311
URLS "https://patch-diff.githubusercontent.com/raw/zeromq/libzmq/pull/4311.diff"
FILENAME "zeromq-libzmq-4311.diff"
SHA512 2b04e0ce4743d27070ea832c45e2d8fa0091c755757937cfa2a2bb43283ee38dc9f27343989e1ad8c45fda8a3cfaa012250b0c581e2f0407938cbb61b2a21e63
)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO zeromq/libzmq
REF v4.3.4
SHA512 ad828b1ab5a87983285a6b44b08240816ed1c4e2c73306ab1a851bf80df1892b5e2f92064a49fbadc1f4c75043625ace77dd25b64d5d1c2a7d1d61cc916fba0b
PATCHES fix-arm.patch
PATCHES
fix-arm.patch
${patch4310}
${patch4311}
)

string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC)
Expand All @@ -12,8 +27,8 @@ string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED)
vcpkg_check_features(
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
sodium WITH_LIBSODIUM
draft ENABLE_DRAFTS
sodium WITH_LIBSODIUM
draft ENABLE_DRAFTS
websockets-sha1 ENABLE_WS
)

Expand All @@ -23,7 +38,7 @@ if(VCPKG_TARGET_IS_MINGW)
endif()

vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DZMQ_BUILD_TESTS=OFF
-DBUILD_STATIC=${BUILD_STATIC}
Expand Down
3 changes: 2 additions & 1 deletion ports/zeromq/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "zeromq",
"version": "4.3.4",
"port-version": 3,
"port-version": 4,
"description": "The ZeroMQ lightweight messaging kernel is a library which extends the standard socket interfaces with features traditionally provided by specialised messaging middleware products",
"homepage": "https://github.com/zeromq/libzmq",
"license": "LGPL-3.0-only",
"supports": "!uwp",
"dependencies": [
{
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -7502,7 +7502,7 @@
},
"zeromq": {
"baseline": "4.3.4",
"port-version": 3
"port-version": 4
},
"zfp": {
"baseline": "0.5.5",
Expand Down
5 changes: 5 additions & 0 deletions versions/z-/zeromq.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "efc9d6229adaef7b036d222004dd786353f8cd4e",
"version": "4.3.4",
"port-version": 4
},
{
"git-tree": "46cd1dcc3bc077341533cc01c32f467d1a7e181f",
"version": "4.3.4",
Expand Down

0 comments on commit 04cca61

Please sign in to comment.