Pre-install Cygwin

ajlennon's Avatar

ajlennon

19 Oct, 2014 09:27 AM

Hi,

Would it be possible to have Cygwin pre-installed on the build worker image?

Regards,

Alex

  1. Support Staff 1 Posted by Feodor Fitsner on 20 Oct, 2014 05:30 PM

    Feodor Fitsner's Avatar

    Could you drop a link on installer please?

  2. 2 Posted by ajlennon on 20 Oct, 2014 06:39 PM

    ajlennon's Avatar

    This is the standard bootstrap for a Cygwin 32-bit installation. There is also a 64-bit build but (and I might be wrong here) I think the 32-bit is good enough for whatever is likely to be needed...

    https://cygwin.com/setup-x86.exe

    It goes off, grabs some base files and a mirrror, then lets you choose which components to install, which is perhaps an issue.

    There is some command line automation and fwiw this is what I arrived at with Mladen Mihajlovic to set a mirror and to grab the needed packages to build Mono

        - 'setup.exe -qnNdO -R "%CYG_ROOT%" -s "%CYG_MIRROR%" -l "%CYG_CACHE%" -P autoconf -P automake -P bison -P gcc-core -P gcc-g++ -P mingw-gcc -P libtool -P make -P python -P gettext-devel -P gettext -P intltool -P libiconv -P pkg-config > NUL'

    ref: https://github.com/DynamicDevices/mono/blob/master/appveyor.yml

  3. 3 Posted by ajlennon on 20 Oct, 2014 06:40 PM

    ajlennon's Avatar

    (If you do this in an interactive manner then it'll go through a UI with you and let you select fairly self-explanatory packages to install)

  4. Support Staff 4 Posted by Feodor Fitsner on 20 Oct, 2014 07:03 PM

    Feodor Fitsner's Avatar

    OK, thanks! Will take a look.

  5. 5 Posted by Lars Brinkhoff on 23 Oct, 2014 06:08 AM

    Lars Brinkhoff's Avatar

    I would suggest Cygwin64. It seems to be the way of the future.

    https://cygwin.com/setup-x86_64.exe

  6. 6 Posted by ajlennon on 23 Oct, 2014 07:25 AM

    ajlennon's Avatar

    I'm not so sure that there are any advantages in using x64.

    I did look into some threads on this prior to making the suggestion and the impression I received was that x32 was the way to go.

    Are there any benefits to using x64?

  7. 7 Posted by Lars Brinkhoff on 23 Oct, 2014 08:46 AM

    Lars Brinkhoff's Avatar

    I was under the impression that Cygwin64 was more actively developed, and that Cygwin32 was on its way out. But now that I did some research, I couldn't confirm that.

    Cygwin64 doesn't yet have all the packages that Cygwin32 does, so that would be a reason to go with the 32-bit version.

  8. 8 Posted by ajlennon on 23 Oct, 2014 08:51 AM

    ajlennon's Avatar

    My current rule of thumb is that x64 builds cause problems and don't offer anything significant over and above x32 builds.

    I do believe historically that's been true of various software packages, but it's of course not always going to be true and at some point in time x64 will be the appropriate way to go.

    So not disagreeing with you here, just wanting to garner some feedback on where we are with the x32 -> x64 process in general.

    I can't see the original links I was reading but it was this type of thing wrt Cygwin

    http://stackoverflow.com/questions/18329233/is-it-advisable-to-switch-from-cygwin-32bit-to-cygwin-64bit

    Cheers, Alex

  9. Support Staff 9 Posted by Feodor Fitsner on 24 Oct, 2014 04:53 AM

    Feodor Fitsner's Avatar

    Hi guys,

    We've installed Cygwin both x86 and x64 to a separate build worker image called Unstable. You can choose this image on Environment tab of project settings or specify in appveyor.yml:

    os: unstable
    

    The command that was used to install cygwin:

    setup-x86.exe -qnNdO -R C:/cygwin -s http://cygwin.mirror.constant.com -l C:/cygwin/var/cache/setup -P autoconf -P automake -P bison -P gcc-core -P gcc-g++ -P mingw-runtime -P mingw-binutils -P mingw-gcc-core -P mingw-gcc-g++ -P mingw-pthreads -P mingw-w32api -P libtool -P make -P python -P gettext-devel -P gettext -P intltool -P libiconv -P pkg-config -P git -P wget -P curl
    
  10. 10 Posted by andy on 24 Oct, 2014 04:56 AM

    andy's Avatar

    Cool! Is setup-x86.exe available in path, such that we can install other packages?

  11. Support Staff 11 Posted by Feodor Fitsner on 24 Oct, 2014 04:59 AM

    Feodor Fitsner's Avatar

    Nope. It's been removed.

  12. 12 Posted by andy on 24 Oct, 2014 05:05 AM

    andy's Avatar

    Is it possible to maintain a copy of setup-x86.exe in cygwin install directory, such that we wouldn't have to download it manually again?

  13. Support Staff 13 Posted by Feodor Fitsner on 24 Oct, 2014 05:17 AM

    Feodor Fitsner's Avatar

    Done. C:\cygwin\setup-x86.exe

  14. 14 Posted by ajlennon on 24 Oct, 2014 08:19 AM

    ajlennon's Avatar

    Great news. Thanks Feodor

  15. 15 Posted by andy on 24 Oct, 2014 09:18 AM

    andy's Avatar

    Have just tested and it works as expected. Thanks!

  16. 16 Posted by ajlennon on 25 Oct, 2014 09:04 AM

    ajlennon's Avatar

    Works for me too :)

  17. 17 Posted by Lars Brinkhoff on 27 Oct, 2014 01:23 PM

    Lars Brinkhoff's Avatar

    Splendid! No more build timeouts due to slow Cygwin installation (when the build cache is empty).

  18. ajlennon closed this discussion on 30 Oct, 2014 03:51 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

19 Oct, 2017 02:25 AM
18 Oct, 2017 07:26 PM
18 Oct, 2017 11:00 AM
18 Oct, 2017 08:54 AM
18 Oct, 2017 07:42 AM

 

17 Oct, 2017 07:36 PM
17 Oct, 2017 05:39 PM
17 Oct, 2017 04:29 PM
17 Oct, 2017 07:49 AM
16 Oct, 2017 11:38 PM
16 Oct, 2017 10:01 PM