2019-01-01 14:04:23 +08:00
|
|
|
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
|
2018-10-08 04:52:23 +08:00
|
|
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
2015-12-09 16:06:10 +08:00
|
|
|
#
|
2018-10-08 04:52:23 +08:00
|
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
|
2015-12-09 16:06:10 +08:00
|
|
|
from spack import *
|
|
|
|
|
|
|
|
|
2018-03-01 15:13:06 +08:00
|
|
|
class Gdb(AutotoolsPackage):
|
2016-08-10 16:50:00 +08:00
|
|
|
"""GDB, the GNU Project debugger, allows you to see what is going on
|
2016-08-24 23:32:29 +08:00
|
|
|
'inside' another program while it executes -- or what another
|
2016-08-31 05:28:55 +08:00
|
|
|
program was doing at the moment it crashed.
|
|
|
|
"""
|
2016-08-10 16:50:00 +08:00
|
|
|
|
2015-12-09 16:06:10 +08:00
|
|
|
homepage = "https://www.gnu.org/software/gdb"
|
2018-08-16 14:27:21 +08:00
|
|
|
url = "https://ftpmirror.gnu.org/gdb/gdb-7.10.tar.gz"
|
2015-12-09 16:06:10 +08:00
|
|
|
|
2018-09-15 04:56:15 +08:00
|
|
|
version('8.2', '0783c6d86775c5aff06cccc8a3d7cad8')
|
2018-05-09 10:08:39 +08:00
|
|
|
version('8.1', '0c85ecbb43569ec43b1c9230622e84ab')
|
2018-01-12 00:06:53 +08:00
|
|
|
version('8.0.1', 'bb45869f8126a84ea2ba13a8c0e7c90e')
|
2017-12-19 16:54:18 +08:00
|
|
|
version('8.0', '9bb49d134916e73b2c01d01bf20363df')
|
2017-04-29 20:44:55 +08:00
|
|
|
version('7.12.1', '06c8f40521ed65fe36ebc2be29b56942')
|
2016-05-10 04:32:46 +08:00
|
|
|
version('7.11', 'f585059252836a981ea5db9a5f8ce97f')
|
2016-01-09 06:16:30 +08:00
|
|
|
version('7.10.1', 'b93a2721393e5fa226375b42d567d90b')
|
|
|
|
version('7.10', 'fa6827ad0fd2be1daa418abb11a54d86')
|
|
|
|
version('7.9.1', 'f3b97de919a9dba84490b2e076ec4cb0')
|
|
|
|
version('7.9', '8f8ced422fe462a00e0135a643544f17')
|
|
|
|
version('7.8.2', '8b0ea8b3559d3d90b3ff4952f0aeafbc')
|
2015-12-09 16:06:10 +08:00
|
|
|
|
2016-09-20 17:46:30 +08:00
|
|
|
variant('python', default=True, description='Compile with Python support')
|
2018-09-15 22:06:16 +08:00
|
|
|
variant('xz', default=True, description='Compile with lzma support')
|
2016-09-20 17:46:30 +08:00
|
|
|
|
|
|
|
# Required dependency
|
2016-03-09 23:46:56 +08:00
|
|
|
depends_on('texinfo', type='build')
|
2015-12-09 16:06:10 +08:00
|
|
|
|
2018-05-09 10:08:39 +08:00
|
|
|
# Optional dependencies
|
2016-09-20 17:46:30 +08:00
|
|
|
depends_on('python', when='+python')
|
2018-05-09 10:08:39 +08:00
|
|
|
depends_on('xz', when='+xz')
|
2016-09-20 17:46:30 +08:00
|
|
|
|
2018-03-01 15:13:06 +08:00
|
|
|
def configure_args(self):
|
|
|
|
args = []
|
|
|
|
if '+python' in self.spec:
|
|
|
|
args.append('--with-python')
|
|
|
|
args.append('LDFLAGS={0}'.format(
|
|
|
|
self.spec['python'].libs.ld_flags))
|
|
|
|
return args
|