Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/libunwind/, sys-libs/libunwind/files/
Date: Wed, 04 May 2022 05:41:32
Message-Id: 1651642842.d2feb8efe92d2e6eeb738040469e4f2d2ae05749.sam@gentoo
1 commit: d2feb8efe92d2e6eeb738040469e4f2d2ae05749
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 4 05:40:42 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed May 4 05:40:42 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2feb8ef
7
8 sys-libs/libunwind: drop 1.5.0-r1
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 sys-libs/libunwind/Manifest | 1 -
13 .../files/libunwind-1.2-coredump-regs.patch | 16 ---
14 .../files/libunwind-1.2-ia64-missing.patch | 93 ------------------
15 .../files/libunwind-1.2-ia64-ptrace-coredump.patch | 34 -------
16 ....2.1-only-include-execinfo_h-if-avaliable.patch | 53 ----------
17 sys-libs/libunwind/files/libunwind-1.5.0-x32.patch | 17 ----
18 sys-libs/libunwind/libunwind-1.5.0-r1.ebuild | 108 ---------------------
19 7 files changed, 322 deletions(-)
20
21 diff --git a/sys-libs/libunwind/Manifest b/sys-libs/libunwind/Manifest
22 index 2cf810467cc0..7b180086ae0a 100644
23 --- a/sys-libs/libunwind/Manifest
24 +++ b/sys-libs/libunwind/Manifest
25 @@ -1,2 +1 @@
26 -DIST libunwind-1.5.0.tar.gz 878355 BLAKE2B ee35441289926ac22a58bedb9f831d8e13bacd663a99b3ce25eed229f25f0423bbbd90e09e3d62b003518d7a620aa6d15b0dd5b93632736a89fa0667b35d5fc2 SHA512 1df20ca7a8cee2f2e61294fa9b677e88fec52e9d5a329f88d05c2671c69fa462f6c18808c97ca9ff664ef57292537a844f00b18d142b1938c9da701ca95a4bab
27 DIST libunwind-1.6.2.tar.gz 901392 BLAKE2B 3d0313f7e92cbc3e1a84ad3831a5170f21cdf772f1697ca0a59dea63cdd47da382e9f1fd77325d9ff8bcd47559a425dc883a820c646c628cd00faed82cb0f83f SHA512 1d17dfb14f99a894a6cda256caf9ec481c14068aaf8f3a85fa3befa7c7cca7fca0f544a91a3a7c2f2fc55bab19b06a67ca79f55ac9081151d94478c7f611f8f7
28
29 diff --git a/sys-libs/libunwind/files/libunwind-1.2-coredump-regs.patch b/sys-libs/libunwind/files/libunwind-1.2-coredump-regs.patch
30 deleted file mode 100644
31 index 3ddc610d4afc..000000000000
32 --- a/sys-libs/libunwind/files/libunwind-1.2-coredump-regs.patch
33 +++ /dev/null
34 @@ -1,16 +0,0 @@
35 -https://bugs.gentoo.org/586092
36 -
37 -this might not be correct, but at least it builds, and doesn't crash
38 -
39 ---- a/src/coredump/_UCD_access_reg_linux.c
40 -+++ b/src/coredump/_UCD_access_reg_linux.c
41 -@@ -51,6 +51,9 @@ _UCD_access_reg (unw_addr_space_t as,
42 - #elif defined(UNW_TARGET_TILEGX)
43 - if (regnum < 0 || regnum > UNW_TILEGX_CFA)
44 - goto badreg;
45 -+#elif defined(UNW_TARGET_IA64) || defined(UNW_TARGET_HPPA) || defined(UNW_TARGET_PPC32) || defined(UNW_TARGET_PPC64)
46 -+ if (regnum < 0 || regnum >= ARRAY_SIZE(ui->prstatus->pr_reg))
47 -+ goto badreg;
48 - #else
49 - #if defined(UNW_TARGET_MIPS)
50 - static const uint8_t remap_regs[] =
51
52 diff --git a/sys-libs/libunwind/files/libunwind-1.2-ia64-missing.patch b/sys-libs/libunwind/files/libunwind-1.2-ia64-missing.patch
53 deleted file mode 100644
54 index e15250b4c61f..000000000000
55 --- a/sys-libs/libunwind/files/libunwind-1.2-ia64-missing.patch
56 +++ /dev/null
57 @@ -1,93 +0,0 @@
58 -Original libunwind release is missing a few ia64-specific files in tarball.
59 -diff --git a/src/ia64/mk_Gcursor_i.c b/src/ia64/mk_Gcursor_i.c
60 -new file mode 100644
61 -index 0000000..67b14d5
62 ---- /dev/null
63 -+++ b/src/ia64/mk_Gcursor_i.c
64 -@@ -0,0 +1,65 @@
65 -+/* libunwind - a platform-independent unwind library
66 -+ Copyright (C) 2003 Hewlett-Packard Co
67 -+ Contributed by David Mosberger-Tang <davidm@××××××.com>
68 -+
69 -+This file is part of libunwind.
70 -+
71 -+Permission is hereby granted, free of charge, to any person obtaining
72 -+a copy of this software and associated documentation files (the
73 -+"Software"), to deal in the Software without restriction, including
74 -+without limitation the rights to use, copy, modify, merge, publish,
75 -+distribute, sublicense, and/or sell copies of the Software, and to
76 -+permit persons to whom the Software is furnished to do so, subject to
77 -+the following conditions:
78 -+
79 -+The above copyright notice and this permission notice shall be
80 -+included in all copies or substantial portions of the Software.
81 -+
82 -+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
83 -+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
84 -+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
85 -+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
86 -+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
87 -+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
88 -+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
89 -+
90 -+/* Utility to generate cursor_i.h. */
91 -+
92 -+#include "libunwind_i.h"
93 -+
94 -+#ifdef offsetof
95 -+# undef offsetof
96 -+#endif
97 -+
98 -+#define offsetof(type,field) ((char *) &((type *) 0)->field - (char *) 0)
99 -+
100 -+#define OFFSET(sym, offset) \
101 -+ asm volatile("\n->" #sym " %0" : : "i" (offset))
102 -+
103 -+int
104 -+main (void)
105 -+{
106 -+ OFFSET("IP_OFF", offsetof (struct cursor, ip));
107 -+ OFFSET("PR_OFF", offsetof (struct cursor, pr));
108 -+ OFFSET("BSP_OFF", offsetof (struct cursor, bsp));
109 -+ OFFSET("PSP_OFF", offsetof (struct cursor, psp));
110 -+ OFFSET("PFS_LOC_OFF", offsetof (struct cursor, loc[IA64_REG_PFS]));
111 -+ OFFSET("RNAT_LOC_OFF", offsetof (struct cursor, loc[IA64_REG_RNAT]));
112 -+ OFFSET("UNAT_LOC_OFF", offsetof (struct cursor, loc[IA64_REG_UNAT]));
113 -+ OFFSET("LC_LOC_OFF", offsetof (struct cursor, loc[IA64_REG_LC]));
114 -+ OFFSET("FPSR_LOC_OFF", offsetof (struct cursor, loc[IA64_REG_FPSR]));
115 -+ OFFSET("B1_LOC_OFF", offsetof (struct cursor, loc[IA64_REG_B1]));
116 -+ OFFSET("B2_LOC_OFF", offsetof (struct cursor, loc[IA64_REG_B2]));
117 -+ OFFSET("B3_LOC_OFF", offsetof (struct cursor, loc[IA64_REG_B3]));
118 -+ OFFSET("B4_LOC_OFF", offsetof (struct cursor, loc[IA64_REG_B4]));
119 -+ OFFSET("B5_LOC_OFF", offsetof (struct cursor, loc[IA64_REG_B5]));
120 -+ OFFSET("F2_LOC_OFF", offsetof (struct cursor, loc[IA64_REG_F2]));
121 -+ OFFSET("F3_LOC_OFF", offsetof (struct cursor, loc[IA64_REG_F3]));
122 -+ OFFSET("F4_LOC_OFF", offsetof (struct cursor, loc[IA64_REG_F4]));
123 -+ OFFSET("F5_LOC_OFF", offsetof (struct cursor, loc[IA64_REG_F5]));
124 -+ OFFSET("FR_LOC_OFF", offsetof (struct cursor, loc[IA64_REG_F16]));
125 -+ OFFSET("LOC_SIZE",
126 -+ (offsetof (struct cursor, loc[1]) - offsetof (struct cursor, loc[0])));
127 -+ OFFSET("SIGCONTEXT_ADDR_OFF", offsetof (struct cursor, sigcontext_addr));
128 -+ return 0;
129 -+}
130 -diff --git a/src/ia64/mk_Lcursor_i.c b/src/ia64/mk_Lcursor_i.c
131 -new file mode 100644
132 -index 0000000..aee2e7e
133 ---- /dev/null
134 -+++ b/src/ia64/mk_Lcursor_i.c
135 -@@ -0,0 +1,2 @@
136 -+#define UNW_LOCAL_ONLY
137 -+#include "mk_Gcursor_i.c"
138 -diff --git a/src/ia64/mk_cursor_i b/src/ia64/mk_cursor_i
139 -new file mode 100755
140 -index 0000000..9211f91
141 ---- /dev/null
142 -+++ b/src/ia64/mk_cursor_i
143 -@@ -0,0 +1,7 @@
144 -+#!/bin/sh
145 -+test -z "$1" && exit 1
146 -+echo "/* GENERATED */"
147 -+echo "#ifndef cursor_i_h"
148 -+echo "#define cursor_i_h"
149 -+sed -ne 's/^->"\(\S*\)" \(\d*\)/#define \1 \2/p' < $1 || exit $?
150 -+echo "#endif"
151
152 diff --git a/sys-libs/libunwind/files/libunwind-1.2-ia64-ptrace-coredump.patch b/sys-libs/libunwind/files/libunwind-1.2-ia64-ptrace-coredump.patch
153 deleted file mode 100644
154 index 3785d8820cd9..000000000000
155 --- a/sys-libs/libunwind/files/libunwind-1.2-ia64-ptrace-coredump.patch
156 +++ /dev/null
157 @@ -1,34 +0,0 @@
158 -Fix build failure on ia64.
159 - coredump/_UPT_get_dyn_info_list_addr.c
160 -is almost identical to
161 - ptrace/_UPT_get_dyn_info_list_addr.c
162 -It's clearly an __ia64 implementation copy.
163 -diff --git a/src/coredump/_UPT_get_dyn_info_list_addr.c b/src/coredump/_UPT_get_dyn_info_list_addr.c
164 -index 0d11905..176b146 100644
165 ---- a/src/coredump/_UPT_get_dyn_info_list_addr.c
166 -+++ b/src/coredump/_UPT_get_dyn_info_list_addr.c
167 -@@ -31,2 +31,3 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
168 - # include "os-linux.h"
169 -+# include "../ptrace/_UPT_internal.h"
170 -
171 -@@ -40,3 +41,2 @@ get_list_addr (unw_addr_space_t as, unw_word_t *dil_addr, void *arg,
172 - char path[PATH_MAX];
173 -- unw_dyn_info_t *di;
174 - unw_word_t res;
175 -@@ -50,5 +50,5 @@ get_list_addr (unw_addr_space_t as, unw_word_t *dil_addr, void *arg,
176 -
177 -- invalidate_edi (&ui->edi);
178 -+ invalidate_edi(&ui->edi);
179 -
180 -- if (elf_map_image (&ui->ei, path) < 0)
181 -+ if (elf_map_image (&ui->edi.ei, path) < 0)
182 - /* ignore unmappable stuff like "/SYSV00001b58 (deleted)" */
183 -@@ -58,6 +58,5 @@ get_list_addr (unw_addr_space_t as, unw_word_t *dil_addr, void *arg,
184 -
185 -- di = tdep_find_unwind_table (&ui->edi, as, path, lo, off);
186 -- if (di)
187 -+ if (tdep_find_unwind_table (&ui->edi, as, path, lo, off, 0) > 0)
188 - {
189 -- res = _Uia64_find_dyn_list (as, di, arg);
190 -+ res = _Uia64_find_dyn_list (as, &ui->edi.di_cache, arg);
191 - if (res && count++ == 0)
192
193 diff --git a/sys-libs/libunwind/files/libunwind-1.2.1-only-include-execinfo_h-if-avaliable.patch b/sys-libs/libunwind/files/libunwind-1.2.1-only-include-execinfo_h-if-avaliable.patch
194 deleted file mode 100644
195 index b6ba0028c80f..000000000000
196 --- a/sys-libs/libunwind/files/libunwind-1.2.1-only-include-execinfo_h-if-avaliable.patch
197 +++ /dev/null
198 @@ -1,53 +0,0 @@
199 -https://github.com/libunwind/libunwind/commit/6382d6f5c9d4d149989e47b20446f794365137c1
200 -
201 -From 0f3f41a86842f2b19aa07af5242cb775ef9b20d3 Mon Sep 17 00:00:00 2001
202 -From: "Jory A. Pratt" <anarchy@g.o>
203 -Date: Sat, 30 Jun 2018 22:44:22 -0500
204 -Subject: [PATCH] Only include execinfo.h where avaliable
205 -
206 -Signed-off-by: Jory A. Pratt <anarchy@g.o>
207 ----
208 - tests/test-coredump-unwind.c | 8 ++++++--
209 - 1 file changed, 6 insertions(+), 2 deletions(-)
210 -
211 -diff --git a/tests/test-coredump-unwind.c b/tests/test-coredump-unwind.c
212 -index 5254708..33f92b0 100644
213 ---- a/tests/test-coredump-unwind.c
214 -+++ b/tests/test-coredump-unwind.c
215 -@@ -57,7 +57,9 @@
216 - #include <grp.h>
217 -
218 - /* For SIGSEGV handler code */
219 -+#if HAVE_EXECINFO_H
220 - #include <execinfo.h>
221 -+#endif
222 - #include <sys/ucontext.h>
223 -
224 - #include <libunwind-coredump.h>
225 -@@ -202,7 +204,7 @@ void die_out_of_memory(void)
226 - /* End of utility logging functions */
227 -
228 -
229 --
230 -+#if HAVE_EXECINFO_H
231 - static
232 - void handle_sigsegv(int sig, siginfo_t *info, void *ucontext)
233 - {
234 -@@ -249,12 +251,14 @@ void handle_sigsegv(int sig, siginfo_t *info, void *ucontext)
235 -
236 - _exit(1);
237 - }
238 --
239 -+#endif
240 - static void install_sigsegv_handler(void)
241 - {
242 - struct sigaction sa;
243 - memset(&sa, 0, sizeof(sa));
244 -+#if HAVE_EXECINFO_H
245 - sa.sa_sigaction = handle_sigsegv;
246 -+#endif
247 - sa.sa_flags = SA_SIGINFO;
248 - sigaction(SIGSEGV, &sa, NULL);
249 - sigaction(SIGILL, &sa, NULL);
250 ---
251 -2.18.0
252
253 diff --git a/sys-libs/libunwind/files/libunwind-1.5.0-x32.patch b/sys-libs/libunwind/files/libunwind-1.5.0-x32.patch
254 deleted file mode 100644
255 index a3bbc81f45b5..000000000000
256 --- a/sys-libs/libunwind/files/libunwind-1.5.0-x32.patch
257 +++ /dev/null
258 @@ -1,17 +0,0 @@
259 -https://bugs.gentoo.org/614374
260 -
261 -From: kasperk81 <83082615+kasperk81@××××××××××××××××××××.com>
262 -Date: Wed, 30 Jun 2021 23:23:22 +0000
263 -Subject: [PATCH] Fix -mx32 compilation error
264 -
265 ---- a/src/x86_64/Gos-linux.c
266 -+++ b/src/x86_64/Gos-linux.c
267 -@@ -149,7 +149,7 @@ x86_64_sigreturn (unw_cursor_t *cursor)
268 - __asm__ __volatile__ ("mov %0, %%rsp;"
269 - "mov %1, %%rax;"
270 - "syscall"
271 -- :: "r"(sc), "i"(SYS_rt_sigreturn)
272 -+ :: "r"((uint64_t)sc), "i"(SYS_rt_sigreturn)
273 - : "memory");
274 - abort();
275 - }
276
277 diff --git a/sys-libs/libunwind/libunwind-1.5.0-r1.ebuild b/sys-libs/libunwind/libunwind-1.5.0-r1.ebuild
278 deleted file mode 100644
279 index 082fdab6ed88..000000000000
280 --- a/sys-libs/libunwind/libunwind-1.5.0-r1.ebuild
281 +++ /dev/null
282 @@ -1,108 +0,0 @@
283 -# Copyright 2005-2021 Gentoo Authors
284 -# Distributed under the terms of the GNU General Public License v2
285 -
286 -EAPI=7
287 -
288 -MY_PV=${PV/_/-}
289 -MY_P=${PN}-${MY_PV}
290 -inherit autotools flag-o-matic libtool multilib-minimal
291 -
292 -DESCRIPTION="Portable and efficient API to determine the call-chain of a program"
293 -HOMEPAGE="https://savannah.nongnu.org/projects/libunwind"
294 -SRC_URI="mirror://nongnu/libunwind/${MY_P}.tar.gz"
295 -
296 -LICENSE="MIT"
297 -SLOT="0/8" # libunwind.so.8
298 -KEYWORDS="amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 -riscv -sparc x86 ~amd64-linux ~x86-linux"
299 -IUSE="debug debug-frame doc libatomic lzma static-libs zlib"
300 -
301 -RESTRICT="test" # some tests are broken (toolchain version dependent, rely on external binaries)
302 -
303 -# We just use the header from libatomic.
304 -RDEPEND="
305 - lzma? ( app-arch/xz-utils[static-libs?,${MULTILIB_USEDEP}] )
306 - zlib? ( sys-libs/zlib[static-libs?,${MULTILIB_USEDEP}] )
307 -"
308 -DEPEND="${RDEPEND}
309 - libatomic? ( dev-libs/libatomic_ops[${MULTILIB_USEDEP}] )"
310 -
311 -S="${WORKDIR}/${MY_P}"
312 -
313 -MULTILIB_WRAPPED_HEADERS=(
314 - /usr/include/libunwind.h
315 -
316 - # see libunwind.h for the full list of arch-specific headers
317 - /usr/include/libunwind-aarch64.h
318 - /usr/include/libunwind-arm.h
319 - /usr/include/libunwind-hppa.h
320 - /usr/include/libunwind-ia64.h
321 - /usr/include/libunwind-mips.h
322 - /usr/include/libunwind-ppc32.h
323 - /usr/include/libunwind-ppc64.h
324 - /usr/include/libunwind-sh.h
325 - /usr/include/libunwind-tilegx.h
326 - /usr/include/libunwind-x86.h
327 - /usr/include/libunwind-x86_64.h
328 -)
329 -
330 -PATCHES=(
331 - "${FILESDIR}"/${PN}-1.2-coredump-regs.patch #586092
332 - "${FILESDIR}"/${PN}-1.2-ia64-ptrace-coredump.patch
333 - "${FILESDIR}"/${PN}-1.2-ia64-missing.patch
334 - "${FILESDIR}"/${PN}-1.5.0-x32.patch
335 - # needs refresh:
336 - #"${FILESDIR}"/${PN}-1.2.1-only-include-execinfo_h-if-avaliable.patch
337 -)
338 -
339 -src_prepare() {
340 - default
341 - chmod +x src/ia64/mk_cursor_i || die
342 - # Since we have tests disabled via RESTRICT, disable building in the subdir
343 - # entirely. This works around some build errors too. #484846
344 - sed -i -e '/^SUBDIRS/s:tests::' Makefile.in || die
345 -
346 - elibtoolize
347 - eautoreconf
348 -
349 - # Let's wait for proper fix upstream in https://github.com/libunwind/libunwind/issues/154
350 - # Meanwhile workaround for gcc-10 with -fcommon, bug #706560
351 - append-cflags -fcommon
352 -}
353 -
354 -multilib_src_configure() {
355 - # --enable-cxx-exceptions: always enable it, headers provide the interface
356 - # and on some archs it is disabled by default causing a mismatch between the
357 - # API and the ABI, bug #418253
358 - # conservative-checks: validate memory addresses before use; as of 1.0.1,
359 - # only x86_64 supports this, yet may be useful for debugging, couple it with
360 - # debug useflag.
361 - ECONF_SOURCE="${S}" \
362 - ac_cv_header_atomic_ops_h=$(usex libatomic) \
363 - econf \
364 - --enable-cxx-exceptions \
365 - --enable-coredump \
366 - --enable-ptrace \
367 - --enable-setjmp \
368 - $(use_enable debug-frame) \
369 - $(use_enable doc documentation) \
370 - $(use_enable lzma minidebuginfo) \
371 - $(use_enable static-libs static) \
372 - $(use_enable zlib zlibdebuginfo) \
373 - $(use_enable debug conservative_checks) \
374 - $(use_enable debug)
375 -}
376 -
377 -multilib_src_compile() {
378 - # Bug 586208
379 - CCACHE_NODIRECT=1 default
380 -}
381 -
382 -multilib_src_test() {
383 - # Explicitly allow parallel build of tests.
384 - # Sandbox causes some tests to freak out.
385 - SANDBOX_ON=0 emake check
386 -}
387 -
388 -multilib_src_install_all() {
389 - find "${D}" -name "*.la" -type f -delete || die
390 -}