summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorWouter Deconinck <wdconinc@gmail.com>2024-10-18 12:10:35 -0500
committerGitHub <noreply@github.com>2024-10-18 19:10:35 +0200
commit2356ccc816b8bfe8279f7dfda60ac0830e0935d9 (patch)
treef2e6e7c892dedaae686411ecc711c28191a38862 /var
parent1d25275bd1cc04aba54c79da60e5787b1a26cd99 (diff)
downloadspack-2356ccc816b8bfe8279f7dfda60ac0830e0935d9.tar.gz
spack-2356ccc816b8bfe8279f7dfda60ac0830e0935d9.tar.bz2
spack-2356ccc816b8bfe8279f7dfda60ac0830e0935d9.tar.xz
spack-2356ccc816b8bfe8279f7dfda60ac0830e0935d9.zip
solr: add v8.11.4, v9.7.0 (fix CVE) (#47037)
Co-authored-by: wdconinc <wdconinc@users.noreply.github.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/solr/package.py40
1 files changed, 27 insertions, 13 deletions
diff --git a/var/spack/repos/builtin/packages/solr/package.py b/var/spack/repos/builtin/packages/solr/package.py
index 0a14f666a3..532b5dfc65 100644
--- a/var/spack/repos/builtin/packages/solr/package.py
+++ b/var/spack/repos/builtin/packages/solr/package.py
@@ -12,23 +12,37 @@ class Solr(Package):
recovery,centralized configuration and more. Solr powers the search and
navigation features of many of the world's largest internet sites."""
- homepage = "https://lucene.apache.org/"
- url = "https://archive.apache.org/dist/lucene/solr/7.7.3/solr-7.7.3.tgz"
- list_url = "https://archive.apache.org/dist/lucene/solr"
+ homepage = "https://solr.apache.org/"
+ url = "https://archive.apache.org/dist/solr/solr/7.7.3/solr-7.7.3.tgz"
+ list_url = "https://archive.apache.org/dist/solr/solr"
list_depth = 1
- depends_on("java", type="run")
+ license("Apache-2.0", checked_by="wdconinc")
+
+ version("9.7.0", sha256="38548b86fa4e3c87883875952da124bf7d742cb8f7b25d37a1176833588e8552")
+ version("8.11.4", sha256="163fbdf246bbd78910bc36c3257ad50cdf31ccc3329a5ef885c23c9ef69e0ebe")
+ with default_args(deprecated=True):
+ # https://nvd.nist.gov/vuln/detail/CVE-2024-45216
+ version(
+ "8.11.3", sha256="178300ae095094c2060a1060cf475aa935f1202addfb5bacb38e8712ccb56455"
+ )
+ version(
+ "8.11.2", sha256="54d6ebd392942f0798a60d50a910e26794b2c344ee97c2d9b50e678a7066d3a6"
+ )
+ version("8.6.0", sha256="4519ccdb531619df770f1065db6adcedc052c7aa94b42806d541966550956aa5")
+ version("8.5.2", sha256="c457d6c7243241cad141e1df34c6f669d58a6c60e537f4217d032616dd066dcf")
+ version("8.5.1", sha256="47b68073b37bbcc0517a355ef722f20827c3f1416537ebbccf5239dda8064a0b")
+ version("8.5.0", sha256="9e54711ad0aa60e9723d2cdeb20cf0d21ee2ab9fa0048ec59dcb5f9d94dc61dd")
+ version("8.4.1", sha256="ec39e1e024b2e37405149de41e39e875a39bf11a53f506d07d96b47b8d2a4301")
+ version("7.7.3", sha256="3ec67fa430afa5b5eb43bb1cd4a659e56ee9f8541e0116d6080c0d783870baee")
- license("CC-BY-2.5")
+ depends_on("java", type="run")
- version("8.11.3", sha256="178300ae095094c2060a1060cf475aa935f1202addfb5bacb38e8712ccb56455")
- version("8.11.2", sha256="54d6ebd392942f0798a60d50a910e26794b2c344ee97c2d9b50e678a7066d3a6")
- version("8.6.0", sha256="4519ccdb531619df770f1065db6adcedc052c7aa94b42806d541966550956aa5")
- version("8.5.2", sha256="c457d6c7243241cad141e1df34c6f669d58a6c60e537f4217d032616dd066dcf")
- version("8.5.1", sha256="47b68073b37bbcc0517a355ef722f20827c3f1416537ebbccf5239dda8064a0b")
- version("8.5.0", sha256="9e54711ad0aa60e9723d2cdeb20cf0d21ee2ab9fa0048ec59dcb5f9d94dc61dd")
- version("8.4.1", sha256="ec39e1e024b2e37405149de41e39e875a39bf11a53f506d07d96b47b8d2a4301")
- version("7.7.3", sha256="3ec67fa430afa5b5eb43bb1cd4a659e56ee9f8541e0116d6080c0d783870baee")
+ def url_for_version(self, version):
+ if self.spec.satisfies("@9:"):
+ return f"https://archive.apache.org/dist/solr/solr/{version}/solr-{version}.tgz"
+ else:
+ return f"https://archive.apache.org/dist/lucene/solr/{version}/solr-{version}.tgz"
def install(self, spec, prefix):
install_tree(".", prefix)