From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A4B32139694 for ; Mon, 15 May 2017 10:01:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BA9E7E0CB9; Mon, 15 May 2017 10:01:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 821A9E0CB9 for ; Mon, 15 May 2017 10:01:04 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 29E0933BE18 for ; Mon, 15 May 2017 10:01:03 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8A9887447 for ; Mon, 15 May 2017 10:01:01 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1494842450.a48ec0a85e36706424dbdac3192a508c6206f3c1.whissi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/zeromq/, net-libs/zeromq/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-libs/zeromq/files/zeromq-4.2.1-disable-experimental-zmq_poll-implementation.patch net-libs/zeromq/zeromq-4.2.2-r1.ebuild X-VCS-Directories: net-libs/zeromq/files/ net-libs/zeromq/ X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: a48ec0a85e36706424dbdac3192a508c6206f3c1 X-VCS-Branch: master Date: Mon, 15 May 2017 10:01:01 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 5e245830-562d-4604-8b7b-36c48d3a3bfd X-Archives-Hash: 86a264116d9c5b56e0d5627d814498da commit: a48ec0a85e36706424dbdac3192a508c6206f3c1 Author: Thomas Deutschmann gentoo org> AuthorDate: Mon May 15 10:00:50 2017 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Mon May 15 10:00:50 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a48ec0a8 net-libs/zeromq: Rev bump to disable exp. zmq_poll implementation A feature under development has sneaked in as active by default in the recent releases of libzmq. This feature completely changes the internal implementation for zmq_poll, a very widely used API, and as such upstream do not believe this should be shipped yet, hence the initial severity choice. Debian-Bug: https://bugs.debian.org/861416 Package-Manager: Portage-2.3.5, Repoman-2.3.2 ...able-experimental-zmq_poll-implementation.patch | 35 +++++++++++++ net-libs/zeromq/zeromq-4.2.2-r1.ebuild | 57 ++++++++++++++++++++++ 2 files changed, 92 insertions(+) diff --git a/net-libs/zeromq/files/zeromq-4.2.1-disable-experimental-zmq_poll-implementation.patch b/net-libs/zeromq/files/zeromq-4.2.1-disable-experimental-zmq_poll-implementation.patch new file mode 100644 index 00000000000..3efe2153bfa --- /dev/null +++ b/net-libs/zeromq/files/zeromq-4.2.1-disable-experimental-zmq_poll-implementation.patch @@ -0,0 +1,35 @@ +From 90c76fbd6069b8e1e98236f31317ed22792ab739 Mon Sep 17 00:00:00 2001 +From: Luca Boccassi +Date: Fri, 28 Apr 2017 16:08:46 +0100 +Subject: [PATCH] Problem: new zmq_poller used by zmq_poll without DRAFTs + +Solution: do not define ZMQ_HAVE_POLLER in src/zmq_drafts.h otherwise +src/zmq.cpp will implement zmq_poll using the new poller classes. +Same for ZMQ_HAVE_TIMERS, even though it has no internal effect, but +to be safe against future development. +--- + src/zmq_draft.h | 4 ---- + 1 file changed, 4 deletions(-) + +diff --git a/src/zmq_draft.h b/src/zmq_draft.h +index bfbf9e3..9aed6dd 100644 +--- a/src/zmq_draft.h ++++ b/src/zmq_draft.h +@@ -67,8 +67,6 @@ const char *zmq_msg_group(zmq_msg_t *msg); + /* Poller polling on sockets,fd and thread-safe sockets */ + /******************************************************************************/ + +-#define ZMQ_HAVE_POLLER +- + typedef struct zmq_poller_event_t + { + void *socket; +@@ -103,8 +101,6 @@ int zmq_poller_remove_fd (void *poller, int fd); + /* Scheduling timers */ + /******************************************************************************/ + +-#define ZMQ_HAVE_TIMERS +- + typedef void (zmq_timer_fn)(int timer_id, void *arg); + + void *zmq_timers_new (void); diff --git a/net-libs/zeromq/zeromq-4.2.2-r1.ebuild b/net-libs/zeromq/zeromq-4.2.2-r1.ebuild new file mode 100644 index 00000000000..995ecf31a70 --- /dev/null +++ b/net-libs/zeromq/zeromq-4.2.2-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit autotools + +DESCRIPTION="A brokerless kernel" +HOMEPAGE="http://www.zeromq.org/" +SRC_URI="https://github.com/zeromq/libzmq/releases/download/v${PV}/${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0/5" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +IUSE="pgm +sodium static-libs test" + +RDEPEND=" + sys-libs/libunwind + sodium? ( dev-libs/libsodium:= ) + pgm? ( =net-libs/openpgm-5.2.122 )" +DEPEND="${RDEPEND} + app-text/asciidoc + app-text/xmlto + sys-apps/util-linux + pgm? ( virtual/pkgconfig )" + +PATCHES=( "${FILESDIR}"/${PN}-4.2.1-disable-experimental-zmq_poll-implementation.patch ) + +src_prepare() { + sed \ + -e '/libzmq_werror=/s:yes:no:g' \ + -i configure.ac || die + default + eautoreconf +} + +src_configure() { + local myeconfargs=( + --enable-shared + $(use_enable static-libs static) + $(use_with sodium libsodium) + $(use_with pgm) + ) + 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}"usr/lib* -name '*.la' -delete || die +}