CHECK-LIB-DEPENDS(1)
π check-lib-depends(1) β the group-chat guide
okay so bestie, welcome to check-lib-depends, from the General Commands Manual section. she's the one who checks that every shared library your port or package needs is actually, like, recorded properly. no cap. β¨
πΈ NAME πΈ
check-lib-depends β scan port for shared libraries π«Ά
β¨ SYNOPSIS β¨
check-lib-depends [-fimqx] [-B destdir] [-d pkgrepo] [-D directory]
[-F missing] [-O dest] [-S VAR=value] [-s source]
[package ...]
π DESCRIPTION π
check-lib-depends scans a port or a package for shared libraries and verifies that all of them are properly recorded. literally all of them. it's giving responsible.
she can either scan files from a built port after the fake stage from the WRKINST directory, or look directly inside a package.
likewise (iconic word), she can also verify dependencies of installed packages, or figure them out directly from the port directory. versatile queen π
check-lib-depends actually consists of two distinct stages, and honestly the way she splits it up? main character energy:
- scan all binaries inside a package to extract libraries and rpaths, using
objdump(1). - compare those libraries against the port's registered dependencies and report problems. π¨
the options are as follows, bestie β every single one, no skipping:
-B destdirβ scan files under destdir. like, go look over there instead.-d pkgrepoβ look for all needed packages under directory pkgrepo.-D directoryβ create debug log files under directory that show in more details the run ofobjdump(1). detective mode π΅οΈββοΈ-fβ give full reports of every file that requires a missing library. full receipts, not just a summary.-F missingβ works in tandem with-S. allow backsubstituting even if the missing library is actually not part of the actualWANTLIBof the package. mostly used to waive the presence ofpthread, a mandatory dependency of C++ libraries on some architectures. iykyk.-iβ read packing-list from standard input. stdin girlie π-mβ always show progress-meter, even if not run from terminal. she's showing up regardless.-O destβ save result of first stage in file dest. stash it for later π-qβ be quiet, do not emit βExtra:β wantlibs unless there's also an actual problem. no unnecessary noise, periodt.-S var=valueβ recognize list of libraries listed in a variable, and replace said list with variable value. for instance,-S COMPILER_LIBCXX=stdc++will replace βstdc++β with β${COMPILER_LIBCXX}β inWANTLIBlists for compatibility with both clang and gcc. order matters. the first-Soption will be handled first. π-s srcβ don't scan, directly read result of first stage from file src. trust the file, bestie.-xβ don't show progress-meter, even if run from terminal. hidden mode π
if no package is given, and the -i option is used, check-lib-depends will retrieve the packing-list from stdin, and scan the package according to other options. simple as that π
π¦ SEE ALSO π¦
ldd(1), objdump(1), bsd.port.mk(5), elf(5)
π BUGS π
currently, check-lib-depends doesn't handle libraries living in subdirectories of β${LOCALBASE}β correctly. yeah. that's the bug. we know. π
bestie heads up: that subdirectory thing is a real known limitation, not a vibe β don't come for her, she's working on it π§
okay that's the whole page!! this was the check-lib-depends(1) manual page, Debian edition, dated May 24, 2024 β mwah, slay, go record your libraries properly πβ¨π
π¦ where this page comes from
- nixpkgs unstable: cvs-export
- Copyright (c) 2010 Marc Espie <espie@openbsd.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms