* /usr/share/espeak-data/ro_dict * /usr/share/espeak-data/hbs_dict * ERROR: app-accessibility/espeak-1.48.04-r1::gentoo failed: * Aborting due to QA concerns: there are files installed outside the prefix Reproducible: Always Steps to Reproduce: 1. emerge app-accessibility/espeak
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.