Bug 131361 - [Win] Pass default parameters to cygwin setup wizard
Summary: [Win] Pass default parameters to cygwin setup wizard
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Andres Gomez Garcia
URL:
Keywords:
Depends on:
Blocks: 131365
  Show dependency treegraph
 
Reported: 2014-04-08 08:53 PDT by Andres Gomez Garcia
Modified: 2014-04-16 11:52 PDT (History)
4 users (show)

See Also:


Attachments
Patch (42.53 KB, patch)
2014-04-08 09:31 PDT, Andres Gomez Garcia
no flags Details | Formatted Diff | Diff
Patch (42.57 KB, patch)
2014-04-09 02:56 PDT, Andres Gomez Garcia
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andres Gomez Garcia 2014-04-08 08:53:57 PDT
When running the cygwin installer we are told to set some of the options during cygwin installation in the setup wizard.

This is not needed since the setup wizard accepts parameters itself.
Comment 1 Andres Gomez Garcia 2014-04-08 09:31:11 PDT
Created attachment 228844 [details]
Patch
Comment 2 Brent Fulgham 2014-04-08 12:26:22 PDT
Comment on attachment 228844 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=228844&action=review

> Tools/CygwinDownloader/cygwin-downloader.py:165
> +        os.execv("setup.exe", list(("-L", "-R", "C:\cygwin", "-l", os.getcwd(), "-P", ",".join(required_packages))))

Isn't this setup-x86.exe nowadays?

Also, Cygwin might not be installed in C:\cygwin. Is there an environment/Registry setting we can use to identify where it should be?
Comment 3 Andres Gomez Garcia 2014-04-09 02:26:17 PDT
Comment on attachment 228844 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=228844&action=review

>> Tools/CygwinDownloader/cygwin-downloader.py:165
>> +        os.execv("setup.exe", list(("-L", "-R", "C:\cygwin", "-l", os.getcwd(), "-P", ",".join(required_packages))))
> 
> Isn't this setup-x86.exe nowadays?
> 
> Also, Cygwin might not be installed in C:\cygwin. Is there an environment/Registry setting we can use to identify where it should be?

The script already renames setup-x86.exe to setup.exe when performing the download.

You are right about the installation path. I think the best would actually be to completely remove that option from the parameters. In the end, the setup wizard will still show us the option of changing the path and it seems already smart enough to chose C:/cygwin or whichever is the best suitable path.
Comment 4 Andres Gomez Garcia 2014-04-09 02:56:24 PDT
Created attachment 228952 [details]
Patch
Comment 5 Brent Fulgham 2014-04-16 11:21:03 PDT
Comment on attachment 228952 [details]
Patch

r=me.
Comment 6 WebKit Commit Bot 2014-04-16 11:52:29 PDT
Comment on attachment 228952 [details]
Patch

Clearing flags on attachment: 228952

Committed r167370: <http://trac.webkit.org/changeset/167370>
Comment 7 WebKit Commit Bot 2014-04-16 11:52:31 PDT
All reviewed patches have been landed.  Closing bug.