>>> Completed installing dev-tex/hevea-2.35 into /storage/strogdon/gentoo-rap/var/tmp/portage/dev-tex/hevea-2.35/image * Final size of build directory: 28324 KiB (27.6 MiB) * Final size of installed tree: 8856 KiB ( 8.6 MiB) * QA Notice: the following files are outside of the prefix: * /usr * /usr/lib64 * /usr/lib64/hevea * /usr/lib64/hevea/iso-symb.hva * /usr/lib64/hevea/listings.hva * /usr/lib64/hevea/makeidx.hva * /usr/lib64/hevea/longtable.hva * /usr/lib64/hevea/import.hva ... * /usr/lib64/hevea/plain.hva * /usr/lib64/hevea/crlang.hva * /usr/lib64/hevea/booktabs.hva * /usr/lib64/hevea/alltt.hva * /usr/share * /usr/share/texmf-site * /usr/share/texmf-site/tex * /usr/share/texmf-site/tex/latex * /usr/share/texmf-site/tex/latex/hevea * /usr/share/texmf-site/tex/latex/hevea/hevea.sty * /usr/share/texmf-site/tex/latex/hevea/mathjax.sty * ERROR: dev-tex/hevea-2.35::gentoo failed: * Aborting due to QA concerns: there are files installed outside the prefix
There may be many ways to fix this, but the following seems to work: --- /storage/strogdon/gentoo-rap/usr/portage/dev-tex/hevea/hevea-2.35.ebuild 2021-03-13 18:09:21.000000000 -0700 +++ /storage/strogdon/gentoo-rap/usr/local/portage/dev-tex/hevea/hevea-2.35-r1.ebuild 2021-05-10 19:10:52.130262561 -0700 @@ -30,20 +30,20 @@ src_compile() { rm -f config.sh || die - emake PREFIX="${EPREFIX}"/usr DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)/hevea" LATEXLIBDIR="/usr/share/texmf-site/tex/latex/hevea" config.sh + emake PREFIX=/usr DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)/hevea" LATEXLIBDIR="/usr/share/texmf-site/tex/latex/hevea" config.sh if use ocamlopt; then - emake PREFIX="${EPREFIX}"/usr + emake PREFIX=/usr else - emake PREFIX="${EPREFIX}"/usr TARGET=byte + emake PREFIX=/usr TARGET=byte fi } src_install() { if use ocamlopt; then - emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install + emake DESTDIR="${ED}" PREFIX=/usr install else - emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr TARGET=byte install + emake DESTDIR="${ED}" PREFIX=/usr TARGET=byte install fi dodoc README CHANGES @@ -55,13 +55,13 @@ # If latex is installed later, it will see hevea.sty pkg_postinst() { - if [[ -z "${ROOT}" ]] && [[ -x "${EPREFIX}"/usr/sbin/texmf-update ]] ; then - "${EPREFIX}"/usr/sbin/texmf-update + if [[ -z "${ROOT}" ]] && [[ -x /usr/sbin/texmf-update ]] ; then + /usr/sbin/texmf-update fi } pkg_postrm() { - if [[ -z "${ROOT}" ]] && [[ -x "${EPREFIX}"/usr/sbin/texmf-update ]] ; then - "${EPREFIX}"/usr/sbin/texmf-update + if [[ -z "${ROOT}" ]] && [[ -x /usr/sbin/texmf-update ]] ; then + /usr/sbin/texmf-update fi }
hevea-2.35 has been removed from the tree, but hevea-2.35-r1 has this same issue.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c2e497818ff9f95505156d1daf124e46a9c0992 commit 4c2e497818ff9f95505156d1daf124e46a9c0992 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-07-16 05:32:57 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-07-16 05:32:57 +0000 dev-tex/hevea: fix prefix installation Closes: https://bugs.gentoo.org/789378 Thanks-to: Steven Trogdon <strogdon@d.umn.edu> Signed-off-by: Sam James <sam@gentoo.org> dev-tex/hevea/hevea-2.35-r1.ebuild | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)