EAPI=7 introduces empty ROOT variable if the actual root
is defined as "/", this leads to the false-negative
texmf-update and fmtutil calls.
Closes: https://bugs.gentoo.org/687306
Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
etexmf-update() {
if has_version 'app-text/texlive-core' ; then
- if [ "$ROOT" = "/" ] && [ -x "${EPREFIX}"/usr/sbin/texmf-update ] ; then
+ if [ -n ${ROOT%/} ] && [ -x "${EPREFIX}"/usr/sbin/texmf-update ] ; then
"${EPREFIX}"/usr/sbin/texmf-update
else
ewarn "Cannot run texmf-update for some reason."
efmtutil-sys() {
if has_version 'app-text/texlive-core' ; then
- if [ "$ROOT" = "/" ] && [ -x "${EPREFIX}"/usr/bin/fmtutil-sys ] ; then
+ if [ -n ${ROOT%/} ] && [ -x "${EPREFIX}"/usr/bin/fmtutil-sys ] ; then
einfo "Rebuilding formats"
"${EPREFIX}"/usr/bin/fmtutil-sys --all &> /dev/null
else