Skip to content

Don't assume x86_64 when looking for espeak-ng-data.#557

Open
dsalt wants to merge 1 commit intoOoliteProject:masterfrom
dsalt:master
Open

Don't assume x86_64 when looking for espeak-ng-data.#557
dsalt wants to merge 1 commit intoOoliteProject:masterfrom
dsalt:master

Conversation

@dsalt
Copy link
Member

@dsalt dsalt commented Mar 3, 2026

On Debian-like systems, the data is stored in an architecture-dependent location, so on aarch64 the usual location is /usr/share/aarch64-linux-gnu.

(Almost certainly safe to assume *-linux-gnu, so this patch still does that.)

On Debian-like systems, the data is stored in an architecture-dependent
location, so on aarch64 the usual location is /usr/share/aarch64-linux-gnu.

(Almost certainly safe to assume *-linux-gnu, so this patch still does that.)
@mcarans
Copy link
Contributor

mcarans commented Mar 10, 2026

I imagine that this will be fine. I didn't see any results from the build-all GH Actions build on your fork to check if a built appimage worked.

SEARCH_PATHS=(
"/usr/local/share/espeak-ng-data"
"/usr/lib/x86_64-linux-gnu/espeak-ng-data"
"/usr/lib/$(/usr/bin/arch 2>/dev/null || echo x86_64)-linux-gnu/espeak-ng-data"
Copy link
Contributor

@mcarans mcarans Mar 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dsalt I suggest this as uname is universal:

/usr/lib/$(uname -m 2>/dev/null || echo x86_64)-linux-gnu/espeak-ng-data

return 1
fi
# Some distributions put the data in arch-specific paths
HOSTARCH="$(usr/bin/arch 2>/dev/null || echo x86_64)"
Copy link
Contributor

@mcarans mcarans Mar 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest using uname -m for this too

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.

2 participants