aboutsummaryrefslogtreecommitdiff
path: root/databases/percona55-client/files/patch-scripts_mysql_config.sh
diff options
context:
space:
mode:
Diffstat (limited to 'databases/percona55-client/files/patch-scripts_mysql_config.sh')
-rw-r--r--databases/percona55-client/files/patch-scripts_mysql_config.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/databases/percona55-client/files/patch-scripts_mysql_config.sh b/databases/percona55-client/files/patch-scripts_mysql_config.sh
new file mode 100644
index 000000000000..20c6646dac34
--- /dev/null
+++ b/databases/percona55-client/files/patch-scripts_mysql_config.sh
@@ -0,0 +1,15 @@
+--- scripts/mysql_config.sh.orig 2010-12-23 15:57:56.000000000 +0100
++++ scripts/mysql_config.sh 2010-12-23 15:58:49.000000000 +0100
+@@ -92,7 +92,11 @@
+ fix_path plugindir $plugindir_rel lib/mysql/plugin lib/plugin
+
+ pkgincludedir='@pkgincludedir@'
+-fix_path pkgincludedir include/mysql include
++if [ -f "$basedir/include/mysql/mysql.h" ]; then
++ pkgincludedir="$basedir/include/mysql"
++elif [ -f "$basedir/include/mysql.h" ]; then
++ pkgincludedir="$basedir/include"
++fi
+
+ version='@VERSION@'
+ socket='@MYSQL_UNIX_ADDR@'