robbat2     14/07/30 06:26:05

  Added:                garb.sh disable-tests.patch garb.cnf
                        respect-flags.patch
  Log:
  Bring MariaDB-Galera from the overlay into the tree. Thanks to the great work 
of Brian Evans <[email protected]>.
  
  (Portage version: 2.2.10/cvs/Linux x86_64, unsigned Manifest commit)

Revision  Changes    Path
1.1                  sys-cluster/galera/files/garb.sh

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/galera/files/garb.sh?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/galera/files/garb.sh?rev=1.1&content-type=text/plain

Index: garb.sh
===================================================================
#!/sbin/runscript
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

depend() {
        use net
        after mysql
}

start() {
        ebegin "Starting ${SVCNAME}"

        if [ -z "${GALERA_NODES}" ]; then
                eerror "List of GALERA_NODES is not configured"
                return 1
        fi

        if [ -z "${GALERA_GROUP}" ]; then
                eerror "GALERA_GROUP name is not configured"
                return 1
        fi

        GALERA_PORT="${GALERA_PORT:-4567}"

        for ADDRESS in ${GALERA_NODES} 0; do
                HOST=$(echo $ADDRESS | cut -d \: -f 1 )
                PORT=$(echo $ADDRESS | cut -d \: -f 2 )
                if [[ "${HOST}" == "${PORT}" ]]; then
                        PORT=${GALERA_PORT}
                fi
                PORT=${PORT:-$GALERA_PORT}
                nc -z ${HOST} ${PORT} > /dev/null &&  break
        done
        if [ ${ADDRESS} == "0" ]; then
                eerror "None of the nodes in GALERA_NODES is accessible"
                return 1
        fi

        OPTIONS="-a gcomm://${ADDRESS} -g ${GALERA_GROUP}"
        [ -n "${GALERA_OPTIONS}" ] && OPTIONS="${OPTIONS} -o ${GALERA_OPTIONS}"
        [ -n "${LOG_FILE}" ]       && OPTIONS="${OPTIONS} -l ${LOG_FILE}"

        start-stop-daemon \
                --start \
                --exec /usr/bin/garbd \
                --pidfile "${PIDFILE}" \
                --make-pidfile \
                --user garbd \
                --group garbd \
                --background \
                -- ${OPTIONS}
        eend $?
}

stop() {
        ebegin "Stopping ${SVCNAME}"
        start-stop-daemon \
                --stop \
                --exec /usr/bin/garbd \
                --pidfile "${PIDFILE}"
        eend $?
}




1.1                  sys-cluster/galera/files/disable-tests.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/galera/files/disable-tests.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/galera/files/disable-tests.patch?rev=1.1&content-type=text/plain

Index: disable-tests.patch
===================================================================
diff -aurN a/galera/SConscript b/galera/SConscript
--- a/galera/SConscript 2013-03-11 02:44:50.000000000 -0400
+++ b/galera/SConscript 2013-05-13 13:13:20.851827437 -0400
@@ -1,2 +1,2 @@
 
-SConscript(['src/SConscript', 'tests/SConscript'])
+SConscript(['src/SConscript'])
diff -aurN a/galerautils/SConscript b/galerautils/SConscript
--- a/galerautils/SConscript    2013-03-11 02:44:50.000000000 -0400
+++ b/galerautils/SConscript    2013-05-13 13:15:37.010071765 -0400
@@ -1,3 +1,3 @@
 # SConscript for building galerautils
 
-SConscript(Split('''src/SConscript tests/SConscript'''))
+SConscript(Split('''src/SConscript'''))
diff -aurN a/gcache/SConscript b/gcache/SConscript
--- a/gcache/SConscript 2013-03-11 02:44:50.000000000 -0400
+++ b/gcache/SConscript 2013-05-13 13:15:55.179837389 -0400
@@ -1,3 +1,3 @@
 # SConscript for building galerautils
 
-SConscript(Split('''src/SConscript tests/SConscript'''))
+SConscript(Split('''src/SConscript'''))
diff -aurN a/gcomm/SConscript b/gcomm/SConscript
--- a/gcomm/SConscript  2013-03-11 02:44:50.000000000 -0400
+++ b/gcomm/SConscript  2013-05-13 13:16:08.979659369 -0400
@@ -1,3 +1,3 @@
 # SCons build script for building gcomm
 
