summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorOlivier Cessenat <cessenat@gmail.com>2022-04-14 17:53:52 +0200
committerGitHub <noreply@github.com>2022-04-14 08:53:52 -0700
commitf5520de4bda4b33422e76bb8127bf9c22092b342 (patch)
tree4599a7123d6515681dfc3caac4e95e59feb57b85 /var
parentbe99a72d5741ab2d09ee1daac8a2439fc73ef31c (diff)
downloadspack-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)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/libefence/package.py28
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)