summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikle Kolyada <zlogene@gentoo.org>2019-06-04 21:54:55 +0300
committerMikle Kolyada <zlogene@gentoo.org>2019-06-05 12:39:59 +0300
commit4dd44867d1710a50b2d79ca095c935d283572555 (patch)
treeb8741f29283700ede139204d76a85fc98abb5cda /eclass/texlive-common.eclass
parentapp-crypt/libb2: fix check to respect CFLAGS, thanks jer (diff)
downloadgentoo-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/texlive-common.eclass')
-rw-r--r--eclass/texlive-common.eclass4
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