Compare commits

..

30 commits

Author SHA1 Message Date
Fedora Release Engineering
2b568b0136 Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-17 09:39:57 +00:00
Fedora Release Engineering
61dda03ad6 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-17 21:07:36 +00:00
Fedora Release Engineering
8c0a9a2744 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 21:17:35 +00:00
Denis Arnaud
5cdfb5dc7a Rebuild for OpenPGM in a side tag 2025-01-28 11:40:11 +01:00
Denis Arnaud
2ba6425a00 Rebuild for OpenPGM 2025-01-27 23:08:26 +01:00
Fedora Release Engineering
cb016e7317 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-19 16:44:36 +00:00
Miroslav Suchý
c8ae1309ae Migrate to SPDX license
This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4

If there will be no comments in two weeks, I will merge this.
2024-09-08 20:06:32 +00:00
Fedora Release Engineering
1bc5134706 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-20 10:50:50 +00:00
Fedora Release Engineering
1cb438733f Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-27 11:04:44 +00:00
Florian Weimer
d1f897dccf Build with _DEFAULT_SOURCE to avoid compatibility issue 2023-11-29 14:33:04 +01:00
Mattias Ellert
0502eb1960 XFAIL the faileing tests/test_radio_dish 2023-10-31 18:05:23 +01:00
Denis Arnaud
04ba3e0b7e BZ#2247171 / PR#7 - Added the --enable-drafts option by default 2023-10-31 15:13:53 +01:00
Mattias Ellert
9e6802e3b7 Enable draft API (rhbz#2247171) 2023-10-31 12:51:38 +01:00
Denis Arnaud
3dd626ffa0 Revert "BZ#2245747 - Build system switched to CMake"
This reverts commit 0a97bab77b.
2023-10-24 20:30:24 +02:00
Denis Arnaud
13c901b7af Revert "CMake / Improved the build"
This reverts commit b80422b75f.
2023-10-24 20:29:42 +02:00
Denis Arnaud
b80422b75f Improved the build 2023-10-24 19:41:37 +02:00
Denis Arnaud
0a97bab77b BZ#2245747 - Build system switched to CMake 2023-10-24 15:20:12 +02:00
Denis Arnaud
e47d99b391 Fixed the license name 2023-10-23 00:41:22 +02:00
Denis Arnaud
12b8a0bc12 Fixed the changelog section 2023-10-23 00:30:05 +02:00
Denis Arnaud
de1a0c8e35 Upstream upgrade 2023-10-23 00:01:24 +02:00
Denis Arnaud
e1c1539e16 Upstream upgrade 2023-10-22 23:56:37 +02:00
Denis Arnaud
7a106ac239 Upstream upgrade 2023-10-22 23:51:07 +02:00
Denis Arnaud
0108fed20c Upstream upgrade 2023-10-22 23:49:02 +02:00
Denis Arnaud
6666ee1fbe Upstream upgrade 2023-10-22 23:47:40 +02:00
4899b764e8 rebuild for new libsodium 2023-10-05 09:26:18 +02:00
Fedora Release Engineering
690b1cc3cf Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-22 19:40:04 +00:00
David Cantrell
b06c92b895 Convert License tag to SPDX identifiers
Examined the source code and see most of the library is under
LGPL-3.0-or-later, but sha1 in external/ is under BSD-3-Clause and
unity in external/ is under MIT.

Signed-off-by: David Cantrell <dcantrell@redhat.com>
2023-05-17 12:49:31 -04:00
Ben Woodard
0da91cc706 Remove libunwind from dependencies
In the case where a C application uses zeromq and then dlopen's a C++
module, the C++ exception handling functionality will not work because
libzmg pulls in libunwind. Then the C++ module brings in libstdc++ and
libgcc_s, the personality function which is part of the C++ exception
handling the runtime finds the version of
_Unwind_GetLanguageSpecificData which is in libunwind rather than the
one that is in libgcc_s and uses that. However, version does not have
a complete implementation and so it fails causing the application to
abort. This fixes https://bugzilla.redhat.com/show_bug.cgi?id=2175966

Signed-off-by: Ben Woodard <woodard@redhat.com>
2023-03-07 14:41:45 -08:00
Fedora Release Engineering
c2c0544f92 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-21 08:14:28 +00:00
Fedora Release Engineering
9958f38243 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-23 13:53:53 +00:00
3 changed files with 49 additions and 15 deletions

View file

@ -1 +1 @@
SHA512 (libzmq-4.3.4.tar.gz) = ad828b1ab5a87983285a6b44b08240816ed1c4e2c73306ab1a851bf80df1892b5e2f92064a49fbadc1f4c75043625ace77dd25b64d5d1c2a7d1d61cc916fba0b
SHA512 (zeromq-4.3.5.tar.gz) = a71d48aa977ad8941c1609947d8db2679fc7a951e4cd0c3a1127ae026d883c11bd4203cf315de87f95f5031aec459a731aec34e5ce5b667b8d0559b157952541

View file

@ -0,0 +1,37 @@
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.
Submitted upstream: <https://github.com/zeromq/libzmq/pull/4635>
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 68fb7251..f956f3fd 100644
--- 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()
diff --git a/configure.ac b/configure.ac
index b9e13d4f..ffcc145b 100644
--- 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

View file

@ -2,15 +2,16 @@
%bcond_without unwind
Name: zeromq
Version: 4.3.4
Release: 2%{?dist}
Version: 4.3.5
Release: %autorelease
Summary: Software library for fast, message-based applications
License: LGPLv3+
License: MPL-2.0 AND BSD-3-Clause AND MIT
URL: https://zeromq.org
Source0: https://github.com/%{name}/libzmq/archive/v%{version}/libzmq-%{version}.tar.gz
Source0: https://github.com/%{name}/libzmq/archive/v%{version}/%{name}-%{version}.tar.gz
Patch1: zeromq-configure-c99.patch
BuildRequires: make
BuildRequires: make
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++
@ -50,7 +51,7 @@ developing applications that use %{name}.
%prep
%autosetup -p1 -n libzmq-%{version}
%autosetup -p1
# Remove bundled code.
rm -rf external/wepoll
@ -67,6 +68,7 @@ autoreconf -fi
--with-libgssapi_krb5 \
%endif
--with-libsodium \
--enable-drafts \
%if %{with unwind}
--enable-libunwind \
%endif
@ -84,7 +86,7 @@ rm %{buildroot}%{_libdir}/libzmq.la
%check
%ifarch s390x
make check V=1 || ( cat test-suite.log && exit 1 )
make check V=1 XFAIL_TESTS=tests/test_radio_dish || ( cat test-suite.log && exit 1 )
%endif
@ -93,7 +95,7 @@ make check V=1 || ( cat test-suite.log && exit 1 )
%files
%doc README.md AUTHORS NEWS
%license COPYING COPYING.LESSER
%license LICENSE
%{_bindir}/curve_keygen
%{_libdir}/libzmq.so.5*
%{_mandir}/man3/zmq_*
@ -107,10 +109,5 @@ make check V=1 || ( cat test-suite.log && exit 1 )
%changelog
* Tue Mar 07 2023 Ben Woodard <woodard@redhat.com> - 4.3.4-2
- disable building with libunwind to fix C++ exceptions when a C applicaion loads
a module written in C++ #2175966
* Thu Mar 03 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.4-1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
%autochangelog