Followup-For: Bug #793314 I tried to switch to mysql-5.6 (patch attached) but it does FTBFS (full log attached): [...] Making all in handlersocket make[4]: Entering directory '/tmp/buildd/handlersocket-1.1.0-7-g1044a28/handlersocket' /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I/tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6/sql -I/tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6/include -I/tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6/regex -I/tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6 -I/usr/include/mysql -DBIG_JOINS=1 -fno-strict-aliasing -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DDBUG_OFF -I../libhsclient -g -O2 -Wall -g -fno-rtti -fno-exceptions -fPIC -DPIC -c -o handlersocket_la-database.lo `test -f 'database.cpp' || echo './'`database.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I/tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6/sql -I/tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6/include -I/tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6/regex -I/tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6 -I/usr/include/mysql -DBIG_JOINS=1 -fno-strict-aliasing -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DDBUG_OFF -I../libhsclient -g -O2 -Wall -g -fno-rtti -fno-exceptions -fPIC -DPIC -c database.cpp -fPIC -DPIC -o .libs/handlersocket_la-database.o In file included from /tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6/include/my_pthread.h:835:0, from mysql_incl.hpp:24, from database.cpp:16: database.cpp: In member function 'virtual void dena::dbcontext::init_thread(const void*, volatile int&)': database.cpp:310:25: error: 'LOCK_thread_count' was not declared in this scope pthread_mutex_lock(&LOCK_thread_count); ^ /tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6/include/mysql/psi/mysql_thread.h:287:29: note: in definition of macro 'mysql_mutex_lock' inline_mysql_mutex_lock(M, __FILE__, __LINE__) ^ database.cpp:310:5: note: in expansion of macro 'pthread_mutex_lock' pthread_mutex_lock(&LOCK_thread_count); ^ database.cpp:312:5: error: 'threads' was not declared in this scope threads.append(thd); ^ database.cpp:313:7: error: 'thread_count' was not declared in this scope ++thread_count; ^ In file included from /tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6/include/my_pthread.h:835:0, from mysql_incl.hpp:24, from database.cpp:16: database.cpp: In member function 'virtual void dena::dbcontext::term_thread()': database.cpp:348:25: error: 'LOCK_thread_count' was not declared in this scope pthread_mutex_lock(&LOCK_thread_count); ^ /tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6/include/mysql/psi/mysql_thread.h:287:29: note: in definition of macro 'mysql_mutex_lock' inline_mysql_mutex_lock(M, __FILE__, __LINE__) ^ database.cpp:348:5: note: in expansion of macro 'pthread_mutex_lock' pthread_mutex_lock(&LOCK_thread_count); ^ database.cpp:351:7: error: 'thread_count' was not declared in this scope --thread_count; ^ database.cpp: In member function 'void dena::dbcontext::cmd_find_internal(dena::dbcallback_i&, const dena::prep_stmt&, ha_rkey_function, const dena::cmd_exec_args&)': database.cpp:766:29: error: 'KEY' has no member named 'key_parts' if (args.kvalslen > kinfo.key_parts) { ^ In file included from /tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6/sql/datadict.h:18:0, from /tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6/sql/table.h:23, from /tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6/sql/field.h:20, from /tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6/sql/unireg.h:172, from /tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6/sql/sql_class.h:24, from mysql_incl.hpp:26, from database.cpp:16: /tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6/sql/handler.h:2240:15: error: 'virtual int handler::index_read_map(uchar*, const uchar*, key_part_map, ha_rkey_function)' is protected virtual int index_read_map(uchar * buf, const uchar * key, ^ database.cpp:803:72: error: within this context r = hnd->index_read_map(table->record[0], key_buf, kpm, find_flag); ^ In file included from /tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6/sql/datadict.h:18:0, from /tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6/sql/table.h:23, from /tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6/sql/field.h:20, from /tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6/sql/unireg.h:172, from /tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6/sql/sql_class.h:24, from mysql_incl.hpp:26, from database.cpp:16: /tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6/sql/handler.h:2240:15: error: 'virtual int handler::index_read_map(uchar*, const uchar*, key_part_map, ha_rkey_function)' is protected virtual int index_read_map(uchar * buf, const uchar * key, ^ database.cpp:810:72: error: within this context r = hnd->index_read_map(table->record[0], key_buf, kpm, find_flag); ^ In file included from /tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6/sql/datadict.h:18:0, from /tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6/sql/table.h:23, from /tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6/sql/field.h:20, from /tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6/sql/unireg.h:172, from /tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6/sql/sql_class.h:24, from mysql_incl.hpp:26, from database.cpp:16: /tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6/sql/handler.h:2261:15: error: 'virtual int handler::index_prev(uchar*)' is protected virtual int index_prev(uchar * buf) ^ database.cpp:815:38: error: within this context r = hnd->index_prev(table->record[0]); ^ In file included from /tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6/sql/datadict.h:18:0, from /tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6/sql/table.h:23, from /tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6/sql/field.h:20, from /tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6/sql/unireg.h:172, from /tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6/sql/sql_class.h:24, from mysql_incl.hpp:26, from database.cpp:16: /tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6/sql/handler.h:2258:15: error: 'virtual int handler::index_next(uchar*)' is protected virtual int index_next(uchar * buf) ^ database.cpp:819:38: error: within this context r = hnd->index_next(table->record[0]); ^ In file included from /tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6/sql/datadict.h:18:0, from /tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6/sql/table.h:23, from /tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6/sql/field.h:20, from /tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6/sql/unireg.h:172, from /tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6/sql/sql_class.h:24, from mysql_incl.hpp:26, from database.cpp:16: /tmp/buildd/handlersocket-1.1.0-7-g1044a28/debian/mysql-source-5.6/mysql-5.6/sql/handler.h:2270:15: error: 'virtual int handler::index_next_same(uchar*, const uchar*, uint)' is protected virtual int index_next_same(uchar *buf, const uchar *key, uint keylen); ^ database.cpp:822:63: error: within this context r = hnd->index_next_same(table->record[0], key_buf, kplen_sum); ^ database.cpp: In member function 'virtual void dena::dbcontext::cmd_open(dena::dbcallback_i&, const dena::cmd_open_args&)': database.cpp:1018:57: error: cannot convert 'MEM_ROOT* {aka st_mem_root*}' to 'Open_table_context*' for argument '3' to 'bool open_table(THD*, TABLE_LIST*, Open_table_context*)' if (!open_table(thd, &tables, thd->mem_root, &ot_act)) { ^ Makefile:459: recipe for target 'handlersocket_la-database.lo' failed make[4]: *** [handlersocket_la-database.lo] Error 1 make[4]: Leaving directory '/tmp/buildd/handlersocket-1.1.0-7-g1044a28/handlersocket' Makefile:404: recipe for target 'all-recursive' failed make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory '/tmp/buildd/handlersocket-1.1.0-7-g1044a28' Makefile:336: recipe for target 'all' failed make[2]: *** [all] Error 2 make[2]: Leaving directory '/tmp/buildd/handlersocket-1.1.0-7-g1044a28' debian/rules:25: recipe for target 'override_dh_auto_build' failed make[1]: *** [override_dh_auto_build] Error 2 make[1]: Leaving directory '/tmp/buildd/handlersocket-1.1.0-7-g1044a28' debian/rules:10: recipe for target 'build' failed make: *** [build] Error 2 dpkg-buildpackage: error: debian/rules build gave error exit status 2 Homepage is 404. As I have no use for this package and could not test it anyway, I'll stop here. Andreas
>From 5bcbeea9937f4566f1bf5d98498418494a6d8786 Mon Sep 17 00:00:00 2001 From: Andreas Beckmann <a.beckmann@fz-juelich.de> Date: Thu, 23 Jul 2015 11:18:40 +0200 Subject: [PATCH] switch to mysql-5.6 --- debian/changelog | 8 ++++++++ debian/control | 15 +++++++++++---- debian/handlersocket-mysql-5.5.install | 1 - debian/handlersocket-mysql-5.6.install | 1 + debian/rules | 8 ++++---- 5 files changed, 24 insertions(+), 9 deletions(-) delete mode 100644 debian/handlersocket-mysql-5.5.install create mode 100644 debian/handlersocket-mysql-5.6.install diff --git a/debian/changelog b/debian/changelog index 9dd17cf..588bd8c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +handlersocket (1.1.0-7-g1044a28-3) UNRELEASED; urgency=medium + + * QA upload. + * Switch to mysql-5.6. (Closes: #793314) + * Rename handlersocket-mysql-5.5 to handlersocket-mysql-5.6. + + -- Andreas Beckmann <anbe@debian.org> Thu, 23 Jul 2015 11:14:45 +0200 + handlersocket (1.1.0-7-g1044a28-2) unstable; urgency=medium * QA upload. diff --git a/debian/control b/debian/control index 2b5f32d..5bdedbb 100644 --- a/debian/control +++ b/debian/control @@ -2,19 +2,26 @@ Source: handlersocket Section: database Priority: extra Maintainer: Debian QA Group <packages@qa.debian.org> -Build-Depends: debhelper (>= 7.0.50~), dh-autoreconf, mysql-server-5.5, mysql-source-5.5, libssl-dev, perl, libmysqlclient-dev +Build-Depends: + debhelper (>= 7.0.50~), + dh-autoreconf, + mysql-server-5.6, + mysql-source-5.6, + libssl-dev, + perl, + libmysqlclient-dev, Standards-Version: 3.9.3 Homepage: https://github.com/DeNADev/HandlerSocket-Plugin-for-MySQL Vcs-Bzr: http://bazaar.launchpad.net/~clint-fewbar/debian/sid/handlersocket/packaging Vcs-Browser: http://bazaar.launchpad.net/~clint-fewbar/debian/sid/handlersocket/packaging/files -Package: handlersocket-mysql-5.5 +Package: handlersocket-mysql-5.6 Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends}, mysql-server-core-5.5 +Depends: ${shlibs:Depends}, ${misc:Depends}, mysql-server-core-5.6 Recommends: handlersocket-doc Breaks: handlersocket-mysql-5.1 Replaces: handlersocket-mysql-5.1 -Description: HandlerSocket plugin for MySQL 5.5 +Description: HandlerSocket plugin for MySQL 5.6 HandlerSocket is a NoSQL plugin for MySQL. It works as a daemon inside the mysqld process, accept tcp connections, and execute requests from clients. HandlerSocket does not support SQL queries. Instead, diff --git a/debian/handlersocket-mysql-5.5.install b/debian/handlersocket-mysql-5.5.install deleted file mode 100644 index a14bbe2..0000000 --- a/debian/handlersocket-mysql-5.5.install +++ /dev/null @@ -1 +0,0 @@ -usr/lib/mysql/plugin/* diff --git a/debian/handlersocket-mysql-5.6.install b/debian/handlersocket-mysql-5.6.install new file mode 100644 index 0000000..a14bbe2 --- /dev/null +++ b/debian/handlersocket-mysql-5.6.install @@ -0,0 +1 @@ +usr/lib/mysql/plugin/* diff --git a/debian/rules b/debian/rules index e67c18f..6287210 100755 --- a/debian/rules +++ b/debian/rules @@ -17,9 +17,9 @@ perl-Net-HandlerSocket/debian: override_dh_auto_configure: perl-Net-HandlerSocket/debian [ ! -d debian/mysql-source ] || rm -rf debian/mysql-source - mkdir -p debian/mysql-source-5.5 - tar -zxf /usr/src/mysql/mysql-source-5.5.tar.gz -C debian/mysql-source-5.5 - dh_auto_configure -- --with-mysql-source=$(CURDIR)/debian/mysql-source-5.5/mysql-5.5 + mkdir -p debian/mysql-source-5.6 + tar -zxf /usr/src/mysql/mysql-source-5.6.tar.gz -C debian/mysql-source-5.6 + dh_auto_configure -- --with-mysql-source=$(CURDIR)/debian/mysql-source-5.6/mysql-5.6 override_dh_auto_build: perl-Net-HandlerSocket/debian make @@ -42,7 +42,7 @@ override_dh_install: override_dh_clean: rm -f perl-Net-HandlerSocket/debian - rm -rf debian/mysql-source-5.5 + rm -rf debian/mysql-source-5.6 rm -f debian/libnet-handlersocket-perl.install dh_clean -- 2.1.4
Attachment:
handlersocket_1.1.0-7-g1044a28-3_amd64.build.gz
Description: application/gzip