delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/07/01/00:40:34

X-Spam-Check-By: sourceware.org
Message-ID: <44A5FCB3.40407@earthlink.net>
Date: Fri, 30 Jun 2006 21:40:19 -0700
From: Harry Dellicker <hbd_bugreports AT earthlink DOT net>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050923
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Customizing setup.exe (How to specify "default" packages)
References: <44A5DAC4 DOT 1040708 AT earthlink DOT net> <Pine DOT GSO DOT 4 DOT 63 DOT 0606302240310 DOT 12741 AT access1 DOT cims DOT nyu DOT edu>
In-Reply-To: <Pine.GSO.4.63.0606302240310.12741@access1.cims.nyu.edu>
X-ELNK-Trace: 9aed99a962f3dc83c8ad50643b1069f8239a348a220c2609d6202b14453b18623a1a1500e17be92a350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

Ah yes, it is so simple when someone who knows explains it clearly.  I 
should have asked sooner but was afraid I would get flamed for asking 
something "stupid."

Thanks,
Harry

P.S.  Is there any way to get ahold of a copy of the script used for 
creating the setup.ini file?  If not I guess I can simply tack my 
additions onto the end of the official copy each time I rsync my mirror.



Igor Peshansky wrote:

>On Fri, 30 Jun 2006, Harry Dellicker wrote:
>
>  
>
>>I know this has been asked before but I have not yet found a real answer.
>>
>> ---> How does setup.exe "decide" which packages are to be installed by
>>default?  <---
>>    
>>
>
>Simple.  Everything in the "Base" and "Misc" categories is installed by
>default.  Any package that an installed package requires is installed by
>default.  Shampoo, rinse, repeat.
>
>  
>
>>I do not see anything in setup.ini that controls this.
>>    
>>
>
>You didn't look hard enough.  It's everything with "category:.* Base" or
>"category:.* Misc".
>
>  
>
>>It is also not hard-coded in the setup program itself, as far as I can
>>tell, nor does there seem to be any other obvious external source (file)
>>which provides the necessary information.
>>    
>>
>
>Ah, but it *is* hard-coded in setup.  In two places.  See
>PickView::defaultTrust() and packagemeta::set_action().
>
>  
>
>>I have seen the suggestion that any packages placed in "Base" will be
>>included in the default package list, but that seems like a bit of a
>>kluge.
>>    
>>
>
>Perhaps, but that's how it is.
>
>  
>
>>I have spent hours with google, and hours studying the setup.exe source
>>code without any success.
>>
>>Does anyone have a answer to this?  Is it just so simple that "any six
>>year old" could see it, but I'm no longer six?
>>    
>>
>
>It is pretty simple.  And, to answer the question you've put in your
>subject line but never asked in the body of the message, the easiest way
>to make some packages install by default is to create an empty dummy
>package, put it in the "Base" category, and make it require all the
>packages you want installed.
>HTH,
>	Igor
>  
>


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