Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/libunwind/
Date: Tue, 14 Feb 2017 02:37:24
Message-Id: 1487038968.eb258b9eeb18342bc81a73e537b766665ed06023.vapier@gentoo
1 commit: eb258b9eeb18342bc81a73e537b766665ed06023
2 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 14 02:22:14 2017 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 14 02:22:48 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb258b9e
7
8 sys-libs/libunwind: version bump to 1.2 #608768
9
10 sys-libs/libunwind/Manifest | 1 +
11 sys-libs/libunwind/libunwind-1.2.ebuild | 92 +++++++++++++++++++++++++++++++++
12 2 files changed, 93 insertions(+)
13
14 diff --git a/sys-libs/libunwind/Manifest b/sys-libs/libunwind/Manifest
15 index 42ca316bb6..84df5e695f 100644
16 --- a/sys-libs/libunwind/Manifest
17 +++ b/sys-libs/libunwind/Manifest
18 @@ -1,2 +1,3 @@
19 DIST libunwind-1.1.tar.gz 1098603 SHA256 9dfe0fcae2a866de9d3942c66995e4b460230446887dbdab302d41a8aee8d09a SHA512 bfe04f2bfac9f9e47c37f0b23ed2f264d8d3d3d6f1392fe9d794ee13cad216b3740979e922e4276fb65c1ccdc836fce48812cb5459ecdd2a89a621036a35d7c1 WHIRLPOOL 1a0e566edf92c0563cb5525203f2718c3454bc0be25ec8079cde8441de08b6d8951db7cbf2f0a02a4a0f1e6c350e74e551a482d9094996daefa216a79bc9d383
20 DIST libunwind-1.2-rc1.tar.gz 1172290 SHA256 d222f186b6bc60f49dac5030516ec35a7ed0ccca675551d6cf81008112116abc SHA512 810cdcf9e1e9a33eb286a6527c2d4bfc507313c596df9cdeb46b1c7b7343ac784fec3ed7c6aa135fc25dbf3e2cd8c99d1fa51e265b63614b51fd37bd84000b08 WHIRLPOOL 655c1eb356990aa35429207f54834da79c8aa83a506b0a51f72d1dafb236095a9420c1ca2f29a0dacb93d063bc244ebbddf5e74097e189df11f0ea7ad50b9447
21 +DIST libunwind-1.2.tar.gz 747369 SHA256 1de38ffbdc88bd694d10081865871cd2bfbb02ad8ef9e1606aee18d65532b992 SHA512 985d0817944e3cafd99aaa5642862d878972e0851f7954289247e808c9319f399ca29342395f0571cb6568a1104a82bd92d585936f2ca888dda37ac796fde0d4 WHIRLPOOL d110ab7243157a617c1a9f01a5e7941cd4a63032317a7a6d372dd656aad9c1b49769909b3f37ff7dbbdb82a21f2d25dc00548cb5cac4d89c2b825b1e5e5fa634
22
23 diff --git a/sys-libs/libunwind/libunwind-1.2.ebuild b/sys-libs/libunwind/libunwind-1.2.ebuild
24 new file mode 100644
25 index 0000000000..a95f69a728
26 --- /dev/null
27 +++ b/sys-libs/libunwind/libunwind-1.2.ebuild
28 @@ -0,0 +1,92 @@
29 +# Copyright 1999-2017 Gentoo Foundation
30 +# Distributed under the terms of the GNU General Public License v2
31 +
32 +EAPI="5"
33 +
34 +MY_PV=${PV/_/-}
35 +MY_P=${PN}-${MY_PV}
36 +inherit eutils libtool multilib-minimal
37 +
38 +DESCRIPTION="Portable and efficient API to determine the call-chain of a program"
39 +HOMEPAGE="https://savannah.nongnu.org/projects/libunwind"
40 +SRC_URI="http://download.savannah.nongnu.org/releases/libunwind/${MY_P}.tar.gz"
41 +
42 +LICENSE="MIT"
43 +SLOT="7"
44 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
45 +IUSE="debug debug-frame doc libatomic lzma static-libs"
46 +
47 +RESTRICT="test" #461958 -- re-enable tests with >1.1 again for retesting, this is here for #461394
48 +
49 +# We just use the header from libatomic.
50 +RDEPEND="lzma? ( app-arch/xz-utils )"
51 +DEPEND="${RDEPEND}
52 + libatomic? ( dev-libs/libatomic_ops )"
53 +
54 +QA_DT_NEEDED_x86_fbsd="usr/lib/libunwind.so.7.0.0"
55 +
56 +S="${WORKDIR}/${MY_P}"
57 +
58 +MULTILIB_WRAPPED_HEADERS=(
59 + /usr/include/libunwind.h
60 +
61 + # see libunwind.h for the full list of arch-specific headers
62 + /usr/include/libunwind-aarch64.h
63 + /usr/include/libunwind-arm.h
64 + /usr/include/libunwind-hppa.h
65 + /usr/include/libunwind-ia64.h
66 + /usr/include/libunwind-mips.h
67 + /usr/include/libunwind-ppc32.h
68 + /usr/include/libunwind-ppc64.h
69 + /usr/include/libunwind-sh.h
70 + /usr/include/libunwind-tilegx.h
71 + /usr/include/libunwind-x86.h
72 + /usr/include/libunwind-x86_64.h
73 +)
74 +
75 +src_prepare() {
76 + # These tests like to fail. bleh.
77 + echo 'int main(){return 0;}' > tests/Gtest-dyn1.c
78 + echo 'int main(){return 0;}' > tests/Ltest-dyn1.c
79 +
80 + # Since we have tests disabled via RESTRICT, disable building in the subdir
81 + # entirely. This worksaround some build errors too. #484846
82 + sed -i -e '/^SUBDIRS/s:tests::' Makefile.in || die
83 +
84 + elibtoolize
85 +}
86 +
87 +multilib_src_configure() {
88 + # --enable-cxx-exceptions: always enable it, headers provide the interface
89 + # and on some archs it is disabled by default causing a mismatch between the
90 + # API and the ABI, bug #418253
91 + # conservative-checks: validate memory addresses before use; as of 1.0.1,
92 + # only x86_64 supports this, yet may be useful for debugging, couple it with
93 + # debug useflag.
94 + ECONF_SOURCE="${S}" \
95 + ac_cv_header_atomic_ops_h=$(usex libatomic) \
96 + econf \
97 + --enable-cxx-exceptions \
98 + --enable-coredump \
99 + --enable-ptrace \
100 + --enable-setjmp \
101 + $(use_enable debug-frame) \
102 + $(use_enable doc documentation) \
103 + $(use_enable lzma minidebuginfo) \
104 + $(use_enable static-libs static) \
105 + $(use_enable debug conservative_checks) \
106 + $(use_enable debug)
107 +}
108 +
109 +multilib_src_test() {
110 + # Explicitly allow parallel build of tests.
111 + # Sandbox causes some tests to freak out.
112 + SANDBOX_ON=0 emake check
113 +}
114 +
115 +multilib_src_install() {
116 + default
117 + # libunwind-ptrace.a (and libunwind-ptrace.h) is separate API and without
118 + # shared library, so we keep it in any case
119 + use static-libs || find "${ED}"usr '(' -name 'libunwind-generic.a' -o -name 'libunwind*.la' ')' -delete
120 +}