X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 	tests=BAYES_00
X-Spam-Check-By: sourceware.org
Date: Mon, 16 Mar 2009 08:24:32 -0800 (PST)
From: David Dyck <david.dyck@fluke.com>
To: "Lee D.Rothstein" <lee@veritech.com>
cc: Cygwin Tech List <cygwin@cygwin.com>
Subject: Re: Problem with 575 man pages -- ( libncurses-devel-5.7-4 problem?  )
In-Reply-To: <49BDE52A.80100@veritech.com>
Message-ID: <Pine.LNX.4.62.0903160742170.10747@dd.tc.fluke.com>
References: <49BDE52A.80100@veritech.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com


On Sun, 15 Mar 2009 at 22:35 -0700, lee@... wrote:

> A large number (575) of 'man' pages, that reference other man pages using a
> '.so' (source include) reference, fail to work because the plain text files
> have the '.gz' extension appended without actually being gzipped. Could
> this be due to a mishap in or with the 'cygport' package?
>
> Each reference appears to be okay (I've only tested a handful), iff you
> remove the '.gz' extension.

I see a similar list (only 574 :-) if I execute the following commands

$ cd /usr/share/man/man3
$ file *.gz | perl -ne 's/^[^:]*:\s*//; print unless /gzip compressed data/' | sort  | uniq -c
     574 ASCII troff or preprocessor input text

The error message I see

$ man wtimeout

gzip: /usr/share/man/man3/wtimeout.3x.gz: not in gzip format
fgets: No such file or directory
Error reading man page /usr/share/man/man3/wtimeout.3x.gz
No manual entry for wtimeout

If I examine where the files come from

$ cd /usr/share/man/man3
$ file *.gz | perl -ne 's/^([^:]*)://; my $f=$1; unless ( /gzip compressed data/ ) { my $cmd = "cygcheck -f $ENV{PWD}/$f"; print "$f - ".`$cmd`;  } '

I see they all come from one package "libncurses-devel-5.7-4"

To verify this a quick look at the man3 pages that are installed from libncurses-devel 
reveals  the same 574 .gz files that aren't really compressed.
  (I needed the dos2unix because the output of the cygcheck/grep pipe had \015 at the end of the lines,
   which caused xargs to choke)

$ cygcheck -l libncurses-devel | grep 'man3.*gz' |  dos2unix | xargs file  | perl -ne 's/^[^:]*:\s*//; print unless /gzip compressed data/' | sort  | uniq -c
     574 ASCII troff or preprocessor input text

So, at least many of your 575 files that are incorrectly named as .gz files 
are from one package.  Perhaps this will bring you closer to a solution.

David

--
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/

