[ooo-build-commit] patches/dev300

René Engelhard rene at kemper.freedesktop.org
Sun Aug 30 16:11:41 PDT 2009


 patches/dev300/apply                                         |    5 
 patches/dev300/debian-mysqlc-build-against-stlport-hack.diff |   68 +++++++++++
 2 files changed, 72 insertions(+), 1 deletion(-)

New commits:
commit 5fcc64c9db41bfc8619402814cd77340823512fc
Author: Rene Engelhard <rene at debian.org>
Date:   Sun Aug 30 23:45:11 2009 +0200

    try to make mysqlc build with STLport (needs extra lib, thus DebianBaseOnly)

diff --git a/patches/dev300/apply b/patches/dev300/apply
index 95cd110..dc9bf45 100644
--- a/patches/dev300/apply
+++ b/patches/dev300/apply
@@ -3327,4 +3327,7 @@ xmloff-layoutcode.diff, cocofan
 [ MySQL ]
 cws-mysqlnative-20090828.diff
 
-
+[ MySQL and DebianBaseOnly ]
+# add hack to link against STLport version of libmysqlcppconn on i386.
+# Needs a libmysqlcppconn-stlport.so etc built with STLport
+debian-mysqlc-build-against-stlport-hack.diff
diff --git a/patches/dev300/debian-mysqlc-build-against-stlport-hack.diff b/patches/dev300/debian-mysqlc-build-against-stlport-hack.diff
new file mode 100644
index 0000000..2cd5297
--- /dev/null
+++ b/patches/dev300/debian-mysqlc-build-against-stlport-hack.diff
@@ -0,0 +1,68 @@
+Index: mysqlc/source/makefile.mk
+===================================================================
+--- mysqlc/source/makefile.mk	(Revision 275542)
++++ mysqlc/source/makefile.mk	(Arbeitskopie)
+@@ -113,10 +113,18 @@
+ 
+ CDEFS+=-DCPPDBC_EXPORTS -DCPPCONN_LIB_BUILD
+ .IF "$(SYSTEM_MYSQL_CPPCONN)" != "YES"
++.IF "$(USE_SYSTEM_STL)" != "YES"
++CDEFS += -DCPPCONN_LIB=\"$(DLLPRE)mysqlcppconn-stlport$(DLLPOST)\"
++.ELSE
+ CDEFS += -DCPPCONN_LIB=\"$(DLLPRE)mysqlcppconn$(DLLPOST)\"
++.ENDIF
+ .ELSE
++.IF "$(USE_SYSTEM_STL)" != "YES"
++CDEFS += -DCPPCONN_LIB=\"libmysqlcppconn-stlport.so.3\"
++.ELSE
+ CDEFS += -DCPPCONN_LIB=\"libmysqlcppconn.so.3\"
+ .ENDIF
++.ENDIF
+ 
+ # --------------- MySQL settings ------------------
+ .IF "$(GUI)"=="WNT"
+@@ -145,7 +153,11 @@
+     .ENDIF
+     MYSQL_CPPCONNFILE=$(SOLARLIBDIR)$/$(DLLPRE)mysqlcppconn$(DLLPOST)
+   .ELSE
+-    MYSQL_CPPCONN_LIB+=-lmysqlcppconn
++    .IF "$(USE_SYSTEM_STL)" != "YES"
++      MYSQL_CPPCONN_LOB+=-lmysqlcppconn-stlport
++    .ELSE
++      MYSQL_CPPCONN_LIB+=-lmysqlcppconn
++    .ENDIF
+   .ENDIF
+ .ENDIF
+ 
+Index: configure.in
+===================================================================
+--- configure.in	(Revision 275540)
++++ configure.in	(Arbeitskopie)
+@@ -3802,8 +3802,13 @@
+         AC_LANG_PUSH([C++])
+ 	AC_CHECK_HEADER(mysql_driver.h, [],
+ 					[AC_MSG_ERROR(mysql_driver.h not found. install MySQL C++ Connectivity)], [])
++if test "$USE_SYSTEM_STL" != "YES"; then
++	AC_CHECK_LIB(mysqlcppconn-stlport, main, [],
++					[AC_MSG_ERROR(MySQL C++ Connectivity lib not found or functional)], [])
++else
+ 	AC_CHECK_LIB(mysqlcppconn, main, [],
+ 					[AC_MSG_ERROR(MySQL C++ Connectivity lib not found or functional)], [])
++fi
+    AC_MSG_CHECKING([version])
+       AC_TRY_RUN([
+ #include <mysql_driver.h>
+@@ -3821,13 +3826,6 @@
+       ], [AC_MSG_RESULT(OK)], [AC_MSG_ERROR([not suitable, we need >= 1.0.6])])
+         AC_LANG_POP([C++])
+ 
+-	AC_MSG_CHECKING([STL compatibility])
+-	if test "$WITH_STLPORT" != "no"; then
+-		AC_MSG_ERROR([to use system mysqlcppconn you need to use --without-stlport])
+-	else
+-		AC_MSG_RESULT([OK])	
+-	fi
+-
+ else
+ 	AC_MSG_RESULT([internal])
+         AC_MSG_CHECKING([for mysqlcppconn module])


More information about the ooo-build-commit mailing list