From: "Justin Lecher" <jlec@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/zeromq/files/, net-libs/zeromq/
Date: Sat, 10 Dec 2016 11:43:25 +0000 (UTC) [thread overview]
Message-ID: <1481370204.c116ae0e559dad258e3cfe8e641d55feab2b634b.jlec@gentoo> (raw)
commit: c116ae0e559dad258e3cfe8e641d55feab2b634b
Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 10 11:43:08 2016 +0000
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Sat Dec 10 11:43:24 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c116ae0e
net-libs/zeromq: Backport fix for underlinking
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=602230
Package-Manager: portage-2.3.3
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
.../zeromq/files/zeromq-4.2.0-dl-backport.patch | 25 ++++++++++++++++++++++
net-libs/zeromq/zeromq-4.2.0.ebuild | 6 +++++-
2 files changed, 30 insertions(+), 1 deletion(-)
diff --git a/net-libs/zeromq/files/zeromq-4.2.0-dl-backport.patch b/net-libs/zeromq/files/zeromq-4.2.0-dl-backport.patch
new file mode 100644
index 00000000..c00001d
--- /dev/null
+++ b/net-libs/zeromq/files/zeromq-4.2.0-dl-backport.patch
@@ -0,0 +1,25 @@
+From 1b3fcbd3eead8f1f59f3e9472319d58ce6b52bb7 Mon Sep 17 00:00:00 2001
+From: Luca Boccassi <luca.boccassi@gmail.com>
+Date: Thu, 10 Nov 2016 22:49:41 +0000
+Subject: [PATCH] Problem: linker fails looking for dladdr
+
+Solution: search and add it via AC_CHECK_LIB when building with
+libunwind, as the backtrace function uses dladdr. This problem
+only appears on some distributions and with some compiler/toolchain
+versions.
+---
+ configure.ac | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/configure.ac b/configure.ac
+index 4fb2757..d548f9f 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -650,6 +650,7 @@ PKG_CHECK_MODULES(LIBUNWIND, [libunwind],
+ AC_DEFINE(HAVE_LIBUNWIND, 1, [The libunwind library is to be used])
+ AC_SUBST([LIBUNWIND_CFLAGS])
+ AC_SUBST([LIBUNWIND_LIBS])
++ AC_CHECK_LIB([dl], [dladdr])
+ ],
+ [
+ AC_MSG_WARN([Cannot find libunwind])
diff --git a/net-libs/zeromq/zeromq-4.2.0.ebuild b/net-libs/zeromq/zeromq-4.2.0.ebuild
index f43dcbd..c6b044a 100644
--- a/net-libs/zeromq/zeromq-4.2.0.ebuild
+++ b/net-libs/zeromq/zeromq-4.2.0.ebuild
@@ -24,6 +24,10 @@ DEPEND="${RDEPEND}
sys-apps/util-linux
pgm? ( virtual/pkgconfig )"
+PATCHES=(
+ "${FILESDIR}"/${P}-dl-backport.patch
+)
+
src_prepare() {
sed \
-e '/libzmq_werror=/s:yes:no:g' \
@@ -51,5 +55,5 @@ src_test() {
src_install() {
default
- find "${ED}"usr/lib* -name '*.la' -o -name '*.a' -delete || die
+ find "${ED}"usr/lib* -name '*.la' -delete || die
}
next reply other threads:[~2016-12-10 11:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-10 11:43 Justin Lecher [this message]
-- strict thread matches above, loose matches on Subject: below --
2019-01-15 21:27 [gentoo-commits] repo/gentoo:master commit in: net-libs/zeromq/files/, net-libs/zeromq/ Thomas Deutschmann
2023-03-11 17:15 Sam James
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1481370204.c116ae0e559dad258e3cfe8e641d55feab2b634b.jlec@gentoo \
--to=jlec@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox