From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta002.cacentral1.a.cloudfilter.net (omta002.cacentral1.a.cloudfilter.net [3.97.99.33]) by sourceware.org (Postfix) with ESMTPS id 820603858D33 for ; Thu, 16 Feb 2023 05:55:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 820603858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=Shaw.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=shaw.ca Received: from shw-obgw-4002a.ext.cloudfilter.net ([10.228.9.250]) by cmsmtp with ESMTP id SW9BpCAxjl2xSSXFAp1jCo; Thu, 16 Feb 2023 05:55:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=shaw.ca; s=s20180605; t=1676526944; bh=z5H6y2b6XYdp3GacZyUGSkNw3FgT9zmiN8gfUhv8/HQ=; h=Date:Reply-To:Subject:To:References:From:In-Reply-To; b=uyO2T/A/ZCDYkJg4Mkaq6ImKoypEy6H7QFkpEgAq/1pAJV8hHNr3Hc783zQ7qz6Cw MtkTjgPqmaakw8F/EFFbatXk8V7p4CUI4J5rbx/Xzp4jesZYl7gmuTv6ZSIr+6ztHO Djrb9NO6PRb9m5exV70II4VsW9/nS9hAzSBDFzRJesoVQMx1aumHjgfIsYuGMlbsk7 RrsSJ7k5J1/q3EHeZe/PS7tK72sdgEzB8Edk0c0Y0ojDW9uhPRypM9XutEPZNjA4/x 77JAfJYs3D4SCI0+gEffMIRt27ASWrmRQ+WAZWtdDhoPA4+21EYW+HjgSoT7sxGlYm MOqYN3P/icSyw== Received: from [10.0.0.5] ([184.64.102.149]) by cmsmtp with ESMTP id SXF9p2zLAyAOeSXF9pd9Zl; Thu, 16 Feb 2023 05:55:44 +0000 X-Authority-Analysis: v=2.4 cv=e5oV9Il/ c=1 sm=1 tr=0 ts=63edc560 a=DxHlV3/gbUaP7LOF0QAmaA==:117 a=DxHlV3/gbUaP7LOF0QAmaA==:17 a=IkcTkHD0fZMA:10 a=w_pzkKWiAAAA:8 a=NEAV23lmAAAA:8 a=h2t2n_taDUvGY7KOhHYA:9 a=QEXdDO2ut3YA:10 a=zvuQ_vupYScA:10 a=sRI3_1zDfAgwuvI8zelB:22 Message-ID: <91d1ed6e-e1db-9b4e-1091-30ef28a18e57@Shaw.ca> Date: Wed, 15 Feb 2023 22:55:43 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.7.2 Reply-To: cygwin-apps@cygwin.com Subject: Re: man-pages-linux needs case sensitive directories Content-Language: en-CA To: cygwin-apps@cygwin.com References: <0e730b68-f661-ba13-9020-acce69932067@Shaw.ca> From: Brian Inglis Organization: Inglis In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfCpUJYZ8iy+YttiRV9t2QCgslI0DBPaAqWzMjyteDWlhAVc9UCadTCaTPFwn+J3Rku3E/s82dDXPIO2O1ksPd/2XFBtpWiu59Ah/uQEMuivKhcus/JyN FjRcOPSLsy0eUQQsyjo8iDSKGiSjIHsZlN2sFvW/xC2puZUKLPMGqxyiLjfAtc1i/h9RKTgePrVnbg== X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 2023-02-15 02:22, Corinna Vinschen wrote: > On Feb 15 00:11, Brian Inglis wrote: >> Linux man pages 6.03 has been released. >> I realized that some of the man pages are case sensitive e.g. _[Ee]xit.2, >> {NAN,nan}.3, perhaps others. >> I took care of my own system using commands like below, but would appreciate >> advice on whether there is any better portable or Cygwin specific approach, >> and what are the opinions on the best way to handle this in the cygport for >> download and install? >> Is this supported by Cygwin on Windows 10 versions >= [20]18-03 with the >> directory attribute set, are there likely to be any problems with git, or in >> general with POSIX<->Windows file names? >> $ cd /usr/share/man/linux/ >> $ for s in man?; do fsutil file setCaseSensitiveInfo $s; done > You can do this in Cygwin with the chattr(1) tool, see chattr --help. Thanks Corinna, I thought I remembered something but git and ml searches got no useful hits. > The hint "WSL must be installed" appears to be outdated, at least on > Windows 11. There are two approaches for case-sensitivity, see > https://cygwin.com/cygwin-ug-net/using-specialnames.html#pathnames-casesensitive > https://cygwin.com/cygwin-ug-net/using-specialnames.html#pathnames-casesensitivedirs > However, as part of the distro, the package must not rely on > case-sensitivity. We have to assume that most users are using Windows > in default settings. And we still support Windows versions prior to > Windows 10 1803. But even then, I encountered serious trouble with > case-sensitive directories on remote shares, see > https://github.com/microsoft/WSL/issues/3885 > so you'd get into trouble if the Cygwin installation is on a share. I noticed that and other issues, like needing to pre-create and fsutil/chattr the directories before extraction. > For colliding man pages, what you can do is to append a character to > the man page file, so you can install both. For instance: > exit.2 > Exit.2a > nan.3 > NAN.3a > Kind of like that. Thanks much for that great idea! I will check if it will extract with: TAR_OPTIONS="--transform=s,_Exit.2,_Exit.2u, --transform=s,NAN.3,NAN.3u, --show-transform-names" as those 2 files are small .so to man2/_exit.2 and man3/INFINITY.3 respectively, and note suffix "u" to make Uppercase Unique and deal with case conflicts. I have also noticed that man -m, --system=a,b priority is alphabetic, so -mman,linux displays Linux instead of Cygwin man pages, so will use man-pages-linux instead, and provide linux as a convenient interactive symlink for backward compatibility, and if anyone wants to see Linux over Cygwin. -- Take care. Thanks, Brian Inglis Calgary, Alberta, Canada La perfection est atteinte Perfection is achieved non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut -- Antoine de Saint-Exupéry