1 |
commit: ba445c919a88a74e3f8d5f4ac39a144323a7dbae |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 25 23:10:57 2019 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 25 23:11:23 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba445c91 |
7 |
|
8 |
sys-libs/libunwind: add multilib use deps, bug #676204 |
9 |
|
10 |
Hamlet noticed that sys-libs/libunwind does state |
11 |
it's use dependencies against non-default ABIs. |
12 |
|
13 |
Reported-by: Hamlet |
14 |
Closes: https://bugs.gentoo.org/676204 |
15 |
Package-Manager: Portage-2.3.58, Repoman-2.3.12 |
16 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
17 |
|
18 |
sys-libs/libunwind/libunwind-1.2.1-r3.ebuild | 105 +++++++++++++++++++++++++++ |
19 |
1 file changed, 105 insertions(+) |
20 |
|
21 |
diff --git a/sys-libs/libunwind/libunwind-1.2.1-r3.ebuild b/sys-libs/libunwind/libunwind-1.2.1-r3.ebuild |
22 |
new file mode 100644 |
23 |
index 00000000000..27084d43a5b |
24 |
--- /dev/null |
25 |
+++ b/sys-libs/libunwind/libunwind-1.2.1-r3.ebuild |
26 |
@@ -0,0 +1,105 @@ |
27 |
+# Copyright 1999-2019 Gentoo Authors |
28 |
+# Distributed under the terms of the GNU General Public License v2 |
29 |
+ |
30 |
+EAPI=6 |
31 |
+ |
32 |
+MY_PV=${PV/_/-} |
33 |
+MY_P=${PN}-${MY_PV} |
34 |
+inherit autotools eutils libtool multilib-minimal |
35 |
+ |
36 |
+DESCRIPTION="Portable and efficient API to determine the call-chain of a program" |
37 |
+HOMEPAGE="https://savannah.nongnu.org/projects/libunwind" |
38 |
+SRC_URI="mirror://nongnu/libunwind/${MY_P}.tar.gz" |
39 |
+ |
40 |
+LICENSE="MIT" |
41 |
+SLOT="7" |
42 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 -sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" |
43 |
+IUSE="debug debug-frame doc libatomic lzma +static-libs" |
44 |
+ |
45 |
+RESTRICT="test" # half of tests are broken (toolchain version dependent) |
46 |
+ |
47 |
+# We just use the header from libatomic. |
48 |
+RDEPEND="lzma? ( app-arch/xz-utils[${MULTILIB_USEDEP}] )" |
49 |
+DEPEND="${RDEPEND} |
50 |
+ libatomic? ( dev-libs/libatomic_ops[${MULTILIB_USEDEP}] )" |
51 |
+ |
52 |
+S="${WORKDIR}/${MY_P}" |
53 |
+ |
54 |
+MULTILIB_WRAPPED_HEADERS=( |
55 |
+ /usr/include/libunwind.h |
56 |
+ |
57 |
+ # see libunwind.h for the full list of arch-specific headers |
58 |
+ /usr/include/libunwind-aarch64.h |
59 |
+ /usr/include/libunwind-arm.h |
60 |
+ /usr/include/libunwind-hppa.h |
61 |
+ /usr/include/libunwind-ia64.h |
62 |
+ /usr/include/libunwind-mips.h |
63 |
+ /usr/include/libunwind-ppc32.h |
64 |
+ /usr/include/libunwind-ppc64.h |
65 |
+ /usr/include/libunwind-sh.h |
66 |
+ /usr/include/libunwind-tilegx.h |
67 |
+ /usr/include/libunwind-x86.h |
68 |
+ /usr/include/libunwind-x86_64.h |
69 |
+) |
70 |
+ |
71 |
+PATCHES=( |
72 |
+ "${FILESDIR}"/${PN}-1.2-coredump-regs.patch #586092 |
73 |
+ "${FILESDIR}"/${PN}-1.2-ia64-undwarf.patch |
74 |
+ "${FILESDIR}"/${PN}-1.2-ia64-ptrace-coredump.patch |
75 |
+ "${FILESDIR}"/${PN}-1.2-ia64-missing.patch |
76 |
+ "${FILESDIR}"/${PN}-1.2.1-fix_version_macros.patch |
77 |
+ "${FILESDIR}"/${PN}-1.2.1-only-include-execinfo_h-if-avaliable.patch |
78 |
+ "${FILESDIR}"/${PN}-1.2.1-no-PROTECTED.patch #659732 |
79 |
+ "${FILESDIR}"/${PN}-1.2.1-arm-__asm__.patch #635674 |
80 |
+) |
81 |
+ |
82 |
+src_prepare() { |
83 |
+ default |
84 |
+ chmod +x src/ia64/mk_cursor_i || die |
85 |
+ # Since we have tests disabled via RESTRICT, disable building in the subdir |
86 |
+ # entirely. This worksaround some build errors too. #484846 |
87 |
+ sed -i -e '/^SUBDIRS/s:tests::' Makefile.in || die |
88 |
+ |
89 |
+ elibtoolize |
90 |
+ eautoreconf |
91 |
+} |
92 |
+ |
93 |
+multilib_src_configure() { |
94 |
+ # --enable-cxx-exceptions: always enable it, headers provide the interface |
95 |
+ # and on some archs it is disabled by default causing a mismatch between the |
96 |
+ # API and the ABI, bug #418253 |
97 |
+ # conservative-checks: validate memory addresses before use; as of 1.0.1, |
98 |
+ # only x86_64 supports this, yet may be useful for debugging, couple it with |
99 |
+ # debug useflag. |
100 |
+ ECONF_SOURCE="${S}" \ |
101 |
+ ac_cv_header_atomic_ops_h=$(usex libatomic) \ |
102 |
+ econf \ |
103 |
+ --enable-cxx-exceptions \ |
104 |
+ --enable-coredump \ |
105 |
+ --enable-ptrace \ |
106 |
+ --enable-setjmp \ |
107 |
+ $(use_enable debug-frame) \ |
108 |
+ $(use_enable doc documentation) \ |
109 |
+ $(use_enable lzma minidebuginfo) \ |
110 |
+ $(use_enable static-libs static) \ |
111 |
+ $(use_enable debug conservative_checks) \ |
112 |
+ $(use_enable debug) |
113 |
+} |
114 |
+ |
115 |
+multilib_src_compile() { |
116 |
+ # Bug 586208 |
117 |
+ CCACHE_NODIRECT=1 default |
118 |
+} |
119 |
+ |
120 |
+multilib_src_test() { |
121 |
+ # Explicitly allow parallel build of tests. |
122 |
+ # Sandbox causes some tests to freak out. |
123 |
+ SANDBOX_ON=0 emake check |
124 |
+} |
125 |
+ |
126 |
+multilib_src_install() { |
127 |
+ default |
128 |
+ # libunwind-ptrace.a (and libunwind-ptrace.h) is separate API and without |
129 |
+ # shared library, so we keep it in any case |
130 |
+ use static-libs || find "${ED}"usr '(' -name 'libunwind-generic.a' -o -name 'libunwind*.la' ')' -delete |
131 |
+} |