public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/mysql:master commit in: dev-db/mariadb-galera/, eclass/
@ 2013-04-29 21:34 Jorge Manuel B. S. Vicetto
  0 siblings, 0 replies; 4+ messages in thread
From: Jorge Manuel B. S. Vicetto @ 2013-04-29 21:34 UTC (permalink / raw
  To: gentoo-commits

commit:     a179762f68cd812f79cbe898820fe990c9a0094c
Author:     Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 29 21:31:47 2013 +0000
Commit:     Jorge Manuel B. S. Vicetto <jmbsvicetto <AT> gentoo <DOT> org>
CommitDate: Mon Apr 29 21:31:47 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/mysql.git;a=commit;h=a179762f

[dev-db/mariadb-galera] Adding mariadb-galera for testing.

---
 dev-db/mariadb-galera/Manifest                     |    2 +
 dev-db/mariadb-galera/mariadb-galera-5.5.29.ebuild |  128 ++++++++++++++++++++
 dev-db/mariadb-galera/metadata.xml                 |   28 +++++
 eclass/mysql-v2.eclass                             |    4 +-
 4 files changed, 160 insertions(+), 2 deletions(-)

diff --git a/dev-db/mariadb-galera/Manifest b/dev-db/mariadb-galera/Manifest
new file mode 100644
index 0000000..97737f2
--- /dev/null
+++ b/dev-db/mariadb-galera/Manifest
@@ -0,0 +1,2 @@
+DIST mysql-5.5.29.tar.gz 24870769 SHA256 22b50c089038913b3468c7055fc288f7b5d973199ca37c563cd3a3292e812ae5 SHA512 167bc48c0d4e5351af342828d1f14c003b0d62f7388dd15b1b816df708cc4f06cfe8f7c4177af76fb1c1cbaba5adafe9cb884f76bf75d21a067da25896b29210 WHIRLPOOL 06b4e45c5ed6950d45d4a0623f7626af3b2a9d35656a96867b7cdc4bfc0534207c10afd9b3bcca703b826c67cea62e08992b2de99bdd8d661108c16071fb9773
+DIST mysql-extras-20130120-0100Z.tar.bz2 1899297 SHA256 56db6daa26070cb10b220cb06e7b4d4a84214932a5a04500ed0e76b938c01776 SHA512 9fc9b21e547ec0e1ae37b288a1ade28b11c03a89129302226c36018cf69842fda95665799ded84f04cccffaf54555acde40bf2ae6e2ea39ec63b3876382af1ba WHIRLPOOL 25f31d91d6004e7472ef6f2ff0d02b9dde9915f56fc84da600145ac09d1d56751c2ef85c897d3b7bacd29b1010b304445517452254a1e9208bc7bfa9c2e9bf2e

diff --git a/dev-db/mariadb-galera/mariadb-galera-5.5.29.ebuild b/dev-db/mariadb-galera/mariadb-galera-5.5.29.ebuild
new file mode 100644
index 0000000..7e94379
--- /dev/null
+++ b/dev-db/mariadb-galera/mariadb-galera-5.5.29.ebuild
@@ -0,0 +1,128 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/mariadb/mariadb-5.5.29.ebuild,v 1.1 2013/02/13 00:47:45 robbat2 Exp $
+
+EAPI="4"
+MY_EXTRAS_VER="20130120-0100Z"
+
+# Build system
+BUILD="cmake"
+
+inherit toolchain-funcs mysql-v2
+# only to make repoman happy. it is really set in the eclass
+IUSE="$IUSE"
+
+# REMEMBER: also update eclass/mysql*.eclass before committing!
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
+
+# When MY_EXTRAS is bumped, the index should be revised to exclude these.
+EPATCH_EXCLUDE=''
+
+DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )"
+RDEPEND="${RDEPEND}"
+
+# Please do not add a naive src_unpack to this ebuild
+# If you want to add a single patch, copy the ebuild to an overlay
+# and create your own mysql-extras tarball, looking at 000_index.txt
+
+# Official test instructions:
+# USE='berkdb -cluster embedded extraengine perl ssl community' \
+# FEATURES='test userpriv -usersandbox' \
+# ebuild mariadb-X.X.XX.ebuild \
+# digest clean package
+src_test() {
+
+	local TESTDIR="${CMAKE_BUILD_DIR}/mysql-test"
+	local retstatus_unit
+	local retstatus_tests
+
+	# Bug #213475 - MySQL _will_ object strenously if your machine is named
+	# localhost. Also causes weird failures.
+	[[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
+
+	if ! use "minimal" ; then
+
+		if [[ $UID -eq 0 ]]; then
+			die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
+		fi
+		has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
+
+		einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
+		addpredict /this-dir-does-not-exist/t9.MYI
+
+		# Run CTest (test-units)
+		cmake-utils_src_test
+		retstatus_unit=$?
+		[[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed"
+
+		# Ensure that parallel runs don't die
+		export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
+
+		# create directories because mysqladmin might right out of order
+		mkdir -p "${S}"/mysql-test/var-tests{,/log}
+
+		# These are failing in MySQL 5.5 for now and are believed to be
+		# false positives:
+		#
+		# main.information_schema, binlog.binlog_statement_insert_delayed,
+		# main.mysqld--help, funcs_1.is_triggers, funcs_1.is_tables_mysql,
+		# funcs_1.is_columns_mysql
+		# fails due to USE=-latin1 / utf8 default
+		#
+		# main.mysql_client_test, main.mysql_client_test_nonblock:
+		# segfaults at random under Portage only, suspect resource limits.
+		#
+		# sys_vars.plugin_dir_basic
+		# fails because PLUGIN_DIR is set to MYSQL_LIBDIR64/plugin
+		# instead of MYSQL_LIBDIR/plugin
+		#
+		# main.flush_read_lock_kill
+		# fails because of unknown system variable 'DEBUG_SYNC'
+		#
+		# main.openssl_1
+		# error message changing
+		# -mysqltest: Could not open connection 'default': 2026 SSL connection
+		#  error: ASN: bad other signature confirmation
+		# +mysqltest: Could not open connection 'default': 2026 SSL connection
+		#  error: error:00000001:lib(0):func(0):reason(1)
+		#
+		# plugins.unix_socket
+		# fails because portage strips out the USER enviornment variable
+		#
+
+		for t in main.mysql_client_test main.mysql_client_test_nonblock \
+			binlog.binlog_statement_insert_delayed main.information_schema \
+			main.mysqld--help main.flush_read_lock_kill \
+			sys_vars.plugin_dir_basic main.openssl_1 plugins.unix_socket \
+			funcs_1.is_triggers funcs_1.is_tables_mysql funcs_1.is_columns_mysql ; do
+				mysql-v2_disable_test  "$t" "False positives in Gentoo"
+		done
+
+		# Run mysql tests
+		pushd "${TESTDIR}"
+
+		# run mysql-test tests
+		perl mysql-test-run.pl --force --vardir="${S}/mysql-test/var-tests"
+		retstatus_tests=$?
+		[[ $retstatus_tests -eq 0 ]] || eerror "tests failed"
+		has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
+
+		popd
+
+		# Cleanup is important for these testcases.
+		pkill -9 -f "${S}/ndb" 2>/dev/null
+		pkill -9 -f "${S}/sql" 2>/dev/null
+
+		failures=""
+		[[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit"
+		[[ $retstatus_tests -eq 0 ]] || failures="${failures} tests"
+		has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
+
+		[[ -z "$failures" ]] || die "Test failures: $failures"
+		einfo "Tests successfully completed"
+
+	else
+
+		einfo "Skipping server tests due to minimal build."
+	fi
+}

diff --git a/dev-db/mariadb-galera/metadata.xml b/dev-db/mariadb-galera/metadata.xml
new file mode 100644
index 0000000..8fb0475
--- /dev/null
+++ b/dev-db/mariadb-galera/metadata.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>mysql</herd>
+<!-- 
+Please note that this list is shared between the following packages:
+dev-db/mysql
+dev-db/mariadb
+-->
+<use>
+  <flag name='big-tables'>Make tables contain up to 1.844E+19 rows</flag>
+  <flag name='cluster'>Add support for NDB clustering (deprecated)</flag>
+  <flag name='community'>Enables the community features from upstream.</flag>
+  <flag name='embedded'>Build embedded server (libmysqld)</flag>
+  <flag name='extraengine'>Add support for alternative storage engines (Archive, CSV, Blackhole, Federated(X), Partition)</flag>
+  <flag name="jemalloc">Use <pkg>dev-libs/jemalloc</pkg> for allocations.</flag>
+  <flag name='latin1'>Use LATIN1 encoding instead of UTF8</flag>
+  <flag name='libevent'>Use libevent for connection handling</flag>
+  <flag name='max-idx-128'>Raise the max index per table limit from 64 to 128</flag>
+  <flag name='minimal'>Install client programs only, no server</flag>
+  <flag name='oqgraph'>Add support for the Open Query GRAPH engine</flag>
+  <flag name='pbxt'>Add experimental support for PBXT storage engine</flag>
+  <flag name='profiling'>Add support for statement profiling (requires USE=community).</flag>
+  <flag name="systemtap">Build support for profiling and tracing using <pkg>dev-util/systemtap</pkg></flag>
+  <flag name='sphinx'>Add suport for the sphinx full-text search engine</flag>
+  <flag name='test'>Install upstream testsuites for end use.</flag>
+</use>
+</pkgmetadata>

diff --git a/eclass/mysql-v2.eclass b/eclass/mysql-v2.eclass
index 6329684..0f2922e 100644
--- a/eclass/mysql-v2.eclass
+++ b/eclass/mysql-v2.eclass
@@ -11,7 +11,7 @@
 # @BLURB: This eclass provides most of the functions for mysql ebuilds
 # @DESCRIPTION:
 # The mysql-v2.eclass is the base eclass to build the mysql and
-# alternative projects (mariadb) ebuilds.
+# alternative projects (mariadb and percona) ebuilds.
 # This eclass uses the mysql-autotools and mysql-cmake eclasses for the
 # specific bits related to the build system.
 # It provides the src_unpack, src_prepare, src_configure, src_compile,
@@ -220,7 +220,7 @@ DEPEND="
 && DEPEND="${DEPEND} libevent? ( >=dev-libs/libevent-1.4 )"
 
 # Having different flavours at the same time is not a good idea
-for i in "mysql" "mariadb" ; do
+for i in "mysql" "mariadb" "mariadb-galera" ; do
 	[[ ${i} == ${PN} ]] ||
 	DEPEND="${DEPEND} !dev-db/${i}"
 done


^ permalink raw reply related	[flat|nested] 4+ messages in thread
* [gentoo-commits] proj/mysql:master commit in: dev-db/mariadb-galera/, eclass/
@ 2013-07-01 19:09 Brian Evans
  0 siblings, 0 replies; 4+ messages in thread
From: Brian Evans @ 2013-07-01 19:09 UTC (permalink / raw
  To: gentoo-commits

commit:     fa2e9929aefd9d6d4aec83cb33f4c86d033ae8a9
Author:     Brian Evans <grknight <AT> lavabit <DOT> com>
AuthorDate: Mon Jul  1 19:04:54 2013 +0000
Commit:     Brian Evans <grknight <AT> lavabit <DOT> com>
CommitDate: Mon Jul  1 19:04:54 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/mysql.git;a=commit;h=fa2e9929

Add RDEPEND to sys-cluster/galera for mariadb-galera

---
 dev-db/mariadb-galera/mariadb-galera-5.5.29.ebuild | 1 +
 eclass/mysql-v2.eclass                             | 6 ++++++
 2 files changed, 7 insertions(+)

diff --git a/dev-db/mariadb-galera/mariadb-galera-5.5.29.ebuild b/dev-db/mariadb-galera/mariadb-galera-5.5.29.ebuild
index 90ace56..a5f04af 100644
--- a/dev-db/mariadb-galera/mariadb-galera-5.5.29.ebuild
+++ b/dev-db/mariadb-galera/mariadb-galera-5.5.29.ebuild
@@ -4,6 +4,7 @@
 
 EAPI="4"
 MY_EXTRAS_VER="20130120-0100Z"
+WSREP_REVISION="23"
 
 # Build system
 BUILD="cmake"

diff --git a/eclass/mysql-v2.eclass b/eclass/mysql-v2.eclass
index 1e56c45..7a301d2 100644
--- a/eclass/mysql-v2.eclass
+++ b/eclass/mysql-v2.eclass
@@ -273,6 +273,12 @@ if [[ ${PN} == "mariadb" || ${PN} == "mariadb-galera" ]] ; then
 	fi
 fi
 
+if [[ ${PN} == "mariadb-galera" ]] ; then
+	RDEPEND="${RDEPEND} 
+		>=sys-cluster/galera-${WSREP_REVISION:0}.0
+	"
+fi
+
 DEPEND="${DEPEND}
 	virtual/yacc
 "


^ permalink raw reply related	[flat|nested] 4+ messages in thread
* [gentoo-commits] proj/mysql:master commit in: dev-db/mariadb-galera/, eclass/
@ 2014-09-17 15:29 Brian Evans
  0 siblings, 0 replies; 4+ messages in thread
From: Brian Evans @ 2014-09-17 15:29 UTC (permalink / raw
  To: gentoo-commits

commit:     2a470ec4a0775f05f5ab821b661bdcb1a88818d3
Author:     Brian Evans <grknight <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 17 15:29:12 2014 +0000
Commit:     Brian Evans <grknight <AT> gentoo <DOT> org>
CommitDate: Wed Sep 17 15:29:12 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/mysql.git;a=commit;h=2a470ec4

Add USE flags on mariadb-galera for the different SST methods

---
 dev-db/mariadb-galera/metadata.xml |  2 ++
 eclass/mysql-multilib.eclass       | 10 +++++++++-
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/dev-db/mariadb-galera/metadata.xml b/dev-db/mariadb-galera/metadata.xml
index 59e6784..ef7b189 100644
--- a/dev-db/mariadb-galera/metadata.xml
+++ b/dev-db/mariadb-galera/metadata.xml
@@ -18,6 +18,8 @@ dev-db/mariadb
   <flag name='minimal'>Install client programs only, no server</flag>
   <flag name='oqgraph'>Add support for the Open Query GRAPH engine</flag>
   <flag name='profiling'>Add support for statement profiling (requires USE=community).</flag>
+  <flag name='sst_rsync'>Add tools needed to support the rsync SST method</flag>
+  <flag name='sst_xtrabackup'>Add tools needed to support the xtrabackup and xtrabackup-v2 SST methods</flag>
   <flag name="systemtap">Build support for profiling and tracing using <pkg>dev-util/systemtap</pkg></flag>
   <flag name='sphinx'>Add suport for the sphinx full-text search engine</flag>
   <flag name='test'>Install upstream testsuites for end use.</flag>

diff --git a/eclass/mysql-multilib.eclass b/eclass/mysql-multilib.eclass
index 4409f9f..232e905 100644
--- a/eclass/mysql-multilib.eclass
+++ b/eclass/mysql-multilib.eclass
@@ -207,6 +207,10 @@ if [[ ${PN} == "mariadb" || ${PN} == "mariadb-galera" ]]; then
 	REQUIRED_USE="${REQUIRED_USE} minimal? ( !oqgraph !sphinx ) tokudb? ( jemalloc )"
 fi
 
+if [[ ${PN} == "mariadb-galera" ]]; then
+	IUSE="${IUSE} +sst_rsync sst_xtrabackup"
+fi
+
 if [[ ${PN} == "percona-server" ]]; then
 	IUSE="${IUSE} pam"
 fi
@@ -312,7 +316,11 @@ if [[ ${PN} == "mariadb-galera" ]] ; then
 	# lsof is required as of 5.5.38 and 10.0.11 for the rsync sst
 	RDEPEND="${RDEPEND}
 		=sys-cluster/galera-${WSREP_REVISION}*
-		sys-process/lsof
+		sst_rsync? ( sys-process/lsof )
+		sst_xtrabackup? (
+			dev-db/xtrabackup-bin
+			net-misc/socat[ssl]
+		)
 	"
 fi
 


^ permalink raw reply related	[flat|nested] 4+ messages in thread
* [gentoo-commits] proj/mysql:master commit in: dev-db/mariadb-galera/, eclass/
@ 2014-09-26 19:15 Brian Evans
  0 siblings, 0 replies; 4+ messages in thread
From: Brian Evans @ 2014-09-26 19:15 UTC (permalink / raw
  To: gentoo-commits

commit:     7bf4bb752f352989a2e8616595f8426971f99278
Author:     Brian Evans <grknight <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 26 18:40:51 2014 +0000
Commit:     Brian Evans <grknight <AT> gentoo <DOT> org>
CommitDate: Fri Sep 26 18:40:51 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/mysql.git;a=commit;h=7bf4bb75

Sync from tree for mariadb-galera IUSE

---
 dev-db/mariadb-galera/metadata.xml | 4 ++--
 eclass/mysql-multilib.eclass       | 8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/dev-db/mariadb-galera/metadata.xml b/dev-db/mariadb-galera/metadata.xml
index ef7b189..94a23ae 100644
--- a/dev-db/mariadb-galera/metadata.xml
+++ b/dev-db/mariadb-galera/metadata.xml
@@ -18,8 +18,8 @@ dev-db/mariadb
   <flag name='minimal'>Install client programs only, no server</flag>
   <flag name='oqgraph'>Add support for the Open Query GRAPH engine</flag>
   <flag name='profiling'>Add support for statement profiling (requires USE=community).</flag>
-  <flag name='sst_rsync'>Add tools needed to support the rsync SST method</flag>
-  <flag name='sst_xtrabackup'>Add tools needed to support the xtrabackup and xtrabackup-v2 SST methods</flag>
+  <flag name='sst-rsync'>Add tools needed to support the rsync SST method</flag>
+  <flag name='sst-xtrabackup'>Add tools needed to support the xtrabackup and xtrabackup-v2 SST methods</flag>
   <flag name="systemtap">Build support for profiling and tracing using <pkg>dev-util/systemtap</pkg></flag>
   <flag name='sphinx'>Add suport for the sphinx full-text search engine</flag>
   <flag name='test'>Install upstream testsuites for end use.</flag>

diff --git a/eclass/mysql-multilib.eclass b/eclass/mysql-multilib.eclass
index 80c069b..ca4d6c3 100644
--- a/eclass/mysql-multilib.eclass
+++ b/eclass/mysql-multilib.eclass
@@ -1,6 +1,6 @@
 # Copyright 1999-2014 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/mysql-multilib.eclass,v 1.7 2014/09/03 13:05:50 grknight Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/mysql-multilib.eclass,v 1.9 2014/09/26 17:56:29 grknight Exp $
 
 # @ECLASS: mysql-multilib.eclass
 # @MAINTAINER:
@@ -208,7 +208,7 @@ if [[ ${PN} == "mariadb" || ${PN} == "mariadb-galera" ]]; then
 fi
 
 if [[ ${PN} == "mariadb-galera" ]]; then
-	IUSE="${IUSE} +sst_rsync sst_xtrabackup"
+	IUSE="${IUSE} +sst-rsync sst-xtrabackup"
 fi
 
 if [[ ${PN} == "percona-server" ]]; then
@@ -317,8 +317,8 @@ if [[ ${PN} == "mariadb-galera" ]] ; then
 	RDEPEND="${RDEPEND}
 		sys-apps/iproute2
 		=sys-cluster/galera-${WSREP_REVISION}*
-		sst_rsync? ( sys-process/lsof )
-		sst_xtrabackup? (
+		sst-rsync? ( sys-process/lsof )
+		sst-xtrabackup? (
 			dev-db/xtrabackup-bin
 			net-misc/socat[ssl]
 		)


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-09-26 19:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-29 21:34 [gentoo-commits] proj/mysql:master commit in: dev-db/mariadb-galera/, eclass/ Jorge Manuel B. S. Vicetto
  -- strict thread matches above, loose matches on Subject: below --
2013-07-01 19:09 Brian Evans
2014-09-17 15:29 Brian Evans
2014-09-26 19:15 Brian Evans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox