diff options
-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'] |