Skip to content

Commit 13c4ff9

Browse files
fix: use dpkg-query for libportaudio detection in install.sh (#9)
* fix: use dpkg-query for libportaudio detection in install.sh 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. * chore: bump version 3.2.9 → 3.2.10; update changelog --------- Co-authored-by: YASoftwareDev <YASoftwareDev@users.noreply.github.com>
1 parent 90fe6d2 commit 13c4ff9

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Techmo TTS gRPC Python client Changelog
22

3+
## [3.2.10] - 2026-03-30
4+
5+
### Fixed
6+
7+
- `install.sh`: replace `ldconfig -p` with `dpkg-query` as the primary check for `libportaudio2`.
8+
Fixes false "not found" warning when the library is installed but the linker cache is stale.
9+
Falls back to `ldconfig -p` on non-Debian systems.
10+
11+
312
## [3.2.9] - 2026-03-30
413

514
### Changed

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ fi
2525
source "${VENV_PATH}/bin/activate"
2626
uv pip install -e ".[test]"
2727

28-
if ! ldconfig -p 2> /dev/null | grep -q 'libportaudio'; then
28+
if ! { dpkg-query -W -f='${Status}' libportaudio2 2>/dev/null | grep -q 'install ok installed' || ldconfig -p 2>/dev/null | grep -q 'libportaudio'; }; then
2929
echo "" >&2
3030
echo "Warning: libportaudio2 not found on this system." >&2
3131
echo " Install it with: sudo apt-get install libportaudio2" >&2

tts_client_python/VERSION.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
TTS_CLIENT_PYTHON_VERSION = "3.2.9"
1+
TTS_CLIENT_PYTHON_VERSION = "3.2.10"

0 commit comments

Comments
 (0)