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 <vsoch@users.noreply.github.com>
This commit is contained in:
Vanessasaurus 2021-03-23 23:59:34 -06:00 committed by GitHub
parent 95ad5b882c
commit c41c7ce638
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)