From cd6097a505c0edf6c1093d7f0dd411b7404691a5ae98f8a0450b024df5127d25 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Wed, 20 Feb 2019 12:14:11 +0000 Subject: [PATCH] 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 --- texlive-filesystem.changes | 5 +++++ texlive-filesystem.spec | 4 ++-- update.texlive | 14 ++++++++++++-- 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/texlive-filesystem.changes b/texlive-filesystem.changes index 2c07b29..8b7f900 100644 --- a/texlive-filesystem.changes +++ b/texlive-filesystem.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Feb 20 12:12:19 UTC 2019 - Dr. Werner Fink + +- A binary only TeXLive installation is an fatal error + ------------------------------------------------------------------- Tue Jun 19 09:06:49 UTC 2018 - werner@suse.de diff --git a/texlive-filesystem.spec b/texlive-filesystem.spec index 24d813f..27730ed 100644 --- a/texlive-filesystem.spec +++ b/texlive-filesystem.spec @@ -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/ # diff --git a/update.texlive b/update.texlive index 66463bc..4f51d78 100644 --- a/update.texlive +++ b/update.texlive @@ -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