From dadec3bd255062e6ea965072458ef484c2a873c7 Mon Sep 17 00:00:00 2001 From: Dick Hollenbeck Date: Wed, 22 Jan 2014 07:44:02 -0600 Subject: [PATCH] Increase boost download TIMEOUT to 10 minutes, offer a LOG_DOWNLOAD option for capturing download problems. --- CMakeModules/download_boost.cmake | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/CMakeModules/download_boost.cmake b/CMakeModules/download_boost.cmake index b9c1d39d3f..f4bfab1c09 100644 --- a/CMakeModules/download_boost.cmake +++ b/CMakeModules/download_boost.cmake @@ -170,11 +170,20 @@ endif() ExternalProject_Add( boost PREFIX "${PREFIX}" - TIMEOUT 60 - DOWNLOAD_DIR "${DOWNLOAD_DIR}" - INSTALL_DIR "${BOOST_ROOT}" + URL http://downloads.sourceforge.net/project/boost/boost/${BOOST_RELEASE}/boost_${BOOST_VERS}.tar.bz2 + DOWNLOAD_DIR "${DOWNLOAD_DIR}" + TIMEOUT 600 # 10 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: + # /.downloads-by-cmake$ less /tmp/product/.downloads-by-cmake/boost_1_54_0/src/boost-stamp/boost-download-out.log + # /.downloads-by-cmake$ less /tmp/product/.downloads-by-cmake/boost_1_54_0/src/boost-stamp/boost-download-err.log + # If out.log does not show 100%, then try increasing TIMEOUT even more, or download the URL manually and put it + # into /.downloads-by-cmake + # LOG_DOWNLOAD ON + + INSTALL_DIR "${BOOST_ROOT}" # The patch command executes with the working directory set to # Revert the branch to pristine before applying patch sets as bzr patch