delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/02/28/23:41:11

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <47C78C47.50907@cwilson.fastmail.fm>
Date: Thu, 28 Feb 2008 23:38:31 -0500
From: Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm>
User-Agent: Thunderbird 2.0.0.12 (Windows/20080213)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Why does setup insist on trying to install colordiff?
References: <1ff86f510802280635y216c7d06k5f1b2febd2cf75ea AT mail DOT gmail DOT com> <009a01c87a18$4c347850$2e08a8c0 AT CAM DOT ARTIMI DOT COM> <1ff86f510802280705q275483bdmad7e5d336c467bc AT mail DOT gmail DOT com> <009d01c87a1d$536d2040$2e08a8c0 AT CAM DOT ARTIMI DOT COM> <42afa7b00802280731u7c4bebccqa5fbfe36bf239618 AT mail DOT gmail DOT com>
In-Reply-To: <42afa7b00802280731u7c4bebccqa5fbfe36bf239618@mail.gmail.com>
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

Kostya Altukhov wrote:
> I've actually looked in setup.exe source and I found this piece of code:
> 
>     if (installed
>         || categories.find ("Base") != categories.end ()
>         || categories.find ("Misc") != categories.end ())
>     {
>         desired = default_version;
> 
> So by default setup attempts to install all packages in categories
> Base and Misc. Why category Misc is treated as required? Maybe it
> should be removed from this 'if'. But that requires changing
> setup.exe, so the simplest fix would be just to change the category
> for colordiff from Misc to Utils (like it was in the ITP).

It's done this way, because if you run setup.exe and choose "install 
form local" where
  1) the local directory you use is NOT a website mirror nor a typical 
setup-generated download dir with those funky 
http%3a%2f%2fmirror.calvin.edu%2fcygwin/ subdirectories.
  2) instead, the local directory is just a simple dir containing a 
jumble of tarballs.
  3) and there is no setup.ini in sight

Then, setup pretends that all of the tarballs are in the Misc category, 
and offers to install them all.  This is probably what you wanted, 
right? Otherwise, why else did you select "install from <this 
particular> local directory"?

Changing this behavior would be bad -- BUT it also means that NO "real" 
package's setup.hint should EVER claim to be in Category Misc.  Misc is 
special.

--
Chuck


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

- Raw text -


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