summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2022-06-27 23:09:52 -0700
committerGitHub <noreply@github.com>2022-06-28 00:09:52 -0600
commit2683040c09eb8a31243e9e0441b6b3acba8b889c (patch)
tree9dbef1129405a66ee055c3cf322562c9fca3d34b
parent63b33403dbed3caf787161dc985f798c984edeea (diff)
downloadspack-2683040c09eb8a31243e9e0441b6b3acba8b889c.tar.gz
spack-2683040c09eb8a31243e9e0441b6b3acba8b889c.tar.bz2
spack-2683040c09eb8a31243e9e0441b6b3acba8b889c.tar.xz
spack-2683040c09eb8a31243e9e0441b6b3acba8b889c.zip
mysql: add v8.0.29, command, libs (#31300)
-rw-r--r--var/spack/repos/builtin/packages/mysql/package.py24
1 files changed, 19 insertions, 5 deletions
diff --git a/var/spack/repos/builtin/packages/mysql/package.py b/var/spack/repos/builtin/packages/mysql/package.py
index f040ff7968..edb35494ab 100644
--- a/var/spack/repos/builtin/packages/mysql/package.py
+++ b/var/spack/repos/builtin/packages/mysql/package.py
@@ -16,6 +16,7 @@ class Mysql(CMakePackage):
homepage = "https://www.mysql.com/"
url = "https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-8.0.15.tar.gz"
+ version('8.0.29', sha256='512170fa6f78a694d6f18d197e999d2716ee68dc541d7644dd922a3663407266')
version('8.0.19', sha256='a62786d67b5e267eef928003967b4ccfe362d604b80f4523578e0688f5b9f834')
version('8.0.18', sha256='4cb39a315298eb243c25c53c184b3682b49c2a907a1d8432ba0620534806ade8')
version('8.0.17', sha256='c6e3f38199a77bfd8a4925ca00b252d3b6159b90e4980c7232f1c58d6ca759d6')
@@ -81,11 +82,16 @@ class Mysql(CMakePackage):
# Each version of MySQL requires a specific version of boost
# See BOOST_PACKAGE_NAME in cmake/boost.cmake
- # 8.0.19+
- depends_on('boost@1.70.0 cxxstd=98', type='build', when='@8.0.19: cxxstd=98')
- depends_on('boost@1.70.0 cxxstd=11', type='build', when='@8.0.19: cxxstd=11')
- depends_on('boost@1.70.0 cxxstd=14', type='build', when='@8.0.19: cxxstd=14')
- depends_on('boost@1.70.0 cxxstd=17', type='build', when='@8.0.19: cxxstd=17')
+ # 8.0.29
+ depends_on('boost@1.77.0 cxxstd=98', type='build', when='@8.0.29 cxxstd=98')
+ depends_on('boost@1.77.0 cxxstd=11', type='build', when='@8.0.29 cxxstd=11')
+ depends_on('boost@1.77.0 cxxstd=14', type='build', when='@8.0.29 cxxstd=14')
+ depends_on('boost@1.77.0 cxxstd=17', type='build', when='@8.0.29 cxxstd=17')
+ # 8.0.19
+ depends_on('boost@1.70.0 cxxstd=98', type='build', when='@8.0.19 cxxstd=98')
+ depends_on('boost@1.70.0 cxxstd=11', type='build', when='@8.0.19 cxxstd=11')
+ depends_on('boost@1.70.0 cxxstd=14', type='build', when='@8.0.19 cxxstd=14')
+ depends_on('boost@1.70.0 cxxstd=17', type='build', when='@8.0.19 cxxstd=17')
# 8.0.16--8.0.18
depends_on('boost@1.69.0 cxxstd=98', type='build', when='@8.0.16:8.0.18 cxxstd=98')
depends_on('boost@1.69.0 cxxstd=11', type='build', when='@8.0.16:8.0.18 cxxstd=11')
@@ -129,6 +135,14 @@ class Mysql(CMakePackage):
patch('fix-no-server-5.5.patch', level=1, when='@5.5.0:5.5')
+ @property
+ def command(self):
+ return Executable(self.prefix.bin.mysql_config)
+
+ @property
+ def libs(self):
+ return find_libraries('libmysqlclient', root=self.prefix, recursive=True)
+
def url_for_version(self, version):
url = "https://dev.mysql.com/get/Downloads/MySQL-{0}/mysql-{1}.tar.gz"
return url.format(version.up_to(2), version)