diff options
author | Erik Schnetter <schnetter@gmail.com> | 2023-01-10 07:02:32 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-10 13:02:32 +0100 |
commit | 856fe5941a52ba9b959caaf4a0bd0d83c06be72f (patch) | |
tree | b2589c18c19703e58fe87b6293452667bc58b3c4 /var | |
parent | 0f7f600d1fd0f80ec72c8a4c70cae617937921b8 (diff) | |
download | spack-856fe5941a52ba9b959caaf4a0bd0d83c06be72f.tar.gz spack-856fe5941a52ba9b959caaf4a0bd0d83c06be72f.tar.bz2 spack-856fe5941a52ba9b959caaf4a0bd0d83c06be72f.tar.xz spack-856fe5941a52ba9b959caaf4a0bd0d83c06be72f.zip |
libcap: 2.66 & GOLANG=no (#34813)
Co-authored-by: Harmen Stoppels <me@harmenstoppels.nl>
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/libcap/package.py | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/libcap/package.py b/var/spack/repos/builtin/packages/libcap/package.py index 3952d4d3ef..619ffc33d9 100644 --- a/var/spack/repos/builtin/packages/libcap/package.py +++ b/var/spack/repos/builtin/packages/libcap/package.py @@ -15,15 +15,28 @@ class Libcap(MakefilePackage): homepage = "https://sites.google.com/site/fullycapable/" url = "https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-2.25.tar.gz" + version("2.66", sha256="5f65dc5b2e9f63a0748ea1b05be7965a38548db1cbfd53b30271ff02186b3a4a") version("2.65", sha256="25718d9c45ef6beccb55b509ed4bae94ae2bdfeb808709662b264aec0a7016f4") version("2.64", sha256="e9ec608ae5720989d7274531f9898d64b6bca2491a231b8091229e49891933dd") version("2.25", sha256="4ca80dc6f9f23d14747e4b619fd9784434c570e24a7346f326c692784ed83a86") patch("libcap-fix-the-libcap-native-building-failure-on-CentOS-6.7.patch", when="@2.25") + def makeflags(self, prefix): + return [ + "RAISE_SETFCAP=no", + "GOLANG=no", + "USE_GPERF=no", + "SHARED=yes", + "lib=lib", + "prefix={}".format(prefix), + ] + + def build(self, spec, prefix): + make(*self.makeflags(prefix)) + def install(self, spec, prefix): - make_args = ["RAISE_SETFCAP=no", "lib=lib", "prefix={0}".format(prefix), "install"] - make(*make_args) + make(*self.makeflags(prefix), "install") - chmod = which("chmod") - chmod("+x", join_path(prefix.lib, "libcap.so")) + # this is a shared library that prints some info when executed + set_executable(join_path(prefix.lib, "libcap.so")) |