-SConscript(Split('''src/SConscript test/SConscript'''))
+SConscript(Split('''src/SConscript'''))
diff -aurN a/gcs/src/SConscript b/gcs/src/SConscript
--- a/gcs/src/SConscript        2013-03-11 02:44:50.000000000 -0400
+++ b/gcs/src/SConscript        2013-05-13 13:12:53.122184848 -0400
@@ -46,8 +46,6 @@
                      source = 'gcs_test.c',
                      LINK = libgcs_env['CXX'])
 
-SConscript('unit_tests/SConscript')
-
 #
 env.Append(LIBGALERA_OBJS = libgcs_env.SharedObject(libgcs_sources))
 
diff -aurN a/SConstruct b/SConstruct
--- a/SConstruct        2013-03-11 02:44:50.000000000 -0400
+++ b/SConstruct        2013-05-13 13:11:03.493597370 -0400
@@ -305,20 +305,6 @@
 # Clone base from default environment
 check_env = env.Clone()
 
-conf = Configure(check_env)
-
-# Check header and library
-
-if not conf.CheckHeader('check.h'):
-    print 'Error: check header file not found or not usable'
-    Exit(1)
-
-if not conf.CheckLib('check'):
-    print 'Error: check library not found or not usable'
-    Exit(1)
-
-conf.Finish()
-
 # Note: Don't do this, glibc does not like static linking
 # Link unit tests statically
 # check_env.Append(LINKFLAGS = ' -static')
@@ -328,11 +314,7 @@
 #
 
 def builder_unit_test(target, source, env):
-    app = str(source[0].abspath)
-    if os.spawnl(os.P_WAIT, app, app)==0:
-        open(str(target[0]),'w').write("PASSED\n")
-    else:
-        return 1
+       print("Disabled\n")
 # Create a builder for tests
 bld = Builder(action = builder_unit_test)
 check_env.Append(BUILDERS = {'Test' :  bld})



1.1                  sys-cluster/galera/files/garb.cnf

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/galera/files/garb.cnf?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/galera/files/garb.cnf?rev=1.1&content-type=text/plain

Index: garb.cnf
===================================================================
# Copyright (C) 2012 Coedership Oy
# This config file is to be sourced by garbd service script.

# A space-separated list of node addresses (address[:port]) in the cluster
# GALERA_NODES=""

# Galera cluster name, should be the same as on the rest of the nodes.
# GALERA_GROUP=""

# Optional Galera internal options string (e.g. SSL settings)
# see http://www.codership.com/wiki/doku.php?id=galera_parameters
# GALERA_OPTIONS=""

# Log file for garbd. Optional, by default logs to syslog
# LOG_FILE=""

PIDFILE=/var/run/garbd



1.1                  sys-cluster/galera/files/respect-flags.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/galera/files/respect-flags.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/galera/files/respect-flags.patch?rev=1.1&content-type=text/plain

Index: respect-flags.patch
===================================================================
--- a/SConstruct        2014-03-07 14:27:26.797904671 -0500
+++ b/SConstruct        2014-03-07 14:31:18.672478115 -0500
@@ -49,7 +49,7 @@
 build_target = 'all'
 
 # Optimization level
-opt_flags    = ' -g -O3 -DNDEBUG'
+opt_flags    = ' -DNDEBUG'
 
 # Architecture (defaults to build host type)
 compile_arch = ''
@@ -214,12 +214,12 @@
                       ' -Wall -Wextra -Wno-unused-parameter')
 
 # C-specific flags
-env.Replace(CFLAGS = ' -std=c99 -fno-strict-aliasing -pipe')
+env.Replace(CFLAGS = os.getenv('CFLAGS','') + ' -std=c99 -fno-strict-aliasing 
-pipe')
 
 # CXX-specific flags
 # Note: not all 3rd-party libs like '-Wold-style-cast -Weffc++'
 #       adding those after checks
-env.Replace(CXXFLAGS = ' -Wno-long-long -Wno-deprecated -ansi')
+env.Replace(CXXFLAGS = os.getenv('CXXFLAGS','') + ' -Wno-long-long 
-Wno-deprecated -ansi')
 if sysname != 'sunos':
     env.Append(CXXFLAGS = ' -pipe')
 
@@ -228,7 +228,7 @@
 # TODO: enable '-Wl,--warn-common -Wl,--fatal-warnings' after warnings from
 # static linking have beed addressed
 #
-env.Append(LINKFLAGS = link_arch)
+env.Append(LINKFLAGS = link_arch + ' ' + os.getenv('LDFLAGS',''))
 
 #
 # Check required headers and libraries (autoconf functionality)




Reply via email to