diff options
author | Olivier Cessenat <cessenat@gmail.com> | 2022-04-14 17:53:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-14 08:53:52 -0700 |
commit | f5520de4bda4b33422e76bb8127bf9c22092b342 (patch) | |
tree | 4599a7123d6515681dfc3caac4e95e59feb57b85 | |
parent | be99a72d5741ab2d09ee1daac8a2439fc73ef31c (diff) | |
download | spack-f5520de4bda4b33422e76bb8127bf9c22092b342.tar.gz spack-f5520de4bda4b33422e76bb8127bf9c22092b342.tar.bz2 spack-f5520de4bda4b33422e76bb8127bf9c22092b342.tar.xz spack-f5520de4bda4b33422e76bb8127bf9c22092b342.zip |
libefence: add package for the Electric Fence library from B. Perens (#29595)
-rw-r--r-- | var/spack/repos/builtin/packages/libefence/package.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libefence/package.py b/var/spack/repos/builtin/packages/libefence/package.py new file mode 100644 index 0000000000..516bfd3311 --- /dev/null +++ b/var/spack/repos/builtin/packages/libefence/package.py @@ -0,0 +1,28 @@ +# Copyright 2013-2022 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 Libefence(MakefilePackage): + """Electric Fence (or eFence) is a memory debugger written by Bruce Perens. + It consists of a library which programmers can link into their code to override + the C standard library memory management functions. eFence triggers a program + crash when the memory error occurs, so a debugger can be used to inspect the + code that caused the error.""" + + homepage = "https://packages.debian.org/unstable/electric-fence" + url = "https://deb.debian.org/debian/pool/main/e/electric-fence/electric-fence_2.2.6.tar.gz" + + maintainers = ['cessenat'] + + version('2.2.6', sha256='a949e0dedb06cbcd444566cce1457223f2c41abd3513f21663f30f19ccc48e24') + + def build(self, spec, prefix): + make() + + def install(self, spec, prefix): + make('install', 'LIB_INSTALL_DIR=' + prefix.lib, + 'MAN_INSTALL_DIR=' + prefix.man.man3, parallel=False) |