diff --git a/texlive-filesystem.changes b/texlive-filesystem.changes index 10f47e2..cae61bb 100644 --- a/texlive-filesystem.changes +++ b/texlive-filesystem.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Fri Dec 13 14:12:29 UTC 2019 - Dr. Werner Fink + +- Simply use rm(1) for the cron job of texlive as all files below + /var/cache/texmf/ belong to texlive and only root can write and + remove those files (bsc#1158910). All other users do create their + own files below ~/.cache/texmf/ + ------------------------------------------------------------------- Mon Nov 18 12:59:58 UTC 2019 - Dr. Werner Fink diff --git a/texlive.cron b/texlive.cron index ad491c4..b1ae031 100644 --- a/texlive.cron +++ b/texlive.cron @@ -10,29 +10,31 @@ type -f -p kpsewhich >& /dev/null || exit 0 type -f -p mktexlsr >& /dev/null || exit 0 type -f -p find >& /dev/null || exit 0 +type -f -p xargs >& /dev/null || exit 0 +type -f -p rm >& /dev/null || exit 0 test -r /etc/sysconfig/texlive && . /etc/sysconfig/texlive OLDIFS=$IFS; IFS=':;' VARTEXFONTS="$(kpsewhich --expand-var '$VARTEXFONTS' 2> /dev/null)" IFS=$OLDIFS -if test "$CLEAR_TEXMF_FONTS" = "yes" -a -n "$VARTEXFONTS" -a -x /usr/bin/safe-rm ; then +if test "$CLEAR_TEXMF_FONTS" = "yes" -a -n "$VARTEXFONTS" ; then for p in $VARTEXFONTS ; do test -d $p/pk/ && find $p/pk/ \( -type f -and -atime +20 \) -print0 test -d $p/tfm/ && find $p/tfm/ \( -type f -and -atime +60 \) -print0 test -d $p/source/ && find $p/source/ \( -type f -and -atime +60 \) -print0 - done > >(exec -a xargs xargs -r -L100 -0 -- /usr/bin/safe-rm) + done > >(exec -a xargs xargs -r -L100 -0 -- rm -f) fi -if test -n "$VARTEXFONTS" -a -x /usr/bin/safe-rmdir ; then +if test -n "$VARTEXFONTS" ; then for p in $VARTEXFONTS ; do test -d $p/pk/ && find $p/pk/ \( -type f -and -not -name '*.*pk' \) -print0 test -d $p/tfm/ && find $p/tfm/ \( -type f -and -not -name '*.tfm' \) -print0 test -d $p/source/ && find $p/source/ \( -type f -and -not -name '*.mf' \) -print0 test -d $p/ && find $p/ \( -type f -and -path '*/[^[:alnum:]]*' \) -print0 - done > >(exec -a xargs xargs -r -L100 -0 -- /usr/bin/safe-rm) + done > >(exec -a xargs xargs -r -L100 -0 -- rm -f) for p in $VARTEXFONTS ; do test -d $p/ && find $p/ -depth -type d -and -path '*/[^[:alnum:]]*' - done > >(exec -a xargs xargs -r -L100 -0 -- /usr/bin/safe-rmdir) + done > >(exec -a xargs xargs -r -L100 -0 -- rm -fr) fi #