From c41c7ce63832e4106512c879e5b26982cf8358da Mon Sep 17 00:00:00 2001 From: Vanessasaurus <814322+vsoch@users.noreply.github.com> Date: Tue, 23 Mar 2021 23:59:34 -0600 Subject: adding debugedit package. (#22458) This package used to be a part of rpm, but now is being developed separately. It will supposedly be moved to a sourceware branch (it is maintained by redhat) but I do not know if this will happen soon. We need it in order to change locations in binaries that are built in /tmp and then moved elsewhere. I will ping @woodard who might be able to give us an estimate if we should include this development repository or wait for it to be moved elsewhere. Once this is merged, we will want to use the bootstrap approach to install and use the library from spack. Signed-off-by: vsoch --- .../repos/builtin/packages/debugedit/package.py | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 var/spack/repos/builtin/packages/debugedit/package.py diff --git a/var/spack/repos/builtin/packages/debugedit/package.py b/var/spack/repos/builtin/packages/debugedit/package.py new file mode 100644 index 0000000000..c677eb1242 --- /dev/null +++ b/var/spack/repos/builtin/packages/debugedit/package.py @@ -0,0 +1,32 @@ +# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack import * + + +class Debugedit(AutotoolsPackage): + """ + Debugedit was originally part of the rpm project, and is currently + being refactored to be provided outside of it. This source will + eventually be moved to sourceware or similar, as it is being maintained + by RedHat. + """ + + homepage = "https://code.wildebeest.org/git/user/mjw/debugedit" + git = "git://code.wildebeest.org/user/mjw/debugedit" + + version('develop', branch='main') + + depends_on('pkgconfig', type='build') + depends_on('autoconf', type='build') + depends_on('automake', type='build') + depends_on('libtool', type='build') + depends_on('elfutils') # requires libdw + depends_on('libiberty') + + def build(self, spec, prefix): + # requires libiberty + libiberty = spec['libiberty'].prefix.include.libiberty + make('CPPFLAGS=-I%s' % libiberty) -- cgit v1.2.3-60-g2f50