diff options
author | Mikle Kolyada <zlogene@gentoo.org> | 2019-06-04 21:54:55 +0300 |
---|---|---|
committer | Mikle Kolyada <zlogene@gentoo.org> | 2019-06-05 12:39:59 +0300 |
commit | 4dd44867d1710a50b2d79ca095c935d283572555 (patch) | |
tree | b8741f29283700ede139204d76a85fc98abb5cda /eclass | |
parent | app-crypt/libb2: fix check to respect CFLAGS, thanks jer (diff) | |
download | gentoo-4dd44867d1710a50b2d79ca095c935d283572555.tar.gz gentoo-4dd44867d1710a50b2d79ca095c935d283572555.tar.bz2 gentoo-4dd44867d1710a50b2d79ca095c935d283572555.zip |
eclass/texlive-common: call non-empty ${ROOT}
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>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/texlive-common.eclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/texlive-common.eclass b/eclass/texlive-common.eclass index 4b357897f12a..8476b117eeff 100644 --- a/eclass/texlive-common.eclass +++ b/eclass/texlive-common.eclass @@ -140,7 +140,7 @@ dobin_texmf_scripts() { 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." @@ -158,7 +158,7 @@ etexmf-update() { 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 |