← Back to team overview

kicad-developers team mailing list archive

Re: [PATCH] Increased CMake download timeout for boost and openssl

 

You might want to keep these patches in your local repo although there
is no harm in committing them.  All of the external dependency download
and build code is going away after the stable release.

On 6/14/2015 8:28 PM, Marco Hess wrote:
> Hi,
> 
> I an new to this forum. I have been using KiCad for a little while now
> and started looking at how to make some modifications.
> 
> Here is a first trivial patch to extend the download timeout in CMake
> for some modules.
> 
> I found that while using WinBuilder on an older laptop, the boost
> download was cut off due to the timeout. After extending the timeout,
> the build completes fine on this older machine. The timeout in the
> openssl download was also increased.
> 
> === modified file 'CMakeModules/download_boost.cmake'
> --- CMakeModules/download_boost.cmake    2015-03-03 16:12:41 +0000
> +++ CMakeModules/download_boost.cmake    2015-06-13 02:49:50 +0000
> @@ -184,7 +184,7 @@
> 
>      URL
> http://downloads.sourceforge.net/project/boost/boost/${BOOST_RELEASE}/boost_${BOOST_VERS}.tar.bz2
> 
>      DOWNLOAD_DIR    "${DOWNLOAD_DIR}"
> -    TIMEOUT         1200            # 20 minutes
> +    TIMEOUT         3600            # 60 minutes
>      URL_MD5         ${BOOST_MD5}
>      # If download fails, then enable "LOG_DOWNLOAD ON" and try again.
>      # Upon a second failure with logging enabled, then look at these logs:
> 
> === modified file 'CMakeModules/download_openssl.cmake'
> --- CMakeModules/download_openssl.cmake    2014-04-03 11:55:02 +0000
> +++ CMakeModules/download_openssl.cmake    2015-06-13 02:49:40 +0000
> @@ -54,7 +54,7 @@
>      openssl
>      DOWNLOAD_DIR ${DOWNLOAD_DIR}
>      PREFIX ${PREFIX}
> -    TIMEOUT 60
> +    TIMEOUT 3600
>      URL
> http://launchpad.net/openssl-cmake/1.0.1e/1.0.1e-1/+download/openssl-cmake-1.0.1e-src.tar.gz
> 
>      URL_MD5 ${OPENSSL_MD5}
> 
> 
> 



References