diff options
author | edwin <edwin@FreeBSD.org> | 2004-10-13 10:53:10 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2004-10-13 10:53:10 +0800 |
commit | 0aa107e1d17e0cb8019fd586d5a57ca3f2bd6f2c (patch) | |
tree | d7e261c3047a28126224ed337302a141e9f00059 /databases | |
parent | f6091d21061ee8d7f7730fef9801e452495f02c3 (diff) | |
download | freebsd-ports-graphics-0aa107e1d17e0cb8019fd586d5a57ca3f2bd6f2c.tar.gz freebsd-ports-graphics-0aa107e1d17e0cb8019fd586d5a57ca3f2bd6f2c.tar.zst freebsd-ports-graphics-0aa107e1d17e0cb8019fd586d5a57ca3f2bd6f2c.zip |
[maintainer] Unbreak databases/mysqlcppapi after mysql41-* update
databases/mysqlcppapi is unable to detect mysql-4.1.4 and
use new mysql_shutdown() api. Thus it is broken with mysql41-*
after mysql41-* were updated to 4.1.4. I hope this fix can
make it way to ports before the freeze.
PR: ports/71348
Submitted by: Jie Gao <gaoj@cpsc.ucalgary.ca>
Diffstat (limited to 'databases')
-rw-r--r-- | databases/mysqlcppapi/Makefile | 1 | ||||
-rw-r--r-- | databases/mysqlcppapi/files/patch-configure | 13 | ||||
-rw-r--r-- | databases/mysqlcppapi/files/patch-mysqlcppapi-Connection.cc | 2 |
3 files changed, 14 insertions, 2 deletions
diff --git a/databases/mysqlcppapi/Makefile b/databases/mysqlcppapi/Makefile index 0ea473fefe1..4a65bfc09cc 100644 --- a/databases/mysqlcppapi/Makefile +++ b/databases/mysqlcppapi/Makefile @@ -7,6 +7,7 @@ PORTNAME= mysqlcppapi PORTVERSION= 1.9.3 +PORTREVISION= 1 CATEGORIES= databases devel MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR=mysqlcppapi diff --git a/databases/mysqlcppapi/files/patch-configure b/databases/mysqlcppapi/files/patch-configure index e81daa02854..23710b3c6c7 100644 --- a/databases/mysqlcppapi/files/patch-configure +++ b/databases/mysqlcppapi/files/patch-configure @@ -1,4 +1,4 @@ ---- configure~ Wed Aug 4 23:58:41 2004 +--- configure.orig Wed Aug 4 23:58:41 2004 +++ configure Thu Aug 5 00:12:29 2004 @@ -18465,8 +18465,8 @@ fi; @@ -11,3 +11,14 @@ +--- configure.orig Fri Aug 29 03:24:14 2003 ++++ configure Fri Sep 3 20:09:58 2004 +@@ -18660,7 +18660,7 @@ + echo $ECHO_N "(cached) $ECHO_C" >&6 + else + ac_check_lib_save_LIBS=$LIBS +-LIBS="-lmysqlclient $LIBS" ++LIBS="-L$MYSQL_PREFIX/lib/mysql -lmysqlclient $LIBS" + cat >conftest.$ac_ext <<_ACEOF + #line $LINENO "configure" + /* confdefs.h. */ diff --git a/databases/mysqlcppapi/files/patch-mysqlcppapi-Connection.cc b/databases/mysqlcppapi/files/patch-mysqlcppapi-Connection.cc index aa3f2567e80..ffbeb0be9d2 100644 --- a/databases/mysqlcppapi/files/patch-mysqlcppapi-Connection.cc +++ b/databases/mysqlcppapi/files/patch-mysqlcppapi-Connection.cc @@ -5,7 +5,7 @@ { check_connection_is_open(); - -+#if ( MYSQL_VERSION_ID == 40103 ) || ( MYSQL_VERSION_ID == 50001 ) ++#if ( MYSQL_VERSION_ID >= 50001 ) || (( MYSQL_VERSION_ID < 50000 ) && ( MYSQL_VERSION_ID >= 40103 )) + bool suc = !(mysql_shutdown(m_sharedptr_connection.obj(),SHUTDOWN_DEFAULT)); +#else bool suc = !(mysql_shutdown(m_sharedptr_connection.obj())); |