From eb9cb2d4a1a8ad1968859bd42318a65ba6ebb6d5 Mon Sep 17 00:00:00 2001 From: Todd Gamblin Date: Thu, 6 Apr 2017 09:42:46 -0700 Subject: [PATCH] Fix libdwarf/elfutils conflict --- var/spack/repos/builtin/packages/libdwarf/package.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/var/spack/repos/builtin/packages/libdwarf/package.py b/var/spack/repos/builtin/packages/libdwarf/package.py index fe131a842c..153b243e98 100644 --- a/var/spack/repos/builtin/packages/libdwarf/package.py +++ b/var/spack/repos/builtin/packages/libdwarf/package.py @@ -52,6 +52,11 @@ class Libdwarf(Package): parallel = False + + def patch(self): + filter_file(r'^typedef struct Elf Elf;$', '', 'libdwarf/libdwarf.h.in') + + def install(self, spec, prefix): # elfutils contains a dwarf.h that conflicts with libdwarf's