Bug#261965: tetex-bin: bogus daily error message
Package: tetex-bin
Version: 2.0.2-15
Severity: minor
File: /etc/cron.daily/tetex-bin
This is what I get every day from cron:
/etc/cron.daily/tetex-bin:
chgrp: cannot access `/root/texmf/ls-R': No such file or directory
The reason is that the daily coron tetex-bin script does not check to
see if the files in the search path do in fact exist before accessing
them. This patch solves the problem:
cd /etc/cron.daily/
diff -pub /etc/cron.daily/tetex-bin\~ /etc/cron.daily/tetex-bin
--- /etc/cron.daily/tetex-bin~ 2003-08-09 10:25:54.000000000 +0200
+++ /etc/cron.daily/tetex-bin 2004-07-29 10:56:31.000000000 +0200
@@ -14,6 +14,7 @@ if [ -x "/usr/bin/mktexlsr" ]; then
if [ $FHS = 1 ]; then
LSRDBS=`kpsewhich --show-path=ls-R | sed -e 's/:/ /g'`
for dbfile in ${LSRDBS}; do
+ if [ -s "$dbfile" ]; then
case "$dbfile" in
/usr/local*) continue ;;
*) /usr/bin/mktexlsr $dbfile > /dev/null
@@ -21,6 +22,7 @@ if [ -x "/usr/bin/mktexlsr" ]; then
chgrp --dereference --quiet users $dbfile/ls-R
;;
esac
+ fi
done
else
/usr/bin/mktexlsr > /dev/null
Diff finished at Thu Jul 29 10:58:06
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (990, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.27-rc3-pr-hrt-1
Locale: LANG=C, LC_CTYPE=it_IT@euro (ignored: LC_ALL set to C)
Versions of packages tetex-bin depends on:
ii debconf 1.4.29 Debian configuration management sy
ii debianutils 2.8.4 Miscellaneous utilities specific t
ii dpkg 1.10.22 Package maintenance system for Deb
ii ed 0.2-20 The classic unix line editor
ii libc6 2.3.2.ds1-13 GNU C Library: Shared libraries an
ii libgcc1 1:3.3.4-3 GCC support library
ii libice6 4.3.0.dfsg.1-4 Inter-Client Exchange library
ii libkpathsea3 2.0.2-15 path search library for teTeX (run
ii libpaper1 1.1.14 Library for handling paper charact
ii libpng12-0 1.2.5.0-6 PNG library - runtime
ii libsm6 4.3.0.dfsg.1-4 X Window System Session Management
ii libstdc++5 1:3.3.4-3 The GNU Standard C++ Library v3
ii libt1-5 5.0.2-3 Type 1 font rasterizer library - r
ii libwww0 5.4.0-9 The W3C WWW library
ii libx11-6 4.3.0.dfsg.1-4 X Window System protocol client li
ii libxaw7 4.3.0.dfsg.1-4 X Athena widget set library
ii libxext6 4.3.0.dfsg.1-4 X Window System miscellaneous exte
ii libxmu6 4.3.0.dfsg.1-4 X Window System miscellaneous util
ii libxt6 4.3.0.dfsg.1-4 X Toolkit Intrinsics
ii mime-support 3.28-1 MIME files 'mime.types' & 'mailcap
ii perl 5.8.3-3 Larry Wall's Practical Extraction
ii sed 4.1.1-1 The GNU sed stream editor
ii tetex-base 2.0.2-9 Basic library files of teTeX
ii ucf 1.07 Update Configuration File: preserv
ii xlibs 4.3.0.dfsg.1-4 X Window System client libraries m
ii zlib1g 1:1.2.1.1-5 compression library - runtime
-- debconf information:
* tetex-bin/upd_map: true
* tetex-bin/cnf_name:
* tetex-bin/fmtutil: true
* tetex-bin/userperm: false
* tetex-bin/texmf: true
* tetex-bin/hyphen:
* tetex-bin/oldcfg: true
* tetex-bin/use_debconf: true
* tetex-bin/groupname: users
* tetex-bin/groupperm: true
* tetex-bin/lsr-perms: true
Reply to: