Compare commits

..

36 Commits

Author SHA1 Message Date
Miroslav Suchý c8ae1309ae Migrate to SPDX license
5 months ago
Fedora Release Engineering 1bc5134706 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
6 months ago
Fedora Release Engineering 1cb438733f Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
1 year ago
Florian Weimer d1f897dccf Build with _DEFAULT_SOURCE to avoid compatibility issue
1 year ago
Mattias Ellert 0502eb1960 XFAIL the faileing tests/test_radio_dish
1 year ago
Denis Arnaud 04ba3e0b7e BZ#2247171 / PR#7 - Added the --enable-drafts option by default
1 year ago
Mattias Ellert 9e6802e3b7 Enable draft API (rhbz#2247171)
1 year ago
Denis Arnaud 3dd626ffa0 Revert "BZ#2245747 - Build system switched to CMake"
1 year ago
Denis Arnaud 13c901b7af Revert "CMake / Improved the build"
1 year ago
Denis Arnaud b80422b75f Improved the build
1 year ago
Denis Arnaud 0a97bab77b BZ#2245747 - Build system switched to CMake
1 year ago
Denis Arnaud e47d99b391 Fixed the license name
1 year ago
Denis Arnaud 12b8a0bc12 Fixed the changelog section
1 year ago
Denis Arnaud de1a0c8e35 Upstream upgrade
1 year ago
Denis Arnaud e1c1539e16 Upstream upgrade
1 year ago
Denis Arnaud 7a106ac239 Upstream upgrade
1 year ago
Denis Arnaud 0108fed20c Upstream upgrade
1 year ago
Denis Arnaud 6666ee1fbe Upstream upgrade
1 year ago
Remi Collet 4899b764e8 rebuild for new libsodium
1 year ago
Fedora Release Engineering 690b1cc3cf Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
2 years ago
David Cantrell b06c92b895 Convert License tag to SPDX identifiers
2 years ago
Ben Woodard 0da91cc706 Remove libunwind from dependencies
2 years ago
Fedora Release Engineering c2c0544f92 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
2 years ago
Fedora Release Engineering 9958f38243 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
3 years ago
Fedora Release Engineering 1cff1e4bfa - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
3 years ago
Fedora Release Engineering 5226e5546b - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
4 years ago
Denis Arnaud b11c5a2199 Upstream upgrade
4 years ago
Fedora Release Engineering f46381246b - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
4 years ago
Tom Stellard 135a5bb23b Add BuildRequires: make
4 years ago
Denis Arnaud deb7fbd467 No check for s390x
4 years ago
Denis Arnaud 29fbd797d1 Added dependencies for the man pages
4 years ago
Denis Arnaud 4f322ac6af Upstream upgrade
4 years ago
Fedora Release Engineering 4f02baed80 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
5 years ago
Fedora Release Engineering 862d0b3419 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
5 years ago
Dan Horák d99d0bd41b - libunwind is available on all Fedora arches
5 years ago
Fedora Release Engineering f3609faa1b - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
5 years ago

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

@ -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

@ -2,13 +2,14 @@
%bcond_without unwind
Name: zeromq
Version: 4.3.4
Release: 3%{?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: autoconf
@ -18,11 +19,10 @@ BuildRequires: libtool
BuildRequires: asciidoc
BuildRequires: xmlto
BuildRequires: libsodium-devel
%if %{with unwind}
%ifarch %{arm} aarch64 hppa ia64 mips ppc %{power64} %{ix86} x86_64
BuildRequires: libunwind-devel
%endif
%endif
%if %{with pgm}
BuildRequires: openpgm-devel
@ -51,7 +51,7 @@ developing applications that use %{name}.
%prep
%autosetup -p1 -n libzmq-%{version}
%autosetup -p1
# Remove bundled code.
rm -rf external/wepoll
@ -68,10 +68,9 @@ autoreconf -fi
--with-libgssapi_krb5 \
%endif
--with-libsodium \
--enable-drafts \
%if %{with unwind}
%ifarch %{arm} aarch64 hppa ia64 mips ppc %{power64} %{ix86} x86_64
--enable-libunwind \
%endif
%endif
--disable-Werror \
--disable-static
@ -86,8 +85,9 @@ rm %{buildroot}%{_libdir}/libzmq.la
%check
make check V=1 || ( cat test-suite.log && exit 1 )
%ifarch s390x
make check V=1 XFAIL_TESTS=tests/test_radio_dish || ( cat test-suite.log && exit 1 )
%endif
%ldconfig_scriptlets
@ -95,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_*
@ -109,22 +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-3
- disable building with libunwind to fix C++ exceptions when a C applicaion loads
a module written in C++ #2175966
* Tue Feb 02 2021 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 4.3.4-2
- Re-added aarch64
* Sat Jan 30 2021 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 4.3.4-1
- Upstream upgrade
- Fixes #1921879, #1921972, #1921973, #1921975, #1921976, #1921979, #1921981,
- #1921983, #1921983, #1921985, #1921987, #1921989, #1921992, #1921994
* Wed Sep 16 2020 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 4.3.3-1
- Upstream upgrade
- Fixes #1876738 and #1876689
* Sun Oct 27 2019 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 4.3.2-1
- Initial build for EPEL 8
%autochangelog

Loading…
Cancel
Save