Skip to content

fix: use dpkg-query for libportaudio detection in install.sh#9

Merged
YASoftwareDev merged 2 commits intomainfrom
fix/libportaudio-detection
Mar 30, 2026
Merged

fix: use dpkg-query for libportaudio detection in install.sh#9
YASoftwareDev merged 2 commits intomainfrom
fix/libportaudio-detection

Conversation

@YASoftwareDev
Copy link
Copy Markdown
Contributor

Summary

  • Replace ldconfig -p with dpkg-query as the primary check for libportaudio2 on Debian/Ubuntu
  • ldconfig -p reads a stale cache and can report the library as missing even when it is installed
  • dpkg-query reads the package database directly and is authoritative; ldconfig -p remains as a fallback for non-Debian systems

Test plan

  • Run ./install.sh on a system with libportaudio2 installed — warning should not appear
  • Run ./install.sh on a system without libportaudio2 — warning should still appear

ldconfig -p reads a pre-built cache that may be stale after package
install, causing false "not found" warnings. Replace with dpkg-query
as the primary check (authoritative on Debian/Ubuntu), falling back
to ldconfig -p on non-Debian systems.
@YASoftwareDev YASoftwareDev merged commit 13c4ff9 into main Mar 30, 2026
7 checks passed
@YASoftwareDev YASoftwareDev deleted the fix/libportaudio-detection branch March 30, 2026 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant