64.2. libunwind-nongnu-1.8.3
The libunwind library — call-chain unwinding of this process, another one over ptrace, or a core file
1.8.3-1 · MIT · 0.2 SBU · 440.1 KiB, 68 files · 40_lang, 178 of 186 · ports/core/toolchain/libunwind-nongnu
Homepage: https://www.nongnu.org/libunwind/
Why it is in KDOS. The comment above it in script/phases/40_lang/packages.d/toolchain.txt:
Stack walking of another process (libunwind-ptrace): htop's backtrace screen, GStreamer's and libcamera's traces, samba's crash report.
libunwind (the nongnu.org project) determines a program’s call chain: libunwind walks the stack of the calling process, libunwind-ptrace that of another process through ptrace, and libunwind-coredump that of a core file. htop’s backtrace screen, gstreamer’s and libcamera’s traces and samba’s crash report use it.
It is distinct from LLVM’s libunwind, the C++ unwinder of the same name, which the tree keeps under a private prefix; /usr/include/libunwind.h, libunwind.so and the libunwind*.pc files are this port’s. See A second version beside the first.
Required by (11): gimp, glog, gnuradio, gstreamer, htop, libcamera, nextpnr, samba, sdrangel, wine, zeromq.
Sources: libunwind-nongnu-1.8.3.tar.gz (958.0 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/40_lang/phase.env && kpkg install libunwind-nongnu'
build.sh:
./configure --prefix=/usr --libdir=/usr/lib --disable-static \
--disable-tests \
--disable-unwind-header \
--enable-ptrace \
--enable-coredump \
--enable-setjmp \
--enable-minidebuginfo \
--enable-zlibdebuginfo
make
make DESTDIR=$PKG install
for _m in doc/*.man; do
_p=${_m##*/}
install -Dm644 "$_m" "$PKG/usr/share/man/man3/${_p%.man}.3"
done
--disable-unwind-header— Do not install libunwind’sunwind.h. GCC and clang each provide a header of that name in their own include directories, for the C++ exception runtime.--enable-ptrace,--enable-coredump,--enable-setjmp— Buildlibunwind-ptrace,libunwind-coredumpandlibunwind-setjmp. Each is autodetected by default; named, each is built, and--enable-ptracemakes configure stop if the target has nosys/ptrace.hinstead of leaving the library out.--enable-minidebuginfo— Read symbol tables from the LZMA-compressed.gnu_debugdatasection (MiniDebugInfo), with xz’s liblzma; configure stops if liblzma is missing.--enable-zlibdebuginfo— Read symbol tables from zlib-compressed sections, with zlib; configure stops if it is missing.
Libraries: libunwind-coredump.so, libunwind-generic.so, libunwind-ptrace.so, libunwind-setjmp.so, libunwind-x86_64.so, libunwind.so.
Directories: /usr/share/licenses/libunwind-nongnu.
The manual pages are generated from LaTeX sources by latex2man, which is not a port, and configure then skips the documentation directory with a warning. The source carries them already rendered as doc/*.man, and the loop at the end installs each as a section 3 page.