From b53eb2026a3da007dd8342cba62e8d5b2b58c5e1 Mon Sep 17 00:00:00 2001 From: "Mark W. Krentel" Date: Wed, 14 Nov 2018 19:05:08 -0600 Subject: elfutils: add version 0.174. (#9812) Pass cflags to configure so that configure gets the values from the spack install line. Disable -Werror so that we don't fail the build over a stray warning. --- var/spack/repos/builtin/packages/elfutils/package.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/elfutils/package.py b/var/spack/repos/builtin/packages/elfutils/package.py index 1234f5007a..2285a7fb62 100644 --- a/var/spack/repos/builtin/packages/elfutils/package.py +++ b/var/spack/repos/builtin/packages/elfutils/package.py @@ -4,6 +4,8 @@ # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * +import glob +import os.path class Elfutils(AutotoolsPackage): @@ -20,6 +22,7 @@ class Elfutils(AutotoolsPackage): list_url = "https://sourceware.org/elfutils/ftp" list_depth = 1 + version('0.174', '48bec24c0c8b2c16820326956dff9378') version('0.173', '35decb1ebfb90d565e4c411bee4185cc') version('0.170', '03599aee98c9b726c7a732a2dd0245d5') version('0.168', '52adfa40758d0d39e5d5c57689bf38d6') @@ -50,6 +53,14 @@ class Elfutils(AutotoolsPackage): # elfutils with gcc, and then link it to clang-built libraries. conflicts('%clang') + # Elfutils uses -Wall and we don't want to fail the build over a + # stray warning. + def patch(self): + files = glob.glob(os.path.join('*', 'Makefile.in')) + filter_file('-Werror', '', *files) + + flag_handler = AutotoolsPackage.build_system_flags + def configure_args(self): spec = self.spec args = [] -- cgit v1.2.3-70-g09d2