mapbox / mapbox/mason

More portable gdb

Open
#342 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
258
Forks
68
PR merge metrics
No merged PRs in 30d

Description

gdb currently dynamically links `libncurses`, `libexpat`, and `libtinfo` which are not going to always be available. We should be statically linking them. Also refs #309.

```
# ldd ./mason_packages/linux-x86_64/gdb/7.12/bin/gdb
linux-vdso.so.1 => (0x00007ffe793d8000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f6e23305000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f6e23101000)
libncurses.so.5 => /lib/x86_64-linux-gnu/libncurses.so.5 (0x00007f6e22edd000)
libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007f6e22cb4000)
libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f6e22a8a000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f6e22783000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f6e223be000)
/lib64/ld-linux-x86-64.so.2 (0x0000563a39d45000)
```

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the affected artifact at mason_packages/linux-x86_64/gdb/7.12/bin/gdb and reproduce the ldd output shown in the issue. Trace the package build configuration that produces this binary and verify that libncurses, libexpat, and libtinfo are statically linked while checking the resulting dependencies with ldd.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, linux
Domain
build-system, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.