From: "Brian Evans" <grknight@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/mysql-cluster/
Date: Fri, 10 Nov 2017 20:33:40 +0000 (UTC) [thread overview]
Message-ID: <1510346000.c19a2c08d57e727da20c625d82658875151920b6.grknight@gentoo> (raw)
commit: c19a2c08d57e727da20c625d82658875151920b6
Author: Brian Evans <grknight <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 10 20:33:20 2017 +0000
Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
CommitDate: Fri Nov 10 20:33:20 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c19a2c08
dev-db/mysql-cluster: Fix build issues and tests
The conversion to mysql-multilib-r1 was incomplete with the
required java eclasses
Closes: https://bugs.gentoo.org/637068
Package-Manager: Portage-2.3.13, Repoman-2.3.4
dev-db/mysql-cluster/mysql-cluster-7.4.17.ebuild | 49 ++++++++++++++++++------
1 file changed, 38 insertions(+), 11 deletions(-)
diff --git a/dev-db/mysql-cluster/mysql-cluster-7.4.17.ebuild b/dev-db/mysql-cluster/mysql-cluster-7.4.17.ebuild
index f7d2b65e0eb..01e3c5a9412 100644
--- a/dev-db/mysql-cluster/mysql-cluster-7.4.17.ebuild
+++ b/dev-db/mysql-cluster/mysql-cluster-7.4.17.ebuild
@@ -8,15 +8,15 @@ MYSQL_PV_MAJOR="5.6"
#fails to build with ninja
CMAKE_MAKEFILE_GENERATOR=emake
-inherit mysql-multilib-r1
+inherit java-utils-2 mysql-multilib-r1
# only to make repoman happy. it is really set in the eclass
IUSE="$IUSE numa"
# REMEMBER: also update eclass/mysql*.eclass before committing!
KEYWORDS="~amd64 ~x86"
-
-DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 ) numa? ( sys-process/numactl )"
-RDEPEND="!media-sound/amarok[embedded] numa? ( sys-process/numactl )"
+COMMON_DEPEND="numa? ( sys-process/numactl ) dev-libs/libevent:0= ${JAVA_PKG_E_DEPEND}"
+DEPEND="${COMMON_DEPEND} || ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 ) >=virtual/jdk-1.6"
+RDEPEND="${COMMON_DEPEND} !media-sound/amarok[embedded] >=virtual/jre-1.6"
MY_PATCH_DIR="${WORKDIR}/mysql-extras-${MY_EXTRAS_VER}"
@@ -30,12 +30,20 @@ PATCHES=(
"${MY_PATCH_DIR}"/30000_all_mysql-cluster-multilib-property.patch
)
+MULTILIB_WRAPPED_HEADERS+=( /usr/include/mysql/storage/ndb/ndb_types.h )
+
# 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
+pkg_setup() {
+ mysql-multilib-r1_pkg_setup
+ java-pkg_init
+}
+
src_prepare() {
mysql-multilib-r1_src_prepare
+ java-utils-2_src_prepare
if use libressl ; then
sed -i 's/OPENSSL_MAJOR_VERSION STREQUAL "1"/OPENSSL_MAJOR_VERSION STREQUAL "2"/' \
"${S}/cmake/ssl.cmake" || die
@@ -45,10 +53,19 @@ src_prepare() {
src_configure() {
# validate_password plugin uses exceptions when it shouldn't yet (until 5.7)
# disable until we see what happens with it
- local MYSQL_CMAKE_NATIVE_DEFINES=( -DWITHOUT_VALIDATE_PASSWORD=1 -DWITH_NUMA=$(usex numa ON OFF) )
+ local MYSQL_CMAKE_NATIVE_DEFINES=(
+ -DWITHOUT_VALIDATE_PASSWORD=1
+ -DWITH_NUMA=$(usex numa ON OFF)
+ -DWITH_NDBCLUSTER=1 -DWITH_PARTITION_STORAGE_ENGINE=1
+ -DWITHOUT_PARTITION_STORAGE_ENGINE=0 )
mysql-multilib-r1_src_configure
}
+pkg_preinst() {
+ java-utils-2_pkg_preinst
+ mysql-multilib-r1_pkg_preinst
+}
+
# Official test instructions:
# USE='extraengine perl openssl' \
# FEATURES='test userpriv -usersandbox' \
@@ -61,6 +78,14 @@ multilib_src_test() {
return 0;
fi
+ _disable_test() {
+ local rawtestname reason
+ rawtestname="${1}" ; shift
+ reason="${@}"
+ ewarn "test '${rawtestname}' disabled: '${reason}'"
+ echo ${rawtestname} : ${reason} >> "${T}/disabled.def"
+ }
+
local TESTDIR="${CMAKE_BUILD_DIR}/mysql-test"
local retstatus_unit
local retstatus_tests
@@ -91,6 +116,7 @@ multilib_src_test() {
# create symlink for the tests to find mysql_tzinfo_to_sql
ln -s "${BUILD_DIR}/sql/mysql_tzinfo_to_sql" "${S}/sql/"
+ touch "${T}/disabled.def"
# These are failing in MySQL 5.5/5.6 for now and are believed to be
# false positives:
#
@@ -118,16 +144,16 @@ multilib_src_test() {
main.mysqlhotcopy_archive main.mysqlhotcopy_myisam \
perfschema.binlog_edge_mix \
perfschema.binlog_edge_stmt \
- rpl.rpl_plugin_load ndb.ndb_tools_connect main.mysql \
- main.mysql_upgrade unit_tests \
+ rpl.rpl_plugin_load main.mysql \
+ main.mysql_upgrade \
; do
- mysql-multilib-r1_disable_test "$t" "False positives in Gentoo"
+ _disable_test "$t" "False positives in Gentoo"
done
# ndb.ndbinfo, ndb_binlog.ndb_binlog_index: latin1/utf8
for t in \
- ndb.ndbinfo \
+ ndb.ndbinfo ndb.ndb_tools_connect \
ndb_binlog.ndb_binlog_index ; do
- mysql-multilib-r1_disable_test "$t" "False positives in Gentoo (NDB)"
+ _disable_test "$t" "False positives in Gentoo (NDB) (Latin1/UTF8)"
done
# Set file limits higher so tests run
@@ -138,7 +164,8 @@ multilib_src_test() {
# run mysql-test tests
perl mysql-test-run.pl --force --vardir="${T}/var-tests" \
- --suite-timeout=5000 --reorder
+ --suite-timeout=5000 --reorder --skip-test-list="${T}/disabled.def" \
+ --nounit-tests
retstatus_tests=$?
popd > /dev/null || die
next reply other threads:[~2017-11-10 20:33 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-10 20:33 Brian Evans [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-05-03 8:10 [gentoo-commits] repo/gentoo:master commit in: dev-db/mysql-cluster/ Mikle Kolyada
2021-05-01 18:24 Sam James
2020-02-08 17:06 David Seifert
2019-08-18 12:37 David Seifert
2019-04-27 20:28 David Seifert
2019-01-21 0:25 Brian Evans
2019-01-19 3:49 Brian Evans
2019-01-19 3:37 Thomas Deutschmann
2017-11-21 19:34 Brian Evans
2017-11-14 13:48 Brian Evans
2017-11-12 2:19 Brian Evans
2017-11-09 13:47 Brian Evans
2017-11-08 21:00 Brian Evans
2017-11-08 21:00 Brian Evans
2017-10-28 18:11 Thomas Deutschmann
2017-10-28 18:11 Thomas Deutschmann
2016-05-22 19:35 Pacho Ramos
2016-04-18 18:31 Brian Evans
2016-04-18 8:13 Patrice Clement
2015-11-18 14:48 Brian Evans
2015-11-18 14:48 Brian Evans
2015-10-20 14:52 Brian Evans
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1510346000.c19a2c08d57e727da20c625d82658875151920b6.grknight@gentoo \
--to=grknight@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox