diff options
author | Matthieu Dorier <mdorier@anl.gov> | 2019-12-13 21:19:59 +0000 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2019-12-13 15:19:59 -0600 |
commit | f589f69a6c464fe1b0dd3e0541011220718b8fea (patch) | |
tree | 1c6b4a6a96166dd21934231f0a122e6de000ded6 | |
parent | 0167ceb10437311e6c8ae5541492e0034130214f (diff) | |
download | spack-f589f69a6c464fe1b0dd3e0541011220718b8fea.tar.gz spack-f589f69a6c464fe1b0dd3e0541011220718b8fea.tar.bz2 spack-f589f69a6c464fe1b0dd3e0541011220718b8fea.tar.xz spack-f589f69a6c464fe1b0dd3e0541011220718b8fea.zip |
FIX: Making berkeley-db package fetch from correct links (#14147)
* making berkeley-db package fetch from oracle website
* removed blank space
* making flake8 happy
* fixing typos and order of versions
-rw-r--r-- | var/spack/repos/builtin/packages/berkeley-db/package.py | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/var/spack/repos/builtin/packages/berkeley-db/package.py b/var/spack/repos/builtin/packages/berkeley-db/package.py index 244f7ddaa1..31e93c120e 100644 --- a/var/spack/repos/builtin/packages/berkeley-db/package.py +++ b/var/spack/repos/builtin/packages/berkeley-db/package.py @@ -12,17 +12,23 @@ class BerkeleyDb(AutotoolsPackage): homepage = "http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/overview/index.html" url = "http://download.oracle.com/berkeley-db/db-5.3.28.tar.gz" - version('5.3.28', sha256='e0a992d740709892e81f9d93f06daf305cf73fb81b545afe72478043172c3628') - version('6.0.35', sha256='24421affa8ae436fe427ae4f5f2d1634da83d3d55a5ad6354a98eeedb825de55') - version('6.1.29', sha256='b3c18180e4160d97dd197ba1d37c19f6ea2ec91d31bbfaf8972d99ba097af17d') version('6.2.32', sha256='a9c5e2b004a5777aa03510cfe5cd766a4a3b777713406b02809c17c8e0e7a8fb') + version('6.1.29', sha256='b3c18180e4160d97dd197ba1d37c19f6ea2ec91d31bbfaf8972d99ba097af17d') + version('6.0.35', sha256='24421affa8ae436fe427ae4f5f2d1634da83d3d55a5ad6354a98eeedb825de55') + version('5.3.28', sha256='e0a992d740709892e81f9d93f06daf305cf73fb81b545afe72478043172c3628') configure_directory = 'dist' build_directory = 'spack-build' - def url_for_version(self, version): - # newer version need oracle login, so get them from gentoo mirror - return 'http://distfiles.gentoo.org/distfiles/db-{0}.tar.gz'.format(version) +# TODO: Gentoo's website removed the BerkeleyDB archives. +# Please update the function bellow with a valid mirror. +# Right now this package will fetch from the Oracle website, +# and versions 5.3.28 and 6.0.35 will fail to download. +# +# def url_for_version(self, version): +# # newer version need oracle login, so get them from gentoo mirror +# url_fmt = 'http://distfiles.gentoo.org/distfiles/db-{0}.tar.gz' +# return url_fmt.format(version) def configure_args(self): return ['--disable-static', '--enable-cxx', '--enable-stl'] |