diff options
author | Tomáš Mózes <hydrapolic@gmail.com> | 2023-05-23 12:13:59 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-08-18 10:43:30 +0100 |
commit | e7001ebc104011120978433fd2ae6f32ca4bd1e8 (patch) | |
tree | 39500ad861382c7bc036f85748e2a9228f7e3e38 /sys-cluster/galera | |
parent | net-analyzer/alive: EAPI8 bump, fix LICENSE (diff) | |
download | gentoo-e7001ebc104011120978433fd2ae6f32ca4bd1e8.tar.gz gentoo-e7001ebc104011120978433fd2ae6f32ca4bd1e8.tar.bz2 gentoo-e7001ebc104011120978433fd2ae6f32ca4bd1e8.zip |
sys-cluster/galera: add 26.4.14
Signed-off-by: Tomáš Mózes <hydrapolic@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-cluster/galera')
-rw-r--r-- | sys-cluster/galera/Manifest | 1 | ||||
-rw-r--r-- | sys-cluster/galera/galera-26.4.14.ebuild | 82 |
2 files changed, 83 insertions, 0 deletions
diff --git a/sys-cluster/galera/Manifest b/sys-cluster/galera/Manifest index b36285948fc9..2ca171bba4e5 100644 --- a/sys-cluster/galera/Manifest +++ b/sys-cluster/galera/Manifest @@ -1 +1,2 @@ DIST galera-26.4.13.tar.gz 1529682 BLAKE2B d7030fd5e3a48ede16f608cca9986de117a54f99cf3d972a5b14623acd84f05f31f5cdbbc3032bf5caa8e0486f418ac07c8f87287bb14a8164507c558876ae61 SHA512 e548048eac5fceb0bea1ae736abc6c488d175bc71a3cfb963675232688392ecb5dcc64ddd8e78ceda40e26b94b806d3c34bd9fc9765ebc047b5a5ce28ff7efea +DIST galera-26.4.14.tar.gz 1532285 BLAKE2B c647332a1a70609fbe3197653df2e24ccd0c5e053b1c9ef4d3de20bc70d8f2363090c6296e9e81eeb92a625c85d67b4f298db8e34862c7deb907baf13bae2e45 SHA512 f9bb3d1d503ed7f90cfc5596e68e8cf77683d2d7e6ddb45d0a6618bbc6a31ad2caa80933f6724734ec4ae416b37d7d7ec61e1bf0b87cefd4c959954266a2fb26 diff --git a/sys-cluster/galera/galera-26.4.14.ebuild b/sys-cluster/galera/galera-26.4.14.ebuild new file mode 100644 index 000000000000..5c0dd315ca69 --- /dev/null +++ b/sys-cluster/galera/galera-26.4.14.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) + +inherit python-any-r1 scons-utils toolchain-funcs + +MY_PN="${PN}-4" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Synchronous multi-master replication engine that provides the wsrep API" +HOMEPAGE="https://galeracluster.com" +SRC_URI="https://releases.galeracluster.com/${MY_PN}/source/${MY_P}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="GPL-2 BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86" +IUSE="cpu_flags_x86_sse4_2 garbd test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-libs/openssl:= + dev-libs/boost:= +" +DEPEND=" + ${RDEPEND} + dev-libs/check + >=dev-cpp/asio-1.22 +" + +PATCHES=( + "${FILESDIR}"/${PN}-26.4.6-strip-extra-cflags.patch + "${FILESDIR}"/${PN}-26.4.8-respect-toolchain.patch + "${FILESDIR}"/${PN}-26.4.13-asio.patch + "${FILESDIR}"/${PN}-26.4.13-tests.patch +) + +src_prepare() { + default + + # Remove bundled dev-cpp/asio + rm -r asio || die "Failed to remove bundled asio" + + # Remove optional garbd daemon + if ! use garbd ; then + rm -r garb || die "Failed to remove garbd daemon" + fi +} + +src_configure() { + tc-export AR CC CXX OBJDUMP + + # strict_build_flags=0 disables -Werror, -pedantic, -Weffc++, + # and -Wold-style-cast + MYSCONS=( + crc32c_no_hardware=$(usex cpu_flags_x86_sse4_2 0 1) + tests=$(usex test 1 0) + strict_build_flags=0 + system_asio=1 + ) +} + +src_compile() { + escons --warn=no-missing-sconscript "${MYSCONS[@]}" +} + +src_install() { + dodoc scripts/packages/README scripts/packages/README-MySQL + + if use garbd ; then + dobin garb/garbd + newconfd "${FILESDIR}"/garb.cnf garbd + newinitd "${FILESDIR}"/garb.init garbd + doman man/garbd.8 + fi + + exeinto /usr/$(get_libdir)/galera + doexe libgalera_smm.so +} |