sous-chefs / homebrew

Development repository for the homebrew cookbook
https://supermarket.chef.io/cookbooks/homebrew
Apache License 2.0
152 stars 136 forks source link

Increase the shell-out timeout to the homebrew package provider #49

Closed ringods closed 9 years ago

ringods commented 10 years ago

Installing gcc46 takes more than 600s, so the shell-out times out on me:

           ================================================================================

           Error executing action `install` on resource 'package[gcc46]'

       ================================================================================

       Mixlib::ShellOut::CommandTimeout
           --------------------------------
           Command timed out after 600s:
           Command execeded allowed execution time, process terminated
           ---- Begin output of brew install  gcc46 ----

Please increase the timeout value for the shell-out of the homebrew package provider.

For your information, manually installing the gcc46 package takes 19.7 minutes:

default-osx-109:~ vagrant$ brew install gcc46
==> Downloading http://ftpmirror.gnu.org/gcc/gcc-4.6.4/gcc-4.6.4.tar.bz2
Already downloaded: /Library/Caches/Homebrew/gcc46-4.6.4.tar.bz2
==> ../configure --build=x86_64-apple-darwin13.3.0 --prefix=/usr/local/Cellar/gc
==> make bootstrap
==> make install
🍺  /usr/local/Cellar/gcc46/4.6.4: 1009 files, 108M, built in 19.7 minutes
jtimberman commented 9 years ago

The package resource in Chef has a timeout parameter, which is by default 900 seconds.