From owner-freebsd-stable@FreeBSD.ORG Fri Feb 27 18:50:54 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7FF9516A4CF for ; Fri, 27 Feb 2004 18:50:54 -0800 (PST) Received: from TheWorld.com (pcls4-e.std.com [192.74.137.144]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3925843D2F for ; Fri, 27 Feb 2004 18:50:54 -0800 (PST) (envelope-from kwc@shell.TheWorld.com) Received: from shell.TheWorld.com (root@shell01.theworld.com [192.74.137.71]) by TheWorld.com (8.12.8p1/8.12.8) with ESMTP id i1S2oqEl025620; Fri, 27 Feb 2004 21:50:52 -0500 Received: (from kwc@localhost) by shell.TheWorld.com (8.9.3/8.9.3) id VAA24095934; Fri, 27 Feb 2004 21:50:52 -0500 (EST) Date: Fri, 27 Feb 2004 21:50:52 -0500 (EST) From: Kenneth W Cochran Message-Id: <200402280250.VAA24095934@shell.TheWorld.com> To: Dmitry Morozovsky References: <200402271908.OAA23119255@shell.TheWorld.com> <200402272241.RAA23531215@shell.TheWorld.com> cc: freebsd-stable@freebsd.org Subject: Re: makewhatis wierdness in 4.9-stable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Feb 2004 02:50:54 -0000 >Date: Sat, 28 Feb 2004 02:21:59 +0300 (MSK) >From: Dmitry Morozovsky >To: Kenneth W Cochran >cc: freebsd-stable@freebsd.org >Subject: Re: makewhatis wierdness in 4.9-stable > >On Fri, 27 Feb 2004, Kenneth W Cochran wrote: > >KWC> >KWC> Since makewhatis went from Perl to C I get the following output >KWC> >KWC> in the weekly periodic/maintenance run: >KWC> >KWC> >KWC> >KWC> Rebuilding whatis database: >KWC> >KWC> makewhatis: /usr/local/man/man1/scp.old.1: No such file or directory >KWC> >KWC> makewhatis: /usr/local/man/man1/ssh-add.old.1: No such file or directory >KWC> >KWC> makewhatis: /usr/local/man/man1/ssh-agent.old.1: No such file or directory >KWC> >KWC> makewhatis: /usr/local/man/man1/ssh-keygen.old.1: No such file or directory >KWC> >KWC> makewhatis: /usr/local/man/man1/ssh.old.1: No such file or directory >KWC> >KWC> >KWC> >KWC> Is something "strange" in /etc/*? Maybe something mergemaster >KWC> >KWC> didn't quite fix during a cvsup/{make,install}world? >KWC> > >KWC> >I suppose these are stale symlinks. What do you get by issuing >KWC> > >KWC> >ls -l /usr/local/man/man1/*.old.1 >KWC> > >KWC> >? >KWC> >KWC> $ ls -l /usr/local/man/man1/*.old.1 >KWC> lrwxrwxrwx 1 root wheel 6 Jan 19 2003 /usr/local/man/man1/scp.old.1 -> scp2.1 >KWC> lrwxrwxrwx 1 root wheel 10 Jan 19 2003 /usr/local/man/man1/ssh-add.old.1 -> ssh-add2.1 >KWC> lrwxrwxrwx 1 root wheel 12 Jan 19 2003 /usr/local/man/man1/ssh-agent.old.1 -> ssh-agent2.1 >KWC> lrwxrwxrwx 1 root wheel 13 Jan 19 2003 /usr/local/man/man1/ssh-keygen.old.1 -> ssh-keygen2.1 >KWC> lrwxrwxrwx 1 root wheel 6 Jan 19 2003 /usr/local/man/man1/ssh.old.1 -> ssh2.1 >KWC> $ > >Aha, so they _are_ symlinks, and there are no corresponding man pages, are >there? > >KWC> Hmmm... Any idea how this has happened? I've tracked >KWC> -stable since early 4.x times. > >AFAIR before "an early 4.x times" you had installed ssh 1.x which did rename >old man pages when reinstalling. FreeBSD port should always gzip manpages, so >ther would be .1.gz's > >Now, to the fixes: warnings are produces by line 177 from makewhatis.c, >function new_page_info(): > > if (stat(info->filename, &st) < 0) { > warn("%s", info->filename); > free_page_info(info); > return NULL; > } > >I do not think hiding this error is The Right Thing To Do [tm] ;-) Agreed :) >So just delete these stale links (actually, I just check my man page hierarchy >and clean up several stale links ;-) Ok, done; guess we'll see what happens with the next periodic-weekly run... On a related note, I have some *very* old files in system directores (/bin, /usr/bin, /sbin, /usr/sbin, /usr/lib, /usr/libexec ...) dating back as far as year 2000, apparently from the original install of 4.0-release and never updated from {build,install}world. Is there any (safe) way to get rid of that cruft? -kc >Sincerely, >D.Marck [DM5020, MCK-RIPE, DM3-RIPN] >------------------------------------------------------------------------ >*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** >------------------------------------------------------------------------