delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/08/15/18:15:55

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type; q=dns; s=default; b=v3
ziSZXHzPY+tvcL488czn2kLgNKj4vmx0RDiH7LlilCKrmXYNmnHhb6h6vSh22Jvx
B8pO6W2TqKcVRnWSCaDIJVF+Z4idDjiZUWb6J3Y+Xdqb+sOr/QgqOduBcHXbZAME
oncVYp5NGltGJqrAuscDXHZkrMoBTDNlstNM2gkog=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type; s=default; bh=UsjhQnKD
F1y6JExOXx2HS0L7eDA=; b=jIj2cD/fDJCj1BaX3kyw6ElERSQBLhMMUE3szkXi
W/DAxZfsIB+7iwYn2DEcDqRsT8gECGbJYvuG+aT0Yyo9DTUtuxLebDYAbUESVcRn
bRfk2+e2cVXfpVj5NDxuugsse7wvdOuqDMuPp4pVXISjLAaQg1E9Yi5sA2168aWd
B4M=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-we0-f177.google.com
MIME-Version: 1.0
X-Received: by 10.180.186.3 with SMTP id fg3mr51015778wic.78.1408140927517; Fri, 15 Aug 2014 15:15:27 -0700 (PDT)
In-Reply-To: <53EE1737.7080306@cygwin.com>
References: <announce DOT 53EDA004 DOT 7060207 AT cygwin DOT com> <CAMKht8jp2tA1SLtXpSs1=ubrfTNQkpwzNUHW7omo0OF4=cvXuw AT mail DOT gmail DOT com> <53EE1737 DOT 7080306 AT cygwin DOT com>
Date: Fri, 15 Aug 2014 18:15:27 -0400
Message-ID: <CAMKht8jpQVfDhDorom24OiJ9YE07zBqjDSF5zVfWiFsdN1kaUg@mail.gmail.com>
Subject: Re: [ANNOUNCEMENT] Updated: man-db-2.6.7-2
From: Michael DePaulo <mikedep333 AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

On Fri, Aug 15, 2014 at 10:20 AM, Yaakov Selkowitz
<yselkowitz AT cygwin DOT com> wrote:
> On 2014-08-15 07:22, Michael DePaulo wrote:
>>>
>>> This release removes the cache database generation from the postinstall
>>> step
>>> due to its often excessive length.  Users will need to manage the
>>> database
>>> themselves with mandb(1) in order to use whatis/apropos(1).
>>
>>
>> IMHO, this sounds like a serious decrease in Cygwin's usability.
>>
>> How do Linux distributions handle this? Linux distros install many
>> more packages by default, so doesn't their cache database generation
>> typically take much longer?
>
>
> Exactly why they don't seem to do it during postinstall either.  For
> example, in Fedora this is handled by a cron job.  A future release may add
> that functionality, but it is clear that postinstall is the wrong place for
> it.

I disagree, but I need to read more about the subject in order to have
a well-informed opinion.

>> Also, should documentation (or perhaps the info a user sees when they
>> start Cygwin for the 1st time) be updated?
>
>
> How so?
>
> Yaakov

Consider the example of where I work. After I install the corporate IT
department's SCCM "package"/"script" for Cygwin (1.7.16, last updated
August 2012), I am greeted by this message every time I start the
Cygwin Terminal:
----
Your group is currently "mkpasswd".  This indicates that your
gid is not in /etc/group and your uid is not in /etc/passwd.

The /etc/passwd (and possibly /etc/group) files should be rebuilt.
See the man pages for mkpasswd and mkgroup then, for example, run

mkpasswd -l [-d] > /etc/passwd
mkgroup  -l [-d] > /etc/group

Note that the -d switch is necessary for domain users.
----
I can get rid of the message if do I run those commands.

However, here's what happens if I do run them:

mkpasswd -l -d
takes 9m29.159s
outputs 37062 lines

mkgroup -l -d
takes 4m26.470s
outputs 36866 lines

(I have to run those commands with admin rights, but fortunately mandb
does not require admin rights because of user DBs.)

I am not suggesting that users see a mandb message every time they
launch cygwin. But I am suggesting that that users see it when they
1st launch cygwin. They already see this message:
----
Copying skeleton files.
These files are for the users to personalise their cygwin experience.

They will never be overwritten nor automatically updated.

'./.bashrc' -> '/home/mike//.bashrc'
'./.bash_profile' -> '/home/mike//.bash_profile'
'./.inputrc' -> '/home/mike//.inputrc'
'./.profile' -> '/home/mike//.profile'
----
Also, users who are particularly reliant on the apropos command
probably don't know about running the mandb command. It's analogous to
users launching the Windows "Help and Support" Center, but its search
bar returning 0 results they haven't run another utility 1st.

-Mike

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019