Skip to content

Commit 62e629b

Browse files
authored
Merge pull request #57507 from xnox/zeromq-cmake
zeromq: switch from automake to cmake
2 parents 3e4dba5 + f0ea908 commit 62e629b

File tree

2 files changed

+40
-16
lines changed

2 files changed

+40
-16
lines changed

zeromq.yaml

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
package:
22
name: zeromq
33
version: 4.3.5
4-
epoch: 2
4+
epoch: 3
55
description: The ZeroMQ messaging library and tools
66
copyright:
77
- license: MPL-2.0
88

99
environment:
1010
contents:
1111
packages:
12-
- automake
1312
- build-base
14-
- busybox
15-
- ca-certificates-bundle
13+
- libbsd-dev
1614
- libsodium-dev
1715
- perl
1816
- util-linux-dev
@@ -24,13 +22,17 @@ pipeline:
2422
expected-sha256: 6653ef5910f17954861fe72332e68b03ca6e4d9c7160eb3a8de5a5a913bfab43
2523
uri: https://github.com/zeromq/libzmq/releases/download/v${{package.version}}/zeromq-${{package.version}}.tar.gz
2624

27-
- uses: autoconf/configure
25+
- uses: patch
2826
with:
29-
opts: --with-libsodium --disable-Werror
27+
patches: 0001-cmake-add-curve_keygen-binary.patch
3028

31-
- uses: autoconf/make
29+
- uses: cmake/configure
30+
with:
31+
opts: -DENABLE_CURVE=ON -DWITH_LIBSODIUM=ON
32+
33+
- uses: cmake/build
3234

33-
- uses: autoconf/make-install
35+
- uses: cmake/install
3436

3537
- uses: strip
3638

@@ -78,14 +80,6 @@ subpackages:
7880
pkg-config libzmq --cflags
7981
pkg-config libzmq --libs
8082
81-
- name: zeromq-doc
82-
pipeline:
83-
- uses: split/manpages
84-
description: zeromq manpages
85-
test:
86-
pipeline:
87-
- uses: test/docs
88-
8983
update:
9084
enabled: true
9185
github:
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
From dacde1f11aa4fcbf7571ea520e7b1b8ccee154ec Mon Sep 17 00:00:00 2001
2+
From: Dimitri John Ledkov <[email protected]>
3+
Date: Wed, 25 Jun 2025 17:42:39 +0100
4+
Subject: [PATCH] cmake: add curve_keygen binary
5+
6+
When sodium is enabled, also build curve_keygen binary. This is to
7+
bring cmake builds to parity with autoconf.
8+
9+
Fixes: https://github.com/zeromq/libzmq/issues/4675
10+
---
11+
CMakeLists.txt | 6 ++++++
12+
1 file changed, 6 insertions(+)
13+
14+
diff --git a/CMakeLists.txt b/CMakeLists.txt
15+
index 3ab2259e..7caf2c87 100644
16+
--- a/CMakeLists.txt
17+
+++ b/CMakeLists.txt
18+
@@ -1915,3 +1915,9 @@ if(ENABLE_NO_EXPORT)
19+
message(STATUS "Building with empty ZMQ_EXPORT macro")
20+
add_definitions(-DZMQ_NO_EXPORT)
21+
endif()
22+
+
23+
+if (ENABLE_CURVE)
24+
+ add_executable(curve_keygen tools/curve_keygen.cpp)
25+
+ target_link_libraries(curve_keygen libzmq)
26+
+ install(TARGETS curve_keygen RUNTIME DESTINATION bin)
27+
+endif()
28+
--
29+
2.48.1
30+

0 commit comments

Comments
 (0)