A binary only TeXLive installation is an fatal error

OBS-URL: https://build.opensuse.org/package/show/Publishing:TeXLive/texlive-filesystem?expand=0&rev=98
This commit is contained in:
Dr. Werner Fink 2019-02-20 12:14:11 +00:00 committed by Git OBS Bridge
parent 151fc108c6
commit cd6097a505
3 changed files with 19 additions and 4 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Feb 20 12:12:19 UTC 2019 - Dr. Werner Fink <werner@suse.de>
- A binary only TeXLive installation is an fatal error
-------------------------------------------------------------------
Tue Jun 19 09:06:49 UTC 2018 - werner@suse.de

View File

@ -1,7 +1,7 @@
#
# spec file for package texlive-filesystem
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#

View File

@ -186,6 +186,7 @@ done
unset hyp suffix
init=false
typeset -i yes=0
while read format engine language rest
do
line=($rest)
@ -200,12 +201,13 @@ do
fmt="${WEB2C}/$engine/$fmt"
if test ! -e "$fmt"
then
# init=true
# > /var/run/texlive/run-fmtutil
inifile=$(kpsewhich -progname=$format -format=$kpse $inifile 2>/dev/null) || continue
let yes++
continue
fi
test "$fmt" -nt "$TEXMFCNFFILE" || init=true
inifile=$(kpsewhich -progname=$format -format=$kpse $inifile 2>/dev/null) || continue
let yes++
test "$fmt" -nt "$inifile" && continue
case "$engine" in
mpost) fmtutil-sys --byfmt "$egine" < /dev/null 1>&4 2>&4 ;;
@ -215,6 +217,14 @@ do
done < <(sed -r "/^(\#.*|[[:blank:]]*)$/d" "$cnf_fmtu")
unset format engine language rest line last inifile fmt kpse engine
if ((yes == 0)) ; then
echo "${0##*/}: This TeXLive installation is broken!" 1>&2
echo "${0##*/}: Only programs are found but no init file(s) at all. You might install" 1>&2
echo "${0##*/}: e.g. texlive-collection-latex or any other texlive-collection package." 1>&2
exit 1
fi
unset yes
if test -n "${cnf_ldat}" -a -n "${cnf_ldef}" -a -n "${cnf_llua}" ; then
for cfg in ${cnf_ldat} ${cnf_ldef} ${cnf_llua} ; do
test -s ${OLDMD5DIR}${cfg} || continue