You are not logged in.

#1 2026-05-16 17:21:51

FabioLolix
Member
Registered: 2021-06-27
Posts: 13
Website

commands, helper or script for namcap implicit or missing depends?

Hi all, exist some commands, helper or script that will turn the list of implicit depends and missing depends from namcap into an alphabetically list that i can paste into the pkgbuild?

It is quite tedious to do by hand

Offline

#2 2026-05-16 19:11:24

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,510

Re: commands, helper or script for namcap implicit or missing depends?

sort, cut, awk, sed, …
Are you using -m ?
Sample output you want to convert?

Offline

#3 2026-05-16 19:43:32

FabioLolix
Member
Registered: 2021-06-27
Posts: 13
Website

Re: commands, helper or script for namcap implicit or missing depends?

Checking pantheon-code-git-8.3.0.r8.g01409e54d-1-x86_64.pkg.tar.zst
pantheon-code-git E: GPL3 is not a valid SPDX license identifier. See https://spdx.org/licenses/ for valid identifiers, or prefix the identifier with 'LicenseRef-', if it is custom.
pantheon-code-git W: Dependency vala detected but optional (pkg-config files ['usr/lib/pkgconfig/libvala-0.56.pc'] needed in files ['usr/lib/pkgconfig/codecore.pc'], libraries ['usr/lib/libvala-0.56.so.0'] needed in files ['usr/bin/io.elementary.code', 'usr/lib/libcodecore.so.0.0'])
pantheon-code-git W: Dependency pango detected and implicitly satisfied (pkg-config files ['usr/lib/pkgconfig/pangoft2.pc'] needed in files ['usr/lib/pkgconfig/codecore.pc'], libraries ['usr/lib/libpango-1.0.so.0', 'usr/lib/libpangocairo-1.0.so.0', 'usr/lib/libpangoft2-1.0.so.0'] needed in files ['usr/bin/io.elementary.code', 'usr/lib/libcodecore.so.0.0'])
pantheon-code-git W: Dependency gtkspell3 detected but optional (libraries ['usr/lib/libgtkspell3-3.so.0'] needed in files ['usr/lib/io.elementary.code/plugins/spell/libspell.so'])
pantheon-code-git W: Dependency glib2 detected and implicitly satisfied (pkg-config files ['usr/lib/pkgconfig/glib-2.0.pc', 'usr/lib/pkgconfig/gio-unix-2.0.pc'] needed in files ['usr/lib/pkgconfig/codecore.pc'], libraries ['usr/lib/libgobject-2.0.so.0', 'usr/lib/libglib-2.0.so.0', 'usr/lib/libgio-2.0.so.0'] needed in files ['usr/lib/io.elementary.code/plugins/detect-indent/libdetect-indent.so', 'usr/lib/io.elementary.code/plugins/fuzzy-search/libfuzzy-search.so', 'usr/lib/io.elementary.code/plugins/highlight-word-selection/libhighlight-word-selection.so', 'usr/lib/io.elementary.code/plugins/word-completion/libword-completion.so', 'usr/lib/libcodecore.so.0.0', 'usr/lib/io.elementary.code/plugins/vim-emulation/libvim-emulation.so', 'usr/lib/io.elementary.code/plugins/brackets-completion/libbrackets-completion.so', 'usr/lib/io.elementary.code/plugins/preserve-indent/libpreserve-indent.so', 'usr/lib/io.elementary.code/plugins/pastebin/libpastebin.so', 'usr/lib/io.elementary.code/plugins/spell/libspell.so', 'usr/lib/io.elementary.code/plugins/markdown-actions/libmarkdown-actions.so', 'usr/bin/io.elementary.code', 'usr/lib/io.elementary.code/plugins/editorconfig/libeditorconfig.so'])
pantheon-code-git W: Dependency libsoup3 detected and implicitly satisfied (libraries ['usr/lib/libsoup-3.0.so.0'] needed in files ['usr/lib/io.elementary.code/plugins/pastebin/libpastebin.so'])
pantheon-code-git W: Dependency gtk3 detected and implicitly satisfied (pkg-config files ['usr/lib/pkgconfig/gtk+-3.0.pc'] needed in files ['usr/lib/pkgconfig/codecore.pc'], libraries ['usr/lib/libgtk-3.so.0', 'usr/lib/libgdk-3.so.0'] needed in files ['usr/lib/io.elementary.code/plugins/spell/libspell.so', 'usr/lib/io.elementary.code/plugins/detect-indent/libdetect-indent.so', 'usr/lib/io.elementary.code/plugins/fuzzy-search/libfuzzy-search.so', 'usr/lib/io.elementary.code/plugins/highlight-word-selection/libhighlight-word-selection.so', 'usr/lib/io.elementary.code/plugins/markdown-actions/libmarkdown-actions.so', 'usr/bin/io.elementary.code', 'usr/lib/io.elementary.code/plugins/vim-emulation/libvim-emulation.so', 'usr/lib/io.elementary.code/plugins/word-completion/libword-completion.so', 'usr/lib/libcodecore.so.0.0', 'usr/lib/io.elementary.code/plugins/brackets-completion/libbrackets-completion.so', 'usr/lib/io.elementary.code/plugins/preserve-indent/libpreserve-indent.so', 'usr/lib/io.elementary.code/plugins/pastebin/libpastebin.so'])
pantheon-code-git W: Dependency vte3 detected but optional (pkg-config files ['usr/lib/pkgconfig/vte-2.91.pc'] needed in files ['usr/lib/pkgconfig/codecore.pc'], libraries ['usr/lib/libvte-2.91.so.0'] needed in files ['usr/bin/io.elementary.code', 'usr/lib/libcodecore.so.0.0'])
pantheon-code-git W: Dependency dconf detected and implicitly satisfied (needed for glib schemas)
pantheon-code-git W: Dependency fontconfig detected and implicitly satisfied (pkg-config files ['usr/lib/pkgconfig/fontconfig.pc'] needed in files ['usr/lib/pkgconfig/codecore.pc'], libraries ['usr/lib/libfontconfig.so.1'] needed in files ['usr/bin/io.elementary.code', 'usr/lib/libcodecore.so.0.0'])
pantheon-code-git W: Dependency hicolor-icon-theme detected and implicitly satisfied (needed for hicolor theme hierarchy)
pantheon-code-git W: Dependency glibc detected and implicitly satisfied (libraries ['usr/lib/libc.so.6'] needed in files ['usr/lib/io.elementary.code/plugins/spell/libspell.so', 'usr/lib/io.elementary.code/plugins/detect-indent/libdetect-indent.so', 'usr/lib/io.elementary.code/plugins/fuzzy-search/libfuzzy-search.so', 'usr/lib/io.elementary.code/plugins/highlight-word-selection/libhighlight-word-selection.so', 'usr/lib/io.elementary.code/plugins/markdown-actions/libmarkdown-actions.so', 'usr/bin/io.elementary.code', 'usr/lib/io.elementary.code/plugins/editorconfig/libeditorconfig.so', 'usr/lib/io.elementary.code/plugins/vim-emulation/libvim-emulation.so', 'usr/lib/io.elementary.code/plugins/word-completion/libword-completion.so', 'usr/lib/io.elementary.code/plugins/brackets-completion/libbrackets-completion.so', 'usr/lib/io.elementary.code/plugins/preserve-indent/libpreserve-indent.so', 'usr/lib/libcodecore.so.0.0', 'usr/lib/io.elementary.code/plugins/pastebin/libpastebin.so'])
pantheon-code-git W: Dependency libgee detected and implicitly satisfied (pkg-config files ['usr/lib/pkgconfig/gee-0.8.pc'] needed in files ['usr/lib/pkgconfig/codecore.pc'], libraries ['usr/lib/libgee-0.8.so.2'] needed in files ['usr/lib/io.elementary.code/plugins/word-completion/libword-completion.so', 'usr/bin/io.elementary.code', 'usr/lib/io.elementary.code/plugins/vim-emulation/libvim-emulation.so', 'usr/lib/io.elementary.code/plugins/brackets-completion/libbrackets-completion.so', 'usr/lib/io.elementary.code/plugins/preserve-indent/libpreserve-indent.so', 'usr/lib/libcodecore.so.0.0', 'usr/lib/io.elementary.code/plugins/fuzzy-search/libfuzzy-search.so'])
pantheon-code-git W: Dependency included, but may not be needed ('zeitgeist')
Checking pantheon-code-git-debug-8.3.0.r8.g01409e54d-1-x86_64.pkg.tar.zst

Not using -m, typically build with extra-x86_64-build from devtools

Offline

#4 2026-05-16 20:15:36

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,510

Re: commands, helper or script for namcap implicit or missing depends?

Not using -m

It'll make parsing that stuff simpler, no?

awk '/optional/{printf $4" "}' namcap.txt # this doesn't sort
grep detected namcap.txt | grep -v 'and implicitly satisfied' | cut -d" " -f4 | sort -u | awk '{printf $1" "}'  # grepping around is extremely flexible, sort -u compresses a sorted list and awk then collapses that into a single line

You can also use https://man.archlinux.org/man/wrap.1 to add linebreaks

Offline

Board footer

Powered by FluxBB