1 |
On 3/27/20 3:17 PM, Alexis Ballier wrote: |
2 |
> On Fri, 2020-03-27 at 08:03 -0400, Anthony G. Basile wrote: |
3 |
>> On 3/26/20 9:25 PM, Joshua Kinard wrote: |
4 |
>>> On 3/23/2020 04:21, Jaco Kroon wrote: |
5 |
>>>> Hi, |
6 |
>>>> |
7 |
>>>> https://bugs.gentoo.org/713668 relates. |
8 |
>>>> |
9 |
>>>> * Searching for /usr/include/execinfo.h ... |
10 |
>>>> sys-libs/glibc-2.29-r7 (/usr/include/execinfo.h) |
11 |
>>>> |
12 |
>>>> As I see I can either add an explicit depend on glibc which I'd |
13 |
>>>> prefer |
14 |
>>>> not to. Or someone from the musl team could possibly assist on |
15 |
>>>> how to |
16 |
>>>> get the backtrace() set of calls on musl please? |
17 |
>>>> |
18 |
>>>> Alternatively I need to add a test and simply path debug.c to |
19 |
>>>> only |
20 |
>>>> provide stub function for print_backtrace(FILE *fp) that just |
21 |
>>>> does |
22 |
>>>> fprintf(fp, "No backtrace() available to print a backtrace.\n"); |
23 |
>>>> |
24 |
>>>> Suggestions? |
25 |
>>>> |
26 |
>>>> Kind Regards, |
27 |
>>>> Jaco |
28 |
>>> |
29 |
>>> Some quick searching on google, it looks like the cleanest fix for |
30 |
>>> that bug |
31 |
>>> is dahdi-tools needs to be patched to only include execinfo.h or |
32 |
>>> only use |
33 |
>>> backtrace() on glibc-based systems, and that patch then sent to the |
34 |
>>> dahdi-tools upstream developers for inclusion in a future |
35 |
>>> release. That |
36 |
>>> way, we're not dragging that patch around forever in the tree or in |
37 |
>>> the musl |
38 |
>>> overlay. |
39 |
>>> |
40 |
>>> It also doesn't look like musl itself will ever implement |
41 |
>>> execinfo.h or |
42 |
>>> backtrace(), per this message in 2015 from the lead musl developer: |
43 |
>>> https://www.openwall.com/lists/musl/2015/04/09/3 |
44 |
>>> |
45 |
>> |
46 |
>> Correct. I've been adding -standalone packages to provide for |
47 |
>> features |
48 |
>> like fts, obstack, argp,etc. which are bundled into glibc but not |
49 |
>> really |
50 |
>> under the POSIX standard. |
51 |
>> |
52 |
>> So either we patch packages to turn off backtrace() or we add |
53 |
>> libunwind-standalone to the tree. |
54 |
>> |
55 |
> |
56 |
> |
57 |
> BTW, we had libexecinfo for fbsd, which seems also present in alpine: |
58 |
> https://pkgs.alpinelinux.org/package/edge/main/x86/libexecinfo |
59 |
> |
60 |
> |
61 |
|
62 |
|
63 |
Had? Is it in the tree now or should I look into adding it? |
64 |
|
65 |
-- |
66 |
Anthony G. Basile, Ph.D. |
67 |
Gentoo Linux Developer [Hardened] |
68 |
E-Mail : blueness@g.o |
69 |
GnuPG FP : 1FED FAD9 D82C 52A5 3BAB DC79 9384 FA6E F52D 4BBA |
70 |
GnuPG ID : F52D4BBA |