From 6b35324cf35cf655c2342c8ecd8a17fdb4ce86c4 Mon Sep 17 00:00:00 2001 From: Tim Haines Date: Sat, 31 Oct 2020 13:03:04 -0500 Subject: [PATCH] elfutils: add support for version 0.181 (#19634) This also includes handling of the new libdebuginfod flags. --- var/spack/repos/builtin/packages/elfutils/package.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/elfutils/package.py b/var/spack/repos/builtin/packages/elfutils/package.py index 8e1f520d7b6..42d055b74ea 100644 --- a/var/spack/repos/builtin/packages/elfutils/package.py +++ b/var/spack/repos/builtin/packages/elfutils/package.py @@ -21,6 +21,7 @@ class Elfutils(AutotoolsPackage, SourcewarePackage): list_url = "https://sourceware.org/elfutils/ftp" list_depth = 1 + version('0.181', sha256='29a6ad7421ec2acfee489bb4a699908281ead2cb63a20a027ce8804a165f0eb3') version('0.180', sha256='b827b6e35c59d188ba97d7cf148fa8dc6f5c68eb6c5981888dfdbb758c0b569d') version('0.179', sha256='25a545566cbacaa37ae6222e58f1c48ea4570f53ba991886e2f5ce96e22a23a2') version('0.178', sha256='31e7a00e96d4e9c4bda452e1f2cdac4daf8abd24f5e154dee232131899f3a0f2') @@ -44,6 +45,7 @@ class Elfutils(AutotoolsPackage, SourcewarePackage): description='Enable Native Language Support.') # libdebuginfod support + # NB: For 0.181 and newer, this enables _both_ the client and server variant('debuginfod', default=False, description='Enable libdebuginfod support.') @@ -106,8 +108,12 @@ def configure_args(self): if '+debuginfod' in spec: args.append('--enable-debuginfod') - elif spec.satisfies('@0.178:'): + if spec.satisfies('@0.181:'): + args.append('--enable-libdebuginfod') + else: args.append('--disable-debuginfod') + if spec.satisfies('@0.181:'): + args.append('--disable-libdebuginfod') return args