delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/10/04/01:13:03

X-Spam-Check-By: sourceware.org
Message-ID: <452342CC.4010908@princeton.edu>
Date: Wed, 04 Oct 2006 01:12:44 -0400
From: Vinod Gupta <vinod AT Princeton DOT EDU>
User-Agent: Thunderbird 1.5.0.7 (Windows/20060909)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Un-attended install ALL
References: <452314B5 DOT 8020008 AT princeton DOT edu> <Pine DOT GSO DOT 4 DOT 63 DOT 0610032226060 DOT 12019 AT access1 DOT cims DOT nyu DOT edu>
In-Reply-To: <Pine.GSO.4.63.0610032226060.12019@access1.cims.nyu.edu>
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

On 10/3/2006 10:28 PM, Igor Peshansky wrote:
> On Tue, 3 Oct 2006, Vinod Gupta wrote:
>
>   
>>> Vinod Gupta wrote:
>>>
>>>         Vinod K Gupta wrote:
>>>
>>>             We have a local mirror of selected packages from which we
>>>             install cygwin on
>>>             user machines. When we perform un-attended installation
>>>             using setup.exe -q
>>>             -L -l -R... the installer installs only the Base packages.
>>>             How can we tell
>>>             setup to install ALL available packages?
>>>
>>>         Lary Hall wrote:
>>>         There are many ways but the easiest is to create a setup.hint file
>>>         with an empty package that's part of the Base category. Then
>>>         list all the
>>>         packages you want to install as its dependencies. Obviously,
>>>         you can leave
>>>         out other base packages. Voila! :-)
>>>
>>>
>>>     Thanks Lary,
>>>
>>>     I am not sure what you mean by "empty package" and how do you make
>>>     it known to the installer?
>>>     If I create a setup.hint and copy it to, say, release\base-files\,
>>>     will that work?
>>>     This sounds like fooling the installer. I can't believe that there
>>>     is nothing like "--InstallAll" option to the setup.exe installer.
>>>
>>>
>>> Lary Hall wrote:
>>> Fooling the installer into believing there is another package to install?
>>> Yes, that should be outlawed. ;-)
>>>
>>> Whatever you want to call it, this is the way to do it. See:
>>>
>>> <http://sources.redhat.com/cygwin-apps/package-server.html>
>>>
>>> if you haven't already.
>>>       
>> I tried but failed :(
>> I create allpackage as per instructions, here are contents:
>>
>> # cd <mymirror>
>> # ls -l release/allpackage/
>> total 1.0K
>> -rwxr-xr-x  1 vinod   0 2006-10-03 15:39 allpackage-0.0.1-1-src.tar.bz2
>> -rwxr-xr-x  1 vinod   0 2006-10-03 15:39 allpackage-0.0.1-1.tar.bz2
>>     
>                       ^^^
> This is one thing that's wrong.  You should create an empty tarball and
> then bzip2 it.  The size should be 46 bytes.
>
>   
>> -rwxr-xr-x  1 vinod 650 2006-10-03 15:45 setup.hint
>>
>> # cat release/allpackage/setup.hint
>> @ allpackage
>> sdesc: "Dummy package to include all my non-Base packages"
>> ldesc: "Dummy package to include all my non-Base packages"
>> category: Base
>> requires: X11 _update-info-dir alternatives ash base-files base-passwd bash
>> binutils bzip2 cabextract coreutils crypt cygrunsrv cygutils cygwin cygwin-doc
>> d db diffutils editrights expat file findutils gawk gcc gcc-mingw gdb gdbm
>> gettext grep groff gzip jpeg less libiconv libpng login make man mingw-runtime
>> minires mktemp ncurses openssh openssl pcre perl pine ping pkg-config
>> pkgconfig popt readline run sed sharutils tar tcltk tcsh termcap terminfo
>> texinfo time tnef unzip w32api wget which zip zlib
>>
>> # bunzip setup.bz2
>> # cat setup
>>
>> # This file is automatically generated.  If you edit it, your
>> # edits will be discarded next time the file is generated.
>> # See http://cygwin.com/setup.html for details.
>> #
>>     
>
> This is another.  You should use the genini script to generate setup.ini
> (and/or setup.bz2, but setup.ini should suffice).
>
>   
>> Installer still installs only the Base packages.
>> I thought genini did not generate good setup. I copied release/allpackage to
>> <main>/release/ and added contents of above setup.hint to
>> <main>/release/setup.ini
>>
>> Installer still installs only the Base packages :(
>>
>> What I am doing wrong?
>>     
>
> You need more information in setup.ini than what's in your setup.hint.
> Try browsing any of the mirrors for their setup.ini and use that as a
> template.
> 	Igor
>   

OK, I think I found the problem and a work around, if not the solution.

The following line must be added to setup.ini even if the allpackage is empty:
install: release/allpackage/allpackage-0.0.1-1.tar.bz2

The installer is looking at only <main>/release/, and NOT mymirror/release/. If I add allpackage folder to <main>/release/ and add contents of setup.hint to <main>/setup.ini (including install: line) then it works. But this is not a good solution because <main>/setup.ini will be overwritten next time I update cygwin.

The local packages folder has two mirrors - the main (http%3a%2f.../) and mymirror/ (which has only this empty allpackage). How do I tell setup.exe to look inside BOTH mirrors?

All this pain, just because some one did not include "--InstallAll" option to setup.exe??


Vinod

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