No output for compressed manpage

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

No output for compressed manpage

KAWAMATA Yoshihiro
Hello,

On freshly-installed OpenBSD 5.7, I found that any compressed manpage
isn't be displayed;

    # uname -a
    OpenBSD nimbus5.localnet 5.7 GENERIC#738 i386
    # sysctl kern.version
    kern.version=OpenBSD 5.7 (GENERIC) #738: Sun Mar  8 10:59:31 MDT 2015
        [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC
    # man ls
    LS(1)                       General Commands Manual                       LS(1)

    NAME
         ls - list directory contents

    SYNOPSIS
         ls [-1AaCcdFfgHhikLlmnopqRrSsTtux] [file ...]

    DESCRIPTION
         For each operand that names a file of a type other than directory, ls
         displays its name as well as any requested, associated information.  For
         each named directory, ls displays the names of files contained within
         that directory, as well as any requested, associated information.

         If no operands are given, the contents of the current directory are
         displayed.  If more than one operand is given, non-directory operands are
         displayed first; directory and non-directory operands a sorted sepa-
         ....

    # gzip /usr/share/man/man1/ls.1
    # ls /usr/share/man/man1/ls.1*
    /usr/share/man/man1/ls.1.gz
    # man ls
    wait: No child processes
    #

Of course, /etc/man.conf has been untouched ever.


Yoshihiro Kawamata

[hidden email]
http://fuguita.org/

Reply | Threaded
Open this post in threaded view
|

Re: No output for compressed manpage

Ingo Schwarze
Hello Kawamata-san,

KAWAMATA Yoshihiro wrote on Sat, May 02, 2015 at 12:46:12PM +0900:

> On freshly-installed OpenBSD 5.7, I found that any compressed manpage
> isn't be displayed;
>
>     # uname -a
>     OpenBSD nimbus5.localnet 5.7 GENERIC#738 i386
>     # sysctl kern.version
>     kern.version=OpenBSD 5.7 (GENERIC) #738: Sun Mar  8 10:59:31 MDT 2015
>         [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC
>     # man ls
>     LS(1)                 General Commands Manual                 LS(1)
[...]
>     # gzip /usr/share/man/man1/ls.1
>     # ls /usr/share/man/man1/ls.1*
>     /usr/share/man/man1/ls.1.gz
>     # man ls
>     wait: No child processes
>     #

Already fixed in -current:

  root@isnote # man -w ls          
  /usr/share/man/man1/ls.1
  /usr/local/man/man1/gls.1
  root@isnote # man ls
  LS(1)                 General Commands Manual                LS(1)
 
  NAME
       ls - list directory contents
  [...]
  root@isnote # gzip /usr/share/man/man1/ls.1
  root@isnote # man -w ls                    
  /usr/share/man/man1/ls.1.gz
  /usr/local/man/man1/gls.1
  root@isnote # man ls
  LS(1)                 General Commands Manual                LS(1)
 
  NAME
       ls - list directory contents
  [...]
  root@isnote #

Regarding 5.7:

  "Doctor, it hurts when i stick a knife into my eye."
  "Yes, so please don't do that."

Yours,
  Ingo

Reply | Threaded
Open this post in threaded view
|

Re: No output for compressed manpage

KAWAMATA Yoshihiro
Hello Ingo-san,

From: Ingo Schwarze <[hidden email]>
Subject: Re: No output for compressed manpage
Date: Sat, 2 May 2015 13:42:01 +0200
Message-ID: <[hidden email]>

>>     # gzip /usr/share/man/man1/ls.1
>>     # ls /usr/share/man/man1/ls.1*
>>     /usr/share/man/man1/ls.1.gz
>>     # man ls
>>     wait: No child processes
>>     #
>
> Already fixed in -current:

It's nice to hear from you.

I found this problem when I was building my OpenBSD LiveCD FuguIta.

For LiveCD, it is very important to get more disk space, so I've
compressed manpages by gzip.


Yoshihiro Kawamata

[hidden email]
http://fuguita.org/

Reply | Threaded
Open this post in threaded view
|

Re: No output for compressed manpage

Ingo Schwarze
Hello Kawamata-san,

KAWAMATA Yoshihiro wrote on Sat, May 02, 2015 at 10:51:19PM +0900:

> I found this problem when I was building my OpenBSD LiveCD FuguIta.
> For LiveCD, it is very important to get more disk space, so I've
> compressed manpages by gzip.

Oh, i see.  For that purpose, you can update just /usr/src/usr.bin/mandoc/
to -current; -current mandoc is compatible with 5.7, but contains
various improvements with respect to compression support.

  schwarze@fantadrom $ cd /usr/src/usr.bin/mandoc/
  schwarze@fantadrom $ cvs up -dP -rHEAD
  schwarze@fantadrom $ make cleandir
  schwarze@fantadrom $ make depend
  schwarze@fantadrom $ make
  schwarze@fantadrom $ sudo make install
  schwarze@fantadrom $ sudo makewhatis

I just tried, the above even works on 5.6-stable, so it is going
to work on 5.7, too.

Note, though, that you cannot do that on 5.5-stable because 5.5 lacks
reallocarray(3) and ohash_init(3).

Yours,
  Ingo

Reply | Threaded
Open this post in threaded view
|

Re: No output for compressed manpage

KAWAMATA Yoshihiro
From: Ingo Schwarze <[hidden email]>
Subject: Re: No output for compressed manpage
Date: Mon, 4 May 2015 17:13:29 +0200

> Oh, i see.  For that purpose, you can update just /usr/src/usr.bin/mandoc/
> to -current; -current mandoc is compatible with 5.7, but contains
> various improvements with respect to compression support.


Now I'm working for the 5.7 release of FuguIta LiveCD.
It has come to beta version, and will go RC in a few days.

At this point, applying these patches for mandoc causes rollback to
quite early phase of LiveCD build.

So I decided to keep working on without compression of man pages.

The improvements helped by your advice will be adopted in a future
release of the LiveCD.


Thank you,

----
Yoshihiro Kawamata

[hidden email]
http://fuguita.org/