SPECS: makewhatis.spec (NEW) - added - linux port of FreeBSD makew...

Tomasz Wittner twittner at o2.pl
Sat Jul 9 17:56:55 CEST 2005


To all,

But the main problem is that our cool makewhatis from man-1.5p called from:
/etc/cron.weekly/makewhatis (makewhatis.crondaily in cvs/SOURCES)
#!/bin/sh
LOCKFILE=/var/lock/makewhatis.lock
# [... commnets ...]
[ -f $LOCKFILE ] && exit 0
touch $LOCKFILE
makewhatis -u -w
rm -f $LOCKFILE
exit 0 

works in this way:

# /etc/cron.daily/makewhatis
chmod: cannot access `/var/cache/man/whatis': No such file or directory
chmod: cannot access `/var/cache/man/whatis': No such file or directory
chmod: cannot access `/var/cache/man/whatis': No such file or directory
chmod: cannot access `/var/cache/man/whatis': No such file or directory
chmod: cannot access `/var/cache/man/whatis': No such file or directory
chmod: cannot access `/var/cache/man/whatis': No such file or directory
chmod: cannot access `/var/cache/man/whatis': No such file or directory
chmod: cannot access `/var/cache/man/whatis': No such file or directory

and called from:
/etc/cron.weekly/makewhatis (makewhatis.cronweekly in cvs/SOURCES)
#!/bin/sh
LOCKFILE=/var/lock/makewhatis.lock
# [... commnets ...]
[ -f $LOCKFILE ] && exit 0
touch $LOCKFILE
makewhatis -w
rm -f $LOCKFILE
exit 0

produces:
root 0 2005-07-09 17:35 /var/cache/man/whatis
[root at asus 17:36 ~]# ls -l /var/cache/man/whatis /usr/share/man/whatis
-rw-------  1 root root 0 2005-07-09 17:36 /usr/share/man/whatis
-rw-r--r--  1 root root 0 2005-07-09 17:35 /var/cache/man/whatis

But I don't care about broken makawhatis:

# makewhatis-bsd 
-o /var/cache/man/whatis /usr/share/man /usr/X11R6/man /usr/local/man
makewhatis-bsd: /usr/share/man/man1/xpmroot.1: No such file or directory
# l /usr/share/man/man1/xpmroot.1
lrwxrwxrwx  1 root root 11 2004-09-17 01:13 /usr/share/man/man1/xpmroot.1 -> 
fvwm-root.1
Dead link.
# l /var/cache/man/whatis
-rw-r--r--  1 root root 891K 2005-07-09 17:43 /var/cache/man/whatis
# umask
077
[root at asus 17:45 ~]# whatis XtSetValues
XtSetValues(3x), XtVaSetValues(3x), XtSetSubvalues(3x), XtVaSetSubvalues(3x), 
XtGetValues(3x), XtVaGetValues(3x), XtGetSubvalues(3x), XtVaGetSubvalues(3x) 
- obtain and set widget resources

$ whatis oki4drv
oki4drv(1)               - User space based driver for OKIPAGE 4w, OKI400w, 
OKIPAGE 4w PLUS and OKIPAGE 8w Lite printers
oki4drv(8)               - User space based driver for OKIPAGE 4w, OKI400w, 
OKIPAGE 4w PLUS and OKIPAGE 8w Lite printers
grep: /usr/share/man/whatis: Permission denied
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^_ this file is produced by 
makewhatis of course

I leave for someone else - you can switch to makewhatis-bsd or repair 
makewhatis.

-- 
Tomasz Wittner



More information about the pld-devel-en mailing list