summaryrefslogtreecommitdiff
path: root/net-libs/zeromq
diff options
context:
space:
mode:
Diffstat (limited to 'net-libs/zeromq')
-rw-r--r--net-libs/zeromq/Manifest2
-rw-r--r--net-libs/zeromq/files/zeromq-4.3.5-c99.patch37
-rw-r--r--net-libs/zeromq/zeromq-4.3.5-r1.ebuild69
3 files changed, 108 insertions, 0 deletions
diff --git a/net-libs/zeromq/Manifest b/net-libs/zeromq/Manifest
index 85b55b3f644f..1901a593103d 100644
--- a/net-libs/zeromq/Manifest
+++ b/net-libs/zeromq/Manifest
@@ -1,10 +1,12 @@
AUX zeromq-4.3.4-gcc-13.patch 3437 BLAKE2B 84cd5fb685b97741d78505022bbf33d154d48dc08f4b273ce5191aa3140f2ad889b526394d26cceb85489c63f0f14cafd764f12db9a5df2696bea90fda5ef82e SHA512 2a391896aa47e4de7994f66a549fcf4d2ddb0236bfe09e5e2e89b7224e08405f37bf601fcde361dcbf7e9b9aa17429a536d2c0481b307732c3cf665c2fa43f44
AUX zeromq-4.3.4-qemu-user.patch 2385 BLAKE2B a224679ea010cc1af6d38265ca62d703d242f3f87cf7fab0d901c0ee73dae2d5b7436618f130264a6380ea27729ee46b1e29549aba22387200c7af044429e3c0 SHA512 334343b3cee4e8210d6b1eb48451056e1a89f62f116fc1da83437981a7a296de48bf4f3e9057c213940984f4de67dfdb4ea26a63cf08ab17bda22d4d25001dbd
+AUX zeromq-4.3.5-c99.patch 1530 BLAKE2B 6a8855ae86731a4a073f36429d2296172c6277218f589b90881e2fa771c1c209dc6fb64fc8946c01bcb3f4b1a732a5bd958eafd8deabb7d77796017b354bc403 SHA512 8246e8f21748e771934f31d286ef25306b827f36b83de85e6596777dacfac3dcc3bee0bcf4ed0e3e3dad6d1c0c0a47e2b04aa28b9999eb4c59cf042ef20fe0d9
DIST zeromq-4.3.3.tar.gz 2117050 BLAKE2B 69bd1544fa76232ecf860b364592762c4170c327c444bf79a916947e1c370eb8c6c20b2ae271374d70bde11db9116ef6a64262e287982e5f41d6a5029649348f SHA512 4c18d784085179c5b1fcb753a93813095a12c8d34970f2e1bfca6499be6c9d67769c71c68b7ca54ff181b20390043170e89733c22f76ff1ea46494814f7095b1
DIST zeromq-4.3.4.tar.gz 2486520 BLAKE2B 3c10989a9359a79317adaa8bf6e138357196b82078656911437ee848a347759acc1ef49feda5e1a8912974026e55907b9ffd5172111ddb83ba8cf92dd6715379 SHA512 e198ef9f82d392754caadd547537666d4fba0afd7d027749b3adae450516bcf284d241d4616cad3cb4ad9af8c10373d456de92dc6d115b037941659f141e7c0e
DIST zeromq-4.3.5.tar.gz 2530237 BLAKE2B 1ece80f4d4f6bba401c9801105cb9adecdde28c619035970a5d8e75ae4617e023c89857ef81179331cbe23b9bb69a0c15904ce9099fa59440829fb5986348d7e SHA512 a71d48aa977ad8941c1609947d8db2679fc7a951e4cd0c3a1127ae026d883c11bd4203cf315de87f95f5031aec459a731aec34e5ce5b667b8d0559b157952541
EBUILD zeromq-4.3.3-r1.ebuild 1434 BLAKE2B 2ef0bdd7421a2a831b6494b8b4e919f83a4451f2065c448afa780e1740b04b9e3d1fc083af3fcb988f343deb5b55dbb833e2f8e10861b4d19830fc5e987b7d48 SHA512 1e2c77d3150800989e0e32ee8026c7e7523be71f98eb6269e5e2b1963faaa9cb11b50a8f1a6b9ee6df2c0492c3ce3bdbeb7916528dd9af2590bc2df6a5a80bbc
EBUILD zeromq-4.3.4-r1.ebuild 1459 BLAKE2B 2761055575f039a6b5bc7447d8a871d76b0ab6acfb71b8f35ef78e4fd2430520862a73b42a3d23dc8cdbcafb1592ee146dd72239cb9dd87288ba1b080d23b3e5 SHA512 12f37a75b48cb9ef39ee8a26959e4b73e26c3aa3aa0512f703d162b502772432930adfdb18b1db12bf31d60cfa805cc1b0ac5a963860ea4ac08c943a8e748a15
EBUILD zeromq-4.3.4-r2.ebuild 1570 BLAKE2B 60404f911400a186426e1be177ce63d7165b452c805992723a41545f0f34b583bc3e14a0e61b361dd817ca1a62c25915e56faaf5b93bdabd9420aa61b91d9bef SHA512 5de24df989adea59a0abc875dfd80a9070428983256c7217b01b202d5e6440f0fe8333874e5f7607f4eb795b860aaac67d9425b8624f62a19d3520cb0caf61d8
+EBUILD zeromq-4.3.5-r1.ebuild 1524 BLAKE2B ecb3999626efc82c55a1fe7903d4dff0c90361b34b749cd2aacf4cbaeafd1fbeb871ddd4506bc1319a28b64d4c9d980fe863134d0e1c75e12e6bd082ca69da9a SHA512 bc909bfc2c3fda5c8cc8159f8cd5f95e45cbacb7bde84496d005ad39b3b3626f28f0326143c6cf2366fd4e01448fad26a4599854c808d6aae1d53a00ff0daea9
EBUILD zeromq-4.3.5.ebuild 1372 BLAKE2B 5b372e3c6a25f3336797e132ac252665239c544ab92719117a377fcda74b660251f8d3987d52f6e490e0e015cec8e5cde73a07bb3d78ed4056a54ec1816faf3a SHA512 3e6504a19190789f1c6ab749c6c3a85cab0ef92ed19c72cea1a81e7b4e1800c11148aba5ad0c5c1be68fa78635139460d69382d2b32485ebdeaa642bd4e74252
MISC metadata.xml 1541 BLAKE2B eb0032809d47b0f6e7064c1bcc8acd746480e3d1e222aeb7dd5658b820462376a8982e0d5a46e7dadc22efa8caaaa51c93f7bd66a1d73bba42a43dd959223596 SHA512 f3f8a92816c09499a6111fb375f429091c834be52e21189a7685fe59a40761ebd4d0d9e23889a0fc36d23863b3bcf16c245b00fb3d1ae21c9d8143be90977231
diff --git a/net-libs/zeromq/files/zeromq-4.3.5-c99.patch b/net-libs/zeromq/files/zeromq-4.3.5-c99.patch
new file mode 100644
index 000000000000..7f15ef6c6981
--- /dev/null
+++ b/net-libs/zeromq/files/zeromq-4.3.5-c99.patch
@@ -0,0 +1,37 @@
+https://github.com/zeromq/libzmq/pull/4635
+https://github.com/zeromq/libzmq/commit/665d1d46576f9a4eff6fa42a11c54f23b6b11803
+
+From 665d1d46576f9a4eff6fa42a11c54f23b6b11803 Mon Sep 17 00:00:00 2001
+From: Florian Weimer <fweimer@redhat.com>
+Date: Wed, 29 Nov 2023 14:14:30 +0100
+Subject: [PATCH] Build with -D_DEFAULT_SOURCE along with -std=c11
+
+On its own, -std=c11 hides POSIX and other extensions from C headers
+such as <stdlib.h> when building against glibc. This causes the
+posix_memalign probe to fail incorrectly with compilers that do not
+accept implicit function declarations. _DEFAULT_SOURCE is ignored by
+most non-GNU/Linux systems or not relevant in this context, so there
+is no separate check for adding it.
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -122,7 +122,7 @@ if (NOT MSVC)
+ if(NOT CMAKE_C_FLAGS MATCHES "-std=" AND NOT C_STANDARD AND NOT CMAKE_C_STANDARD)
+ check_c_compiler_flag("-std=c11" COMPILER_SUPPORTS_C11)
+ if(COMPILER_SUPPORTS_C11)
+- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11")
++ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_DEFAULT_SOURCE -std=c11")
+ else()
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99")
+ endif()
+--- a/configure.ac
++++ b/configure.ac
+@@ -66,7 +66,7 @@ ZMQ_ORIG_CXXFLAGS="${CXXFLAGS:-none}"
+
+ # Checks for programs.
+ AC_PROG_CC
+-AX_CHECK_COMPILE_FLAG([-std=c11], [CFLAGS+=" -std=c11"], [AC_PROG_CC_C99])
++AX_CHECK_COMPILE_FLAG([-std=c11], [CFLAGS+=" -std=c11 -D_DEFAULT_SOURCE"], [AC_PROG_CC_C99])
+ AC_PROG_CXX
+ AX_CODE_COVERAGE
+ AM_PROG_CC_C_O
+
diff --git a/net-libs/zeromq/zeromq-4.3.5-r1.ebuild b/net-libs/zeromq/zeromq-4.3.5-r1.ebuild
new file mode 100644
index 000000000000..72bd07bb595b
--- /dev/null
+++ b/net-libs/zeromq/zeromq-4.3.5-r1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="High-performance asynchronous messaging library"
+HOMEPAGE="https://zeromq.org/"
+SRC_URI="https://github.com/zeromq/libzmq/releases/download/v${PV}/${P}.tar.gz"
+
+LICENSE="MPL-2.0"
+SLOT="0/5"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~x64-macos"
+IUSE="doc drafts +libbsd +sodium static-libs test unwind"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ !elibc_Darwin? ( unwind? ( sys-libs/libunwind ) )
+ libbsd? ( dev-libs/libbsd:= )
+ sodium? ( dev-libs/libsodium:= )
+"
+DEPEND="
+ ${RDEPEND}
+ !elibc_Darwin? ( sys-apps/util-linux )
+"
+BDEPEND="
+ doc? (
+ app-text/asciidoc
+ app-text/xmlto
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-4.3.5-c99.patch
+)
+
+src_prepare() {
+ default
+
+ # Only here for the c99 configure patch
+ eautoreconf
+}
+
+src_configure() {
+ local myeconfargs=(
+ --disable-Werror
+ --enable-shared
+ $(use_enable drafts)
+ $(use_enable libbsd)
+ $(use_enable static-libs static)
+ $(use_enable unwind libunwind)
+ $(use_with sodium libsodium)
+ $(use_with doc docs)
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_test() {
+ # Restricting to one job because multiple tests are using the same port.
+ # Upstream knows the problem and says it doesn't support parallel test
+ # execution, see ${S}/INSTALL.
+ emake -j1 check
+}
+
+src_install() {
+ default
+ find "${ED}" -type f -name '*.la' -delete || die
+}