Skip to content

Commit

Permalink
libzmq: Autospec creation for update from version 4.3.4 to version 4.3.5
Browse files Browse the repository at this point in the history
Abael He (2):
      Permission to Relicense under relevant approved license
      Problem: some tools misdetect null access or broken libsodium implementation

Abama cai (2):
      Problem: get_opt function read the options value maybe not thread safe
      Add RELICENSE statement

Abama.cai (1):
      Update tongsong-cai.md

Arnaud Loonstra (2):
      deprecate sprint and replace with snprintf
      treat bind errors as a protocol_error instead of connection_error preventing an infinite loop of trying to create the udp socket as through the protocol_error the creation of the socket fails

Benjamin Deroche (7):
      Problem: Outdated Android build tools
      Problem: Android build script isn't compatible with latest NDK version (#4278)
      Problem: Android build scripts does not work with latest NDK versions
      Problem: Accidentaly deleted a comment when updating Android build scripts
      Problem: Libs crash at runtime on Android when built with NDK 23+
      Revert "Problem: Libs crash at runtime on Android when built with NDK 23+"
      Problem: Default Android NDK version is not aligned with zproject

Bill Torpey (6):
      - fix formatting problems in .clang-tidy options
      add suppressions for clang-tidy-10 on ubuntu:
      ZMQ_RECONNECT_STOP options are intended to be inclusive (i.e., can be OR'ed together),  and so values must be powers of two
      fixes for UBSAN warnings (#4223)
      default to not building tests if cmake version can't handle skipped tests (#4376)
      avoid intermittent timeouts in test (esp. when run w/ASAN etc.)

Björn Strömberg (1):
      Problem: no relicense agreement by bjornstromberg

Brett Viren (1):
      A clean-room implementation of zmq_proxy_steerable().

Chengye Ke (1):
      Support so_busy_poll (#4188)

Chris Thrasher (3):
      Use standard C11 and C++11
      Add RELICENSE statement
      Correct messages about whether or not the draft API is being built

Cornelius (1):
      Problem: long flag isn't set for subscriptions if topic has between 246 and 255 characters (#4564)

Daira Hopwood (1):
      #4494 added calls to snprintf, but did not take into account that snprintf

Darkdragon-001 (2):
      Fix pkgconfig
      Add RELICENSE.

David Gloe (2):
      Problem: Fix fork detection on gcc 7
      Problem: Missing relicense statement for dgloe-hpe

Dennis Gosnell (2):
      Problem: don't link to openpgm when building with cmake
      Problem: no relicense agreement by cdepillabout

Dimitris Apostolou (2):
      Fix typos
      Add relicense statement

Doron Somech (2):
      problem: outpipe can be null when sending disconnect msg
      problem: no way to know when connection is temporarly dropped

E. G. Patrick Bos (3):
      add relicense statement for egpbos
      add zmq_ppoll
      Problem: when linking to libzmq in my project, I want zmq symbols to remain invisible to users of my library. There is no way to control this, since visibility is set automatically through ZMQ_EXPORT based on OS and compiler.

FeRD (Frank Dana) (1):
      Problem: Docs reference outdated spec

Francesco Montorsi (2):
      Fix typo in zmq_socket_monitor_versioned docs (#4458)
      Add ZMQ_TOPICS_COUNT socket option (#4459)

Gudmundur Adalsteinsson (5):
      Problem: C style malloc and free
      Problem: Unused member variables _last_in
      Problem: strtok is not thread safe
      Problem: fast vector resize bug
      Problem: Invalid and inconsistent poller docs

Guillaume DELACOURT (3):
      When setting thread priority, always set the value to zero when the policy is not compatible. Also, only call nice when the priority is set to a strictly positive value.
      Checks for pthread setname and setaffinity API are compilation checks, not execution checks.
      Always allow DNS when resolving TCP and UDP adresses. DNS resolution is done after interface resolution, so it can always be enabled to have a fallback mecanism on hostname resolution.

Guilloux Stephan (Ubuntu) (10):
      Problem: Android build system needs some debug (./configure options)
      TAB -> SPACE
      Problem: Android CI build helper has no trace function.
      Problem: Android helpers have duplicate init code.
      Problem: android_download_ndk can be more 'autonomous'.
      Problem: android_clone_library() review
      Problem: android_build_library can be more robust & generic
      Enriched Android helpers
      Problem: Android dependencies are downloaded in an hard-coded /tmp/tmp-deps.
      Android helpers minor fixes.

Han Gao (1):
      fix: fix build on qemu-user

Hennadii Stepanov (1):
      Replace `egrep` with `grep -E`

Ilya Kondrashkin (1):
      Problem: message can't be received due to signal

Jack·Boos·Yu (1):
      [document] add vcpkg instruction (#4425)

James Choi (2):
      Add support for QNX 7.1 build
      Add RELICENSE for James Choi

James Wu (1):
      fix test comparison between -1 and unsigned winsock2.h socket return

Jasper Bekkers (2):
      Fix minor casing issue in include files
      Add relicense

Jeff Weston (2):
      Add NORM Transport configuration sockopts (#4541)
      Change NORM to set TTL using MULTICAST_HOPS sockopt (#4552)

Jeffery Weston (1):
      fix assert error on late-joining subscriber after publisher has filled NORM buffer

Jose Santiago (5):
      Fix Fedora33 s390x build.
      Add Relicense statement.
      MINGW Build Fix.
      Fix MINGW with pthread cv
      Fix Build BSD

Keith Williams (3):
      extend tipc check to support Android under Termux
      remove c99 extention from c++11  code
      Add RELICENSE for Keith Williams

Koby Boyango (1):
      Fix iOS build failure for x86_64

Krzysztof Rosiński (2):
      fix missing sodium link_directories
      add relicense note

Leander Schulten (2):
      Don't assume that GnuTLS is on the search path
      license

Lingqiao Zhao (1):
      Problem: exception thrown when debugging cl.exe x64 build with LLDB (#4129)

Luca Boccassi (60):
      Problem: 4.3.4 is out, need new version
      Problem: wrong year in NEWS for 4.3.4
      Problem: test_pubsub broken everywhere
      Add relicense grant by eponsko
      Problem: formatting errors
      Problem: vmci tests built in repo root
      Problem: VMCI build broken
      Problem: no CI coverage for VMCI transport
      rpm: run make check in %check area
      rpm: fix Group metadata
      rpm: fix license shortname
      Problem: compiler error with GCC 11
      Problem: travis badge points to old travis-ci.org
      Problem: build with curve fails on GCC 11
      Problem: build/test breakages on various distros are discovered only after merge
      Problem: test_inproc_connect occasionally fails on slow archs
      Problem: formatting is broken
      Problem: wepoll is out of date, known issues on Windows
      Problem: Appveyor build fails to clone libsodium
      Problem: OSX Travis builds using homebrew are timing out
      Problem: appveyor has broken libsodium cache
      Problem: formatting broken
      Problem: README.md does not mention Libera.chat
      Problem: test_pair_tcp_cap_net_admin requires privileges and might fail
      Problem: VMCI might not be supported by CI
      Problem: formatting errors
      Problem: some tests time out in CI under Valgrind
      Problem: test_socks and test_proxy hang under valgrind in Github Actions
      Problem: test_security_curve always fails when run by CMake under Github Actions
      Problem: some tests occasionally fail on OBS
      Problem: Travis is no longer free for FLOSS projects
      Problem: OBS CI config needs update following breaking change
      Problem: formatting broken
      Add relicense grant from hitstergtd
      Problem: build fails with gcc 12
      Problem: manual release OBS trigger is flaky
      Problem: cannot use obs_scm which is faster than tar_scm
      Problem: build fails with PGM + CXX98 + clang++
      Problem: windows-2016 build no longer runs in CI
      Problem: missing VMCI can also return EPROTONOSUPPORT and the tests fail
      Problem: formatting errors with clang-format-11
      Problem: libsodium doesn't build anymore in VS2010
      Problem: shipping binaries is a responsibility that requires time
      Problem: address sanitizer complains about uninitialised func pointer
      Problem: buffer overflow in new test case
      Problem: test_zmq_ppol_signals uses fixed TCP port
      Problem: test_zmq_ppoll_signals does not cleanup context
      Problem: VMCI tests are not skipped outside VMs
      Problem: test_filter_ipc is flacky
      Problem: no permission to relicense zmq_proxy_steerable
      Problem: no permission to relicense tweetnacl integration
      Problem: no permission to relicense ZMQ_RECONNECT_IVL_MAX
      Relicense from LGPL3 + exceptions to Mozilla Public License version 2.0
      Remove RELICENSE/ directory
      Problem: trailing whitespace
      Problem: docs for ZMQ_RECONNECT_IVL_MAX are stubs
      spec: remove duplicated macros
      spec: do not attempt to install curve_keygen if curve is disabled
      obs: trigger build on merge
      Update NEWS for 4.3.5

Marco Casaroli (3):
      Use parenthesis for alloc_assert macro
      Do not break if malloc size is zero
      Add RELICENSE for Marco Casaroli

Mark Jan van Kampen (1):
      Problem: newer cmake versions set CMAKE_C(XX)_FLAGS at a later stage not allowing a user to override the standard

Martin Delille (2):
      Add conan badge
      Add relicense statement

Michael Ngarimu (2):
      Problem: (Windows) /GL /LTCG breaks builds when the compiler/linker of static library differs from compiler/linker of executable
      Adding missing RELICENSE file

Min RK (4):
      [appveyor] upload artifacts to GitHub releases
      Problem: calling randombytes_close with libsodium can crash Contexts in other threads (#4242)
      check rc in make_fdpair
      AF_UNIX support may fail on bind

Nehal Patel (1):
      Problem: unused variables warnings

Nevin Valsaraj (2):
      Problem: Incorrect formatting of documentation in zmq_udp.txt
      Add relicense for nevalsar

Nicolas Benes (3):
      Add missing pkg_config_defines when built with CMake
      RELICENSE: add statement
      Fix pkg_config_defines in CMakeFile

Niyas Sait (4):
      Get cycle count from ARM64 PMCCNTR_EL0 register
      add relicense for niyas sait
      Fix linting error reported by clang-format
      add win/arm64 to supported platform list

Patrick Bos (1):
      fix unused parameter warning when POLL_BASED_ON_SELECT

Patrick Trantham (1):
      Add license file for tranthamp

Paul Thiele (2):
      Problem: if ZMQ_XPUB_VERBOSER is used with proxies unsubscribe messages are lost
      Problem: no relicense agreement by thielepaul

Qqzk (2):
      Create qzkLicense
      Update decoder_allocators.cpp

Rosen Penev (1):
      fix unused variables under windows

Sascha van Vliet (2):
      Fix crash in context with wide characters in path
      Add missing relicense agreement

Sergei Trofimovich (1):
      src/secure_allocator.hpp: define missing 'rebind' type

Sergey Fedorov (2):
      tests: use NOT APPLE instead of NOT MATCHES Clang
      Add relicense statement

Stephan Guilloux (4):
      Problem: Android APP fails to load ZMQ since NDK r25.x (#4437)
      Problem: Android APP fails to load ZMQ (ARM64 only) (#4442)
      Problem: Android build environment variables need clarifications. (#4443)
      Problem: Android NDK 22 download broken since support of NDK 23. (#4444)

Stephan Guilloux (cos) (14):
      Problem: builds/android/build.sh fails with CURVE=libsodium
      Changed more git:gihub.com to https://github.com
      Problem: Android helpers no not validate dependent libraries.
      Problem: Android build script may fail silently
      Problem: Android CI build scripts need minor enhancements (traces & cleanup).
      Regression: Android build fails with libsodium.
      Problem: Android CI build tools does not support LIBSODIUM_ROOT
      Problem: Android helpers should export more compilation chain related variables
      Problem: Android helpers must provide build/clone functions.
      Problem: Android docker image is outdated.
      Problem: Android build documentation to be updated.
      Android minor fix in documentation.
      Android specific documentation update.
      Problem: Main documentation refers to Android NDK 24, when 25 is currently in use.

Stephan Guilloux (home) (3):
      Added RELICENSE statement
      More enhancements and configuration variables to Android CI build scripts.
      Documentation update.

Stephan Lachnit (4):
      CMake: fix not defining pollset in platform.hpp
      CMake: fix devpoll detection not working properly
      CMake: properly set ZMQ_HAVE_OPENPGM and ZMQ_HAVE_VMCI
      RELICENSE: add statement

Stéphane Valès (1):
      Problem: relicensing forced to remove support for ZMQ_RECONNECT_IVL_MAX option

Tarmo Tänav (2):
      Problem: XPUB socket allows manual subscription on terminated pipe
      Problem: ROUTER loses first frame metadata on message prefetch

Tarn W. Burton (2):
      Update fd slot type to zmq_fd_t
      Add RELICENSE for yitzchak

Teebonne (2):
      sodium, not Sodium
      Create Teebonne.md

Tim Blechmann (3):
      relicense: add relicense statement for tim blechmann
      add missing override statements
      epoll: add missing override statement

Tobias Schlüter (1):
      Remove Windows-specific defines from zmq.h.

Wojciech Kula (1):
      Add relicense statement for Cziken

Yunye Pu (2):
      Problem: WSS broken under contention
      Add relicense statement for Yunye Pu

bjornstromberg (1):
      Problem: merged pr-4432 broke FindSodium on linux

boscosiu (1):
      Problem: ZMQ_BUILD_DRAFT_API define is not propagated to dependent CMake projects

fanquake (2):
      problem: typo in configure.ac output
      problem: kevent udata is now void* on NetBSD Current (10)

mjvankampen (2):
      Problem: norm fails to compile under windows (#4123)
      Problem: polling_util.hpp missing sys/select.h include (#4283)

myd7349 (2):
      Problem: In rare cases, afunix.h doesn't contain a definition for struct sockaddr_un (#4310)
      Problem: struct sockaddr_un redefinition

patrick-volante (2):
      Problem: inside the event array, epoll return an event with invalid data pointer which create a segmentation fault
      issue-4312 Add relicnce file.

sab24 (3):
      Fixes Firefox WebSocket upgrade request in WebSocket engine
      Fixes indentation
      Adds RELICENSE

sabotagebeats (2):
      fix: building libzmq fails with error src/clock.cpp:131:16: error: unused variable 'nsecs_per_usec'
      fix: relicense

Đorđije Manojlović (2):
      Problem: Handshake timeout error with ZMTP_2_0
      Add RELICENSE statement

0MQ version 4.3.5 stable, released on 2023/10/09
================================================

* Relicensing from LGPL-3.0+ (with custom exceptions) to MPL-2.0 is now complete.
  libzmq is now distributed under the Mozilla Public License 2.0. Relicensing
  grants have been collected from all relevant authors, and some functionality
  has been clean-room reimplemented where that was not possible. In layman terms,
  the new license provides the same rights and obligations as before. Source
  files are now tagged using the SPDX license identifier format.
  Details of the relicensing process can be seen at:
  zeromq/libzmq#2376
  Relicensing grants have been archived at:
  https://github.com/rlenferink/libzmq-relicense
  A special thanks to everybody who helped with this long and difficult task,
  with the process, the reimplementations, the collections and everything else.

(NEWS truncated at 15 lines)
  • Loading branch information
fenrus75 committed Jul 3, 2024
1 parent 6c13882 commit 99afda4
Show file tree
Hide file tree
Showing 8 changed files with 154 additions and 47 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PKG_NAME := libzmq
URL = https://github.com/zeromq/libzmq/releases/download/v4.3.4/zeromq-4.3.4.tar.gz
URL = https://github.com/zeromq/libzmq/releases/download/v4.3.5/zeromq-4.3.5.tar.gz
ARCHIVES =

include ../common/Makefile.common
39 changes: 38 additions & 1 deletion NEWS
Original file line number Diff line number Diff line change
@@ -1,4 +1,41 @@
0MQ version 4.3.4 stable, released on 2020/01/17
0MQ version 4.3.5 stable, released on 2023/10/09
================================================

* Relicensing from LGPL-3.0+ (with custom exceptions) to MPL-2.0 is now complete.
libzmq is now distributed under the Mozilla Public License 2.0. Relicensing
grants have been collected from all relevant authors, and some functionality
has been clean-room reimplemented where that was not possible. In layman terms,
the new license provides the same rights and obligations as before. Source
files are now tagged using the SPDX license identifier format.
Details of the relicensing process can be seen at:
https://github.com/zeromq/libzmq/issues/2376
Relicensing grants have been archived at:
https://github.com/rlenferink/libzmq-relicense
A special thanks to everybody who helped with this long and difficult task,
with the process, the reimplementations, the collections and everything else.

* New DRAFT (see NEWS for 4.2.0) socket options:
- ZMQ_BUSY_POLL will set the SO_BUSY_POLL socket option on the underlying
sockets, if it is supported.
- ZMQ_HICCUP_MSG will send a message when the peer has been disconnected.
- ZMQ_XSUB_VERBOSE_UNSUBSCRIBE will configure a socket to pass all
unsubscription messages, including duplicated ones.
- ZMQ_TOPICS_COUNT will return the number of subscribed topics on a
PUB/SUB socket.
- ZMQ_NORM_MODE, ZMQ_NORM_UNICAST_NACK, ZMQ_NORM_BUFFER_SIZE,
ZMQ_NORM_SEGMENT_SIZE, ZMQ_NORM_BLOCK_SIZE, ZMQ_NORM_NUM_PARITY,
ZMQ_NORM_NUM_AUTOPARITY and ZMQ_NORM_PUSH to control various aspect of
NORM sockets.
See doc/zmq_setsockopt.txt and doc/zmq_getsockopt.txt for details.

* New DRAFT (see NEWS for 4.2.0) zmq_ppoll APIs was added that differs from
zmq_poll in the same way that ppoll differs from poll.
See doc/zmq_ppoll.txt for details.

* Various bug fixes and performance improvements.


0MQ version 4.3.4 stable, released on 2021/01/17
================================================

* New DRAFT (see NEWS for 4.2.0) socket option:
Expand Down
29 changes: 27 additions & 2 deletions configure_misses
Original file line number Diff line number Diff line change
@@ -1,25 +1,50 @@
Configure miss: "with_norm_ext = no"
Configure miss: "with_norm_ext = no"
Configure miss: ./.git
Configure miss: ./.git
Configure miss: _Bool
Configure miss: _Bool
Configure miss: clang-format
Configure miss: stdbool.h that conforms to C99
Configure miss: clang-format
Configure miss: g++ option to enable C++11 features
Configure miss: g++ option to enable C++11 features
Configure miss: g++ options needed to detect all undeclared functions
Configure miss: g++ options needed to detect all undeclared functions
Configure miss: whether C compiler accepts -Wtautological-constant-compare
Configure miss: whether C compiler accepts -Wtautological-constant-compare
Configure miss: whether C++ compiler accepts -Watomic-alignment
Configure miss: whether C++ compiler accepts -Watomic-alignment
Configure miss: whether C++ compiler accepts -Wtautological-constant-compare
Configure miss: whether C++ compiler accepts -Wtautological-constant-compare
Configure miss: whether LOCAL_PEERCRED is declared
Configure miss: whether LOCAL_PEERCRED is declared
Configure miss: whether TCP_KEEPALIVE is supported
Configure miss: whether TCP_KEEPALIVE is supported
Configure miss: whether pthread_set_name_np() exists
Configure miss: whether pthread_set_name_np() exists
Configure miss: whether signature of pthread_setname_np() has 1 argument
Configure miss: whether signature of pthread_setname_np() has 1 argument
Configure miss: whether signature of pthread_setname_np() has 3 arguments
Configure miss: whether strlcpy is available
Configure miss: whether signature of pthread_setname_np() has 3 arguments
Configure miss: whether to enable ASan
Configure miss: whether to enable ASan
Configure miss: whether to enable TSan
Configure miss: whether to enable TSan
Configure miss: whether to enable code coverage
Configure miss: whether to enable code coverage
Configure miss: whether to enable debugging information
Configure miss: whether to enable debugging information
Configure miss: whether we are using Intel C compiler
Configure miss: whether we are using Intel C compiler
Configure miss: whether we are using Intel C++ compiler
Configure miss: whether we are using Intel C++ compiler
Configure miss: whether we are using Sun Studio C compiler
Configure miss: whether we are using Sun Studio C compiler
Configure miss: whether we are using Sun Studio C++ compiler
Configure miss: whether we are using Sun Studio C++ compiler
Configure miss: whether we are using clang C compiler
Configure miss: whether we are using clang C compiler
Configure miss: whether we are using clang C++ compiler
Configure miss: whether we are using clang C++ compiler
Configure miss: x86_64-generic-linux-gnu-getconf
Configure miss: x86_64-generic-linux-gnu-getconf
105 changes: 69 additions & 36 deletions libzmq.spec
Original file line number Diff line number Diff line change
@@ -1,49 +1,44 @@
#
# This file is auto-generated. DO NOT EDIT
# Generated by: autospec.py
# Using build pattern: configure
# autospec version: v13
# autospec commit: dc0ff31
#
%define keepstatic 1
Name : libzmq
Version : 4.3.4
Release : 12
URL : https://github.com/zeromq/libzmq/releases/download/v4.3.4/zeromq-4.3.4.tar.gz
Source0 : https://github.com/zeromq/libzmq/releases/download/v4.3.4/zeromq-4.3.4.tar.gz
Version : 4.3.5
Release : 13
URL : https://github.com/zeromq/libzmq/releases/download/v4.3.5/zeromq-4.3.5.tar.gz
Source0 : https://github.com/zeromq/libzmq/releases/download/v4.3.5/zeromq-4.3.5.tar.gz
Summary : 0MQ c++ library
Group : Development/Tools
License : BSD-2-Clause GPL-3.0 LGPL-3.0 MIT
Requires: libzmq-bin = %{version}-%{release}
License : BSD-2-Clause MIT MPL-2.0-no-copyleft-exception
Requires: libzmq-lib = %{version}-%{release}
Requires: libzmq-license = %{version}-%{release}
Requires: libzmq-man = %{version}-%{release}
BuildRequires : asciidoc
BuildRequires : buildreq-cmake
BuildRequires : buildreq-configure
BuildRequires : pkgconfig(gnutls)
BuildRequires : pkgconfig(krb5-gssapi)
BuildRequires : pkgconfig(libunwind)
BuildRequires : pkgconfig(nss)
BuildRequires : sed
BuildRequires : valgrind
BuildRequires : xmlto
# Suppress stripping binaries
%define __strip /bin/true
%define debug_package %{nil}

%description
This directory holds build tools, i.e. tools we use to build the current
code tree. Packaging tools (which take released tarballs or github code
repos) should go into /packaging.

%package bin
Summary: bin components for the libzmq package.
Group: Binaries
Requires: libzmq-license = %{version}-%{release}

%description bin
bin components for the libzmq package.


%package dev
Summary: dev components for the libzmq package.
Group: Development
Requires: libzmq-lib = %{version}-%{release}
Requires: libzmq-bin = %{version}-%{release}
Provides: libzmq-devel = %{version}-%{release}
Requires: libzmq = %{version}-%{release}

Expand Down Expand Up @@ -86,48 +81,85 @@ staticdev components for the libzmq package.


%prep
%setup -q -n zeromq-4.3.4
cd %{_builddir}/zeromq-4.3.4
%setup -q -n zeromq-4.3.5
cd %{_builddir}/zeromq-4.3.5
pushd ..
cp -a zeromq-4.3.5 buildavx2
popd

%build
export http_proxy=http://127.0.0.1:9/
export https_proxy=http://127.0.0.1:9/
export no_proxy=localhost,127.0.0.1,0.0.0.0
export LANG=C.UTF-8
export SOURCE_DATE_EPOCH=1664930841
export SOURCE_DATE_EPOCH=1719973087
export GCC_IGNORE_WERROR=1
export CFLAGS="$CFLAGS -fno-lto "
export FCFLAGS="$FFLAGS -fno-lto "
export FFLAGS="$FFLAGS -fno-lto "
export CXXFLAGS="$CXXFLAGS -fno-lto "
CLEAR_INTERMEDIATE_CFLAGS="$CLEAR_INTERMEDIATE_CFLAGS -fdebug-types-section -femit-struct-debug-baseonly -fno-lto -g1 -gno-column-info -gno-variable-location-views -gz=zstd "
CLEAR_INTERMEDIATE_FCFLAGS="$CLEAR_INTERMEDIATE_FFLAGS -fdebug-types-section -femit-struct-debug-baseonly -fno-lto -g1 -gno-column-info -gno-variable-location-views -gz=zstd "
CLEAR_INTERMEDIATE_FFLAGS="$CLEAR_INTERMEDIATE_FFLAGS -fdebug-types-section -femit-struct-debug-baseonly -fno-lto -g1 -gno-column-info -gno-variable-location-views -gz=zstd "
CLEAR_INTERMEDIATE_CXXFLAGS="$CLEAR_INTERMEDIATE_CXXFLAGS -fdebug-types-section -femit-struct-debug-baseonly -fno-lto -g1 -gno-column-info -gno-variable-location-views -gz=zstd "
CFLAGS="$CLEAR_INTERMEDIATE_CFLAGS"
CXXFLAGS="$CLEAR_INTERMEDIATE_CXXFLAGS"
FFLAGS="$CLEAR_INTERMEDIATE_FFLAGS"
FCFLAGS="$CLEAR_INTERMEDIATE_FCFLAGS"
ASFLAGS="$CLEAR_INTERMEDIATE_ASFLAGS"
LDFLAGS="$CLEAR_INTERMEDIATE_LDFLAGS"
export GOAMD64=v2
%configure --without-pgm \
--disable-libbsd
make %{?_smp_mflags}

unset PKG_CONFIG_PATH
pushd ../buildavx2/
GOAMD64=v3
CFLAGS="$CLEAR_INTERMEDIATE_CFLAGS -march=x86-64-v3 -Wl,-z,x86-64-v3 "
CXXFLAGS="$CLEAR_INTERMEDIATE_CXXFLAGS -march=x86-64-v3 -Wl,-z,x86-64-v3 "
FFLAGS="$CLEAR_INTERMEDIATE_FFLAGS -march=x86-64-v3 -Wl,-z,x86-64-v3 "
FCFLAGS="$CLEAR_INTERMEDIATE_FCFLAGS -march=x86-64-v3 "
LDFLAGS="$CLEAR_INTERMEDIATE_LDFLAGS -march=x86-64-v3 "
%configure --without-pgm \
--disable-libbsd
make %{?_smp_mflags}
popd
%check
export LANG=C.UTF-8
export http_proxy=http://127.0.0.1:9/
export https_proxy=http://127.0.0.1:9/
export no_proxy=localhost,127.0.0.1,0.0.0.0
make %{?_smp_mflags} check || :
cd ../buildavx2;
make %{?_smp_mflags} check || : || :

%install
export SOURCE_DATE_EPOCH=1664930841
export GCC_IGNORE_WERROR=1
CLEAR_INTERMEDIATE_CFLAGS="$CLEAR_INTERMEDIATE_CFLAGS -fdebug-types-section -femit-struct-debug-baseonly -fno-lto -g1 -gno-column-info -gno-variable-location-views -gz=zstd "
CLEAR_INTERMEDIATE_FCFLAGS="$CLEAR_INTERMEDIATE_FFLAGS -fdebug-types-section -femit-struct-debug-baseonly -fno-lto -g1 -gno-column-info -gno-variable-location-views -gz=zstd "
CLEAR_INTERMEDIATE_FFLAGS="$CLEAR_INTERMEDIATE_FFLAGS -fdebug-types-section -femit-struct-debug-baseonly -fno-lto -g1 -gno-column-info -gno-variable-location-views -gz=zstd "
CLEAR_INTERMEDIATE_CXXFLAGS="$CLEAR_INTERMEDIATE_CXXFLAGS -fdebug-types-section -femit-struct-debug-baseonly -fno-lto -g1 -gno-column-info -gno-variable-location-views -gz=zstd "
CFLAGS="$CLEAR_INTERMEDIATE_CFLAGS"
CXXFLAGS="$CLEAR_INTERMEDIATE_CXXFLAGS"
FFLAGS="$CLEAR_INTERMEDIATE_FFLAGS"
FCFLAGS="$CLEAR_INTERMEDIATE_FCFLAGS"
ASFLAGS="$CLEAR_INTERMEDIATE_ASFLAGS"
LDFLAGS="$CLEAR_INTERMEDIATE_LDFLAGS"
export SOURCE_DATE_EPOCH=1719973087
rm -rf %{buildroot}
mkdir -p %{buildroot}/usr/share/package-licenses/libzmq
cp %{_builddir}/zeromq-%{version}/COPYING %{buildroot}/usr/share/package-licenses/libzmq/99b1a5c7351fd39a26db3b560ce91eec4a3aca3d || :
cp %{_builddir}/zeromq-%{version}/COPYING.LESSER %{buildroot}/usr/share/package-licenses/libzmq/cd024bd665e7b8244ee020856b359e3d7babc454 || :
cp %{_builddir}/zeromq-%{version}/LICENSE %{buildroot}/usr/share/package-licenses/libzmq/d22157abc0fc0b4ae96380c09528e23cf77290a9 || :
cp %{_builddir}/zeromq-%{version}/external/unity/license.txt %{buildroot}/usr/share/package-licenses/libzmq/82d0bcdf2087a772a9517374e2df993d85fb447e || :
cp %{_builddir}/zeromq-%{version}/external/wepoll/license.txt %{buildroot}/usr/share/package-licenses/libzmq/0cf031c01628cf0ee33ed398038238a76ebbd1b7 || :
cp %{_builddir}/zeromq-%{version}/external/wepoll/license.txt %{buildroot}/usr/share/package-licenses/libzmq/34f3af59f7997f370973f96fdc316677f47a813d || :
export GOAMD64=v2
GOAMD64=v3
pushd ../buildavx2/
%make_install_v3
popd
GOAMD64=v2
%make_install
/usr/bin/elf-move.py avx2 %{buildroot}-v3 %{buildroot} %{buildroot}/usr/share/clear/filemap/filemap-%{name}

%files
%defattr(-,root,root,-)

%files bin
%defattr(-,root,root,-)
/usr/bin/curve_keygen

%files dev
%defattr(-,root,root,-)
/usr/include/zmq.h
Expand Down Expand Up @@ -174,6 +206,7 @@ cp %{_builddir}/zeromq-%{version}/external/wepoll/license.txt %{buildroot}/usr/s
/usr/share/man/man3/zmq_msg_size.3
/usr/share/man/man3/zmq_poll.3
/usr/share/man/man3/zmq_poller.3
/usr/share/man/man3/zmq_ppoll.3
/usr/share/man/man3/zmq_proxy.3
/usr/share/man/man3/zmq_proxy_steerable.3
/usr/share/man/man3/zmq_recv.3
Expand All @@ -194,15 +227,15 @@ cp %{_builddir}/zeromq-%{version}/external/wepoll/license.txt %{buildroot}/usr/s

%files lib
%defattr(-,root,root,-)
/V3/usr/lib64/libzmq.so.5.2.5
/usr/lib64/libzmq.so.5
/usr/lib64/libzmq.so.5.2.4
/usr/lib64/libzmq.so.5.2.5

%files license
%defattr(0644,root,root,0755)
/usr/share/package-licenses/libzmq/0cf031c01628cf0ee33ed398038238a76ebbd1b7
/usr/share/package-licenses/libzmq/34f3af59f7997f370973f96fdc316677f47a813d
/usr/share/package-licenses/libzmq/82d0bcdf2087a772a9517374e2df993d85fb447e
/usr/share/package-licenses/libzmq/99b1a5c7351fd39a26db3b560ce91eec4a3aca3d
/usr/share/package-licenses/libzmq/cd024bd665e7b8244ee020856b359e3d7babc454
/usr/share/package-licenses/libzmq/d22157abc0fc0b4ae96380c09528e23cf77290a9

%files man
%defattr(0644,root,root,0755)
Expand Down
16 changes: 14 additions & 2 deletions options.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = libzmq
url = https://github.com/zeromq/libzmq/releases/download/v4.3.4/zeromq-4.3.4.tar.gz
url = https://github.com/zeromq/libzmq/releases/download/v4.3.5/zeromq-4.3.5.tar.gz
archives =
giturl = https://github.com/zeromq/libzmq.git
domain =
Expand All @@ -9,6 +9,8 @@ alias =
[autospec]
# build 32 bit libraries
32bit = false
# allow windows executables (*.exe, *.dll) to be packaged
allow_exe = false
# allow package to build with test failures
allow_test_failures = true
# unset %build ld_as_needed variable
Expand All @@ -19,6 +21,8 @@ autoupdate = false
broken_c++ = false
# disable parallelization during build
broken_parallel_build = false
# create vendor archive with cargo
cargo_vendor = false
# this package is a library compatibility package and only ships versioned library files
compat = false
# set conservative build flags
Expand All @@ -27,6 +31,8 @@ conservative_flags = false
dev_requires_extras = false
# pass -ffast-math to compiler
fast-math = false
# compile full (traditional) debug info
full-debug-info = false
# optimize build for speed over size
funroll-loops = false
# set flags to smallest -02 flags possible
Expand All @@ -35,6 +41,8 @@ insecure_build = false
keepstatic = true
# do not require autostart subpackage
no_autostart = false
# do not use the replacement pattern for file matching
no_glob = false
# do not generate debuginfo for this package
nodebug = false
# disable stripping binaries
Expand All @@ -53,14 +61,18 @@ server = false
skip_tests = false
# add .so files to the lib package instead of dev
so_to_lib = false
# configure build for apx
use_apx = false
# configure build for avx2
use_avx2 = false
use_avx2 = true
# configure build for avx512
use_avx512 = false
# add clang flags
use_clang = false
# configure build for lto
use_lto = false
# use ninja build files
use_ninja = false
# require package verification for build
verify_required = false

2 changes: 1 addition & 1 deletion release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12
13
6 changes: 3 additions & 3 deletions testresults
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Total : 115
Pass : 96
Total : 222
Pass : 190
Fail : 0
Skip : 19
Skip : 32
XFail : 0
2 changes: 1 addition & 1 deletion upstream
Original file line number Diff line number Diff line change
@@ -1 +1 @@
47277a64749049123d1401600e8cfbab10a3ae28/zeromq-4.3.4.tar.gz
bdbf686c8a40ba638e21cf74e34dbb425e108500/zeromq-4.3.5.tar.gz

0 comments on commit 99afda4

Please sign in to comment.