diff options
author | Harmen Stoppels <harmenstoppels@gmail.com> | 2021-04-12 23:42:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-12 21:42:38 +0000 |
commit | 782a7dc69071a7c92dcc0d67bb130503e7c697bb (patch) | |
tree | 1210d303bcd6a4e73061405121876a81a540981b | |
parent | e30aff9b6b06809dd8ba47138bc0766d5392be12 (diff) | |
download | spack-782a7dc69071a7c92dcc0d67bb130503e7c697bb.tar.gz spack-782a7dc69071a7c92dcc0d67bb130503e7c697bb.tar.bz2 spack-782a7dc69071a7c92dcc0d67bb130503e7c697bb.tar.xz spack-782a7dc69071a7c92dcc0d67bb130503e7c697bb.zip |
Add new versions of patchelf (#22939)
-rw-r--r-- | var/spack/repos/builtin/packages/patchelf/package.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/patchelf/package.py b/var/spack/repos/builtin/packages/patchelf/package.py index be605f1c42..0289e78a99 100644 --- a/var/spack/repos/builtin/packages/patchelf/package.py +++ b/var/spack/repos/builtin/packages/patchelf/package.py @@ -11,14 +11,22 @@ class Patchelf(AutotoolsPackage): ELF executables.""" homepage = "https://nixos.org/patchelf.html" - url = "https://nixos.org/releases/patchelf/patchelf-0.10/patchelf-0.10.tar.gz" + url = "https://github.com/NixOS/patchelf/releases/download/0.12/patchelf-0.12.tar.bz2" list_url = "https://nixos.org/releases/patchelf/" list_depth = 1 + version('0.12', sha256='699a31cf52211cf5ad6e35a8801eb637bc7f3c43117140426400d67b7babd792') + version('0.11', sha256='e52378cc2f9379c6e84a04ac100a3589145533a7b0cd26ef23c79dfd8a9038f9') version('0.10', sha256='b2deabce05c34ce98558c0efb965f209de592197b2c88e930298d740ead09019') version('0.9', sha256='f2aa40a6148cb3b0ca807a1bf836b081793e55ec9e5540a5356d800132be7e0a') version('0.8', sha256='14af06a2da688d577d64ff8dac065bb8903bbffbe01d30c62df7af9bf4ce72fe') + def url_for_version(self, version): + if version < Version('0.12'): + return "https://nixos.org/releases/patchelf/patchelf-{0}/patchelf-{1}.tar.gz".format(version, version) + + return "https://github.com/NixOS/patchelf/releases/download/{0}/patchelf-{1}.tar.bz2".format(version, version) + def test(self): # Check patchelf in prefix and reports the correct version reason = 'test: ensuring patchelf version is {0}' \ |