Hi All,

   >    From: Bruce Perens <[EMAIL PROTECTED]>
   >    We then have to lstat() _every_ page, and readlink() it if there is a 
link,
   >    when we build the index. I guess it wouldn't slow down the program too 
much,
   >    but why bother?
   > 
   > I assumed it would be easier to fix man once than to get package
   > maintainers to introduce the new files every time a new version is released
   > by the upstream source.
   > 
   > Easier yet would be to not worry about it, though I am guessing that the
   > cost of the duplicate, compressed pages is significant.

   Easiest would be to just try it yourself and pleasantly find that the
   current man package (2.3.7-4) already handles symlinks appropriately
   -- only one catpage is generated and all entries are kept in the index.

David is indeed correct.

e.g. (with man-2.3.7-4)

<purge all man dbs>
[EMAIL PROTECTED] cd /usr/local/man/man8
[EMAIL PROTECTED] cp pppd.8 foo.8
[EMAIL PROTECTED] ln -s foo.8 bar.8
[EMAIL PROTECTED] ls -l
total 62
lrwxrwxrwx   1 root     root            5 Aug  5 12:46 bar.8 -> foo.8
-rw-r--r--   1 root     root         9795 May 25  1994 chat.8
-rw-r--r--   1 root     root        25387 Aug  5 12:46 foo.8
-rw-r--r--   1 root     root        25387 Jun 11  1994 pppd.8
[EMAIL PROTECTED] ls -l /var/catman/local/cat8
total 0
[EMAIL PROTECTED] man bar
Reformatting bar(8), please wait...

PPPD(8)                                                   PPPD(8)

NAME
       pppd - Point to Point Protocol daemon
<...>
<q>
Still saving the page, please wait...
[EMAIL PROTECTED] ls -l /var/catman/local/cat8
total 11
-rw-r--r--   1 man      root        10641 Aug  5 13:08 foo.8.gz
[EMAIL PROTECTED] man -k point
pppd (8)             - Point to Point Protocol daemon
bar (8)              - Point to Point Protocol daemon
foo (8)              - Point to Point Protocol daemon
<...>
[EMAIL PROTECTED]

Is this what people are wanting man to do or am I confused?

The new man package (2.3.10-1) will be released real soon now. This
also handles symbolic links correctly - only one catpage is generated
and the indexing seems OK.


alvar (current man package maintainer)

--
Alvar Bray

Mail:     Meiko Limited           Meiko Inc.      
          650 Aztec West          130C Baker Avenue Ext.
          Bristol                 Concord
          BS12 4SD                MA 01742
          England                 USA
Voice:    +44 1454 616171         +1 508 371 0088
Fax:      +44 1454 618188         +1 508 371 7516
E-Mail:   [EMAIL PROTECTED]       [EMAIL PROTECTED] 
WWW:      http://www.meiko.com

Reply via email to