This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bug in bash 3.0-8: Removes its own manpage. [Attn: man maintainer]


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Jan Schormann on 7/21/2005 5:57 AM:
> Hi,
> 
> in /etc/postinstall/00bash.sh, it says (unconditionally):
> 
> ----
> # Get rid of ash manpage, if it is in the way of our compressed page.
> rm -f /usr/share/man/man1/sh.1

Ash used to install (uncompressed) as sh.1.  Bash-3.0-7 installs
(compressed) as sh.1.gz (actually, a symlink to a compressed, but symlinks
in the man directory have to have the same extension as what they link
to).  Since `man sh' prefers sh.1 over sh.1.gz, my original postinstall
script was not nuking its own file, but getting rid of ash's to ensure
that its own sh.1.gz would succeed.

But you are indeed correct - in making bash-3.0-8, I changed from sh.1.gz
as a symlink, to the more appropriate sh.1 with contents ".so
man1/bash.1.gz", without updating the postinstall script accordingly.  I
made the swap because I learned that using .so in man pages is more
efficient for reuse of the /var/cache/man/cat*/* pages of pre-rendered
output.  While normal pages are compressed to save space, compressing the
single line link pages typically expands the file size (with compression
information overhead), and is wasteful for the time spent unpacking it.

[Man maintainer - I noticed that the default installation of
/usr/share/misc/man.conf does not disable caching, but that /var/cache/man
does not have any catN subdirectories so attempts to create cache files
fail.  Can you fix your installation be fixed to ensure the cache
directory structure exists?]

It will be fixed in bash-3.0-9; in the meantime, you can do the following
to placate `cygcheck -cv bash':
echo .so man1/bash.1.gz > /usr/share/man/man1/sh.1

- --
Life is short - so eat dessert first!

Eric Blake             ebb9@byu.net
volunteer cygwin bash maintainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC35fp84KuGfSFAYARAsLcAJ0SEYJn+A6oTIMG9UVL1EoPo8PBZgCeJPeA
zKZCJzoVbmJY+hwkZ9vUA90=
=NuXE
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]