Gentoo Archives: gentoo-commits

From: Jory Pratt <anarchy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: sys-libs/libunwind/, sys-libs/libunwind/files/
Date: Mon, 02 Jul 2018 23:44:09
Message-Id: 1530574988.43af8594ee1e3ac8e1507c73a0610470f9bccec8.anarchy@gentoo
1 commit: 43af8594ee1e3ac8e1507c73a0610470f9bccec8
2 Author: Jory A. Pratt <anarchy <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 2 23:43:08 2018 +0000
4 Commit: Jory Pratt <anarchy <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 2 23:43:08 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=43af8594
7
8 sys-libs/libunwind: change committed in main tree
9
10 sys-libs/libunwind/Manifest | 1 -
11 .../files/libunwind-1.2-coredump-regs.patch | 16 ----
12 .../files/libunwind-1.2-ia64-missing.patch | 93 -------------------
13 .../files/libunwind-1.2-ia64-ptrace-coredump.patch | 34 -------
14 .../files/libunwind-1.2-ia64-undwarf.patch | 17 ----
15 .../files/libunwind-1.2.1-fix_version_macros.patch | 13 ---
16 ....2.1-only-include-execinfo_h-if-avaliable.patch | 52 -----------
17 sys-libs/libunwind/libunwind-1.2.1-r1.ebuild | 103 ---------------------
18 sys-libs/libunwind/metadata.xml | 12 ---
19 9 files changed, 341 deletions(-)
20
21 diff --git a/sys-libs/libunwind/Manifest b/sys-libs/libunwind/Manifest
22 deleted file mode 100644
23 index 4155a10..0000000
24 --- a/sys-libs/libunwind/Manifest
25 +++ /dev/null
26 @@ -1 +0,0 @@
27 -DIST libunwind-1.2.1.tar.gz 780774 BLAKE2B a5be4142e1e4932231023bdec2ab3ecd6b707faf2d32d2b571239252a1d0fb6a273a6a46c4a107db63f74f7b54c0c54cf252b8b79ad53216333ba7bcf63147a1 SHA512 af7c280d2a963779a4a2711887618bc96383011e4e5d52e4085aa7fb351e55e357468f6ff85e66a216f1c6826538f498335a917a5970575c93be74c96316319b
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 3ddc610..0000000
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 e15250b..0000000
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 3785d88..0000000
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-ia64-undwarf.patch b/sys-libs/libunwind/files/libunwind-1.2-ia64-undwarf.patch
194 deleted file mode 100644
195 index 1e3e248..0000000
196 --- a/sys-libs/libunwind/files/libunwind-1.2-ia64-undwarf.patch
197 +++ /dev/null
198 @@ -1,17 +0,0 @@
199 -diff --git a/src/mi/Gget_proc_name.c b/src/mi/Gget_proc_name.c
200 -index 5376f82..64d2503 100644
201 ---- a/src/mi/Gget_proc_name.c
202 -+++ b/src/mi/Gget_proc_name.c
203 -@@ -106,8 +106,12 @@ unw_get_proc_name (unw_cursor_t *cursor, char *buf, size_t buf_len,
204 - ip = tdep_get_ip (c);
205 -+#if !defined(__ia64)
206 - if (c->dwarf.use_prev_instr)
207 - --ip;
208 -+#endif
209 - error = get_proc_name (tdep_get_as (c), ip, buf, buf_len, offp,
210 - tdep_get_as_arg (c));
211 -+#if !defined(__ia64)
212 - if (c->dwarf.use_prev_instr && offp != NULL && error == 0)
213 - *offp += 1;
214 -+#endif
215 - return error;
216
217 diff --git a/sys-libs/libunwind/files/libunwind-1.2.1-fix_version_macros.patch b/sys-libs/libunwind/files/libunwind-1.2.1-fix_version_macros.patch
218 deleted file mode 100644
219 index 6320293..0000000
220 --- a/sys-libs/libunwind/files/libunwind-1.2.1-fix_version_macros.patch
221 +++ /dev/null
222 @@ -1,13 +0,0 @@
223 -diff --git a/configure.ac b/configure.ac
224 -index a254bbe..fe0247b 100644
225 ---- a/configure.ac
226 -+++ b/configure.ac
227 -@@ -1,6 +1,6 @@
228 - define(pkg_major, 1)
229 --define(pkg_minor, 2.1)
230 --define(pkg_extra, )
231 -+define(pkg_minor, 2)
232 -+define(pkg_extra, 1)
233 - define(pkg_maintainer, libunwind-devel@××××××.org)
234 - define(mkvers, $1.$2$3)
235 - dnl Process this file with autoconf to produce a configure script.
236
237 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
238 deleted file mode 100644
239 index cc42b15..0000000
240 --- a/sys-libs/libunwind/files/libunwind-1.2.1-only-include-execinfo_h-if-avaliable.patch
241 +++ /dev/null
242 @@ -1,52 +0,0 @@
243 -From 0f3f41a86842f2b19aa07af5242cb775ef9b20d3 Mon Sep 17 00:00:00 2001
244 -From: "Jory A. Pratt" <anarchy@g.o>
245 -Date: Sat, 30 Jun 2018 22:44:22 -0500
246 -Subject: [PATCH] Only include execinfo.h where avaliable
247 -
248 -Signed-off-by: Jory A. Pratt <anarchy@g.o>
249 ----
250 - tests/test-coredump-unwind.c | 8 ++++++--
251 - 1 file changed, 6 insertions(+), 2 deletions(-)
252 -
253 -diff --git a/tests/test-coredump-unwind.c b/tests/test-coredump-unwind.c
254 -index 5254708..33f92b0 100644
255 ---- a/tests/test-coredump-unwind.c
256 -+++ b/tests/test-coredump-unwind.c
257 -@@ -57,7 +57,9 @@
258 - #include <grp.h>
259 -
260 - /* For SIGSEGV handler code */
261 -+#if HAVE_EXECINFO_H
262 - #include <execinfo.h>
263 -+#endif
264 - #include <sys/ucontext.h>
265 -
266 - #include <libunwind-coredump.h>
267 -@@ -202,7 +204,7 @@ void die_out_of_memory(void)
268 - /* End of utility logging functions */
269 -
270 -
271 --
272 -+#if HAVE_EXECINFO_H
273 - static
274 - void handle_sigsegv(int sig, siginfo_t *info, void *ucontext)
275 - {
276 -@@ -249,12 +251,14 @@ void handle_sigsegv(int sig, siginfo_t *info, void *ucontext)
277 -
278 - _exit(1);
279 - }
280 --
281 -+#endif
282 - static void install_sigsegv_handler(void)
283 - {
284 - struct sigaction sa;
285 - memset(&sa, 0, sizeof(sa));
286 -+#if HAVE_EXECINFO_H
287 - sa.sa_sigaction = handle_sigsegv;
288 -+#endif
289 - sa.sa_flags = SA_SIGINFO;
290 - sigaction(SIGSEGV, &sa, NULL);
291 - sigaction(SIGILL, &sa, NULL);
292 ---
293 -2.18.0
294 -
295
296 diff --git a/sys-libs/libunwind/libunwind-1.2.1-r1.ebuild b/sys-libs/libunwind/libunwind-1.2.1-r1.ebuild
297 deleted file mode 100644
298 index a4690fc..0000000
299 --- a/sys-libs/libunwind/libunwind-1.2.1-r1.ebuild
300 +++ /dev/null
301 @@ -1,103 +0,0 @@
302 -# Copyright 1999-2018 Gentoo Foundation
303 -# Distributed under the terms of the GNU General Public License v2
304 -
305 -EAPI=6
306 -
307 -MY_PV=${PV/_/-}
308 -MY_P=${PN}-${MY_PV}
309 -inherit autotools eutils libtool multilib-minimal
310 -
311 -DESCRIPTION="Portable and efficient API to determine the call-chain of a program"
312 -HOMEPAGE="https://savannah.nongnu.org/projects/libunwind"
313 -SRC_URI="mirror://nongnu/libunwind/${MY_P}.tar.gz"
314 -
315 -LICENSE="MIT"
316 -SLOT="7"
317 -KEYWORDS="amd64 arm arm64 hppa ia64 ~mips ppc ppc64 x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
318 -IUSE="debug debug-frame doc libatomic lzma +static-libs"
319 -
320 -RESTRICT="test" # half of tests are broken (toolchain version dependent)
321 -
322 -# We just use the header from libatomic.
323 -RDEPEND="lzma? ( app-arch/xz-utils )"
324 -DEPEND="${RDEPEND}
325 - libatomic? ( dev-libs/libatomic_ops )"
326 -
327 -S="${WORKDIR}/${MY_P}"
328 -
329 -MULTILIB_WRAPPED_HEADERS=(
330 - /usr/include/libunwind.h
331 -
332 - # see libunwind.h for the full list of arch-specific headers
333 - /usr/include/libunwind-aarch64.h
334 - /usr/include/libunwind-arm.h
335 - /usr/include/libunwind-hppa.h
336 - /usr/include/libunwind-ia64.h
337 - /usr/include/libunwind-mips.h
338 - /usr/include/libunwind-ppc32.h
339 - /usr/include/libunwind-ppc64.h
340 - /usr/include/libunwind-sh.h
341 - /usr/include/libunwind-tilegx.h
342 - /usr/include/libunwind-x86.h
343 - /usr/include/libunwind-x86_64.h
344 -)
345 -
346 -PATCHES=(
347 - "${FILESDIR}"/${PN}-1.2-coredump-regs.patch #586092
348 - "${FILESDIR}"/${PN}-1.2-ia64-undwarf.patch
349 - "${FILESDIR}"/${PN}-1.2-ia64-ptrace-coredump.patch
350 - "${FILESDIR}"/${PN}-1.2-ia64-missing.patch
351 - "${FILESDIR}"/${PN}-1.2.1-fix_version_macros.patch
352 - "${FILESDIR}"/${PN}-1.2.1-only-include-execinfo_h-if-avaliable.patch
353 -)
354 -
355 -src_prepare() {
356 - default
357 - chmod +x src/ia64/mk_cursor_i || die
358 - # Since we have tests disabled via RESTRICT, disable building in the subdir
359 - # entirely. This worksaround some build errors too. #484846
360 - sed -i -e '/^SUBDIRS/s:tests::' Makefile.in || die
361 -
362 - elibtoolize
363 - eautoreconf
364 -}
365 -
366 -multilib_src_configure() {
367 - # --enable-cxx-exceptions: always enable it, headers provide the interface
368 - # and on some archs it is disabled by default causing a mismatch between the
369 - # API and the ABI, bug #418253
370 - # conservative-checks: validate memory addresses before use; as of 1.0.1,
371 - # only x86_64 supports this, yet may be useful for debugging, couple it with
372 - # debug useflag.
373 - ECONF_SOURCE="${S}" \
374 - ac_cv_header_atomic_ops_h=$(usex libatomic) \
375 - econf \
376 - --enable-cxx-exceptions \
377 - --enable-coredump \
378 - --enable-ptrace \
379 - --enable-setjmp \
380 - $(use_enable debug-frame) \
381 - $(use_enable doc documentation) \
382 - $(use_enable lzma minidebuginfo) \
383 - $(use_enable static-libs static) \
384 - $(use_enable debug conservative_checks) \
385 - $(use_enable debug)
386 -}
387 -
388 -multilib_src_compile() {
389 - # Bug 586208
390 - CCACHE_NODIRECT=1 default
391 -}
392 -
393 -multilib_src_test() {
394 - # Explicitly allow parallel build of tests.
395 - # Sandbox causes some tests to freak out.
396 - SANDBOX_ON=0 emake check
397 -}
398 -
399 -multilib_src_install() {
400 - default
401 - # libunwind-ptrace.a (and libunwind-ptrace.h) is separate API and without
402 - # shared library, so we keep it in any case
403 - use static-libs || find "${ED}"usr '(' -name 'libunwind-generic.a' -o -name 'libunwind*.la' ')' -delete
404 -}
405
406 diff --git a/sys-libs/libunwind/metadata.xml b/sys-libs/libunwind/metadata.xml
407 deleted file mode 100644
408 index 95faca4..0000000
409 --- a/sys-libs/libunwind/metadata.xml
410 +++ /dev/null
411 @@ -1,12 +0,0 @@
412 -<?xml version="1.0" encoding="UTF-8"?>
413 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
414 -<pkgmetadata>
415 - <maintainer type="project">
416 - <email>toolchain@g.o</email>
417 - <name>Gentoo Toolchain Project</name>
418 - </maintainer>
419 - <use>
420 - <flag name="debug-frame">Adds support for DWARF .debug_frame section: Use the information from this section if available</flag>
421 - <flag name="libatomic">Use libatomic instead of builtin atomic operations</flag>
422 - </use>
423 -</pkgmetadata>