From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GE3z8-0005vc-5w for garchives@archives.gentoo.org; Fri, 18 Aug 2006 13:02:02 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k7ICxbXG016644; Fri, 18 Aug 2006 12:59:37 GMT Received: from psmtp02.wxs.nl (psmtp02.wxs.nl [195.121.247.11]) by robin.gentoo.org (8.13.7/8.13.6) with ESMTP id k7ICvYbE025169 for ; Fri, 18 Aug 2006 12:57:34 GMT Received: from graskamp (ip51cfa1ef.direct-adsl.nl [81.207.161.239]) by psmtp02.wxs.nl (iPlanet Messaging Server 5.2 HotFix 2.02 (built Oct 21 2004)) with ESMTP id <0J4700IO32NGVW@psmtp02.wxs.nl> for gentoo-user@lists.gentoo.org; Fri, 18 Aug 2006 14:57:16 +0200 (MEST) Date: Fri, 18 Aug 2006 14:56:36 +0200 From: Benno Schulenberg Subject: Re: [gentoo-user] Cleaning up multiple man pages (how?) In-reply-to: <9acccfe50608171843v32e4abc3s218fcfcec5ae1344@mail.gmail.com> To: gentoo-user@lists.gentoo.org Message-id: <200608181456.36944.benno.schulenberg@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-version: 1.0 Content-type: multipart/mixed; boundary="Boundary_(ID_R+0anjObjxE2o7f0CkOK+w)" User-Agent: KMail/1.9.4 References: <9acccfe50608171843v32e4abc3s218fcfcec5ae1344@mail.gmail.com> X-Archives-Salt: 62f2cf2e-fd39-43f5-b1d7-b6ed8ab4d460 X-Archives-Hash: d21b57e5ed89b4a4222a3a124356e299 --Boundary_(ID_R+0anjObjxE2o7f0CkOK+w) Content-type: text/plain; charset=utf-8 Content-disposition: inline Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id k7ICxbXk016644 Kevin O'Gorman wrote: > I've noticed that the whereis(1) command gives multiple results > for some queries. For instance, "whereis lilo" gives me > > kevin@treat ~ $ whatis lilo Ehm... 'whatis' is not 'whereis'. But leaving that aside, have a=20 look at your MANPATH: echo $MANPATH. If it contains repeated=20 entries, you may have to clean up /etc/env.d a bit: cd /etv/env.d/=20 and grep MANPATH *, prune the identical repetitions, then run=20 env-update, re-login and run makewhatis. Also have a look at /etc/man.conf. The NOAUTOPATH keyword is=20 probably needed. Check with: # grep -v ^# /etc/man.conf FHS MANPATH /usr/share/man MANPATH /usr/local/share/man MANPATH_MAP /bin /usr/share/man MANPATH_MAP /sbin /usr/share/man MANPATH_MAP /usr/bin /usr/share/man MANPATH_MAP /usr/sbin /usr/share/man MANPATH_MAP /usr/local/bin /usr/local/share/man MANPATH_MAP /usr/local/sbin /usr/local/share/man MANPATH_MAP /usr/bin/mh /usr/share/man NOAUTOPATH TROFF /usr/bin/groff -Tps -mandoc NROFF /usr/bin/nroff -Tascii -c -mandoc JNROFF /usr/bin/groff -Tnippon -mandocj EQN /usr/bin/geqn -Tps NEQN /usr/bin/geqn -Tlatin1 JNEQN /usr/bin/geqn -Tnippon TBL /usr/bin/gtbl REFER /usr/bin/refer PIC /usr/bin/pic VGRIND GRAP PAGER /usr/bin/less -is BROWSER /usr/bin/less -is HTMLPAGER /bin/cat CAT /bin/cat CMP /usr/bin/cmp -s COMPRESS /bin/cat COMPRESS_EXT .F MANSECT 1:1p:8:2:3:3p:4:5:6:7:9:0p:tcl:n:l:p:o:1x:2x:3x:4x:5x:6x:= 7x:8x .gz /bin/gunzip -c .bz2 /bin/bzip2 -c -d .z .Z /bin/zcat .F .Y # whatis man man (1) - format and display the on-line manual pages man (1p) - display system documentation man (7) - macros to format man pages man.conf [man] (5) - configuration data for man To get rid of the multiple reports by 'whereis', apply the attached=20 patch in an overlay to util-linux. It removes from the whereis=20 search path the dirs that on my system are symlinks. # whereis man man: /usr/bin/man /etc/man.conf /usr/local/man /usr/share/man /usr/share/= man/man1/man.1.gz /usr/share/man/man7/man.7.gz /usr/share/man/man1p/man.1= p.gz Benno --=20 Cetere mi opinias ke ne =C4=89io tradukenda estas. --Boundary_(ID_R+0anjObjxE2o7f0CkOK+w) Content-type: text/x-diff; charset=utf-8; name=util-linux--whereis-remove-symlinks.patch Content-disposition: attachment; filename=util-linux--whereis-remove-symlinks.patch Content-Transfer-Encoding: 7BIT --- misc-utils/whereis.c.old 2001-03-15 11:09:58.000000000 +0100 +++ misc-utils/whereis.c 2006-08-18 13:57:23.000000000 +0200 @@ -75,9 +75,7 @@ "/usr/tex/bin", "/usr/interviews/bin/LINUX", - "/usr/X11R6/bin", "/usr/X386/bin", - "/usr/bin/X11", "/usr/X11/bin", "/usr/X11R5/bin", @@ -111,7 +109,6 @@ }; static char *mandirs[] = { - "/usr/man/*", "/usr/share/man/*", "/usr/X386/man/*", "/usr/X11/man/*", --Boundary_(ID_R+0anjObjxE2o7f0CkOK+w)-- -- gentoo-user@gentoo.org mailing list