From f9ee76a817408a52505caa8e1291e9da0aeafbf9 Mon Sep 17 00:00:00 2001
From: Tim Haines <thaines.astro@gmail.com>
Date: Tue, 4 Aug 2020 13:48:08 -0500
Subject: [PATCH] Dyninst: 10.2 release (#17847)

* Dyninst: 10.2 release

* Use 'elf' instead of 'elfutils'

* Use v10.2.0 tag

* Change minimum elfutils to 0.173

* Move STERILE_BUILD option to correct cmake_args

* make a sacrifice to the flake8 gods

* Add maintainer

* Revert to using elf@1 for elfutils
---
 var/spack/repos/builtin/packages/dyninst/package.py | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/var/spack/repos/builtin/packages/dyninst/package.py b/var/spack/repos/builtin/packages/dyninst/package.py
index 6f43c1eb7b..b6d1fa540f 100644
--- a/var/spack/repos/builtin/packages/dyninst/package.py
+++ b/var/spack/repos/builtin/packages/dyninst/package.py
@@ -13,8 +13,10 @@ class Dyninst(CMakePackage):
 
     homepage = "https://dyninst.org"
     git      = "https://github.com/dyninst/dyninst.git"
+    maintainers = ['hainest']
 
-    version('develop', branch='master')
+    version('master', branch='master')
+    version('10.2.0', tag='v10.2.0')
     version('10.1.0', tag='v10.1.0')
     version('10.0.0', tag='v10.0.0')
     version('9.3.2', tag='v9.3.2')
@@ -89,6 +91,11 @@ def cmake_args(self):
         else:
             args.append('-DENABLE_STATIC_LIBS=NO')
 
+        # Make sure Dyninst doesn't try to build its own dependencies
+        # outside of Spack
+        if spec.satisfies('@10.2.0:'):
+            args.append('-DSTERILE_BUILD=ON')
+
         return args
 
     # Old style cmake args, up through 10.0.
-- 
GitLab