1 |
commit: 1e963ad3f4dad5e68fb4c4571ed70e4735a407a4 |
2 |
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 18 06:30:20 2021 +0000 |
4 |
Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 18 06:31:01 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e963ad3 |
7 |
|
8 |
sys-libs/libunwind: Add release candidate for testing (only) on riscv |
9 |
|
10 |
Closes: https://bugs.gentoo.org/802501 |
11 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
12 |
Signed-off-by: Andreas K. Huettel <dilfridge <AT> gentoo.org> |
13 |
|
14 |
sys-libs/libunwind/Manifest | 1 + |
15 |
sys-libs/libunwind/libunwind-1.6.0_rc2.ebuild | 102 ++++++++++++++++++++++++++ |
16 |
2 files changed, 103 insertions(+) |
17 |
|
18 |
diff --git a/sys-libs/libunwind/Manifest b/sys-libs/libunwind/Manifest |
19 |
index f7df915b276..a755df1496a 100644 |
20 |
--- a/sys-libs/libunwind/Manifest |
21 |
+++ b/sys-libs/libunwind/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST libunwind-1.5.0.tar.gz 878355 BLAKE2B ee35441289926ac22a58bedb9f831d8e13bacd663a99b3ce25eed229f25f0423bbbd90e09e3d62b003518d7a620aa6d15b0dd5b93632736a89fa0667b35d5fc2 SHA512 1df20ca7a8cee2f2e61294fa9b677e88fec52e9d5a329f88d05c2671c69fa462f6c18808c97ca9ff664ef57292537a844f00b18d142b1938c9da701ca95a4bab |
24 |
+DIST libunwind-1.6.0-rc2.tar.gz 900974 BLAKE2B bbf88b6eb0ddf1371a8d69904e7763d2b2892641f88ed985f342962de7b2d19b6201f84422252aa5ca3d6beed7b3af0e2fe1fdb603497dbe68215ebc94942074 SHA512 7b3933c4693595a85182cc11d24527c5ccda3c3af115a3947bdc9877ecb4a77659a2196f559112868b36cd2cdc5623cabef68ad519fd4017c510ee375b97cbe9 |
25 |
|
26 |
diff --git a/sys-libs/libunwind/libunwind-1.6.0_rc2.ebuild b/sys-libs/libunwind/libunwind-1.6.0_rc2.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..2c27a4785c8 |
29 |
--- /dev/null |
30 |
+++ b/sys-libs/libunwind/libunwind-1.6.0_rc2.ebuild |
31 |
@@ -0,0 +1,102 @@ |
32 |
+# Copyright 2005-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+MY_PV=${PV/_/-} |
38 |
+MY_P=${PN}-${MY_PV} |
39 |
+inherit autotools flag-o-matic libtool multilib-minimal |
40 |
+ |
41 |
+DESCRIPTION="Portable and efficient API to determine the call-chain of a program" |
42 |
+HOMEPAGE="https://savannah.nongnu.org/projects/libunwind" |
43 |
+SRC_URI="mirror://nongnu/libunwind/${MY_P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="MIT" |
46 |
+SLOT="0/8" # libunwind.so.8 |
47 |
+#KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv -sparc ~x86 ~amd64-linux ~x86-linux" |
48 |
+KEYWORDS="~riscv" |
49 |
+IUSE="debug debug-frame doc libatomic lzma static-libs zlib" |
50 |
+ |
51 |
+RESTRICT="test" # some tests are broken (toolchain version dependent, rely on external binaries) |
52 |
+ |
53 |
+# We just use the header from libatomic. |
54 |
+RDEPEND=" |
55 |
+ lzma? ( app-arch/xz-utils[static-libs?,${MULTILIB_USEDEP}] ) |
56 |
+ zlib? ( sys-libs/zlib[static-libs?,${MULTILIB_USEDEP}] ) |
57 |
+" |
58 |
+DEPEND="${RDEPEND} |
59 |
+ libatomic? ( dev-libs/libatomic_ops[${MULTILIB_USEDEP}] )" |
60 |
+ |
61 |
+S="${WORKDIR}/${MY_P}" |
62 |
+ |
63 |
+MULTILIB_WRAPPED_HEADERS=( |
64 |
+ /usr/include/libunwind.h |
65 |
+ |
66 |
+ # see libunwind.h for the full list of arch-specific headers |
67 |
+ /usr/include/libunwind-aarch64.h |
68 |
+ /usr/include/libunwind-arm.h |
69 |
+ /usr/include/libunwind-hppa.h |
70 |
+ /usr/include/libunwind-ia64.h |
71 |
+ /usr/include/libunwind-mips.h |
72 |
+ /usr/include/libunwind-ppc32.h |
73 |
+ /usr/include/libunwind-ppc64.h |
74 |
+ /usr/include/libunwind-riscv.h |
75 |
+ /usr/include/libunwind-sh.h |
76 |
+ /usr/include/libunwind-tilegx.h |
77 |
+ /usr/include/libunwind-x86.h |
78 |
+ /usr/include/libunwind-x86_64.h |
79 |
+) |
80 |
+ |
81 |
+PATCHES=( |
82 |
+ # needs refresh: |
83 |
+ #"${FILESDIR}"/${PN}-1.2.1-only-include-execinfo_h-if-avaliable.patch |
84 |
+) |
85 |
+ |
86 |
+src_prepare() { |
87 |
+ default |
88 |
+ chmod +x src/ia64/mk_cursor_i || die |
89 |
+ # Since we have tests disabled via RESTRICT, disable building in the subdir |
90 |
+ # entirely. This works around some build errors too. #484846 |
91 |
+ sed -i -e '/^SUBDIRS/s:tests::' Makefile.in || die |
92 |
+ |
93 |
+ elibtoolize |
94 |
+ eautoreconf |
95 |
+} |
96 |
+ |
97 |
+multilib_src_configure() { |
98 |
+ # --enable-cxx-exceptions: always enable it, headers provide the interface |
99 |
+ # and on some archs it is disabled by default causing a mismatch between the |
100 |
+ # API and the ABI, bug #418253 |
101 |
+ # conservative-checks: validate memory addresses before use; as of 1.0.1, |
102 |
+ # only x86_64 supports this, yet may be useful for debugging, couple it with |
103 |
+ # debug useflag. |
104 |
+ ECONF_SOURCE="${S}" \ |
105 |
+ ac_cv_header_atomic_ops_h=$(usex libatomic) \ |
106 |
+ econf \ |
107 |
+ --enable-cxx-exceptions \ |
108 |
+ --enable-coredump \ |
109 |
+ --enable-ptrace \ |
110 |
+ --enable-setjmp \ |
111 |
+ $(use_enable debug-frame) \ |
112 |
+ $(use_enable doc documentation) \ |
113 |
+ $(use_enable lzma minidebuginfo) \ |
114 |
+ $(use_enable static-libs static) \ |
115 |
+ $(use_enable zlib zlibdebuginfo) \ |
116 |
+ $(use_enable debug conservative_checks) \ |
117 |
+ $(use_enable debug) |
118 |
+} |
119 |
+ |
120 |
+multilib_src_compile() { |
121 |
+ # Bug 586208 |
122 |
+ CCACHE_NODIRECT=1 default |
123 |
+} |
124 |
+ |
125 |
+multilib_src_test() { |
126 |
+ # Explicitly allow parallel build of tests. |
127 |
+ # Sandbox causes some tests to freak out. |
128 |
+ SANDBOX_ON=0 emake check |
129 |
+} |
130 |
+ |
131 |
+multilib_src_install_all() { |
132 |
+ find "${D}" -name "*.la" -type f -delete || die |
133 |
+} |