Compare commits

..

12 commits

Author SHA1 Message Date
Ben Woodard
87d2b23d7a disable building with libunwind to fix C++ exceptions when a C applicaion loads
a module written in C++ #2175966
2023-03-08 10:27:05 +01:00
Denis Arnaud
cc57315b80 Re-added aarch64 2021-02-02 01:07:15 +01:00
Denis Arnaud
d0d707e2d0 Attempt to re-enable aarch64 2021-02-01 22:24:19 +01:00
Denis Arnaud
6ebd3f519e Exclude aarch64 2021-01-30 02:52:15 +01:00
Denis Arnaud
765fdd2347 Upstream upgrade
Fixes #1921879, #1921972, #1921973, #1921975, #1921976, #1921979, #1921981,
#1921983, #1921983, #1921985, #1921987, #1921989, #1921992, #1921994
2021-01-30 01:57:26 +01:00
Troy Dawson
623afd6456 remove package.cfg per new epel-playground policy 2020-09-24 16:12:02 +00:00
Denis Arnaud
96389c98eb [Sources] Updated the SHA512 2020-09-16 21:47:29 +02:00
Denis Arnaud
648223801e Upstream upgrade
Fixes #1876738 and #1876689
2020-09-16 21:44:57 +02:00
Denis Arnaud
e1c4775bd4 Improved .gitignore 2019-10-30 21:30:32 +01:00
Denis Arnaud
3202a1a385 Initial build for EPEL 8 2019-10-27 19:40:07 +01:00
Denis Arnaud
b1e4738dda Merge branch 'master' into epel8 2019-10-27 19:37:21 +01:00
Gwyn Ciesla
e029d05949 "Adding package.cfg file" 2019-10-27 10:57:18 -05:00
3 changed files with 31 additions and 51 deletions

View file

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

View file

@ -1,37 +0,0 @@
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,14 +2,13 @@
%bcond_without unwind
Name: zeromq
Version: 4.3.5
Release: %autorelease
Version: 4.3.4
Release: 3%{?dist}
Summary: Software library for fast, message-based applications
License: MPL-2.0 AND BSD-3-Clause AND MIT
License: LGPLv3+
URL: https://zeromq.org
Source0: https://github.com/%{name}/libzmq/archive/v%{version}/%{name}-%{version}.tar.gz
Patch1: zeromq-configure-c99.patch
Source0: https://github.com/%{name}/libzmq/archive/v%{version}/libzmq-%{version}.tar.gz
BuildRequires: make
BuildRequires: autoconf
@ -19,10 +18,11 @@ 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
%autosetup -p1 -n libzmq-%{version}
# Remove bundled code.
rm -rf external/wepoll
@ -68,9 +68,10 @@ 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
@ -85,9 +86,8 @@ rm %{buildroot}%{_libdir}/libzmq.la
%check
%ifarch s390x
make check V=1 XFAIL_TESTS=tests/test_radio_dish || ( cat test-suite.log && exit 1 )
%endif
make check V=1 || ( cat test-suite.log && exit 1 )
%ldconfig_scriptlets
@ -95,7 +95,7 @@ make check V=1 XFAIL_TESTS=tests/test_radio_dish || ( cat test-suite.log && exit
%files
%doc README.md AUTHORS NEWS
%license LICENSE
%license COPYING COPYING.LESSER
%{_bindir}/curve_keygen
%{_libdir}/libzmq.so.5*
%{_mandir}/man3/zmq_*
@ -109,5 +109,22 @@ make check V=1 XFAIL_TESTS=tests/test_radio_dish || ( cat test-suite.log && exit
%changelog
%autochangelog
* 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