2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-11 15:51:03 +00:00

remove mariadb-config patch

This commit is contained in:
Pratik Vyas 2014-11-18 22:24:47 +05:30
parent 0b16e745b6
commit e657f78dfa
4 changed files with 0 additions and 44 deletions

View File

@ -380,12 +380,6 @@ config.add_command(config_http_timeout)
def patch():
pass
@click.command('mariadb-config')
def _patch_mariadb_config():
"patch MariaDB 5.5.40"
repo_dir = os.path.dirname(__file__)
exec_cmd(os.path.join(repo_dir, 'patches', 'fix-mariadb.sh'), cwd=os.path.join(repo_dir, 'patches'))
@click.command('fix-perms')
def _fix_perms():
if os.path.exists("config/supervisor.conf"):
@ -419,7 +413,6 @@ def _fix_perms():
exec_cmd("supervisorctl reload")
patch.add_command(_patch_mariadb_config)
patch.add_command(_fix_perms)
#Bench commands

View File

@ -1,13 +0,0 @@
#!/bin/bash
set -e
# stolen from http://cgit.drupalcode.org/octopus/commit/?id=db4f837
includedir=`mysql_config --variable=pkgincludedir`
thiscwd=`pwd`
_THIS_DB_VERSION=`mysql -V 2>&1 | tr -d "\n" | cut -d" " -f6 | awk '{ print $1}' | cut -d"-" -f1 | awk '{ print $1}' | sed "s/[\,']//g"`
LOG_FILE=`readlink -m "$includedir/$_THIS_DB_VERSION-fixed.log"`
if [ "$_THIS_DB_VERSION" = "5.5.40" ] && [ ! -e $LOG_FILE ] ; then
cd $includedir
sudo patch -p1 < $thiscwd/my_config.h.patch &> /dev/null
sudo touch $LOG_FILE
fi

View File

@ -1,22 +0,0 @@
diff -burp a/my_config.h b/my_config.h
--- a/my_config.h 2014-10-09 19:32:46.000000000 -0400
+++ b/my_config.h 2014-10-09 19:35:12.000000000 -0400
@@ -641,17 +641,4 @@
#define SIZEOF_TIME_T 8
/* #undef TIME_T_UNSIGNED */
-/*
- stat structure (from <sys/stat.h>) is conditionally defined
- to have different layout and size depending on the defined macros.
- The correct macro is defined in my_config.h, which means it MUST be
- included first (or at least before <features.h> - so, practically,
- before including any system headers).
-
- __GLIBC__ is defined in <features.h>
-*/
-#ifdef __GLIBC__
-#error <my_config.h> MUST be included first!
-#endif
-
#endif

View File

@ -310,8 +310,6 @@ install_bench() {
exit 1
fi
run_cmd sudo $PIP install -e /home/$FRAPPE_USER/bench-repo
# temp MariaDB fix
sudo bench patch mariadb-config
}
setup_bench() {