| Summary: | app-accessibility/espeak-1.48.04-r1::gentoo:there are files installed outside the prefix | ||
|---|---|---|---|
| Product: | Gentoo/Alt | Reporter: | tastu teche <tastuteche> |
| Component: | Prefix Support | Assignee: | Gentoo Prefix <prefix> |
| Status: | RESOLVED OBSOLETE | ||
| Severity: | normal | ||
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | espeak-1.48.04-r1.ebuild with DATADIR prefixed and EROOT changed from ROOT | ||
|
Description
tastu teche
2017-08-29 00:33:31 UTC
my fix:
--- /r/a/p/usr/portage/app-accessibility/espeak/espeak-1.48.04-r1.ebuild
+++ /r/a/p/usr/local/portage/app-accessibility/espeak/espeak-1.48.04-r1.ebuild
@@ -47,6 +47,7 @@
src_compile() {
emake \
+ DATADIR="${EPREFIX}/usr/share/espeak-data" \
PREFIX="${EPREFIX}/usr" \
CC="$(tc-getCC)" \
CFLAGS="${CFLAGS}" \
@@ -59,6 +60,7 @@
einfo "Fixing byte order of phoneme data files"
pushd ../platforms/big_endian > /dev/null
emake \
+ DATADIR="${EPREFIX}/usr/share/espeak-data" \
CC="$(tc-getCC)" \
CFLAGS="${CFLAGS}"
./espeak-phoneme-data \
@@ -70,6 +72,7 @@
src_install() {
emake \
+ DATADIR="${EPREFIX}/usr/share/espeak-data" \
PREFIX="${EPREFIX}/usr" \
LIBDIR="\$(PREFIX)/$(get_libdir)" \
DESTDIR="${D}" \
@@ -84,7 +87,7 @@
}
pkg_preinst() {
- local voicedir="${ROOT}/usr/share/${PN}-data/voices/en"
+ local voicedir="${EROOT}/usr/share/${PN}-data/voices/en"
if [ -d "${voicedir}" ]; then
rm -rf "${voicedir}"
fi
Created attachment 491036 [details]
espeak-1.48.04-r1.ebuild with DATADIR prefixed and EROOT changed from ROOT
this is indeed necessary, yet the latest version of the ebuild changed. We'd have to revisit this. |