Update to mysqlcc 1.0.2. Fixes building with modern MySQL / MariaDB.
ok sthen@
This commit is contained in:
parent
9707fa3255
commit
ece58cd6c7
@ -1,11 +1,10 @@
|
||||
# $OpenBSD: Makefile,v 1.20 2014/09/13 18:09:20 brad Exp $
|
||||
# $OpenBSD: Makefile,v 1.21 2014/09/21 17:32:41 brad Exp $
|
||||
|
||||
COMMENT= GUI client for MySQL
|
||||
|
||||
VERSION= 0.9.8
|
||||
VERSION= 1.0.2
|
||||
DISTNAME= mysqlcc-${VERSION}-src
|
||||
PKGNAME= mysqlcc-${VERSION}
|
||||
REVISION= 6
|
||||
CATEGORIES= databases
|
||||
|
||||
HOMEPAGE= http://mysqlcc.sourceforge.net/
|
||||
|
@ -1,5 +1,2 @@
|
||||
MD5 (mysqlcc-0.9.8-src.tar.gz) = yZE3hOmnAMbpoUb/6hmS0A==
|
||||
RMD160 (mysqlcc-0.9.8-src.tar.gz) = YPxn4hcE+xNdq3JlLE1zb3ld38c=
|
||||
SHA1 (mysqlcc-0.9.8-src.tar.gz) = 2Fuf1ICi6O7wGsYtYmQsA3W+nqA=
|
||||
SHA256 (mysqlcc-0.9.8-src.tar.gz) = KiBAfuI2mjOEA9gQBsbiVq6uvEMGbUPNLmjxqGlLxS0=
|
||||
SIZE (mysqlcc-0.9.8-src.tar.gz) = 1529243
|
||||
SHA256 (mysqlcc-1.0.2-src.tar.gz) = ApJV/imDe9MZ65bHjeiA5R2vTvM6+BcyW/In0IkmLx0=
|
||||
SIZE (mysqlcc-1.0.2-src.tar.gz) = 6673848
|
||||
|
@ -1,6 +1,6 @@
|
||||
$OpenBSD: patch-configure,v 1.2 2008/09/08 07:48:43 wilfried Exp $
|
||||
--- configure.orig Sun Oct 8 22:40:01 2006
|
||||
+++ configure Thu Aug 21 13:39:50 2008
|
||||
$OpenBSD: patch-configure,v 1.3 2014/09/21 17:32:41 brad Exp $
|
||||
--- configure.orig Sun Oct 8 16:40:01 2006
|
||||
+++ configure Mon Sep 15 11:47:13 2014
|
||||
@@ -2457,9 +2457,9 @@ echo "${ECHO_T}" >&6
|
||||
for dir in $mysql_lib; do
|
||||
if test "x$mysql_found" != "xyes"
|
||||
@ -32,77 +32,7 @@ $OpenBSD: patch-configure,v 1.2 2008/09/08 07:48:43 wilfried Exp $
|
||||
|
||||
echo "$as_me:$LINENO: checking for mysql_real_connect in -lmysqlclient" >&5
|
||||
echo $ECHO_N "checking for mysql_real_connect in -lmysqlclient... $ECHO_C" >&6
|
||||
@@ -3090,51 +3090,7 @@ fi
|
||||
|
||||
if test "x$mysql_found" = "xyes"
|
||||
then
|
||||
- echo "$as_me:$LINENO: checking \"if MySQL Version $dir is >= 4.0.0\"" >&5
|
||||
-echo $ECHO_N "checking \"if MySQL Version $dir is >= 4.0.0\"... $ECHO_C" >&6
|
||||
- CPPFLAGS="$CPPFLAGS -I$dir"
|
||||
- cat >conftest.$ac_ext <<_ACEOF
|
||||
-#line $LINENO "configure"
|
||||
-#include "confdefs.h"
|
||||
-
|
||||
- #include <mysql_version.h>
|
||||
- #if MYSQL_VERSION_ID < 40000
|
||||
- #error
|
||||
- #endif
|
||||
-
|
||||
-_ACEOF
|
||||
-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
||||
- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
||||
- ac_status=$?
|
||||
- egrep -v '^ *\+' conftest.er1 >conftest.err
|
||||
- rm -f conftest.er1
|
||||
- cat conftest.err >&5
|
||||
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
- (exit $ac_status); } >/dev/null; then
|
||||
- if test -s conftest.err; then
|
||||
- ac_cpp_err=$ac_c_preproc_warn_flag
|
||||
- else
|
||||
- ac_cpp_err=
|
||||
- fi
|
||||
-else
|
||||
- ac_cpp_err=yes
|
||||
-fi
|
||||
-if test -z "$ac_cpp_err"; then
|
||||
- mysql_version_ok=yes
|
||||
-else
|
||||
- echo "$as_me: failed program was:" >&5
|
||||
- cat conftest.$ac_ext >&5
|
||||
- mysql_version_ok=no
|
||||
-fi
|
||||
-rm -f conftest.err conftest.$ac_ext
|
||||
-
|
||||
- if test "x$mysql_version_ok" != "xno"
|
||||
- then
|
||||
- MYSQL_INCLUDE="$dir"
|
||||
-
|
||||
- fi
|
||||
- echo "$as_me:$LINENO: result: $mysql_version_ok" >&5
|
||||
-echo "${ECHO_T}$mysql_version_ok" >&6
|
||||
+ MYSQL_INCLUDE="$dir"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
@@ -3146,16 +3102,8 @@ echo "$as_me: error: Could not find mysql.h in '$mysql
|
||||
{ (exit 1); exit 1; }; }
|
||||
fi
|
||||
|
||||
- if test "x$mysql_version_ok" != "xyes"
|
||||
- then
|
||||
- echo "Please upgrade your MySQL installation to version 4.0.0 or higher"
|
||||
- echo "If you do have the correct version of MySQL installed somewhere"
|
||||
- echo "other than $dir, please specify it as --with-mysql-include= argument"
|
||||
- exit 1
|
||||
- fi
|
||||
|
||||
|
||||
-
|
||||
# Check whether --with-qt or --without-qt was given.
|
||||
if test "${with_qt+set}" = set; then
|
||||
withval="$with_qt"
|
||||
@@ -3184,7 +3132,7 @@ fi
|
||||
@@ -3184,7 +3184,7 @@ fi
|
||||
|
||||
echo "$as_me:$LINENO: checking \"if Qt Version in $QTDIR is >= 3.0.5\"" >&5
|
||||
echo $ECHO_N "checking \"if Qt Version in $QTDIR is >= 3.0.5\"... $ECHO_C" >&6
|
||||
@ -111,7 +41,7 @@ $OpenBSD: patch-configure,v 1.2 2008/09/08 07:48:43 wilfried Exp $
|
||||
cat >conftest.$ac_ext <<_ACEOF
|
||||
#line $LINENO "configure"
|
||||
#include "confdefs.h"
|
||||
@@ -4078,7 +4026,7 @@ else
|
||||
@@ -4078,7 +4078,7 @@ else
|
||||
fi
|
||||
|
||||
echo "Creating Makefile with qmake"
|
||||
|
@ -1,6 +1,6 @@
|
||||
$OpenBSD: patch-mysqlcc_pro_in,v 1.1.1.1 2004/07/19 13:56:20 wilfried Exp $
|
||||
--- mysqlcc.pro.in.orig 2003-12-14 00:10:43.000000000 +0100
|
||||
+++ mysqlcc.pro.in 2003-12-26 14:10:30.000000000 +0100
|
||||
$OpenBSD: patch-mysqlcc_pro_in,v 1.2 2014/09/21 17:32:41 brad Exp $
|
||||
--- mysqlcc.pro.in.orig Fri Aug 11 16:29:36 2006
|
||||
+++ mysqlcc.pro.in Mon Sep 15 11:51:45 2014
|
||||
@@ -1,5 +1,5 @@
|
||||
TEMPLATE = app
|
||||
-CONFIG += qt thread
|
||||
@ -8,12 +8,14 @@ $OpenBSD: patch-mysqlcc_pro_in,v 1.1.1.1 2004/07/19 13:56:20 wilfried Exp $
|
||||
DEFINES += QT_DLL
|
||||
DEFINES += HAVE_MYSQLCC_CONFIG
|
||||
TARGET = mysqlcc
|
||||
@@ -27,7 +27,7 @@ win32 {
|
||||
@@ -27,8 +27,8 @@ win32 {
|
||||
}
|
||||
|
||||
unix {
|
||||
- LIBS += @MYSQL_LIB@
|
||||
- INCLUDEPATH += @MYSQL_INCLUDE@
|
||||
+ LIBS += @MYSQL_LIB@ -lz
|
||||
INCLUDEPATH += @MYSQL_INCLUDE@
|
||||
+ INCLUDEPATH += @MYSQL_INCLUDE@ @MYSQL_INCLUDE@/private
|
||||
CONFIG += x11
|
||||
OBJECTS_DIR = tmp
|
||||
}
|
||||
|
@ -1,40 +0,0 @@
|
||||
$OpenBSD: patch-src_main_cpp,v 1.2 2008/09/08 07:48:43 wilfried Exp $
|
||||
--- src/main.cpp.orig Fri Aug 11 22:29:12 2006
|
||||
+++ src/main.cpp Thu Aug 21 13:27:40 2008
|
||||
@@ -22,7 +22,9 @@
|
||||
#undef VERSION
|
||||
#endif
|
||||
#include <m_string.h>
|
||||
+#if MYSQL_VERSION_ID >= 40000
|
||||
#include <my_getopt.h>
|
||||
+#endif
|
||||
#ifndef NO_QT
|
||||
#define NO_QT
|
||||
#endif
|
||||
@@ -44,6 +46,7 @@ static const char *load_default_groups[]= { "mysqlcc",
|
||||
static ulong select_limit,my_net_buffer_length,max_join_size,my_max_allowed_packet,opt_connect_timeout=0;
|
||||
static uint opt_local_infile=0;
|
||||
|
||||
+#if MYSQL_VERSION_ID >= 40000
|
||||
static struct my_option my_long_options[] =
|
||||
{
|
||||
{"compress", 'C', "Use compression in server/client protocol.", 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
|
||||
@@ -185,6 +188,7 @@ static void usage()
|
||||
my_print_variables(my_long_options);
|
||||
exit(-1);
|
||||
}
|
||||
+#endif
|
||||
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
@@ -196,8 +200,10 @@ int main(int argc, char *argv[])
|
||||
load_defaults("my",load_default_groups,&argc,&argv);
|
||||
save_argv = argv;
|
||||
progname= argv[0];
|
||||
+#if MYSQL_VERSION_ID >= 40000
|
||||
if (handle_options(&argc, &argv, my_long_options, get_one_option))
|
||||
exit(-1);
|
||||
+#endif
|
||||
if (!argv[0] || !argv[1] || (pid = atoi(argv[0])) <= 0 || (t= atoi(argv[1])) <= 0)
|
||||
ret = mysqlcc_main(argc, argv);
|
||||
free_defaults(save_argv);
|
Loading…
Reference in New Issue
Block a user