summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMichael Kuhn <michael.kuhn@informatik.uni-hamburg.de>2020-02-26 07:45:33 +0100
committerPeter Scheibel <scheibel1@llnl.gov>2020-02-27 10:52:52 -0800
commitf580b340f8fa04a7f2e915e27857ff8dad39aa67 (patch)
treef5e6362211f5906e1fa2578395ebbb7054de7f23 /var
parentb7cfd05ef72f26524a35c983067cedcc9f3750f3 (diff)
downloadspack-f580b340f8fa04a7f2e915e27857ff8dad39aa67.tar.gz
spack-f580b340f8fa04a7f2e915e27857ff8dad39aa67.tar.bz2
spack-f580b340f8fa04a7f2e915e27857ff8dad39aa67.tar.xz
spack-f580b340f8fa04a7f2e915e27857ff8dad39aa67.zip
Add new timeout fetch_option
This allows packages to override the global connect_timeout.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/bzip2/package.py9
-rw-r--r--var/spack/repos/builtin/packages/libffi/package.py6
2 files changed, 11 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/bzip2/package.py b/var/spack/repos/builtin/packages/bzip2/package.py
index 57d7046f93..87e616d76c 100644
--- a/var/spack/repos/builtin/packages/bzip2/package.py
+++ b/var/spack/repos/builtin/packages/bzip2/package.py
@@ -16,9 +16,12 @@ class Bzip2(Package):
homepage = "https://sourceware.org/bzip2/"
url = "https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz"
- version('1.0.8', sha256='ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269')
- version('1.0.7', sha256='e768a87c5b1a79511499beb41500bcc4caf203726fff46a6f5f9ad27fe08ab2b')
- version('1.0.6', sha256='a2848f34fcd5d6cf47def00461fcb528a0484d8edef8208d6d2e2909dc61d9cd')
+ # The server is sometimes a bit slow to respond
+ fetch_options = {'timeout': 60}
+
+ version('1.0.8', sha256='ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269', fetch_options=fetch_options)
+ version('1.0.7', sha256='e768a87c5b1a79511499beb41500bcc4caf203726fff46a6f5f9ad27fe08ab2b', fetch_options=fetch_options)
+ version('1.0.6', sha256='a2848f34fcd5d6cf47def00461fcb528a0484d8edef8208d6d2e2909dc61d9cd', fetch_options=fetch_options)
variant('shared', default=True, description='Enables the build of shared libraries.')
diff --git a/var/spack/repos/builtin/packages/libffi/package.py b/var/spack/repos/builtin/packages/libffi/package.py
index e5bf7b1df6..028c591355 100644
--- a/var/spack/repos/builtin/packages/libffi/package.py
+++ b/var/spack/repos/builtin/packages/libffi/package.py
@@ -13,8 +13,12 @@ class Libffi(AutotoolsPackage):
run time."""
homepage = "https://sourceware.org/libffi/"
+ # The server is sometimes a bit slow to respond
+ fetch_options = {'timeout': 60}
+
version('3.2.1', sha256='d06ebb8e1d9a22d19e38d63fdb83954253f39bedc5d46232a05645685722ca37',
- url="https://sourceware.org/pub/libffi/libffi-3.2.1.tar.gz")
+ url="https://sourceware.org/pub/libffi/libffi-3.2.1.tar.gz",
+ fetch_options=fetch_options)
@property
def headers(self):